text
stringlengths
9
39.2M
dir
stringlengths
26
295
lang
stringclasses
185 values
created_date
timestamp[us]
updated_date
timestamp[us]
repo_name
stringlengths
1
97
repo_full_name
stringlengths
7
106
star
int64
1k
183k
len_tokens
int64
1
13.8M
```php <?php return array ( 'domain' => 'default', 'plural-forms' => 'nplurals=2; plural=(n != 1);', 'messages' => array ( '' => array ( '# Episodes' => '# Episdios', '# Songs' => '# Msicas', '%{ dj } is now live on %{ station }! Tune in now: %{ url }' => '%{ dj } est ao vivo na emissora %{ station }! Oua agora: %{ url }', '%{ hours } hours' => '%{ hours } horas', '%{ minutes } minutes' => '%{ minutes } minutos', '%{ seconds } seconds' => '%{ seconds } segundos', '%{ station } is back online! Tune in now: %{ url }' => 'A emissora %{ station } est online novamente! Oua agora: %{ url }', '%{ station } is going offline for now.' => 'A emissora %{ station } est offline por enquanto.', '%{filesCount} File' => array ( 0 => '%{filesCount} Arquivo', 1 => '%{filesCount} Arquivos', ), '%{listeners} Listener' => array ( 0 => '%{listeners} Ouvinte', 1 => '%{listeners} Ouvintes', ), '%{messages} queued messages' => '%{messages} mensagens na fila', '%{name} - Copy' => '%{name} - Copiar', '%{numPlaylists} playlist' => array ( 0 => '%{numPlaylists} playlist', 1 => '%{numPlaylists} playlists', ), '%{numSongs} uploaded song' => array ( 0 => '%{numSongs} msica enviada', 1 => '%{numSongs} msicas enviadas', ), '%{spaceUsed} of %{spaceTotal} Used' => '%{spaceUsed} de %{spaceTotal} Utilizado', '%{spaceUsed} Used' => '%{spaceUsed} Usado', '%{station} - Copy' => '%{station} - Copiar', '12 Hour' => '12 Horas', '24 Hour' => '24 Horas', 'A completely random track is picked for playback every time the queue is populated.' => 'Uma faixa completamente aleatria escolhida para reproduo toda vez que a fila preenchida.', 'A name for this stream that will be used internally in code. Should only contain letters, numbers, and underscores (i.e. "stream_lofi").' => 'Um nome para esta transmisso que ser usado internamente no cdigo. Deve conter apenas letras, nmeros e sublinhados (ou seja, "stream_lofi").', 'A passkey has been selected. Submit this form to add it to your account.' => 'Uma chave de acesso foi selecionada. Envie este formulrio para adicion-lo sua conta.', 'A playlist containing media files hosted on this server.' => 'Uma playlist contendo arquivos de mdia hospedados neste servidor.', 'A playlist that instructs the station to play from a remote URL.' => 'Uma playlist que instrui a estao a reproduzir a partir de uma URL remoto.', 'A unique identifier (i.e. "G-A1B2C3D4") for this measurement stream.' => 'Um identificador exclusivo (ou seja, "G-A1B2C3D4") para este fluxo de medio.', 'About AzuraRelay' => 'Sobre o AzuraRelay', 'About Master_me' => 'Sobre o Master_me', 'About Release Channels' => 'Sobre as verses de lanamento', 'Access Code' => 'Cdigo de Acesso', 'Access Key ID' => 'ID da Chave de Acesso', 'Access Token' => 'Token de Acesso', 'Account Details' => 'Detalhes da Conta', 'Account is Active' => 'A conta Est Ativa', 'Account List' => 'Lista de Contas', 'Actions' => 'Aes', 'Adapter' => 'Adaptador', 'Add API Key' => 'Adicionar nova chave de API', 'Add Custom Field' => 'Adicionar Campo Personalizado', 'Add Episode' => 'Adicionar Episdio', 'Add Files to Playlist' => 'Adicionar Arquivos Playlist', 'Add HLS Stream' => 'Adicionar Transmisso HLS', 'Add Mount Point' => 'Adicionar Ponto de Montagem', 'Add New GitHub Issue' => 'Adicionar Novo Problema no GitHub', 'Add New Passkey' => 'Adicionar Nova Chave de Acesso', 'Add Playlist' => 'Adicionar playlist', 'Add Podcast' => 'Adicionar Podcast', 'Add Remote Relay' => 'Adicionar Relay Remoto', 'Add Role' => 'Adicionar Funo', 'Add Schedule Item' => 'Adicionar item de agendamento', 'Add SFTP User' => 'Adicionar Usurio SFTP', 'Add Station' => 'Adicionar Estao', 'Add Storage Location' => 'Adicionar Local de Armazenamento', 'Add Streamer' => 'Adicionar streamer', 'Add User' => 'Adicionar Usurio', 'Add Web Hook' => 'Adicionar Web Hook', 'Administration' => 'Administrao', 'Advanced' => 'Avanado', 'Advanced Configuration' => 'Configurao Avanada', 'Advanced Manual AutoDJ Scheduling Options' => 'Opes Avanadas de Agendamento Manual do AutoDJ', 'Aggregate listener statistics are used to show station reports across the system. IP-based listener statistics are used to view live listener tracking and may be required for royalty reports.' => 'Estatsticas agregadas do ouvinte so usadas para mostrar relatrios da estao em todo o sistema. As estatsticas do ouvinte com base em IP so usadas para visualizar o rastreamento do ouvinte ao vivo e podem ser necessrias para relatrios de royalties.', 'Album' => 'lbum', 'Album Art' => 'Arte do lbum', 'Alert' => 'Alerta', 'All Days' => 'Diariamente', 'All listed domain names should point to this AzuraCast installation. Separate multiple domain names with commas.' => 'Todos os nomes de domnio listados devem apontar para esta instalao do AzuraCast. Separe vrios nomes de domnio com vrgulas.', 'All Playlists' => 'Todas as playlists', 'All Podcasts' => 'Todos os Podcasts', 'All Types' => 'Todos os tipos', 'All values in the NowPlaying API response are available for use. Any empty fields are ignored.' => 'Todos os valores na resposta da API NowPlaying esto disponveis para uso. Quaisquer campos vazios so ignorados.', 'Allow Requests from This Playlist' => 'Permitir Pedidos nesta Lista de Reproduo', 'Allow Song Requests' => 'Permitir Pedidos de Msica', 'Allow Streamers / DJs' => 'Permitir Streamers / DJs', 'Allowed IP Addresses' => 'Endereos de IP Permitidos', 'Always Use HTTPS' => 'Sempre usar em HTTPS', 'Always Write Playlists to Liquidsoap' => 'Sempre Gravar as Playlists no Liquidsoap', 'Amplify: Amplification (dB)' => 'Amplificao: Amplificao (dB)', 'An error occurred and your request could not be completed.' => 'Ocorreu um erro e no foi possvel concluir sua solicitao.', 'An error occurred while loading the station profile:' => 'Ocorreu um erro ao carregar o perfil da estao:', 'An error occurred with the WebDJ socket.' => 'Ocorreu um erro com o WebDJ socket.', 'Analytics' => 'Anlises', 'Analyze and reprocess the selected media' => 'Analisar e reprocessar a mdia selecionada', 'Any of the following file types are accepted:' => 'Qualquer um dos seguintes tipos de arquivos so aceitos:', 'Any time a live streamer/DJ connects to the stream' => 'Sempre que um streamer/DJ se conectar ao vivo a transmisso', 'Any time a live streamer/DJ disconnects from the stream' => 'Sempre que um streamer/DJ se desconectar da transmisso', 'Any time the currently playing song changes' => 'Sempre que a msica que estiver tocando mudar', 'Any time the listener count decreases' => 'Sempre que o nmero de ouvintes diminuir', 'Any time the listener count increases' => 'Sempre quando o nmero de ouvintes aumentar', 'API "Access-Control-Allow-Origin" Header' => 'Cabealho da API "Access-Control-Allow-Origin"', 'API Documentation' => 'Documentao da API', 'API Key Description/Comments' => 'Descrio/Comentrios da chave API', 'API Keys' => 'Chaves API', 'API Token' => 'Token API', 'API Version' => 'Verso da API', 'App Key' => 'Chave do App', 'App Secret' => 'Segredo do App', 'Apple Podcasts' => 'Podcasts Apple', 'Apply audio processors (like compressors, limiters, or equalizers) to your stream to create a more uniform sound or enhance the listening experience. Processing requires extra CPU resources, so it may slow down your server.' => 'Aplique processadores de udio (como compressores, limitadores ou equalizadores) sua transmisso para criar um som mais uniforme ou aprimorar a experincia na escuta. O processamento requer recursos extras de CPU, por isso pode tornar o servidor lento.', 'Apply for an API key at Last.fm' => 'Inscreva-se para obter uma chave de API no Last.fm', 'Apply Playlist to Folders' => 'Aplicar Playlist as Pastas', 'Apply Post-processing to Live Streams' => 'Aplicar o ps-processamento nas transmisses ao vivo', 'Apply to Folders' => 'Aplicar as Pastas', 'Are you sure?' => 'Voc tem certeza?', 'Art' => 'Arte', 'Artist' => 'Artista', 'Artwork' => 'Arte', 'Artwork must be a minimum size of 1400 x 1400 pixels and a maximum size of 3000 x 3000 pixels for Apple Podcasts.' => 'A arte deve ter um tamanho mnimo de 1400 x 1400 pixels e um tamanho mximo de 3000 x 3000 pixels para o Apple Podcasts.', 'Attempt to Automatically Retrieve ISRC When Missing' => 'Tentar recuperar automaticamente o ISRC quando estiver faltando', 'Audio Bitrate (kbps)' => 'Taxa de Bits do udio (Kbps)', 'Audio Format' => 'Formato de udio', 'Audio Post-processing Method' => 'Mtodo do Ps-processamento de udio', 'Audio Processing' => 'Processamento de udio', 'Audio transcoding applications like Liquidsoap use a consistent amount of CPU over time, which gradually drains this available credit. If you regularly see stolen CPU time, you should consider migrating to a VM that has CPU resources dedicated to your instance.' => 'Aplicativos de transcodificao de udio como Liquidsoap usam uma quantidade consistente de CPU ao longo do tempo, o que consome gradualmente esse crdito disponvel. Se voc v regularmente a CPU sendo usada, considere migrar para uma VM que tenha recursos de CPU dedicados sua instncia.', 'Audit Log' => 'Registro de auditoria', 'Author' => 'Autor', 'Auto-Assign Value' => 'Atribuir Valor Automaticamente', 'AutoCue analyzes your music and automatically calculates cue points, fade points, and volume levels for a consistent listening experience.' => 'O AutoCue analisa sua msica e calcula automaticamente pontos do cue, fade e nveis de volume para uma experincia auditiva consistente.', 'AutoDJ' => 'AutoDJ', 'AutoDJ Bitrate (kbps)' => 'Bitrate do AutoDJ (kbps)', 'AutoDJ Disabled' => 'AutoDJ Desativado', 'AutoDJ Format' => 'Formato do AutoDJ', 'AutoDJ has been disabled for this station. No music will automatically be played when a source is not live.' => 'AutoDJ foi desativado para esta estao. Nenhuma msica ser reproduzida automaticamente quando uma fonte no estiver ao vivo.', 'AutoDJ Queue' => 'Fila do AutoDJ', 'AutoDJ Queue Length' => 'Comprimento da Fila do AutoDJ', 'AutoDJ Service' => 'Servio de AutoDj', 'Automatic Backups' => 'Backup automtico', 'Automatically create new podcast episodes when media is added to a specified playlist.' => 'Criar automaticamente novos episdios de podcast quando a mdia adicionada a uma playlist especificada.', 'Automatically Publish New Episodes' => 'Publicar Automaticamente Novos Episdios', 'Automatically publish to a Mastodon instance.' => 'Publicar automaticamente em uma instncia do Mastodon.', 'Automatically Scroll to Bottom' => 'Rolar Automaticamente Para Baixo', 'Automatically send a customized message to your Discord server.' => 'Enviar automaticamente uma mensagem personalizada para o seu servidor do Discord.', 'Automatically send a message to any URL when your station data changes.' => 'Enviar automaticamente uma mensagem para qualquer URL quando os dados da sua estao for alterada.', 'Automatically Set from ID3v2 Value' => 'Definido Automaticamente a Partir do Valor ID3v2', 'Available Logs' => 'Registros disponveis', 'Avatar Service' => 'Servio do Avatar', 'Avatars are retrieved based on your e-mail address from the %{ service } service. Click to manage your %{ service } settings.' => 'Avatares so obtidos com base no seu endereo de e-mail atravs do %{ service } . Clique para gerenciar suas configuraes do %{ service }.', 'Average Listeners' => 'Mdia de Ouvintes', 'Avoid Duplicate Artists/Titles' => 'Evitar artistas / ttulos duplicados', 'AzuraCast First-Time Setup' => 'Configurao do AzuraCast pela primeira vez', 'AzuraCast Instance Name' => 'Nome da instncia do AzuraCast', 'AzuraCast ships with a built-in free IP geolocation database. You may prefer to use the MaxMind GeoLite service instead to achieve more accurate results. Using MaxMind GeoLite requires a license key, but once the key is provided, we will automatically keep the database updated.' => 'O AzuraCast vem com um banco de dados de geolocalizao de IP gratuito integrado. Voc pode preferir usar o servio MaxMind GeoLite para obter resultados mais precisos. O uso do MaxMind GeoLite requer uma chave de licena, mas assim que a chave for fornecida, manteremos o banco de dados atualizado automaticamente.', 'AzuraCast Update Checks' => 'Verificar Atualizaes do Azuracast', 'AzuraCast User' => 'AzuraCast Usurio', 'AzuraCast uses a role-based access control system. Roles are given permissions to certain sections of the site, then users are assigned into those roles.' => 'AzuraCast usa um sistema de controle de acesso baseado em funes. As funes recebem permisses para certas sees do site e, em seguida, os usurios so atribudos a essas funes.', 'AzuraCast Wiki' => 'AzuraCast Wiki', 'AzuraCast will scan the uploaded file for matches in this station\'s music library. Media should already be uploaded before running this step. You can re-run this tool as many times as needed.' => 'O AzuraCast ir procurar no arquivo carregado por correspondncias na biblioteca de msicas desta estao. A mdia j deve ser carregada antes de executar esta etapa. Voc pode executar novamente essa ferramenta quantas vezes forem necessrias.', 'AzuraRelay is a standalone service that connects to your AzuraCast instance, automatically relays your stations via its own server, then reports the listener details back to your main instance. This page shows all currently connected instances.' => 'AzuraRelay um servio autnomo que se conecta sua instncia AzuraCast, retransmite automaticamente suas estaes por meio de seu prprio servidor e, em seguida, relata os detalhes do ouvinte de volta sua instncia principal. Esta pgina mostra todas as instncias atualmente conectadas.', 'Back' => 'Voltar', 'Backing up your installation is strongly recommended before any update.' => 'Fazer backup de sua instalao altamente recomendado antes de qualquer atualizao.', 'Backup' => 'Backup', 'Backup Format' => 'Formato de Backup', 'Backups' => 'Cpias de Segurana', 'Balanced' => 'Balanceado', 'Banned Countries' => 'Pases Proibidos', 'Banned IP Addresses' => 'Endereos de IP Banidos', 'Banned User Agents' => 'Agentes de Usurios Banidos', 'Base Directory' => 'Diretrio Base', 'Base Station Directory' => 'Diretrio da Estao Base', 'Base Theme for Public Pages' => 'Tema base para Pginas Pblicas', 'Basic Info' => 'Informaes bsicas', 'Basic Information' => 'Informaes bsicas', 'Basic Normalization and Compression' => 'Normalizao e Compresso Bsica', 'Best & Worst' => 'Melhor e Pior', 'Best Performing Songs' => 'Msicas Com Melhor Desempenho', 'Bit Rate' => 'Taxa de Bits', 'Bitrate' => 'Taxa de Bits', 'Bot Token' => 'Token do Bot', 'Bot/Crawler' => 'Bot/Crawler', 'Branding' => 'Marca', 'Branding Settings' => 'Configuraes da Marca', 'Broadcast AutoDJ to Remote Station' => 'Transmitir AutoDJ para Estao Remota', 'Broadcasting' => 'Transmisso', 'Broadcasting Service' => 'Servio de transmisso', 'Broadcasts' => 'Transmisso', 'Broadcasts removed:' => 'Transmisses removidas:', 'Browser' => 'Navegador', 'Browser Default' => 'Navegador Padro', 'Browser Icon' => 'cone do Navegador', 'Browsers' => 'Navegadores', 'Bucket Name' => 'Bucket', 'Bulk Edit Episodes' => 'Editar Episdios em Massa', 'Bulk Media Import/Export' => 'Importar/Exportar Mdia em Massa', 'by' => 'por', 'By default, all playlists are written to Liquidsoap as a backup in case the normal AutoDJ fails. This can affect CPU load, especially on startup. Disable to only write essential playlists to Liquidsoap.' => 'Por padro, todas as playlists so gravadas no Liquidsoap como backup caso o AutoDJ falhe. Isso pode afetar a carga da CPU, especialmente na inicializao. Desative para gravar apenas as playlists essenciais no Liquidsoap.', 'By default, radio stations broadcast on their own ports (i.e. 8000). If you\'re using a service like CloudFlare or accessing your radio station by SSL, you should enable this feature, which routes all radio through the web ports (80 and 443).' => 'Por padro, as estaes de rdio transmitem em suas prprias portas (ou seja, 8.000). Se voc estiver usando um servio como CloudFlare ou acessando sua estao de rdio por SSL, voc deve habilitar este recurso, que roteia todos as rdios atravs das portas da web (80 e 443).', 'Cached' => 'Em Cache', 'Calculate and use normalized volume level metadata for each track.' => 'Calcula e usa o nvel de volume dos metadados para normalizar cada faixa.', 'Cancel' => 'Cancelar', 'Categories' => 'Categorias', 'Change' => 'Alterar', 'Change Password' => 'Alterar Senha', 'Changes' => 'Alteraes', 'Changes saved.' => 'Alteraes salvas.', 'Character Set Encoding' => 'Codificao de Caracteres', 'Chat ID' => 'ID do Chat', 'Check for Updates' => 'Verificar Atualizaes', 'Check this box to apply post-processing to all audio, including live streams. Uncheck this box to only apply post-processing to the AutoDJ.' => 'Marque esta caixa para aplicar o ps-processamento para todos os udios, incluindo as transmisses ao vivo. Desmarque esta caixa para somente aplicar o ps-processamento no AutoDJ.', 'Check Web Services for Album Art for "Now Playing" Tracks' => 'Verificar na internet a arte do lbum para o "Tocando Agora"', 'Check Web Services for Album Art When Uploading Media' => 'Verificar na internet a arte do lbum ao enviar a mdia', 'Choose a method to use when transitioning from one song to another. Smart Mode considers the volume of the two tracks when fading for a smoother effect, but requires more CPU resources.' => 'Escolha um mtodo para a transio de uma msica para outra. O Modo Inteligente considera o volume das duas faixas durante o fade para obter um efeito mais suave, mas requer mais uso de CPU.', 'Choose a name for this webhook that will help you distinguish it from others. This will only be shown on the administration page.' => 'Escolha um nome para este webhook que ir ajud-lo a distingui-lo de outros. Isso s ser mostrado na pgina da administrao.', 'Choose a new password for your account.' => 'Escolha uma nova senha para sua conta.', 'City' => 'Cidade', 'Clear' => 'Limpar', 'Clear all media from playlist?' => 'Limpar todas as mdias da playlist?', 'Clear All Message Queues' => 'Limpar todas as filas de mensagens', 'Clear All Pending Requests?' => 'Limpar Todos os Pedidos Pendentes?', 'Clear Artwork' => 'Limpar Artwork', 'Clear Cache' => 'Limpar Cache', 'Clear Extra Metadata' => 'Limpar Metadados Extra', 'Clear Field' => 'Limpar Campo', 'Clear File' => 'Limpar Arquivo', 'Clear Filters' => 'Limpar Filtros', 'Clear Image' => 'Limpar Imagem', 'Clear List' => 'Limpar Lista', 'Clear Media' => 'Limpar Mdia', 'Clear Pending Requests' => 'Limpar Pedidos Pendentes', 'Clear Queue' => 'Limpar Fila', 'Clear Upcoming Song Queue' => 'Limpar Fila de Prximas Msicas', 'Clear Upcoming Song Queue?' => 'Limpar a Fila de Prximas Msicas?', 'Clearing the application cache may log you out of your session.' => 'Limpar o cache do aplicativo pode fazer voc sair da sesso.', 'Click "Generate new license key".' => 'Clique em "Gerar nova chave de licena".', 'Click "New Application"' => 'Clique em "Novo Aplicativo"', 'Click the "Preferences" link, then "Development" on the left side menu.' => 'Clique no link "Preferncias" e depois em "Desenvolvimento" no menu do lado esquerdo.', 'Click the button below to generate a CSV file with all of this station\'s media. You can make any necessary changes, and then import the file using the file picker on the right.' => 'Clique no boto abaixo para gerar um arquivo CSV com todas as mdias desta estao. Voc pode fazer as alteraes necessrias e importar o arquivo usando o seletor de arquivos direita.', 'Click the button below to open your browser window to select a passkey.' => 'Clique no boto abaixo para abrir a janela do navegador e selecionar uma chave de acesso.', 'Click the button below to retry loading the page.' => 'Clique no boto abaixo para tentar carregar a pgina novamente.', 'Client' => 'Cliente', 'Clients' => 'Clientes', 'Clients by Connected Time' => 'Clientes por Tempo Conectado', 'Clients by Listeners' => 'Clientes por Ouvintes', 'Clone' => 'Clonar', 'Clone Station' => 'Clonar Estao', 'Close' => 'Fechar', 'CloudFlare (CF-Connecting-IP)' => 'CloudFlare (CF-Connecting-IP)', 'Code from Authenticator App' => 'Cdigo do Aplicativo Autenticador', 'Collect aggregate listener statistics and IP-based listener statistics' => 'Coletar estatsticas agregadas de ouvintes e estatsticas de ouvintes baseadas em IP', 'Comments' => 'Comentrios', 'Complete the setup process by providing some information about your broadcast environment. These settings can be changed later from the administration panel.' => 'Conclua o processo de configurao fornecendo algumas informaes sobre seu ambiente de transmisso. Essas configuraes podem ser alteradas posteriormente no painel de administrao.', 'Configure' => 'Configurao', 'Configure Backups' => 'Configurar Backups', 'Confirm' => 'Confirmar', 'Confirm New Password' => 'Confirmar Nova Senha', 'Connected AzuraRelays' => 'AzuraRelays conectados', 'Connection Information' => 'Informaes de conexo', 'Contains explicit content' => 'Contm contedo explcito', 'Continue the setup process by creating your first radio station below. You can edit any of these details later.' => 'Continue o processo de configurao criando a sua primeira estao de rdio abaixo. Voc pode alterar esses dados mais tarde.', 'Continuous Play' => 'Reproduo contnua', 'Control how this playlist is handled by the AutoDJ software.' => 'Controlar como esta lista de reproduo tratada pelo AutoDJ.', 'Copied!' => 'Copiado!', 'Copies older than the specified number of days will automatically be deleted. Set to zero to disable automatic deletion.' => 'As cpias de segurana mais antigas que o nmero especificado vo ser automaticamente apagadas. Defina como zero para no eliminar cpias de segurana.', 'Copy associated media and folders.' => 'Copiar mdias e pastas associadas.', 'Copy scheduled playback times.' => 'Copiar horrios de reproduo agendados.', 'Copy to Clipboard' => 'Copiar para rea de transferncia', 'Copy to New Station' => 'Copiar Para a Nova Estao', 'Could not upload file.' => 'No foi possvel enviar o arquivo.', 'Countries' => 'Pases', 'Country' => 'Pas', 'CPU Load' => 'CPU', 'CPU Stats Help' => 'Ajuda com as Estatsticas da CPU', 'Create a new application. Choose "Scoped Access", select your preferred level of access, then name your app. Do not name it "AzuraCast", but rather use a name specific to your installation.' => 'Crie uma nova aplicao. Escolha "Acesso com Escopo", selecione seu nvel de acesso preferido e nomeie seu aplicativo. No o nomeie "AzuraCast", mas use um nome especfico para sua instalao.', 'Create a New Radio Station' => 'Criar uma nova estao de rdio', 'Create Account' => 'Criar conta', 'Create an account on the MaxMind developer site.' => 'Criar uma conta no site do MaxMind.', 'Create and Continue' => 'Criar e Continuar', 'Create custom fields to store extra metadata about each media file uploaded to your station libraries.' => 'Crie campos personalizados para armazenar metadados extras sobre cada arquivo de mdia enviado para as bibliotecas da estao.', 'Create Directory' => 'Criar diretrio', 'Create New Key' => 'Criar Nova Chave', 'Create New Playlist for Each Folder' => 'Crie Uma Nova Playlist Para Cada Pasta', 'Create podcast episodes independent of your station\'s media collection.' => 'Crie episdios de podcast independentes da coleo de mdia da sua estao.', 'Create Station' => 'Criar Estao', 'Critical' => 'Crtico', 'Crossfade Duration (Seconds)' => 'Durao do Crossfade (Segundos)', 'Crossfade Method' => 'Mtodo do Crossfade', 'Cue' => 'Escuta', 'Current Configuration File' => 'Arquivo de Configurao Atual', 'Current Custom Fallback File' => 'Arquivo Fallback Personalizado', 'Current Installed Version' => 'Verso Atualmente Instalada', 'Current Intro File' => 'Arquivo de Introduo Atual', 'Current Password' => 'Senha Atual', 'Current Podcast Media' => 'Mdia do Podcast Atual', 'Custom' => 'Personalizado', 'Custom API Base URL' => 'URL Base da API Personalizada', 'Custom Branding' => 'Marca personalizada', 'Custom Configuration' => 'Configurao Personalizada', 'Custom CSS for Internal Pages' => 'CSS personalizado para pginas internas', 'Custom CSS for Public Pages' => 'CSS personalizado para pginas pblicas', 'Custom Cues: Cue-In Point (seconds)' => 'Sugestes personalizadas: ponto de entrada (segundos)', 'Custom Cues: Cue-Out Point (seconds)' => 'Sugestes personalizadas: Ponto de sada (segundos)', 'Custom Fading: Fade-In Time (seconds)' => 'Fading personalizado: tempo de fade-in (segundos)', 'Custom Fading: Fade-Out Time (seconds)' => 'Fading personalizado: tempo de fade-out (segundos)', 'Custom Fading: Start Next (seconds)' => 'Fadding Personalizado: Iniciar nos Prximos (segundos)', 'Custom Fallback File' => 'Arquivo Fallback Personalizado', 'Custom Fields' => 'Campos Personalizados', 'Custom Frontend Configuration' => 'Configurao avanada do layout de frente', 'Custom HTML for Public Pages' => 'HTML customizado para as pginas pblicas', 'Custom JS for Public Pages' => 'JS personalizado para pginas pblicas', 'Customize' => 'Personalizar', 'Customize Administrator Password' => 'Personalizar a Senha do Administrador', 'Customize AzuraCast Settings' => 'Personalizar as Configuraes do AzuraCast', 'Customize Broadcasting Port' => 'Personalizar a Porta de Transmisso', 'Customize Copy' => 'Cpia Personalizada', 'Customize DJ/Streamer Mount Point' => 'Personalizar o Ponto de Montagem do DJ/Streamer', 'Customize DJ/Streamer Port' => 'Personalizar a Porta do DJ/Streamer', 'Customize Internal Request Processing Port' => 'Personalizar a Porta de Processamento de Solicitao Interna', 'Customize Source Password' => 'Personalizar a Senha de Origem', 'Customize the number of songs that will appear in the "Song History" section for this station and in all public APIs.' => 'Personalize o nmero de msicas que aparecero na seo "Histrico de msicas" para esta estao e em todas as APIs pblicas.', 'Customize this setting to ensure you get the correct IP address for remote users. Only change this setting if you use a reverse proxy, either within Docker or a third-party service like CloudFlare.' => 'Personalize esta configurao para garantir que voc obtenha o endereo de IP correto para usurios remotos. S altere essa configurao se voc usar um proxy reverso, seja dentro do Docker ou um servio de terceiros, como CloudFlare.', 'Dark' => 'Escuro', 'Dashboard' => 'Dashboard', 'Date Played' => 'Data da Reproduo', 'Date Requested' => 'Data do Pedido', 'Date/Time' => 'Data/Hora', 'Date/Time (Browser)' => 'Data/Hora (Navegador)', 'Date/Time (Station)' => 'Data/Hora (Estao)', 'Days of Playback History to Keep' => 'Dias a Manter o Histrico de Reproduo', 'Deactivate Streamer on Disconnect (Seconds)' => 'Desativar Streamer ao Desconectar (segundos)', 'Debug' => 'Depurar', 'Default Album Art' => 'Capa Padro do lbum', 'Default Album Art URL' => 'URL padro da capa do lbum', 'Default Avatar URL' => 'URL Padro do Avatar', 'Default Live Broadcast Message' => 'Mensagem de Transmisso Ao Vivo Padro', 'Default Mount' => 'Montagem Padro', 'Delete' => 'Excluir', 'Delete %{ num } broadcasts?' => 'Excluir %{ num } transmisses?', 'Delete %{ num } episodes?' => 'Excluir %{ num } episdios?', 'Delete %{ num } media files?' => 'Deletar %{ num } arquivos de mdia?', 'Delete Album Art' => 'Excluir arte do lbum', 'Delete API Key?' => 'Deletar a Chave API?', 'Delete Backup?' => 'Deletar Backup?', 'Delete Broadcast?' => 'Excluir Transmisso?', 'Delete Custom Field?' => 'Excluir o Campo Personalizado?', 'Delete Episode?' => 'Excluir Episdio?', 'Delete HLS Stream?' => 'Deletar Transmisso HLS?', 'Delete Mount Point?' => 'Excluir o Ponto de Montagem?', 'Delete Passkey?' => 'Deletar Chave de Acesso?', 'Delete Playlist?' => 'Excluir a Playlist?', 'Delete Podcast?' => 'Excluir Podcast?', 'Delete Queue Item?' => 'Excluir Item da Fila?', 'Delete Record?' => 'Deletar Gravao?', 'Delete Remote Relay?' => 'Excluir Retransmisso Remota?', 'Delete Request?' => 'Deletar Pedido?', 'Delete Role?' => 'Excluir Funo?', 'Delete SFTP User?' => 'Excluir Usurio SFTP?', 'Delete Station?' => 'Excluir Estao?', 'Delete Storage Location?' => 'Excluir o Local de Armazenamento?', 'Delete Streamer?' => 'Deletar Streamer?', 'Delete User?' => 'Deletar Usurio?', 'Delete Web Hook?' => 'Excluir Web Hook?', 'Description' => 'Descrio', 'Desktop' => 'rea de Trabalho', 'Details' => 'Detalhes', 'Directory' => 'Diretrio', 'Directory Name' => 'Nome do diretrio', 'Disable' => 'Desativar', 'Disable Crossfading' => 'Desativar Crossfading', 'Disable Optimizations' => 'Desativar Otimizaes', 'Disable station?' => 'Desativar estao?', 'Disable Two-Factor' => 'Desativar autenticao de dois fatores', 'Disable two-factor authentication?' => 'Desativar a autenticao de dois fatores?', 'Disable?' => 'Desativar?', 'Disabled' => 'Desabilitado', 'Disconnect Streamer' => 'Desconectar Streamer', 'Discord Web Hook URL' => 'URL do Web Hook do Discord', 'Discord Webhook' => 'Webhook da Discord', 'Disk caching makes a system much faster and more responsive in general. It does not take memory away from applications in any way since it will automatically be released by the operating system when needed.' => 'O cache em disco torna um sistema muito mais rpido e mais gil em geral. Ele no retira a memria das aplicaes de forma alguma, pois ser automaticamente liberado pelo sistema operacional quando necessrio.', 'Disk Space' => 'Espao em Disco', 'Display fields' => 'Exibir campos', 'Display Name' => 'Exibir nome', 'DJ/Streamer Buffer Time (Seconds)' => 'Tempo de Buffer do DJ/Streamer (Segundos)', 'Do not collect any listener analytics' => 'No coletar qualquer anlise de ouvinte', 'Do not use a local broadcasting service.' => 'No utilizar um servio de transmisso local.', 'Do not use an AutoDJ service.' => 'No usar o AutoDJ.', 'Documentation' => 'Documentao', 'Domain Name(s)' => 'Nome(s) de Domnio', 'Donate to support AzuraCast!' => 'Doe para apoiar o AzuraCast!', 'Download' => 'Fazer download', 'Download CSV' => 'Download CSV', 'Download M3U' => 'Baixar M3U', 'Download PLS' => 'Baixar PLS', 'Download the appropriate binary from the Stereo Tool downloads page:' => 'Baixe o binrio apropriado na pgina de downloads do Stereo Tool:', 'Download the Linux x64 binary from the Shoutcast Radio Manager:' => 'Faa o download do binrio para Linux x64 do Shoutcast Radio Manager:', 'Drag file(s) here to upload or' => 'Arraste e solte aqui o(s) arquivo(s) para enviar ou', 'Dropbox App Console' => 'Console do Dropbox App', 'Dropbox Setup Instructions' => 'Instrues de Configurao do Dropbox', 'Duplicate' => 'Duplicar', 'Duplicate Playlist' => 'Duplicar Playlist', 'Duplicate Prevention Time Range (Minutes)' => 'Intervalo de Preveno de Repetio (Minutos)', 'Duplicate Songs' => 'Duplicar msicas', 'E-Mail' => 'E-mail', 'E-mail Address' => 'Endereo de e-mail', 'E-mail Address (Optional)' => 'E-mail (Opcional)', 'E-mail addresses can be separated by commas.' => 'Os endereos de e-mail podem ser separados por vrgulas.', 'E-mail Delivery Service' => 'Servio de Envio de E-mail', 'EBU R128' => 'EBU R128', 'Edit' => 'Editar', 'Edit Branding' => 'Editar Marca', 'Edit Custom Field' => 'Editar Campo Personalizado', 'Edit Episode' => 'Editar Episdio', 'Edit HLS Stream' => 'Editar Transmisso HLS', 'Edit Liquidsoap Configuration' => 'Configurao do Liquidsoap', 'Edit Media' => 'Editar mdia', 'Edit Mount Point' => 'Editar Ponto de Montagem', 'Edit Playlist' => 'Editar Playlist', 'Edit Podcast' => 'Editar Podcast', 'Edit Profile' => 'Editar perfil', 'Edit Remote Relay' => 'Editar Retransmisso Remota', 'Edit Role' => 'Editar Funo', 'Edit SFTP User' => 'Editar Usurio SFTP', 'Edit Station' => 'Editar Estao', 'Edit Station Profile' => 'Editar Perfil da Estao', 'Edit Storage Location' => 'Editar Local de Armazenamento', 'Edit Streamer' => 'Editar Streamer', 'Edit User' => 'Editar Usurio', 'Edit Web Hook' => 'Editar Web Hook', 'Embed Code' => 'Cdigo para Incorporar', 'Embed Widgets' => 'Incorporar Widgets', 'Emergency' => 'Emergncia', 'Empty' => 'Vazio', 'Enable' => 'Habilitar', 'Enable Advanced Features' => 'Ativar Recursos Avanados', 'Enable AutoCue (Beta)' => 'Ativar AutoCue (Beta)', 'Enable AutoDJ' => 'Habilitar AutoDJ', 'Enable Broadcasting' => 'Ativar Transmisso', 'Enable certain advanced features in the web interface, including advanced playlist configuration, station port assignment, changing base media directories and other functionality that should only be used by users who are comfortable with advanced functionality.' => 'Habilite certos recursos avanados na interface da web, incluindo configurao avanada de lista de reproduo, atribuio de porta de estao, alterao de diretrios de mdia base e outras funcionalidades que devem ser usadas apenas por usurios que esto familiarizados com a funcionalidade avanada.', 'Enable Downloads on On-Demand Page' => 'Habilitar Downloads na Pgina On-Demand', 'Enable HTTP Live Streaming (HLS)' => 'Ativar Transmisso HTTP (HLS)', 'Enable listeners to request a song for play on your station. Only songs that are already in your playlists are requestable.' => 'Permitir que os ouvintes solicitem uma msica para reproduzir na sua estao. Apenas as msicas que j esto em suas listas de reproduo podem ser solicitadas.', 'Enable Mail Delivery' => 'Ativar Envio de E-mail', 'Enable on Public Pages' => 'Ativar nas pginas pblicas', 'Enable On-Demand Streaming' => 'Ativar Transmisso On-Demand', 'Enable Public Pages' => 'Habilitar Pginas Pblicas', 'Enable ReplayGain' => 'Ativar ReplayGain', 'Enable station?' => 'Ativar estao?', 'Enable this option if your S3 provider is using paths instead of sub-domains for their S3 endpoint; for example, when using MinIO or with other self-hosted S3 storage solutions that are accessible via a path on a domain/IP instead of a subdomain.' => 'Habilite esta opo se seu provedor S3 estiver usando caminhos em vez de subdomnios para seu endpoint S3; por exemplo, ao usar MinIO ou com outras solues de armazenamento S3 auto-hospedadas que so acessveis por meio de um caminho em um domnio/IP em vez de um subdomnio.', 'Enable this setting to prevent metadata from being sent to the AutoDJ for files in this playlist. This is useful if the playlist contains jingles or bumpers.' => 'Ative esta opo para prevenir que os metadados dos ficheiros desta lista de reproduo sejam enviados para o AutoDJ. Isto til para jingles ou bumpers.', 'Enable to advertise this mount point on "Yellow Pages" public radio directories.' => 'Ative para publicar este ponto de montagem nos diretrios de "Pginas Amarelas" de rdios pblicas.', 'Enable to advertise this relay on "Yellow Pages" public radio directories.' => 'Habilite para anunciar este relay nas "Pginas Amarelas" de diretrios de rdio pblicas.', 'Enable to allow listeners to select and play from this mount point on this station\'s public pages, including embedded widgets.' => 'Habilite para permitir que os ouvintes selecionem e reproduzam a partir deste ponto de montagem nas pginas pblicas desta estao, incluindo widgets incorporados.', 'Enable to allow listeners to select this relay on this station\'s public pages.' => 'Ative para permitir que os ouvintes selecionem este ponto de montagem nas pgina pblicas da estao.', 'Enable to allow this account to log in and stream.' => 'Habilite para permitir que esta conta entre e transmita.', 'Enable to have AzuraCast automatically run nightly backups at the time specified.' => 'Ativar para que o AzuraCast execute automaticamente cpias de segurana noturnas automaticamente no tempo especificado.', 'Enable Two-Factor' => 'Habilitar autenticao em dois fatores', 'Enable Two-Factor Authentication' => 'Ativar autenticao de dois fatores', 'Enable?' => 'Ativar?', 'Enabled' => 'Habilitado', 'End Date' => 'Data final', 'End Time' => 'Hora Final', 'Endpoint' => 'Endpoint', 'Enforce Schedule Times' => 'Forar horrios da programao', 'Enlarge Album Art' => 'Ampliar o Album Art', 'Ensure the library matches your system architecture' => 'Certifique-se de que a biblioteca corresponda arquitetura do seu sistema', 'Enter "AzuraCast" as the application name. You can leave the URL fields unchanged. For "Scopes", only "write:media" and "write:statuses" are required.' => 'Digite "AzuraCast" como o nome do aplicativo. Voc pode deixar os campos de URL inalterados. Para "Scopes", apenas "write:media" e "write:statuses" so necessrios.', 'Enter the access code you receive below.' => 'Digite o cdigo de acesso que voc recebeu abaixo.', 'Enter the current code provided by your authenticator app to verify that it\'s working correctly.' => 'Digite o cdigo atual fornecido pelo seu aplicativo autenticador para verificar se ele est funcionando corretamente.', 'Enter the full URL of another stream to relay its broadcast through this mount point.' => 'Digite a URL completa de outro stream para retransmitir sua transmisso atravs deste ponto de montagem.', 'Enter your app secret and app key below.' => 'Digite o segredo e a chave do aplicativo abaixo.', 'Enter your e-mail address to receive updates about your certificate.' => 'Digite seu endereo de e-mail para receber atualizaes sobre seu certificado.', 'Enter your password' => 'Digite sua senha', 'Episode' => 'Episdio', 'Episode Number' => 'Nmero do Episdio', 'Episodes' => 'Episdios', 'Episodes removed:' => 'Episdios removidos:', 'Episodes updated:' => 'Episdios atualizados:', 'Error' => 'Erro', 'Error moving files:' => 'Erro ao mover os arquivos:', 'Error queueing files:' => 'Erro ao enfileirar os arquivos:', 'Error removing broadcasts:' => 'Erro ao remover as transmisses:', 'Error removing episodes:' => 'Erro ao remover os episdios:', 'Error removing files:' => 'Erro ao remover os arquivos:', 'Error reprocessing files:' => 'Erro ao reprocessar os arquivos:', 'Error updating episodes:' => 'Erro ao atualizar os episdios:', 'Error updating playlists:' => 'Erro ao atualizar as playlists:', 'Example: if the remote radio URL is path_to_url enter "path_to_url".' => 'Exemplo: se a URL da rdio remota path_to_url digite "path_to_url".', 'Exclude Media from Backup' => 'Excluir pasta de mdia do backup', 'Excluding media from automated backups will save space, but you should make sure to back up your media elsewhere. Note that only locally stored media will be backed up.' => 'Excluir mdia de backups automatizados economizar espao, mas voc deve fazer backup de sua mdia em outro lugar. Observe que apenas a mdia armazenada localmente ter backup.', 'Exit Fullscreen' => 'Sair da tela cheia', 'Expected to Play at' => 'Esperado tocar em', 'Explicit' => 'Explcito', 'Export %{format}' => 'Exportar %{format}', 'Export Media to CSV' => 'Exportar Mdia para CSV', 'External' => 'Externo', 'Extra metadata cleared for files:' => 'Metadados extras limpos para os arquivos:', 'Fallback Mount' => 'Montagem de contingncia', 'Field Name' => 'Nome do Campo', 'File Name' => 'Nome Arquivo', 'Files marked for reprocessing:' => 'Arquivos marcados para reprocessamento:', 'Files moved:' => 'Arquivos movidos:', 'Files played immediately:' => 'Arquivos reproduzidos imediatamente:', 'Files queued for playback:' => 'Arquivos na fila para reproduo:', 'Files removed:' => 'Arquivos removidos:', 'First Connected' => 'Primeiro Conectado', 'Followers Only' => 'Apenas Seguidores', 'Footer Text' => 'Texto do Rodap', 'For ARM (Raspberry Pi, etc.) installations, choose "Raspberry Pi Thimeo-ST plugin".' => 'Para instalaes ARM (Raspberry Pi, etc.), escolha "Plugin Raspberry Pi Thimeo-ST".', 'For local filesystems, this is the base path of the directory. For remote filesystems, this is the folder prefix.' => 'Para sistemas de arquivos locais, este o caminho base do diretrio. Para sistemas de arquivos remotos, este o prefixo da pasta.', 'For most cases, use the default UTF-8 encoding. The older ISO-8859-1 encoding can be used if accepting connections from Shoutcast 1 DJs or using other legacy software.' => 'Na maioria dos casos, use a codificao padro UTF-8. A codificao antiga ISO-8859-1 pode ser usada no caso de conexes de DJs Shoutcast V1 ou ao usar outro software antigo.', 'for selected period' => 'por perodo selecionado', 'For simple updates where you want to keep your current configuration, you can update directly via your web browser. You will be disconnected from the web interface and listeners will be disconnected from all stations.' => 'Para atualizaes simples em que deseja manter sua configurao atual, voc pode atualizar diretamente por meio de seu navegador. Voc ser desconectado da interface web e os ouvintes sero desconectados de todas as estaes.', 'For some clients, use port:' => 'Para alguns clientes, use a porta:', 'For the legacy version' => 'Para a verso antiga', 'For x86/64 installations, choose "x86/64 Linux Thimeo-ST plugin".' => 'Para instalaes x86/64, escolha "x86/64 Linux Thimeo-ST plugin".', 'Forgot your password?' => 'Esqueceu sua senha?', 'Format' => 'Formato', 'Friday' => 'Sexta-feira', 'From your smartphone, scan the code to the right using an authentication app of your choice (FreeOTP, Authy, etc).' => 'De seu smartphone, digitalizar o cdigo para a direita usando um aplicativo de autenticao de sua escolha (FreeOTP, Authy, etc).', 'Full' => 'Completo', 'Full Volume' => 'Volume Mximo', 'General Rotation' => 'Rotao Geral', 'Generate Access Code' => 'Gerar Cdigo de Acesso', 'Generate Report' => 'Gerar Relatrio', 'Generate/Renew Certificate' => 'Gerar/Renovar Certificado', 'Generic Web Hook' => 'Web Hook Genrico', 'Generic Web Hooks' => 'Web Hooks Genricos', 'Genre' => 'Gnero', 'GeoLite is not currently installed on this installation.' => 'GeoLite no est instalado nesta instalao.', 'GeoLite version "%{ version }" is currently installed.' => 'A verso "%{ version }" do GeoLite est instalada.', 'Get Next Song' => 'Obter a Prxima Msica', 'Get Now Playing' => 'Tocando Agora', 'GetMeRadio' => 'GetMeRadio', 'GetMeRadio Station ID' => 'ID da Estao do GetMeRadio', 'Global' => 'Global', 'Global Permissions' => 'Permisses Globais', 'Go' => 'Ir', 'Google Analytics V4 Integration' => 'Integrao do Google Analytics V4', 'Help' => 'Ajuda', 'Hide Album Art on Public Pages' => 'Esconder a capa do lbum em pginas pblicas', 'Hide AzuraCast Branding on Public Pages' => 'Esconder a marca AzuraCast em pginas pblicas', 'Hide Charts' => 'Ocultar Grficos', 'Hide Credentials' => 'Ocultar Credenciais', 'Hide Metadata from Listeners ("Jingle Mode")' => 'Esconder Metadados de Ouvintes ("Modo Jingle")', 'High CPU' => 'CPU Alta', 'High I/O Wait can indicate a bottleneck with the server\'s hard disk, a potentially failing hard disk, or heavy load on the hard disk.' => 'A demora de E/S pode indicar um congestionamento com o disco rgido do servidor, um disco rgido potencialmente falho, ou um alto consumo do disco rgido.', 'Higher weight playlists are played more frequently compared to other lower-weight playlists.' => 'Playlists de maior peso so tocadas com mais frequncia se comparadas com outras playlists de menor peso.', 'History' => 'Histrico', 'HLS' => 'HLS', 'HLS Streams' => 'Transmisses HLS', 'Home' => 'Incio', 'Homepage Redirect URL' => 'URL de redirecionamento da pgina inicial', 'Hour' => 'Hora', 'HTML' => 'HTML', 'HTTP Live Streaming (HLS)' => 'Transmisso HTTP (HLS)', 'HTTP Live Streaming (HLS) is a new adaptive-bitrate streaming technology. From this page, you can configure the individual bitrates and formats that are included in the combined HLS stream.' => 'HTTP Live Streaming (HLS) uma nova tecnologia de streaming de taxa de bits adaptvel. Nessa pgina, voc pode configurar as taxas de bits e os formatos individuais includos na transmisso HLS.', 'HTTP Live Streaming (HLS) is a new adaptive-bitrate technology supported by some clients. It does not use the standard broadcasting frontends.' => 'HTTP Live Streaming (HLS) uma nova tecnologia de taxa de bits adaptvel suportada por alguns clientes. Ele no usa os frontends de transmisso padro.', 'Icecast Clients' => 'Clientes Icecast', 'Icecast/Shoutcast Stream URL' => 'URL da transmisso Icecast/Shoutcast', 'Identifier' => 'Identificador', 'If a live DJ connects but has not yet sent metadata, this is the message that will display on player pages.' => 'Se um DJ ao vivo se conectar mas ainda no enviou os metadados, esta ser a mensagem que ser exibida nas pginas do player.', 'If a song has no album art, this URL will be listed instead. Leave blank to use the standard placeholder art.' => 'Se uma msica no tem capa do lbum, esta URL ser listada em vez disso. Deixe em branco para usar a arte padro do placeholder.', 'If a visitor is not signed in and visits the AzuraCast homepage, you can automatically redirect them to the URL specified here. Leave blank to redirect them to the login screen by default.' => 'Se um visitante no estiver logado e visitar a pgina inicial do AzuraCast, voc pode redirecionar automaticamente para a URL especificada aqui. Deixe em branco para redirecionar para a tela de login por padro.', 'If disabled, the playlist will not be included in radio playback, but can still be managed.' => 'Se desativada, a playlist no ser includa na reproduo do rdio, mas ainda pode ser gerenciada.', 'If disabled, the station will not be visible on public-facing pages or APIs.' => 'Se desativado, a estao no ser visvel nas pginas pblicas ou APIs.', 'If disabled, the station will not broadcast or shuffle its AutoDJ.' => 'Se desativado, a estao no ser transmitida.', 'If enabled, a download button will also be present on the public "On-Demand" page.' => 'Se ativado, um boto de download estar presente na pgina pblica "On-Demand".', 'If enabled, AzuraCast will automatically record any live broadcasts made to this station to per-broadcast recordings.' => 'Se ativado, o AzuraCast vai gravar automaticamente quaisquer transmisses ao vivo feitas por esta estao por transmisso.', 'If enabled, AzuraCast will connect to the MusicBrainz database to attempt to find an ISRC for any files where one is missing. Disabling this may improve performance.' => 'Se ativado, o AzuraCast ir se conectar base de dados do MusicBrainz para tentar encontrar um ISRC para qualquer arquivo onde esteja faltando. Desativar isso pode melhorar o desempenho.', 'If enabled, music from playlists with on-demand streaming enabled will be available to stream via a specialized public page.' => 'Se habilitado, a msica das playlists com streaming on-demand habilitado estar disponvel para stream por meio de uma pgina pblica especializada.', 'If enabled, streamers (or DJs) will be able to connect directly to your stream and broadcast live music that interrupts the AutoDJ stream.' => 'Se ativado, os streamers (ou DJs) podero se conectar diretamente e transmitir ao vivo que interromper a transmisso do AutoDJ.', 'If enabled, the AutoDJ on this installation will automatically play music to this mount point.' => 'Se definito como "Sim", o AutoDJ ir tocar msicas automaticamente neste ponto de montagem.', 'If enabled, the AutoDJ will automatically play music to this mount point.' => 'Se definito como "Sim", o AutoDJ ir tocar msicas automaticamente neste ponto de montagem.', 'If enabled, this streamer will only be able to connect during their scheduled broadcast times.' => 'Se ativado, este streamer/Dj s ser capaz de se conectar durante seu tempo de transmisso programada.', 'If requests are enabled for your station, users will be able to request media that is on this playlist.' => 'Se requisies esto habilitadas para sua estao, usurios podero solicitar mdias que estiverem na sua playlist.', 'If requests are enabled, this specifies the minimum delay (in minutes) between a request being submitted and being played. If set to zero, a minor delay of 15 seconds is applied to prevent request floods.' => 'Se os pedidos estiverem habilitados, isso especifica o atraso mnimo (em minutos) entre o envio de um pedido e a execuo. Se definido como zero, um pequeno atraso de 15 segundos aplicado para evitar o acmulo de pedidos.', 'If selected, album art will not display on public-facing radio pages.' => 'Se selecionado, a capa do lbum no exibir nas pginas de rdio voltado para o pblico.', 'If selected, this will remove the AzuraCast branding from public-facing pages.' => 'Se selecionado, isto ir remover a marca AzuraCast de pginas voltadas para o pblico.', 'If the end time is before the start time, the playlist will play overnight.' => 'Se a hora de fim for antes da hora de incio, a lista de reproduo ir tocar de um dia para o outro.', 'If the end time is before the start time, the schedule entry will continue overnight.' => 'Se a hora de fim for antes da hora de incio, a lista de reproduo ir tocar de um dia para o outro.', 'If the mountpoint (i.e. /radio.mp3) or Shoutcast SID (i.e. 2) you broadcast to is different from the stream URL, specify the source mount point here.' => 'Se o ponto de montagem (ou seja, /radio.mp3) ou Shoutcast SID (ou seja, 2) para o qual voc transmite for diferente da URL de transmisso, especifique aqui o ponto de montagem de origem.', 'If the port you broadcast to is different from the stream URL, specify the source port here.' => 'Se a porta para a qual voc transmite for diferente da URL de transmisso, especifique aqui a porta de origem.', 'If this mount is the default, it will be played on the radio preview and the public radio page in this system.' => 'Se essa montagem for a padro, ela ser tocada na pr-visualizao e na pgina pblica da rdio neste sistema.', 'If this mount point is not playing audio, listeners will automatically be redirected to this mount point. The default is /error.mp3, a repeating error message.' => 'Se esse ponto de montagem no estiver tocando udio, os ouvintes sero automaticamente redirecionados para este ponto de montagem. O padro /error.mp3, uma mensagem de erro em repetio.', 'If this setting is set to "Yes", the browser URL will be used instead of the base URL when it\'s available. Set to "No" to always use the base URL.' => 'Se essa configurao estiver definida como "Sim", a URL do navegador ser usada ao invs da URL base quando estiver disponvel. Defina como "No" para sempre usar a URL base.', 'If this station has on-demand streaming and downloading enabled, only songs that are in playlists with this setting enabled will be visible.' => 'Se esta estao tem streaming on demand e download ativado, apenas msicas que esto em playlists com essa configurao ativada sero visveis.', 'If you are broadcasting using AutoDJ, enter the source password here.' => 'Se voc estiver usando AutoDJ, digite a senha de origem aqui.', 'If you are broadcasting using AutoDJ, enter the source username here. This may be blank.' => 'Se voc estiver usando AutoDJ, digite o nome de usurio de origem aqui. Isso pode estar em branco.', 'If you\'re experiencing a bug or error, you can submit a GitHub issue using the link below.' => 'Se voc econtrou um bug ou um erro, voc pode submeter uma questo GitHub usando o link abaixo.', 'If your installation is constrained by CPU or memory, you can change this setting to tune the resources used by Liquidsoap.' => 'Se sua instalao for limitada por CPU ou memria, voc pode alterar essa configurao para ajustar os recursos usados pelo Liquidsoap.', 'If your Mastodon username is "@test@example.com", enter "example.com".' => 'Se o seu nome de usurio do Mastodon for "@test@example.com", digite "example.com".', 'If your stream is set to advertise to YP directories above, you must specify an authorization hash. You can manage these on the Shoutcast web site.' => 'Se sua transmisso estiver configurada para anunciar nos diretrios do YP acima, voc dever especificar um hash de autorizao. Voc pode gerenci-los no site Shoutcast.', 'If your streaming software requires a specific mount point path, specify it here. Otherwise, use the default.' => 'Se o seu software de streaming exigir um caminho de ponto de montagem especfico, especifique-o aqui. Caso contrrio, use o padro.', 'If your web hook requires HTTP basic authentication, provide the password here.' => 'Se o seu web hook requer autenticao bsica HTTP, fornea a senha aqui.', 'If your web hook requires HTTP basic authentication, provide the username here.' => 'Se o seu web hook requer autenticao bsica HTTP, fornea o nome de usurio aqui.', 'Import Changes from CSV' => 'Importar Alteraes do CSV', 'Import from PLS/M3U' => 'Importar de PLS/M3U', 'Import Results' => 'Importar Resultados', 'Important: copy the key below before continuing!' => 'Importante: copie a chave abaixo antes de continuar!', 'In order to install Shoutcast:' => 'Para instalar o Shoutcast:', 'In order to install Stereo Tool:' => 'Para instalar o Stereo Tool:', 'In order to process quickly, web hooks have a short timeout, so the responding service should be optimized to handle the request in under 2 seconds.' => 'Para processar rapidamente, os web hooks tm um tempo limite curto, portanto, o servio de resposta deve ser otimizado para lidar com a solicitao em menos de 2 segundos.', 'Include in On-Demand Player' => 'Incluir no Player On Demand', 'Indefinitely' => 'Indefinidamente', 'Indicates the presence of explicit content (explicit language or adult content). Apple Podcasts displays an Explicit parental advisory graphic for your episode if turned on. Episodes containing explicit material aren\'t available in some Apple Podcasts territories.' => 'Indica a presena de contedo explcito (linguagem explcita ou contedo adulto). O Apple Podcasts exibe um grfico de aconselhamento parental para o seu episdio, se ativado. Os episdios que contm material explcito no esto disponveis em alguns territrios do Apple Podcasts.', 'Info' => 'Informao', 'Information about the current playing track will appear here once your station has started.' => 'As informaes sobre a faixa atual sero exibidas aqui assim que sua estao for iniciada.', 'Insert' => 'Inserir', 'Install GeoLite IP Database' => 'Instalar banco de dados GeoLite IP', 'Install Shoutcast' => 'Instalar o Shoutcast', 'Install Shoutcast 2 DNAS' => 'Instalar o Shoutcast 2 DNAS', 'Install Stereo Tool' => 'Instalar o Stereo Tool', 'Instructions' => 'Instrues', 'Internal notes or comments about the user, visible only on this control panel.' => 'Notas internas ou comentrios sobre o usurio, visvel somente neste painel de controle.', 'International Standard Recording Code, used for licensing reports.' => 'Cdigo Internacional Padro de Gravao, usado para relatrios de licenciamento.', 'Interrupt other songs to play at scheduled time.' => 'Interromper outras msicas para tocar na hora agendada.', 'Intro' => 'Introduo', 'IP' => 'IP', 'IP Address Source' => 'Origem do Endereo IP', 'IP Geolocation is used to guess the approximate location of your listeners based on the IP address they connect with. Use the free built-in IP Geolocation library or enter a license key on this page to use MaxMind GeoLite.' => 'A geolocalizao por IP usada para adivinhar a localizao aproximada de seus ouvintes com base no endereo IP com o qual eles se conectam. Use a biblioteca de geolocalizao por IP integrada ou insira uma chave de licena nesta pgina para usar o MaxMind GeoLite.', 'Is Public' => ' Pblico', 'Is Published' => 'Est Publicado', 'ISRC' => 'ISRC', 'Items per page' => 'Itens por pgina', 'Jingle Mode' => 'Modo de Jingle', 'Language' => 'Idioma', 'Last 14 Days' => 'ltimos 14 Dias', 'Last 2 Years' => 'ltimos 2 Anos', 'Last 24 Hours' => 'ltimas 24 Horas', 'Last 30 Days' => 'ltimos 30 Dias', 'Last 60 Days' => 'ltimos 60 Dias', 'Last 7 Days' => 'ltimos 7 Dias', 'Last Modified' => 'ltima Modificao', 'Last Month' => 'ltimo Ms', 'Last Processed Time' => 'Hora do ltimo Processamento', 'Last Run' => 'ltima Execuo', 'Last run:' => 'ltima execuo:', 'Last Year' => 'ltimo Ano', 'Last.fm API Key' => 'Chave API do Last.fm', 'Latest Update' => 'ltima Atualizao', 'Learn about Advanced Playlists' => 'Saiba mais sobre Playlists avanadas', 'Learn more about AutoCue' => 'Saiba mais sobre o AutoCue', 'Learn More about Post-processing CPU Impact' => 'Saiba mais sobre o impacto na CPU do ps-processamento', 'Learn more about release channels in the AzuraCast docs.' => 'Saiba mais sobre lanamento de canais na documentao do AzuraCast.', 'Learn more about this header.' => 'Saiba mais sobre este cabealho.', 'Leave blank to automatically generate a new password.' => 'Deixe em branco para gerar automaticamente uma nova senha.', 'Leave blank to play on every day of the week.' => 'Deixe em branco para tocar todos os dias da semana.', 'Leave blank to use the current password.' => 'Deixe em branco para utilizar a senha atual.', 'Leave blank to use the default Telegram API URL (recommended).' => 'Deixe em branco para usar o URL padro da API do Telegram (recomendado).', 'Length' => 'Durao', 'Let\'s get started by creating your Super Administrator account.' => 'Comece a configurao criando uma conta de super administrador.', 'LetsEncrypt' => 'LetsEncrypt', 'LetsEncrypt provides simple, free SSL certificates allowing you to secure traffic through your control panel and radio streams.' => 'LetsEncrypt fornece certificados SSL simples e gratuitos, permitindo que voc proteja o trfego atravs de seu painel de controle e transmisses de rdio.', 'Light' => 'Claro', 'Like our software?' => 'Gostou do nosso software?', 'Limited' => 'Limitado', 'LiquidSoap is currently shuffling from %{songs} and %{playlists}.' => 'O LiquidSoap est atualmente embaralhando %{songs} e %{playlists}.', 'Liquidsoap Performance Tuning' => 'Ajuste de Desempenho do Liquidsoap', 'List one IP address or group (in CIDR format) per line.' => 'Liste um endereo IP ou grupo (no formato CIDR) por linha.', 'List one user agent per line. Wildcards (*) are allowed.' => 'Listar um agente de usurio por linha. Caracteres curingas (*) so permitidos.', 'Listener Analytics Collection' => 'Coleo de Estatsticas de Ouvinte', 'Listener Gained' => 'Ouvinte Obtido', 'Listener History' => 'Histrico de Ouvintes', 'Listener Lost' => 'Ouvinte Perdido', 'Listener Report' => 'Relatrio de Ouvinte', 'Listener Request' => 'Pedido de ouvinte', 'Listener Type' => 'Tipo de Ouvinte', 'Listeners' => 'Ouvintes', 'Listeners by Day' => 'Ouvintes por dia', 'Listeners by Day of Week' => 'Ouvintes por dia da semana', 'Listeners by Hour' => 'Ouvintes por hora', 'Listeners by Listening Time' => 'Ouvintes por Tempo de Escuta', 'Listeners By Time Period' => 'Ouvintes por Perodo de Tempo', 'Listeners Per Station' => 'Ouvintes Por Estao', 'Listening Time' => 'Tempo de Escuta', 'Live' => 'Ao vivo', 'Live Broadcast Recording Bitrate (kbps)' => 'Taxa de Bits da Gravao de Transmisso Ao Vivo (kbps)', 'Live Broadcast Recording Format' => 'Formato da Gravao de Transmisso Ao Vivo', 'Live Listeners' => 'Ouvintes Ao Vivo', 'Live Recordings Storage Location' => 'Local de Armazenamento das Gravaes Ao Vivo', 'Live Streamer:' => 'Transmisso Ao Vivo:', 'Live Streamer/DJ Connected' => 'Streamer/DJ Ao Vivo Conectado', 'Live Streamer/DJ Disconnected' => 'Streamer/DJ Desconectado', 'Live Streaming' => 'Transmisso Ao Vivo', 'Load Average' => 'Mdia de Consumo', 'Loading' => 'Carregando', 'Local' => 'Local', 'Local Broadcasting Service' => 'Servio de Transmisso Local', 'Local Filesystem' => 'Sistema de Arquivos Local', 'Local IP (Default)' => 'IP Local (Padro)', 'Local Streams' => 'Transmisses Locais', 'Location' => 'Localizao', 'Log In' => 'Iniciar sesso', 'Log Output' => 'Registro de Sada', 'Log Viewer' => 'Visualizador de registro', 'Logs' => 'Registros', 'Logs by Station' => 'Registro por Estao', 'Loop Once' => 'Repetir Uma Vez', 'Main Message Content' => 'Contedo da Mensagem Principal', 'Make HLS Stream Default in Public Player' => 'Tornar o HLS a Transmisso Padro no Player Pblico', 'Make the selected media play immediately, interrupting existing media' => 'Fazer a mdia selecionada tocar imediatamente, interrompendo a mdia existente', 'Manage' => 'Gerenciar', 'Manage Avatar' => 'Gerenciar Avatar', 'Manage SFTP Accounts' => 'Gerenciar Contas SFTP', 'Manage Stations' => 'Gerenciar Estaes', 'Manual AutoDJ Mode' => 'Modo Manual AutoDJ', 'Manual Updates' => 'Atualizao manual', 'Manually Add Episodes' => 'Adicionar Episdios Manualmente', 'Manually define how this playlist is used in Liquidsoap configuration.' => 'Defina manualmente como esta playlist utilizada na configurao do Liquidsoap.', 'Markdown' => 'Remarcao', 'Master_me is an open-source automatic mastering plugin for streaming, podcasts and Internet radio.' => 'Master_me um plug-in de masterizao automtica de cdigo aberto para streaming, podcasts e rdio via internet.', 'Master_me Loudness Target (LUFS)' => 'Master_me Loudness Target (LUFS)', 'Master_me Post-processing' => 'Ps-processamento Master_Me', 'Master_me Preset' => 'Predefinio do Master_me', 'Master_me Project Homepage' => 'Pgina do projeto do Master_me', 'Mastodon Account Details' => 'Detalhes da Conta do Mastodon', 'Mastodon Instance URL' => 'URL da instncia do Mastodon', 'Mastodon Post' => 'Postagem no Mastodon', 'Matched' => 'Compatvel', 'Matomo Analytics Integration' => 'Integrao com o Matomo Analytics', 'Matomo API Token' => 'Token API do Matomo', 'Matomo Installation Base URL' => 'URL Base de Instalao do Matomo', 'Matomo Site ID' => 'ID do Site do Matomo', 'Max Listener Duration' => 'Durao mxima do ouvinte', 'Max. Connected Time' => 'Mx. Tempo Conectado', 'Maximum Listeners' => 'Mximo de Ouvintes', 'Maximum number of total listeners across all streams. Leave blank to use the default.' => 'Nmero mximo de ouvintes em todas as transmisses. Deixe em branco para usar o padro.', 'MaxMind Developer Site' => 'Site do MaxMind', 'Measurement ID' => 'ID da Medio', 'Measurement Protocol API Secret' => 'Segredo da API do Protocolo de Medio', 'Media' => 'Mdia', 'Media File' => 'Arquivos de Mdia', 'Media Storage Location' => 'Local de Armazenamento de Mdia', 'Memory' => 'Memria', 'Memory Stats Help' => 'Ajuda com as Estatsticas de Memria', 'Merge playlist to play as a single track.' => 'Mesclar a playlist para reproduzir como uma nica faixa.', 'Message Body' => 'Corpo da Mensagem', 'Message Body on Song Change' => 'Corpo da Mensagem na Troca de Msica', 'Message Body on Song Change with Streamer/DJ Connected' => 'Corpo da mensagem na mudana de msica com o Streamer/DJ conectado', 'Message Body on Station Offline' => 'Corpo de Mensagem Quando a Estao Estiver Offline', 'Message Body on Station Online' => 'Corpo de Mensagem Quando a Estao Estiver Online', 'Message Body on Streamer/DJ Connect' => 'Corpo da Mensagem na Transmisso / DJ Conectado', 'Message Body on Streamer/DJ Disconnect' => 'Corpo da Mensagem na Transmisso / DJ Desconectado', 'Message Customization Tips' => 'Dicas de Personalizao de Mensagens', 'Message parsing mode' => 'Modo de anlise de mensagem', 'Message Queues' => 'Filas de Mensagens', 'Message Recipient(s)' => 'Destinatrio(s) da Mensagem', 'Message Subject' => 'Assunto da Mensagem', 'Message Visibility' => 'Visibilidade da Mensagem', 'Metadata updated.' => 'Metadados atualizado.', 'Microphone' => 'Microfone', 'Microphone Source' => 'Fonte do Microfone', 'Min. Connected Time' => 'Min. Tempo Conectado', 'Minute of Hour to Play' => 'Minuto da Hora para Tocar', 'Mixer' => 'Controle de Volume', 'Mobile' => 'Dispositivo Mvel', 'Modified' => 'Modificado', 'Monday' => 'Segunda-feira', 'More' => 'Mais', 'Most hosting providers will put more Virtual Machines (VPSes) on a server than the hardware can handle when each VM is running at full CPU load. This is called over-provisioning, which can lead to other VMs on the server "stealing" CPU time from your VM and vice-versa.' => 'A maioria dos provedores de hospedagem coloca mais mquinas virtuais (VPSs) em um servidor do que o hardware pode suportar quando cada VM estiver sendo executada com carga total da CPU. Isso chamado de provisionamento excessivo, que pode levar outras VMs no servidor a "sugar" a CPU de sua VM e vice-versa.', 'Most Played Songs' => 'Msicas Mais Reproduzidas', 'Most Recent Backup Log' => 'Log de Backup mais recente', 'Mount Name:' => 'Nome do Ponto de Montagem:', 'Mount Point URL' => 'URL do Ponto de Montagem', 'Mount Points' => 'Pontos de montagem', 'Mount points are how listeners connect and listen to your station. Each mount point can be a different audio format or quality. Using mount points, you can set up a high-quality stream for broadband listeners and a mobile stream for phone users.' => 'Pontos de montagem o mecanismo pelo qual os ouvintes se conectam e ouvem sua estao. Cada ponto de montagem pode ser de um formato de udio ou qualidade diferente. Usando pontos de montagem, voc pode configurar uma transmisso de alta qualidade para ouvintes de banda larga e outra de qualidade menor para usurios de celular.', 'Move' => 'Mover', 'Move %{ num } File(s) to' => 'Mover %{ num } Arquivo(s) para', 'Move Down' => 'Mover para Baixo', 'Move to Bottom' => 'Mover para o final', 'Move to Directory' => 'Mover para o diretrio', 'Move to Top' => 'Mover para o Topo', 'Move Up' => 'Mover para Cima', 'Music Files' => 'Arquivos de msica', 'Music General' => 'Msica Geral', 'Must match new password.' => 'Deve coincidir com a nova senha.', 'Mute' => 'Silenciar', 'My Account' => 'Minha conta', 'N/A' => 'N/D', 'Name' => 'Nome', 'name@example.com' => 'nome@exemplo.com', 'Name/Type' => 'Nome/Tipo', 'Need Help?' => 'Precisa de ajuda?', 'Network Interfaces' => 'Interfaces de Rede', 'Never run' => 'Nunca enviar', 'New Directory' => 'Novo diretrio', 'New directory created.' => 'Novo diretrio criado.', 'New File Name' => 'Novo nome de arquivo', 'New Folder' => 'Nova Pasta', 'New Key Generated' => 'Nova Chave Gerada', 'New Password' => 'Nova Senha', 'New Playlist' => 'Cadastrar Lista de Reproduo', 'New Playlist Name' => 'Nome da Nova Playlist', 'New Station Description' => 'Nova Descrio da Estao', 'New Station Name' => 'Novo Nome da Estao', 'Next Run' => 'Prxima Execuo', 'No' => 'No', 'No AutoDJ Enabled' => 'Nenhum AutoDJ Ativado', 'No files selected.' => 'Nenhum arquivo selecionado.', 'No Limit' => 'Ilimitado', 'No Match' => 'No Compatvel', 'No other program can be using this port. Leave blank to automatically assign a port.' => 'Nenhum outro programa pode utilizar essa porta. Deixe em branco para atribuir uma porta automaticamente.', 'No Post-processing' => 'Sem Ps-processamento', 'No records to display.' => 'Nenhum registro a ser exibido.', 'No records.' => 'Sem registros.', 'None' => 'Nenhum', 'Normal Mode' => 'Modo Normal', 'Not Played' => 'No Reproduzida', 'Not Run' => 'No Executado', 'Not Running' => 'Parado', 'Not Scheduled' => 'No Agendado', 'Note that restoring a backup will clear your existing database. Never restore backup files from untrusted users.' => 'Note que a restaurao de um backup ir limpar seu banco de dados existente. Nunca restaurar arquivos de backup de usurios no confiveis.', 'Note that Stereo Tool can be resource-intensive for both CPU and Memory. Please ensure you have sufficient resources before proceeding.' => 'Observe que o Stereo Tool pode consumir muitos recursos da CPU e da memria. Certifique-se de ter recursos suficientes antes de prosseguir.', 'Note: If your media metadata has UTF-8 characters, you should use a spreadsheet editor that supports UTF-8 encoding, like OpenOffice.' => 'Observao: se seus metadados de mdia tiverem caracteres UTF-8, voc deve usar um editor de planilhas que suporte a codificao UTF-8, como o OpenOffice.', 'Note: the port after this one will automatically be used for legacy connections.' => 'Nota: a porta aps esta ser usada automaticamente para conexes antigas.', 'Note: This should be the public-facing homepage of the radio station, not the AzuraCast URL. It will be included in broadcast details.' => 'Nota: Esta deve ser a pgina inicial pblica da estao de rdio, no a URL do AzuraCast. Ser includo nos detalhes da transmisso.', 'Notes' => 'Observaes', 'Notice' => 'Aviso', 'Now' => 'Agora', 'Now Playing' => 'Reproduzindo agora', 'Now playing on %{ station }:' => 'Tocando agora na %{ station }:', 'Now playing on %{ station }: %{ title } by %{ artist } with your host, %{ dj }! Tune in now: %{ url }' => 'Tocando agora na %{ station }: %{ title } por %{ artist } com o seu anfitrio, %{ dj }! Oua agora: %{ url }', 'Now playing on %{ station }: %{ title } by %{ artist }! Tune in now: %{ url }' => 'Tocando agora na %{ station }: %{ title } por %{ artist }! Oua agora: %{ url }', 'Now playing on %{ station }: %{ title } by %{ artist }! Tune in now.' => 'Tocando agora na %{ station }: %{ title } por %{ artist }! Oua agora.', 'NowPlaying API Response' => 'Resposta da API NowPlaying', 'Number of Backup Copies to Keep' => 'Nmero de Cpias de Segurana para Manter', 'Number of Minutes Between Plays' => 'Minutos entre as reprodues', 'Number of seconds to overlap songs.' => 'Nmero de segundos para sobrepor as msicas.', 'Number of Songs Between Plays' => 'Nmero de msicas entre as reprodues', 'Number of Visible Recent Songs' => 'Nmero de Msicas Recentes Visveis', 'On the Air' => 'No Ar', 'On-Demand' => 'Sob demanda', 'On-Demand Media' => 'Arquivos On Demand', 'On-Demand Streaming' => 'Transmisso On-Demand', 'Once per %{minutes} Minutes' => 'Uma vez a cada %{minutes} minutos', 'Once per %{songs} Songs' => 'Uma vez a cada %{songs} msicas', 'Once per Hour' => 'Uma vez por hora', 'Once per Hour (at %{minute})' => 'Uma vez por hora (s %{minute})', 'Once per x Minutes' => 'Uma vez a cada x minutos', 'Once per x Songs' => 'Uma vez a cada x msicas', 'Once these steps are completed, enter the "Access Token" from the application\'s page into the field below.' => 'Concludas essas etapas, insira o "Token de Acesso" da pgina do aplicativo no campo abaixo.', 'One important note on I/O Wait is that it can indicate a bottleneck or problem but also may be completely meaningless, depending on the workload and general available resources. A constantly high I/O Wait should prompt further investigation with more sophisticated tools.' => 'Uma observao importante sobre a espera de E/S que ela pode indicar um congestionamento ou problema, mas tambm pode ser completamente sem sentido, dependendo da carga de trabalho e dos recursos gerais disponveis. Uma espera de E/S constantemente alta deve levar a uma investigao mais aprofundada com ferramentas mais sofisticadas.', 'Only collect aggregate listener statistics' => 'Somente coletar estatsticas agregadas dos ouvintes', 'Only loop through playlist once.' => 'Apenas reproduzir toda a playlist uma vez.', 'Only play one track at scheduled time.' => 'S reproduzir uma faixa no horrio agendado.', 'Only Post Once Every...' => 'Postar Apenas Uma Vez a Cada...', 'Operation' => 'Operao', 'Optional: HTTP Basic Authentication Password' => 'Opcional: Senha de Autenticao Bsica HTTP', 'Optional: HTTP Basic Authentication Username' => 'Opcional: Usurio de Autenticao Bsica HTTP', 'Optional: Request Timeout (Seconds)' => 'Opcional: Tempo Limite de Pedido (Segundos)', 'Optionally list this episode as part of a season in some podcast aggregators.' => 'Opcionalmente, lista este episdio como parte de uma temporada em alguns agregadores de podcasts.', 'Optionally select an ID3v2 metadata field that, if present, will be used to set this field\'s value.' => 'Opcionalmente, selecione um campo de metadados ID3v2 que, se presente, ser usado para definir o valor deste campo.', 'Optionally set a specific episode number in some podcast aggregators.' => 'Opcionalmente, define um nmero de episdio especfico em alguns agregadores de podcasts.', 'Optionally specify a short URL-friendly name, such as "my_station_name", that will be used in this station\'s URLs. Leave this field blank to automatically create one based on the station name.' => 'Opcionalmente, especifique um nome curto para URL, como "my_station_name", que ser usado nas URLs desta estao. Deixe este campo em branco para criar automaticamente baseado no nome da estao.', 'Optionally specify an API-friendly name, such as "field_name". Leave this field blank to automatically create one based on the name.' => 'Opcionalmente, especifique um nome amigvel API, como "field_name". Deixe este campo em branco para criar automaticamente baseado no nome.', 'Optionally supply an API token to allow IP address overriding.' => 'Opcionalmente, fornea um token de API para permitir a substituio do endereo IP.', 'Optionally supply SSH public keys this user can use to connect instead of a password. Enter one key per line.' => 'Opcionalmente, fornea chaves pblicas SSH que este usurio pode usar para conectar em vez de uma senha. Digite uma chave por linha.', 'or' => 'ou', 'Original Path' => 'Caminho Original', 'Other Remote URL (File, HLS, etc.)' => 'Outra URL remota (Arquivo, HLS, etc.)', 'Owner' => 'Proprietrio', 'Page' => 'Pgina', 'Passkey Authentication' => 'Autenticao da Chave de Acesso', 'Passkey Nickname' => 'Apelido da Chave de Acesso', 'Password' => 'Senha', 'Password:' => 'Senha:', 'Paste the generated license key into the field on this page.' => 'Cole a chave de licena gerada no campo nesta pgina.', 'Path/Suffix' => 'Caminho/Sufixo', 'Pending Requests' => 'Solicitaes Pendentes', 'Permissions' => 'Permisses', 'Play' => 'Tocar', 'Play Now' => 'Reproduzir', 'Play once every $x minutes.' => 'Reproduzir a cada $x minutos.', 'Play once every $x songs.' => 'Reproduzir a cada $x msicas.', 'Play once per hour at the specified minute.' => 'Reproduzir a cada hora no minuto especificado.', 'Playback Queue' => 'Fila de Reproduo', 'Playing Next' => 'A Seguir', 'Playlist' => 'Lista de reproduo', 'Playlist (M3U/PLS) URL' => 'URL da Playlist (M3U/PLS)', 'Playlist 1' => 'Lista de reproduo 1', 'Playlist 2' => 'Lista de reproduo 2', 'Playlist Name' => 'Nome da playlist', 'Playlist order set.' => 'Ordem de playlist definida.', 'Playlist queue cleared.' => 'A fila da lista de reproduo foi limpa.', 'Playlist successfully applied to folders.' => 'Playlist aplicada com sucesso s pastas.', 'Playlist Type' => 'Tipo da playlist', 'Playlist Weight' => 'Peso da playlist', 'Playlist-Based' => 'Baseado em playlist', 'Playlist-Based Podcast' => 'Podcast Baseado em Playlist', 'Playlist-based podcasts will automatically sync with the contents of a playlist, creating new podcast episodes for any media added to the playlist.' => 'Os podcasts baseados em playlists sero sincronizados automaticamente com o contedo de uma playlist, criando novos episdios de podcast para qualquer mdia adicionada playlist.', 'Playlist:' => 'Lista de reproduo:', 'Playlists' => 'Listas de reproduo', 'Playlists cleared for selected files:' => 'Playlists limpas para arquivos selecionados:', 'Playlists updated for selected files:' => 'Playlists atualizadas para os arquivos selecionados:', 'Plays' => 'Reprodues', 'Please log in to continue.' => 'Por favor, identifique-se para continuar.', 'Podcast' => 'Podcast', 'Podcast media should be in the MP3 or M4A (AAC) format for the greatest compatibility.' => 'A mdia do podcast deve estar no formato MP3 ou M4A (AAC) para maior compatibilidade.', 'Podcast Title' => 'Ttulo do Podcast', 'Podcasts' => 'Podcasts', 'Podcasts Storage Location' => 'Local de Armazenamento dos Podcasts', 'Port' => 'Porta', 'Port:' => 'Porta:', 'Powered by' => 'Desenvolvido por', 'Powered by AzuraCast' => 'Desenvolvido por AzuraCast', 'Prefer Browser URL (If Available)' => 'Preferir a URL do Navegador (Se Disponvel)', 'Prefer System Default' => 'Usar o Padro do Sistema', 'Preview' => 'Pr-visualizao', 'Previous' => 'Anterior', 'Privacy' => 'Privacidade', 'Profile' => 'Perfil', 'Programmatic Name' => 'Nome Programtico', 'Provide a valid license key from Thimeo. Functionality is limited without a license key.' => 'Fornecer uma chave de licena vlida do Thimeo. Funcionalidade limitada sem uma chave de licena.', 'Public' => 'Pblico', 'Public Page' => 'Pgina pblica', 'Public Page Background' => 'Fundo da Pgina Pblica', 'Public Pages' => 'Pginas Pblicas', 'Publish At' => 'Publicar em', 'Publish to "Yellow Pages" Directories' => 'Publicar em diretrios "Pginas amarelas"', 'Queue' => 'Fila', 'Queue the selected media to play next' => 'Lista de mdia selecionada para reproduzir em seguida', 'Radio Player' => 'Player', 'Radio.de' => 'Radio.de', 'Radio.de API Key' => 'Chave API Radio.de', 'Radio.de Broadcast Subdomain' => 'Subdomnio de transmisso Radio.de', 'RadioRed Organization API Key' => 'Chave API da Organizao RadioRed', 'RadioReg Webhook URL' => 'URL do Webhook da RadioReg', 'RadioReg.net' => 'RadioReg.net', 'Random' => 'Aleatrio', 'Ready to start broadcasting? Click to start your station.' => 'Pronto para iniciar a transmisso? Clique para iniciar sua rdio.', 'Received' => 'Recebido', 'Record Live Broadcasts' => 'Gravar Transmisses Ao Vivo', 'Recover Account' => 'Recuperar Conta', 'Refresh' => 'Atualizar', 'Refresh rows' => 'Atualizar linhas', 'Region' => 'Regio', 'Relay' => 'Retransmisso', 'Relay Stream URL' => 'URL de retransmisso de stream', 'Release Channel' => 'Canal de Lanamento', 'Reload' => 'Recarregar', 'Reload Configuration' => 'Recarregar Configurao', 'Reload to Apply Changes' => 'Reiniciar para Aplicar as Alteraes', 'Reloading broadcasting will not disconnect your listeners.' => 'Recarregar a transmisso no desconectar seus ouvintes.', 'Remember me' => 'Lembre de mim', 'Remote' => 'Remoto', 'Remote Playback Buffer (Seconds)' => 'Buffer da Reproduo Remota (Segundos)', 'Remote Relays' => 'Rels remoto', 'Remote relays let you work with broadcasting software outside this server. Any relay you include here will be included in your station\'s statistics. You can also broadcast from this server to remote relays.' => 'Os relays remotos permitem trabalhar com o software de transmisso fora deste servidor. Qualquer relay includo aqui ser includo nas estatsticas da sua estao. Voc tambm pode transmitir deste servidor para relays remotos.', 'Remote Station Administrator Password' => 'Senha do Administrador da Estao remota', 'Remote Station Listening Mountpoint/SID' => 'Ponto de montagem da Estao remota', 'Remote Station Listening URL' => 'Endereo para ouvir a rdio', 'Remote Station Source Mountpoint/SID' => 'Ponto de montagem da Estao remota', 'Remote Station Source Password' => 'Senha da Estao remota', 'Remote Station Source Port' => 'Porta source da Estao remota', 'Remote Station Source Username' => 'Username da Estao remota', 'Remote Station Type' => 'Tipo de estao de rdio', 'Remote URL' => 'URL remoto', 'Remote URL Playlist' => 'Lista de reproduo de URL remota', 'Remote URL Type' => 'Tipo de URL Remoto', 'Remote: Dropbox' => 'Remoto: Dropbox', 'Remote: S3 Compatible' => 'Remoto: Compatvel com S3', 'Remote: SFTP' => 'Remoto: SFTP', 'Remove' => 'Remover', 'Remove any extra metadata (fade points, cue points, etc.) from the selected media' => 'Remova quaisquer metadados extras (fade points, cue points, etc.) da mdia selecionada', 'Remove Key' => 'Remover a Chave', 'Rename' => 'Renomear', 'Rename File/Directory' => 'Renomear arquivo/diretrio', 'Reorder' => 'Reordenar', 'Reorder Playlist' => 'Reorganizar Lista de reproduo', 'Repeat' => 'Repetir', 'Replace Album Cover Art' => 'Substituir a Capa do lbum', 'Reports' => 'Relatrios', 'Reprocess' => 'Reprocessar', 'Request' => 'Solicitar', 'Request a Song' => 'Pedir Uma Msica', 'Request History' => 'Histrico de Pedidos', 'Request Last Played Threshold (Minutes)' => 'Limite do ltimo Pedido (Minutos)', 'Request Minimum Delay (Minutes)' => 'Atraso Mnimo do Pedido (Minutos)', 'Request Song' => 'Pedir Msica', 'Requester IP' => 'IP do Solicitante', 'Requests' => 'Pedidos', 'Required' => 'Obrigatrio', 'Reshuffle' => 'Embaralhar', 'Restart' => 'Reiniciar', 'Restart Broadcasting' => 'Reiniciar transmisso', 'Restarting broadcasting will briefly disconnect your listeners.' => 'Reiniciar a transmisso ir brevemente desconectar seus ouvintes.', 'Restarting broadcasting will rewrite all configuration files and restart all services.' => 'Reiniciar a transmisso reescrever todos os arquivos de configurao e reiniciar todos os servios.', 'Restoring Backups' => 'Restaurar Backup', 'Reverse Proxy (X-Forwarded-For)' => 'Proxy Reverso (X-Forwarded-For)', 'Role Name' => 'Nome da Funo', 'Roles' => 'Funes', 'Roles & Permissions' => 'Funes e Permisses', 'Rolling Release' => 'Verso Pr-lanamento', 'RSS' => 'RSS', 'RSS Feed' => 'Contedo RSS', 'Run Automatic Nightly Backups' => 'Executar Cpias de Segurana Noturnas Automticas', 'Run Manual Backup' => 'Executar Backup Manual', 'Run Task' => 'Rodar Tarefa', 'Running' => 'Executando', 'Sample Rate' => 'Taxa de Amostragem', 'Saturday' => 'Sbado', 'Save' => 'Salvar', 'Save and Continue' => 'Salvar e Continuar', 'Save Changes' => 'Salvar alteraes', 'Save Changes first' => 'Salve as Alteraes Primeiro', 'Schedule' => 'Agendamento', 'Schedule View' => 'Visualizar agendamento', 'Scheduled' => 'Agendado', 'Scheduled Backup Time' => 'Tempo Agendado para Cpias de Segurana', 'Scheduled Play Days of Week' => 'Agendar por Dias da Semana', 'Scheduled playlists and other timed items will be controlled by this time zone.' => 'As playlists agendadas e outros itens temporrios sero controlados por este fuso horrio.', 'Scheduled Time #%{num}' => 'Tempo Agendado #%{num}', 'Scheduling' => 'Agendamento', 'Search' => 'Pesquisar', 'Season Number' => 'Nmero da Temporada', 'Seconds from the start of the song that the AutoDJ should start playing.' => 'Segundos a partir do incio da msica que o AutoDJ deve comear a tocar.', 'Seconds from the start of the song that the AutoDJ should stop playing.' => 'Segundos a partir do incio da msica que o AutoDJ deve parar de tocar.', 'Seconds from the start of the song that the next song should begin when fading. Leave blank to use the system default.' => 'Segundos a partir do incio da msica aonde a prxima msica deve comear a diminuir. Deixe em branco para usar o padro do sistema.', 'Secret Key' => 'Chave Secreta', 'Security' => 'Segurana', 'Security & Privacy' => 'Segurana e Privacidade', 'See the Telegram documentation for more details.' => 'Veja a documentao do Telegram para mais detalhes.', 'See the Telegram Documentation for more details.' => 'Veja a documentao do Telegram para mais detalhes.', 'Seek' => 'Procurar', 'Segment Length (Seconds)' => 'Durao do segmento (Segundos)', 'Segments in Playlist' => 'Segmentos na Playlist', 'Segments Overhead' => 'Segmentos Acima', 'Select' => 'Selecionar', 'Select a theme to use as a base for station public pages and the login page.' => 'Selecione um tema para usar com base para a pgina publica da estao e pgina de login', 'Select All Rows' => 'Selecionar Todas as Linhas', 'Select an option here to apply post-processing using an easy preset or tool. You can also manually apply post-processing by editing your Liquidsoap configuration manually.' => 'Selecione uma opo aqui para aplicar o ps-processamento facilmente usando uma predefinio ou ferramenta. Voc tambm pode aplicar manualmente o ps-processamento editando sua configurao do Liquidsoap manualmente.', 'Select Configuration File' => 'Selecionar Arquivo de Configurao', 'Select CSV File' => 'Selecionar Arquivo CSV', 'Select Custom Fallback File' => 'Selecionar Arquivo Fallback Personalizado', 'Select File' => 'Selecione o arquivo', 'Select Intro File' => 'Selecione o Arquivo de Introduo', 'Select Media File' => 'Selecionar Arquivo de Mdia', 'Select Passkey' => 'Selecionar Chave de Acesso', 'Select Playlist' => 'Selecione a playlist', 'Select PLS/M3U File to Import' => 'Selecione o arquivo PLS/M3U para importar', 'Select PNG/JPG artwork file' => 'Selecione o arquivo de arte PNG/JPG', 'Select Row' => 'Selecionar Linha', 'Select the category/categories that best reflects the content of your podcast.' => 'Selecione a categoria/categorias que melhor refletem o contedo do seu podcast.', 'Select the countries that are not allowed to connect to the streams.' => 'Selecione os pases que no tm permisso para se conectar as transmisses.', 'Select Web Hook Type' => 'Selecione o Tipo de Web Hook', 'Selected directory:' => 'Diretrio selecionado:', 'Send an e-mail to specified address(es).' => 'Enviar um e-mail para o(s) endereo(s) especificado(s).', 'Send E-mail' => 'Enviar E-mail', 'Send song metadata changes to %{service}' => 'Enviar mudanas de metadados de msica para %{service}', 'Send song metadata changes to %{service}.' => 'Enviar mudanas nos metadados da msica para %{service}.', 'Send stream listener details to Google Analytics.' => 'Enviar detalhes dos ouvintes para o Google Analytics.', 'Send stream listener details to Matomo Analytics.' => 'Enviar detalhes dos ouvintes para o Matomo Analytics.', 'Send Test Message' => 'Enviar Mensagem de Teste', 'Sender E-mail Address' => 'E-mail do Remetente', 'Sender Name' => 'Nome do Remetente', 'Sequential' => 'Sequencial', 'Server Status' => 'Status do Servidor', 'Server:' => 'Servidor:', 'Services' => 'Servios', 'Set a maximum disk space that this storage location can use. Specify the size with unit, i.e. "8 GB". Units are measured in 1024 bytes. Leave blank to default to the available space on the disk.' => 'Defina um espao mximo em disco que este local de armazenamento pode usar. Especifique o tamanho com unidade, ou seja, "8 GB". As unidades so medidas em 1024 bytes. Deixe em branco para usar como padro o espao disponvel no disco.', 'Set as Default Mount Point' => 'Definir como o ponto de montagem padro', 'Set cue and fade points using the visual editor. The timestamps will be saved to the corresponding fields in the advanced playback settings.' => 'Defina pontos de marcao e fade usando o editor visual. As marcaes de tempo sero salvas nos campos correspondentes nas configuraes avanadas de reproduo.', 'Set Cue In' => 'Definir o ponto de entrada', 'Set Cue Out' => 'Definir o ponto de sada', 'Set Fade In' => 'Definir Fade In', 'Set Fade Out' => 'Definir Fade Out', 'Set Fade Start Next' => 'Definir Fade Iniciar no Prximo', 'Set longer to preserve more playback history and listener metadata for stations. Set shorter to save disk space.' => 'Defina a mais para preservar mais histrico de reproduo e metadados de ouvinte para estaes. Defina menos para economizar espao em disco.', 'Set the length of time (seconds) a listener will stay connected to the stream. If set to 0, listeners can stay connected infinitely.' => 'Defina o tempo em segundos que um ouvinte ficar conectado transmisso. Se for definido como 0, os ouvintes podem permanecer conectados indefinidamente.', 'Set to "Yes" to always use "https://" secure URLs, and to automatically redirect to the secure URL when an insecure URL is visited (HSTS).' => 'Defina como "Sim" para sempre usar URLs em "https://", e para redirecionar automaticamente para uma URL em "https://" quando uma URL em "http://" for visitada (HSTS).', 'Set to * to allow all sources, or specify a list of origins separated by a comma (,).' => 'Defina como * para permitir todas as fontes, ou especifique uma lista separadas por uma vrgula (,).', 'Settings' => 'Configuraes', 'Setup instructions for broadcasting software are available on the AzuraCast wiki.' => 'Instrues para configurar softwares de transmisso esto disponveis na wiki do AzuraCast.', 'SFTP Host' => 'Host SFTP', 'SFTP Password' => 'Senha SFTP', 'SFTP Port' => 'Porta SFTP', 'SFTP Private Key' => 'Chave Privada SFTP', 'SFTP Private Key Pass Phrase' => 'Frase de Acesso da Chave Privada SFTP', 'SFTP Username' => 'Usurio SFTP', 'SFTP Users' => 'SFTP Usurios', 'Share Media Storage Location' => 'Compartilhar Localizao de Armazenamento de Mdia', 'Share Podcasts Storage Location' => 'Compartilhar Local de Armazenamento dos Podcasts', 'Share Recordings Storage Location' => 'Compartilhar Local de Armazenamento de Gravaes', 'Shoutcast 2 DNAS is not currently installed on this installation.' => 'O Shoutcast DNAS no est instalado nesta instalao.', 'Shoutcast 2 DNAS is not free software, and its restrictive license does not allow AzuraCast to distribute the Shoutcast binary.' => 'O Shoutcast 2 DNAS no software gratuito, e sua licena restritiva no permite que o AzuraCast distribua o binrio do Shoutcast.', 'Shoutcast Clients' => 'Clientes Shoutcast', 'Shoutcast Radio Manager' => 'Shoutcast Radio Manager', 'Shoutcast User ID' => 'ID do Usurio do Shoutcast', 'Shoutcast version "%{ version }" is currently installed.' => 'A verso "%{ version }" do Shoutcast est instalada.', 'Show Charts' => 'Mostrar Grficos', 'Show Credentials' => 'Mostrar Credenciais', 'Show HLS Stream on Public Player' => 'Mostrar a Transmisso HLS no Player Pblico', 'Show new releases within your update channel on the AzuraCast homepage.' => 'Mostrar novos lanamentos em seu canal de atualizao na pgina do AzuraCast.', 'Show on Public Pages' => 'Mostrar em Pginas Pblicas', 'Show the station in public pages and general API results.' => 'Mostrar a estao em pginas pblicas e resultados gerais da API.', 'Show Update Announcements' => 'Mostrar Avisos de Atualizao', 'Shuffled' => 'Embaralhado', 'Sidebar' => 'Barra Lateral', 'Sign In' => 'Entrar', 'Sign In with Passkey' => 'Entrar Com a Chave de Acesso', 'Sign Out' => 'Sair', 'Site Base URL' => 'URL Base do Site', 'Size' => 'Tamanho', 'Skip Song' => 'Pular Msica', 'Skip to main content' => 'Pular para o contedo principal', 'Smart Mode' => 'Modo Inteligente', 'SMTP Host' => 'Host SMTP', 'SMTP Password' => 'Senha do SMTP', 'SMTP Port' => 'Porta SMTP', 'SMTP Username' => 'Usurio SMTP', 'Social Media' => 'Mdia Social', 'Some clients may require that you enter a port number that is either one above or one below this number.' => 'Alguns clientes podem exigir que voc insira um nmero de porta acima ou abaixo desse nmero.', 'Some stream licensing providers may have specific rules regarding song requests. Check your local regulations for more information.' => 'Alguns provedores de licenciamento de stream podem ter regras especficas sobre pedidos de msicas. Verifique os regulamentos locais para obter mais informaes.', 'Song' => 'Msica', 'Song Album' => 'lbum da msica', 'Song Artist' => 'Artista', 'Song Change' => 'Mudana de Msica', 'Song Change (Live Only)' => 'Mudana de Msica (Somente Ao Vivo)', 'Song Genre' => 'Gnero da Msica', 'Song History' => 'Histrico de Msicas', 'Song Length' => 'Durao da msica', 'Song Lyrics' => 'Letras da msica', 'Song Playback Order' => 'Ordem de reproduo da msica', 'Song Playback Timeline' => 'Linha do tempo de reproduo de msicas', 'Song Requests' => 'Pedidos de msicas', 'Song Title' => 'Ttulo da msica', 'Song-based' => 'Baseado em msicas', 'Song-Based' => 'Baseado em Msica', 'Song-Based Playlist' => 'Playlist baseada em msicas', 'SoundExchange Report' => 'Relatrio SoundExchange', 'SoundExchange Royalties' => 'Royalties SoundExchange', 'Source' => 'Fonte', 'Space Used' => 'Espao Utilizado', 'Specify a mountpoint (i.e. "/radio.mp3") or a Shoutcast SID (i.e. "2") to specify a specific stream to use for statistics or broadcasting.' => 'Especifique um ponto de montagem (por exemplo, "/radio.mp3") ou um SID de Shoutcast (ou seja, "2") para especificar uma transmisso especfica para uso para estatsticas ou transmisso.', 'Specify the minute of every hour that this playlist should play.' => 'Especifique o minuto de cada hora que esta playlist deve tocar.', 'Speech General' => 'Discurso Geral', 'SSH Public Keys' => 'Chaves Pblicas SSH', 'Stable' => 'Estvel', 'Standard playlist, shuffles with other standard playlists based on weight.' => 'Playlist padro, mistura-se com outras playlists padro com base no peso.', 'Start' => 'Iniciar', 'Start Date' => 'Data Inicial', 'Start Station' => 'Iniciar Rdio', 'Start Streaming' => 'Iniciar Transmisso', 'Start Time' => 'Hora Inicial', 'Station Directories' => 'Diretrios de Estao', 'Station Disabled' => 'Estao Desativada', 'Station Goes Offline' => 'A Estao Fica Offline', 'Station Goes Online' => 'A Estao Fica Online', 'Station Media' => 'Mdia da Estao', 'Station Name' => 'Nome da Estao', 'Station Offline' => 'Estao Offline', 'Station Offline Display Text' => 'Texto de Exibio da Estao Offline', 'Station Overview' => 'Resumo da Estao', 'Station Permissions' => 'Permisses da Estao', 'Station Podcasts' => 'Podcasts da Estao', 'Station Recordings' => 'Gravaes da Estao', 'Station Statistics' => 'Estatsticas da Estao', 'Station Time' => 'Hora da Estao', 'Station Time Zone' => 'Fuso horrio da Estao', 'Station-Specific Debugging' => 'Depurao Especfica', 'Station(s)' => 'Estao(es)', 'Stations' => 'Estaes', 'Stations using Icecast can soft-reload the station configuration, applying changes while keeping the stream broadcast running.' => 'As estaes que usam o Icecast podem recarregar a configurao da estao, aplicando as alteraes enquanto mantm a transmisso em execuo.', 'Steal' => 'Steal', 'Steal (St)' => 'Steal (St)', 'Step %{step}' => 'Passo %{step}', 'Step 1: Scan QR Code' => 'Passo 1: Leia o cdigo QR', 'Step 2: Verify Generated Code' => 'Etapa 2: Verifique o cdigo gerado', 'Steps for configuring a Mastodon application:' => 'Etapas para configurar um aplicativo do Mastodon:', 'Stereo Tool' => 'Stereo Tool', 'Stereo Tool documentation.' => 'Documentao do Stereo Tool.', 'Stereo Tool Downloads' => 'Stereo Tool Downloads', 'Stereo Tool is a popular, proprietary tool for software audio processing. Using Stereo Tool, you can customize the sound of your stations using preset configuration files.' => 'Stereo Tool uma ferramenta popular para processamento de udio. Usando o Stereo Tool, voc pode personalizar o som de suas estaes usando arquivos de configurao predefinidos.', 'Stereo Tool is an industry standard for software audio processing. For more information on how to configure it, please refer to the' => 'Stereo Tool um software de processamento de udio. Para obter mais informaes sobre como configur-lo, consulte o', 'Stereo Tool is not currently installed on this installation.' => 'O Stereo Tool no est atualmente instalado nesta instalao.', 'Stereo Tool is not free software, and its restrictive license does not allow AzuraCast to distribute the Stereo Tool binary.' => 'O Stereo Tool no um software gratuito e sua licena restritiva no permite que o AzuraCast distribua o binrio do Stereo Tool.', 'Stereo Tool version %{ version } is currently installed.' => 'A verso %{ version } do Stereo Tool esta instalada.', 'Stop' => 'Parar', 'Stop Streaming' => 'Parar Transmisso', 'Storage Adapter' => 'Adaptador de Armazenamento', 'Storage Location' => 'Local de Armazenamento', 'Storage Locations' => 'Locais de Armazenamento', 'Storage Quota' => 'Cota de Armazenamento', 'Stream' => 'Transmisso', 'Streamer Broadcasts' => 'Transmisses de streamer', 'Streamer Display Name' => 'Nome de exibio do Streamer', 'Streamer password' => 'Senha do streamer', 'Streamer Username' => 'Nome de usurio do streamer', 'Streamer/DJ' => 'Streamer/DJ', 'Streamer/DJ Accounts' => 'Contas de streamer/DJ', 'Streamers/DJs' => 'Streamers/DJs', 'Streams' => 'Transmisses', 'Submit Code' => 'Enviar Cdigo', 'Sunday' => 'Domingo', 'Support Documents' => 'Documentos de Suporte', 'Supported file formats:' => 'Formatos de arquivo suportados:', 'Switch Theme' => 'Mudar tema', 'Synchronization Tasks' => 'Sincronizao de Tarefas', 'Synchronize with Playlist' => 'Sincronizar com a playlist', 'System Administration' => 'Administrao do sistema', 'System Debugger' => 'Depurador do sistema', 'System Logs' => 'Registros do Sistema', 'System Maintenance' => 'Manuteno do sistema', 'System Settings' => 'Configuraes do sistema', 'Target' => 'Destino', 'Task Name' => 'Nome da Tarefa', 'Telegram Chat Message' => 'Mensagem de Chat do Telegram', 'Test' => 'Teste', 'Test message sent.' => 'Mensagem de teste enviada.', 'Thanks for listening to %{ station }!' => 'Obrigado por ouvir a %{ station }!', 'The amount of memory Linux is using for disk caching.' => 'A quantidade de memria que o Linux est usando para cache de disco.', 'The average target loudness (measured in LUFS) for the broadcasted stream. Values between -14 and -18 LUFS are common for Internet radio stations.' => 'O volume mdio destinado (medido em LUFS) para a transmisso. Valores entre -14 e -18 LUFS so comuns para estaes de rdio via internet.', 'The base URL where this service is located. Use either the external IP address or fully-qualified domain name (if one exists) pointing to this server.' => 'A URL base onde este servio est localizado. Use o endereo IP externo ou um nome de domnio totalmente qualificado (se houver) apontando para este servidor.', 'The body of the POST message is the exact same as the NowPlaying API response for your station.' => 'O corpo da mensagem POST exatamente o mesmo que a resposta da API NowPlaying para sua estao.', 'The contact person of the podcast. May be required in order to list the podcast on services like Apple Podcasts, Spotify, Google Podcasts, etc.' => 'A pessoa de contato do podcast. Pode ser necessrio para listar o podcast em servios como Apple Podcasts, Spotify, Google Podcasts, etc.', 'The current CPU usage including I/O Wait and Steal.' => 'O uso atual da CPU, incluindo I/O Wait e Steal.', 'The current Memory usage excluding cached memory.' => 'O uso atual de memria, excluindo a memria em cache.', 'The date and time when the episode should be published.' => 'A data e hora em que o episdio deve ser publicado.', 'The description of the episode. The typical maximum amount of text allowed for this is 4000 characters.' => 'A descrio do episdio. A quantidade mxima tpica de texto permitida para isso de 4.000 caracteres.', 'The description of your podcast. The typical maximum amount of text allowed for this is 4000 characters.' => 'A descrio do seu podcast. A quantidade mxima tpica de texto permitida para isso de 4.000 caracteres.', 'The display name assigned to this mount point when viewing it on administrative or public pages. Leave blank to automatically generate one.' => 'O nome de exibio atribudo a este ponto de montagem ao visualiz-lo em pginas administrativas ou pblicas. Deixe em branco para gerar automaticamente um.', 'The display name assigned to this relay when viewing it on administrative or public pages. Leave blank to automatically generate one.' => 'O nome de exibio atribudo a este ponto de montagem ao visualiz-lo em pginas administrativas ou pblicas. Deixe em branco para gerar automaticamente um.', 'The editable text boxes are areas where you can insert custom configuration code. The non-editable sections are automatically generated by AzuraCast.' => 'As caixas de texto editveis so reas onde voc pode inserir um cdigo de configurao personalizado. As sees no editveis so geradas automaticamente pelo AzuraCast.', 'The email of the podcast contact. May be required in order to list the podcast on services like Apple Podcasts, Spotify, Google Podcasts, etc.' => 'O e-mail do contato do podcast. Pode ser necessrio para listar o podcast em servios como Apple Podcasts, Spotify, Google Podcasts, etc.', 'The file name should look like:' => 'O nome do arquivo deve ser semelhante a:', 'The format and headers of this CSV should match the format generated by the export function on this page.' => 'O formato e os cabealhos deste CSV devem corresponder ao formato gerado pela funo de exportao nesta pgina.', 'The full base URL of your Matomo installation.' => 'A URL base completa da sua instalao do Matomo.', 'The full playlist is shuffled and then played through in the shuffled order.' => 'A playlist completa embaralhada e reproduzida na ordem embaralhada.', 'The I/O Wait is the percentage of time that the CPU is waiting for disk access before it can continue the work that depends on the result of this.' => 'A Espera de E/S a porcentagem de tempo que a CPU est aguardando o acesso ao disco antes de poder continuar o trabalho que depende do resultado disso.', 'The language spoken on the podcast.' => 'O idioma falado no podcast.', 'The length of playback time that Liquidsoap should buffer when playing this remote playlist. Shorter times may lead to intermittent playback on unstable connections.' => 'O tempo de reproduo que o Liquidsoap deve colocar em buffer ao reproduzir esta lista de reproduo. Tempos mais curtos podem levar a uma reproduo intermitente ou em ligaes instveis.', 'The number of seconds of signal to store in case of interruption. Set to the lowest value that your DJs can use without stream interruptions.' => 'O nmero de segundos de sinal para armazenar em caso de interrupo. Defina o valor mais baixo que seus DJs podem usar sem interrupes de transmisso.', 'The number of seconds to wait for a response from the remote server before cancelling the request.' => 'O nmero de segundos para aguardar uma resposta do servidor antes de cancelar a solicitao.', 'The numeric site ID for this site.' => 'O ID numrico do site para este site.', 'The order of the playlist is manually specified and followed by the AutoDJ.' => 'A ordem da playlist especificada manualmente e seguida pelo AutoDJ.', 'The parent directory where station playlist and configuration files are stored. Leave blank to use default directory.' => 'O diretrio principal no qual os arquivos de configurao e a playlist da estao so armazenados. Deixe em branco para usar o diretrio padro.', 'The relative path of the file in the station\'s media directory.' => 'O caminho relativo do arquivo no diretrio de mdia da estao.', 'The station ID will be a numeric string that starts with the letter S.' => 'O ID da estao ser uma string numrica que comea com a letra S.', 'The streamer will use this password to connect to the radio server.' => 'O streamer ir utilizar essa senha para se conectar ao servidor da rdio.', 'The streamer will use this username to connect to the radio server.' => 'O streamer utilizar esse nome de usurio para conectar ao servidor da rdio.', 'The time period that the song should fade in. Leave blank to use the system default.' => 'O perodo de tempo para o fade-in nessa msica. Deixe em branco para usar o padro do sistema.', 'The time period that the song should fade out. Leave blank to use the system default.' => 'O perodo de tempo em que a msica deve fazer Fade-Out. Deixe em branco para usar o padro do sistema.', 'The URL that will receive the POST messages any time an event is triggered.' => 'A URL que receber o POST das mensagens sempre que um evento for acionado.', 'The volume in decibels to amplify the track with. Leave blank to use the system default.' => 'O volume em decibis para amplificar a faixa. Deixe em branco para usar o padro do sistema.', 'The WebDJ lets you broadcast live to your station using just your web browser.' => 'O WebDJ permite que voc transmita sua estao ao vivo usando apenas seu navegador web.', 'Theme' => 'Tema', 'There is no existing custom fallback file associated with this station.' => 'No existe nenhum arquivo personalizado de fallback associado a esta estao.', 'There is no existing intro file associated with this mount point.' => 'No h nenhum arquivo de introduo associado a este ponto de montagem.', 'There is no existing media associated with this episode.' => 'No h nenhuma mdia existente associada a este episdio.', 'There is no Stereo Tool configuration file present.' => 'No h nenhum arquivo de configurao do Stereo Tool presente.', 'This account will have full access to the system, and you\'ll automatically be logged in to it for the rest of setup.' => 'Esta conta ter acesso completo ao sistema, e voc ser conectado automaticamente para o restante da configurao.', 'This can be generated in the "Events" section for a measurement.' => 'Isso pode ser gerado na seo "Eventos" para uma medio.', 'This can be retrieved from the GetMeRadio dashboard.' => 'Isso pode ser obtido no painel do GetMeRadio.', 'This can make it look like your memory is low while it actually is not. Some monitoring solutions/panels include cached memory in their used memory statistics without indicating this.' => 'Isso pode fazer com que parea que sua memria est baixa, enquanto na verdade no est. Algumas solues/painis de monitoramento incluem memria em cache em suas estatsticas de memria usada sem indicar isso.', 'This code will be included in the frontend configuration. Allowed formats are:' => 'Este cdigo ser includo na configurao do frontend. Os formatos permitidos so:', 'This configuration file should be a valid .sts file exported from Stereo Tool.' => 'Este arquivo de configurao deve ser um arquivo .sts vlido exportado do Stereo Tool.', 'This CSS will be applied to the main management pages, like this one.' => 'Este CSS ser aplicado s principais pginas de gerenciamento, como este.', 'This CSS will be applied to the station public pages and login page.' => 'Este CSS ser aplicado s pginas pblicas da rdio e na pgina de login.', 'This CSS will be applied to the station public pages.' => 'Este CSS ser aplicado s pginas pblicas da estao.', 'This determines how many songs in advance the AutoDJ will automatically fill the queue.' => 'Isso determina com quantas msicas de antecedncia o AutoDJ preencher automaticamente a fila.', 'This feature requires the AutoDJ feature to be enabled.' => 'Este recurso requer que o AutoDJ esteja ativado.', 'This field is required.' => 'Este campo obrigatrio.', 'This field must be a valid decimal number.' => 'Este campo deve ter um nmero decimal vlido.', 'This field must be a valid e-mail address.' => 'Este campo deve ter um endereo de e-mail vlido.', 'This field must be a valid integer.' => 'Este campo deve ser um nmero inteiro vlido.', 'This field must be a valid IP address.' => 'Este campo deve ter um endereo de IP vlido.', 'This field must be a valid URL.' => 'Este campo deve ter uma URL vlida.', 'This field must be between %{ min } and %{ max }.' => 'Este campo deve estar entre %{ min } e %{ max }.', 'This field must have at least %{ min } letters.' => 'Este campo deve ter pelo menos %{ min } letras.', 'This field must have at most %{ max } letters.' => 'Este campo deve ter no mximo %{ max } letras.', 'This field must only contain alphabetic characters.' => 'Este campo deve conter apenas caracteres alfabticos.', 'This field must only contain alphanumeric characters.' => 'Este campo deve conter apenas caracteres alfanumricos.', 'This field must only contain numeric characters.' => 'Este campo deve conter apenas caracteres numricos.', 'This file will be played on your radio station any time no media is scheduled to play or a critical error occurs that interrupts regular broadcasting.' => 'Este arquivo ser reproduzido em sua estao de rdio sempre que nenhuma mdia estiver programada para ser reproduzida ou ocorrer um erro crtico que interrompa a transmisso regular.', 'This image will be used as the default album art when this streamer is live.' => 'Esta imagem ser usada como padro da capa do lbum quando este streamer estiver ao vivo.', 'This introduction file should exactly match the bitrate and format of the mount point itself.' => 'Este arquivo de introduo deve corresponder exatamente taxa de bits e ao formato do prprio ponto de montagem.', 'This is a 3-5 digit number.' => 'Este um nmero de 3 a 5 dgitos.', 'This is an advanced feature and custom code is not officially supported by AzuraCast. You may break your station by adding custom code, but removing it should fix any issues.' => 'Este um recurso avanado e o cdigo personalizado no oficialmente suportado pelo AzuraCast. Voc pode interromper sua estao adicionando um cdigo personalizado, mas remov-lo deve resolver todos os problemas.', 'This is the informal display name that will be shown in API responses if the streamer/DJ is live.' => 'Este o nome de exibio informal que ser mostrado nas respostas da API se o streamer/DJ estiver ao vivo.', 'This is the number of seconds until a streamer who has been manually disconnected can reconnect to the stream. Set to 0 to allow the streamer to immediately reconnect.' => 'Este o nmero de segundos at que um streamer que foi desconectado manualmente possa se reconectar ao stream. Defina como 0 para permitir que o streamer se reconecte imediatamente.', 'This javascript code will be applied to the station public pages and login page.' => 'Este cdigo javascript ser aplicado s pginas pblicas da estao e pgina de login.', 'This javascript code will be applied to the station public pages.' => 'Este cdigo javascript ser aplicado nas pginas pblicas da estao.', 'This mode disables AzuraCast\'s AutoDJ management, using Liquidsoap itself to manage song playback. "next song" and some other features will not be available.' => 'Este modo desativa o gerenciamento do AutoDJ pelo AzuraCast, usando o prprio Liquidsoap para gerenciar a reproduo da msica. "prxima msica" e alguns outros recursos no estaro disponveis.', 'This Month' => 'Este Ms', 'This name should always begin with a slash (/), and must be a valid URL, such as /autodj.mp3' => 'Este nome deve sempre comear com uma barra (/) e deve ser uma URL vlida, como exemplo /autodj.mp3', 'This name will appear as a sub-header next to the AzuraCast logo, to help identify this server.' => 'Este nome ir aparecer como um sub cabealho prximo ao logo do AzuraCast, para ajudar a identificar este servidor.', 'This page lists all API keys assigned to all users across the system. To manage your own API keys, visit your account profile.' => 'Esta pgina lista todas as chaves de API atribudas a todos os usurios no sistema. Para gerenciar suas prprias chaves de API, visite o perfil da sua conta.', 'This password is too common or insecure.' => 'Esta senha muito comum ou insegura.', 'This playlist currently has no scheduled times. It will play at all times. To add a new scheduled time, click the button below.' => 'Atualmente, esta lista de reproduo no tem horrios agendados. Ele ser reproduzida o tempo todo. Para adicionar um novo horrio agendado, clique no boto abaixo.', 'This playlist will play every $x minutes, where $x is specified here.' => 'Essa playlist ir tocar a cada $x minutos, onde $x especificado aqui.', 'This playlist will play every $x songs, where $x is specified here.' => 'Essa playlist ir reproduzir a cada $x msicas, onde $x especificado aqui.', 'This podcast is automatically synchronized with a playlist. Episodes cannot be manually added or removed via this panel.' => 'Este podcast automaticamente sincronizado com uma playlist. Episdios no podem ser adicionados manualmente ou removidos atravs deste painel.', 'This port is not used by any external process. Only modify this port if the assigned port is in use. Leave blank to automatically assign a port.' => 'Esta porta no usada por nenhum processo externo. S modifique se a porta atribuda j estiver em uso. Deixe em branco para atribuir uma porta automaticamente.', 'This queue contains the remaining tracks in the order they will be queued by the AzuraCast AutoDJ (if the tracks are eligible to be played).' => 'Esta fila contm as faixas restantes na ordem em que sero enfileiradas pelo AutoDJ do AzuraCast (se as faixas puderem ser reproduzidas).', 'This service can provide album art for tracks where none is available locally.' => 'Este servio pode fornecer a arte do lbum para faixas onde nenhuma estiver disponvel localmente.', 'This setting can result in excessive CPU consumption and should be used with caution.' => 'Esta configurao pode resultar em um consumo excessivo de CPU e deve ser usada com cuidado.', 'This software is traditionally used to deliver your broadcast to your listeners. You can still broadcast remotely or via HLS if this service is disabled.' => 'Este software tradicionalmente usado para entregar sua transmisso a seus ouvintes. Voc ainda pode transmitir remotamente ou via HLS se este servio estiver desativado.', 'This software shuffles from playlists of music constantly and plays when no other radio source is available.' => 'Este software embaralha as playlists constantemente e toca quando nenhuma outra fonte estiver disponvel.', 'This specifies the minimum time (in minutes) between a song playing on the radio and being available to request again. Set to 0 for no threshold.' => 'Isso especifica o tempo mnimo (em minutos) entre a msica tocar e estar disponvel novamente para pedir. Defina como 0 para nenhum limite.', 'This specifies the time range (in minutes) of the song history that the duplicate song prevention algorithm should take into account.' => 'Isso especifica o intervalo de tempo (em minutos) do histrico da msica que o algoritmo de preveno de repetio deve levar em considerao.', 'This station\'s time zone is currently %{tz}.' => 'O fuso horrio desta estao est atualmente %{tz}.', 'This streamer is not scheduled to play at any times.' => 'Esse streamer/Dj no est agendado para reproduzir em momento algum.', 'This URL is provided within the Discord application.' => 'Esta URL fornecida no aplicativo do Discord.', 'This web hook is no longer supported. Removing it is recommended.' => 'Este webhook no mais suportado. Remov-lo recomendado.', 'This web hook will only run when the selected event(s) occur on this specific station.' => 'Este web hook s ser executado quando o(s) evento(s) selecionado(s) ocorrerem nesta estao especfica.', 'This will be shown on public player pages if the station is offline. Leave blank to default to a localized version of "%{message}".' => 'Isto ser exibido nas pginas pblicas do player se a estao estiver offline. Deixe em branco para a verso traduzida de "%{message}".', 'This will be the file name for your backup, include the extension for file type you wish to use. Leave blank to have a name generated automatically.' => 'Este ser o nome do arquivo para seu backup, incluindo a extenso para o tipo de arquivo que voc deseja usar. Deixe em branco para ter um nome gerado automaticamente.', 'This will be used as the label when editing individual songs, and will show in API results.' => 'Isso ser usado como identificao ao editar msicas individuais e ser exibido nos resultados da API.', 'This will clear any pending unprocessed messages in all message queues.' => 'Isto ir limpar todas as mensagens pendentes no processadas em todas as listas de mensagens.', 'This will produce a significantly smaller backup, but you should make sure to back up your media elsewhere. Note that only locally stored media will be backed up.' => 'Isso produzir um backup significativamente menor, mas voc deve fazer o backup da mdia em outro lugar. Observe que apenas a mdia armazenada localmente ter backup.', 'Thumbnail Image URL' => 'Tamanho de Imagem em Miniatura', 'Thursday' => 'Quinta-feira', 'Time' => 'Hora', 'Time (sec)' => 'Tempo (seg)', 'Time Display' => 'Hora', 'Time spent waiting for disk I/O to be completed.' => 'Tempo gasto espera que a E/S do disco seja concluda.', 'Time stolen by other virtual machines on the same physical server.' => 'Tempo roubado por outras mquinas virtuais no mesmo servidor fsico.', 'Time Zone' => 'Fuso Horrio', 'Title' => 'Ttulo', 'To alleviate this potential problem with shared CPU resources, hosts assign "credits" to a VPS which are used up according to an algorithm based on the CPU load as well as the time over which the CPU load is generated. If your VM\'s assigned credit is used up, they will take CPU time from your VM and assign it to other VMs on the machine. This is seen as the "Steal" or "St" value.' => 'Para aliviar esse problema potencial com recursos compartilhados da CPU, os hosts atribuem "crditos" a um VPS que so usados de acordo com um algoritmo baseado na carga da CPU, bem como no tempo durante o qual a carga da CPU gerada. Se o crdito atribudo sua VM estiver esgotado, eles usaro o tempo de CPU da sua VM e o atribuiro a outras VMs na mquina. Isso visto como o valor "Steal" ou "St".', 'To customize installation settings, or if automatic updates are disabled, you can follow our standard update instructions to update via your SSH console.' => 'Para personalizar as configuraes de instalao ou se as atualizaes automticas estiverem desativadas, voc pode seguir nossas instrues de atualizao padro para atualizar por meio do SSH.', 'To download the GeoLite database:' => 'Para baixar a base de dados GeoLite:', 'To play once per day, set the start and end times to the same value.' => 'Para tocar uma vez por dia, defina a hora de incio e de fim para o mesmo valor.', 'To restore a backup from your host computer, run:' => 'Para restaurar um backup do seu computador de host, execute:', 'To retrieve detailed unique listeners and client details, an administrator password is often required.' => 'Para recuperar ouvintes exclusivos detalhados e detalhes do cliente, geralmente necessria uma senha de administrador.', 'To set this schedule to run only within a certain date range, specify a start and end date.' => 'Para definir este cronograma a ser executado apenas dentro de um determinado intervalo de datas, especifique uma data de incio e fim.', 'To use this feature, a secure (HTTPS) connection is required. Firefox is recommended to avoid static when broadcasting.' => 'Para usar esse recurso, necessria uma conexo segura (HTTPS). O Firefox recomendado para evitar esttica durante a transmisso.', 'To verify that the code was set up correctly, enter the 6-digit code the app shows you.' => 'Para verificar se o cdigo foi configurado corretamente, digite o cdigo de 6 dgitos que o app mostra.', 'Today' => 'Hoje', 'Toggle Menu' => 'Alternar Menu', 'Toggle Sidebar' => 'Alternar barra lateral', 'Top Browsers by Connected Time' => 'Principais Navegadores por Tempo Conectado', 'Top Browsers by Listeners' => 'Principais Navegadores por Ouvintes', 'Top Countries by Connected Time' => 'Principais Pases por Tempo Conectado', 'Top Countries by Listeners' => 'Principais Pases por Ouvintes', 'Top Streams by Connected Time' => 'Principais Streams por Tempo Conectado', 'Top Streams by Listeners' => 'Principais Streams por Ouvintes', 'Total Disk Space' => 'Espao Total em Disco', 'Total Listener Hours' => 'Total de Horas de Ouvinte', 'Total RAM' => 'Total de RAM', 'Transmitted' => 'Transmitido', 'Triggers' => 'Disparos', 'Tuesday' => 'Tera-feira', 'TuneIn AIR' => 'TuneIn AIR', 'TuneIn Partner ID' => 'ID do Parceiro TuneIn', 'TuneIn Partner Key' => 'Chave do Parceiro TuneIn', 'TuneIn Station ID' => 'ID da Estao do TuneIn', 'Two-Factor Authentication' => 'Autenticao de dois fatores', 'Two-factor authentication improves the security of your account by requiring a second one-time access code in addition to your password when you log in.' => 'Autenticao de dois fatores melhora a segurana da sua conta, exigindo um segundo cdigo de acesso nico alm de sua senha quando voc se logar.', 'Typically a website with content about the episode.' => 'Normalmente um site com contedo sobre o episdio.', 'Typically the home page of a podcast.' => 'Normalmente a pgina inicial do podcast.', 'Unable to update.' => 'No foi possvel atualizar.', 'Unassigned Files' => 'Arquivos No Atribudos', 'Uninstall' => 'Desinstalar', 'Unique' => 'nico', 'Unique identifier for the target chat or username of the target channel (in the format @channelusername).' => 'Identificador nico para o chat de destino ou nome de usurio do canal de destino (no formato @channelusername).', 'Unique Listeners' => 'Ouvintes nicos', 'Unknown' => 'Desconhecido', 'Unknown Artist' => 'Artista Desconhecido', 'Unknown Title' => 'Ttulo Desconhecido', 'Unlisted' => 'No listado', 'Unmute' => 'Ativar Som', 'Unprocessable Files' => 'Arquivos No Processveis', 'Unpublished' => 'No publicado', 'Unselect All Rows' => 'Desmarcar Todas as Linhas', 'Unselect Row' => 'Desmarcar Linha', 'Upcoming Song Queue' => 'Fila das prximas msicas', 'Update' => 'Atualizar', 'Update AzuraCast' => 'Atualizar o AzuraCast', 'Update AzuraCast via Web' => 'Atualizar o AzuraCast pela Web', 'Update AzuraCast? Your installation will restart.' => 'Atualizar o AzuraCast? Sua instalao ser reiniciada.', 'Update Details' => 'Detalhes da Atualizao', 'Update Instructions' => 'Instrues de atualizao', 'Update Metadata' => 'Atualizar Metadados', 'Update started. Your installation will restart shortly.' => 'Atualizao iniciada. Sua instalao reiniciar em breve.', 'Update Station Configuration' => 'Atualizar Configurao da Estao', 'Update via Web' => 'Atualizar pela Web', 'Updated' => 'Atualizado', 'Updated successfully.' => 'Atualizado com sucesso.', 'Upload a Stereo Tool configuration file from the "Broadcasting" submenu in the station profile.' => 'Envie um arquivo de configurao do Stereo Tool do sub-menu " Transmisso" no perfil da estao.', 'Upload Custom Assets' => 'Carregar Recursos Personalizados', 'Upload Stereo Tool Configuration' => 'Enviar Configurao do Stereo Tool', 'Upload the file on this page to automatically extract it into the proper directory.' => 'Faa o upload do arquivo nesta pgina para extra-lo automaticamente para o diretrio adequado.', 'Uploaded Time' => 'Tempo do Upload', 'URL' => 'URL', 'URL Stub' => 'URL Curta', 'Use' => 'Uso', 'Use (Us)' => 'Uso (Ns)', 'Use API keys to authenticate with the AzuraCast API using the same permissions as your user account.' => 'Use as chaves API para autenticar com a API do AzuraCast utilizando as mesmas permisses que a sua conta de usurio.', 'Use Browser Default' => 'Usar o Padro do Navegador', 'Use High-Performance Now Playing Updates' => 'Usar as Atualizaes de Alto Desempenho no Tocando Agora', 'Use Icecast 2.4 on this server.' => 'Icecast 2.4', 'Use Less CPU (Uses More Memory)' => 'Usar menos CPU (Usa Mais Memria)', 'Use Less Memory (Uses More CPU)' => 'Usar Menos Memria (Usa Mais CPU)', 'Use Liquidsoap on this server.' => 'Usar o Liquidsoap.', 'Use Path Instead of Subdomain Endpoint Style' => 'Usar o caminho em vez do estilo do endpoint do subdomnio', 'Use Secure (TLS) SMTP Connection' => 'Usar Conexo SMTP Segura (TLS)', 'Use Shoutcast DNAS 2 on this server.' => 'Shoutcast DNAS 2', 'Use the Telegram Bot API to send a message to a channel.' => 'Usar a API do Bot do Telegram para enviar uma mensagem para um canal.', 'Use this form to send a manual metadata update. Note that this will override any existing metadata on the stream.' => 'Use este formulrio para enviar uma atualizao manual dos metadados. Observe que isto ir substituir qualquer metadados existente na transmisso.', 'Use Web Proxy for Radio' => 'Usar Web Proxy Para as Rdios', 'Used' => 'Usado', 'Used for "Forgot Password" functionality, web hooks and other functions.' => 'Usado para a funcionalidade "Esqueci a Senha", web hooks e outras funes.', 'User' => 'Usurio', 'User Accounts' => 'Contas de usurio', 'User Agent' => 'Agente do Usurio', 'User Name' => 'Nome de Usurio', 'User Permissions' => 'Permisses de Usurio', 'Username' => 'Usurio', 'Username:' => 'Usurio:', 'Users' => 'Usurios', 'Users with this role will have these permissions across the entire installation.' => 'Usurios com essa funo tero essas permisses em toda a instalao.', 'Users with this role will have these permissions for this single station.' => 'Usurios com essa funo tero essas permisses para esta nica estao.', 'Uses either Websockets, Server-Sent Events (SSE) or static JSON files to serve Now Playing data on public pages. This improves performance, especially with large listener volume. Disable this if you are encountering problems with the service or use multiple URLs to serve your public pages.' => 'Utiliza Websockets, Server-Sent Events (SSE) ou arquivos JSON estticos para fornecer dados do Tocando Agora em pginas pblicas. Isso melhora o desempenho, especialmente com grande volume de ouvinte. Desabilite isso se voc estiver encontrando problemas com o servio ou usar vrios URLs para servir suas pginas pblicas.', 'Using a passkey (like Windows Hello, YubiKey, or your smartphone) allows you to securely log in without needing to enter your password or two-factor code.' => 'Usar uma chave de acesso (como Windows Hello, YubiKey ou smartphone) permite que voc faa login com segurana, sem precisar inserir sua senha ou cdigo de dois fatores.', 'Using this page, you can customize several sections of the Liquidsoap configuration. This allows you to add advanced functionality to your station\'s AutoDJ.' => 'Usando esta pgina, voc pode personalizar vrias sees da configurao do Liquidsoap. Isso permite que voc adicione funcionalidades avanadas ao AutoDJ da sua estao.', 'Usually enabled for port 465, disabled for ports 587 or 25.' => 'Normalmente habilitado para a porta 465, desativado para as portas 587 ou 25.', 'Variables are in the form of: ' => 'Variveis esto na forma de: ', 'View' => 'Visualizar', 'View Fullscreen' => 'Ver em tela cheia', 'View Listener Report' => 'Exibir Relatrio de Ouvinte', 'View Profile' => 'Visualizar Perfil', 'View tracks in playlist' => 'Ver faixas na playlist', 'Visit the Dropbox App Console:' => 'Visite o console do Dropbox App:', 'Visit the link below to sign in and generate an access code:' => 'Visite o link abaixo para entrar e gerar um cdigo de acesso:', 'Visit your Mastodon instance.' => 'Visite sua instncia do Mastodon.', 'Visual Cue Editor' => 'Editor Visual Cue', 'Volume' => 'Volume', 'Wait' => 'Espera', 'Wait (Wa)' => 'Espera (Wa)', 'Warning' => 'Ateno', 'Waveform Zoom' => 'Zoom da Forma de Onda', 'Web DJ' => 'Web Dj', 'Web Hook Details' => 'Detalhes do Web Hook', 'Web Hook Name' => 'Nome do Web Hook', 'Web Hook Triggers' => 'Disparos do Web Hook', 'Web Hook URL' => 'URL do Web Hook', 'Web Hooks' => 'Web Hooks', 'Web hooks automatically send a HTTP POST request to the URL you specify to notify it any time one of the triggers you specify occurs on your station.' => 'Os Web hooks enviam automaticamente uma solicitao HTTP POST para o URL que voc especificar para notific-lo sempre que um dos disparos especificados ocorrer em sua estao.', 'Web hooks let you connect to external web services and broadcast changes to your station to them.' => 'Os Web hooks permitem que voc se conecte a servios da Web externos e transmita para eles as alteraes de sua estao.', 'Web Site URL' => 'URL do Site', 'Web updates are not available for your installation. To update your installation, perform the manual update process instead.' => 'As atualizaes da Web no esto disponveis para sua instalao. Para atualizar sua instalao, execute o processo de atualizao manual.', 'WebDJ' => 'WebDJ', 'WebDJ connected!' => 'WebDJ conectado!', 'Website' => 'Site', 'Wednesday' => 'Quarta-feira', 'Weight' => 'Peso', 'Welcome to AzuraCast!' => 'Bem-vindo ao AzuraCast!', 'Welcome!' => 'Bem Vindo!', 'When making API calls, you can pass this value in the "X-API-Key" header to authenticate as yourself.' => 'Ao fazer chamadas da API, voc pode passar esse valor no cabealho "X-API-Key" para se autenticar como voc mesmo.', 'When the song changes and a live streamer/DJ is connected' => 'Quando a msica mudar e um streamer/DJ ao vivo for conectado', 'When the station broadcast comes online' => 'Quando a transmisso da estao estiver online', 'When the station broadcast goes offline' => 'Quando a transmisso da estao ficar offline', 'Whether new episodes should be marked as published or held for review as unpublished.' => 'Se novos episdios devem ser marcados como publicados ou mantidos para revisar como no publicados.', 'Whether the AutoDJ should attempt to avoid duplicate artists and track titles when playing media from this playlist.' => 'O AutoDJ tentar evitar artistas e ttulos de faixas duplicados ao reproduzir mdia desta playlist.', 'Widget Type' => 'Tipo de Widget', 'With selected:' => 'Com selecionado:', 'Worst Performing Songs' => 'Msicas Com Pior Desempenho', 'Yes' => 'Sim', 'Yesterday' => 'Ontem', 'You' => 'Voc', 'You can also upload files in bulk via SFTP.' => 'Voc tambm pode enviar arquivos em quantidade via SFTP.', 'You can find answers for many common questions in our support documents.' => 'Voc pode encontrar respostas para muitas perguntas comuns em nossos documentos de suporte.', 'You can include any special mount point settings here, in either JSON { key: \'value\' } format or XML <key>value</key>' => 'Voc pode incluir qualquer configurao de ponto de montagem especial aqui, tanto em JSON { key: \'value\' } ou no formato XML <key>value</key>', 'You can only perform the actions your user account is allowed to perform.' => 'Voc s pode realizar as aes que sua conta de usurio tem permisso para realizar.', 'You can set a custom URL for this stream that AzuraCast will use when referring to it on the web interface and in the Now Playing API return data. Leave empty to use the default value.' => 'Voc pode definir uma URL personalizada para esta transmisso que o AzuraCast usar ao se referir a ele na interface web e nos dados de retorno da API Now Playing. Deixe em branco para usar o valor padro.', 'You may need to connect directly to your IP address:' => 'Talvez voc precise se conectar diretamente pelo endereo IP:', 'You may need to connect directly via your IP address:' => 'Talvez voc precise se conectar diretamente atravs do seu endereo IP:', 'You will not be able to retrieve it again.' => 'Voc no poder recuper-lo novamente.', 'Your browser does not support passkeys. Consider updating your browser to the latest version.' => 'Seu navegador no oferece suporte a chaves de acesso. Considere atualizar seu navegador para uma verso mais recente.', 'Your full API key is below:' => 'Sua chave de API completa est abaixo:', 'Your installation is currently on this release channel:' => 'Sua instalao est atualmente nesta verso de lanamento:', 'Your installation is up to date! No update is required.' => 'Sua instalao est atualizada! Nenhuma atualizao necessria.', 'Your installation needs to be updated. Updating is recommended for performance and security improvements.' => 'Sua instalao precisa ser atualizada. A atualizao recomendada para melhorias de desempenho e segurana.', 'Your station does not support reloading configuration. Restart broadcasting instead to apply changes.' => 'Sua estao no suporta a configurao de recarregar. Reinicie a transmisso para aplicar as alteraes.', 'Your station has changes that require a reload to apply.' => 'Sua estao tem alteraes que necessita ser reiniciada para serem aplicadas.', 'Your station is currently not enabled for broadcasting. You can still manage media, playlists, and other station settings. To re-enable broadcasting, edit your station profile.' => 'Sua estao no est atualmente ativada para transmisso. Voc ainda pode gerenciar mdias, playlists e outras configuraes. Para reativar a transmisso, edite seu perfil da estao.', 'Your station supports reloading configuration.' => 'Sua estao suporta a configurao de recarregar.', 'YouTube' => 'YouTube', 'YP Directory Authorization Hash' => 'Hash de Autorizao do Diretrio YP', 'Select...' => 'Selecionar...', 'Too many forgot password attempts' => 'Muitas tentativas de redefinio de senha', 'You have attempted to reset your password too many times. Please wait 30 seconds and try again.' => 'Voc tentou redefinir sua senha muitas vezes. Aguarde 30 segundos e tente novamente.', 'Account Recovery' => 'Recuperao de Conta', 'Account recovery e-mail sent.' => 'E-mail de recuperao da conta foi enviado.', 'If the e-mail address you provided is in the system, check your inbox for a password reset message.' => 'Se o endereo de e-mail fornecido estiver no sistema, verifique se h uma mensagem de redefinio de senha em sua caixa de entrada.', 'Too many login attempts' => 'Muitas tentativas de login', 'You have attempted to log in too many times. Please wait 30 seconds and try again.' => 'Voc tentou entrar muitas vezes. Por favor, aguarde 30 segundos e tente novamente.', 'Logged in successfully.' => 'Identificado com sucesso.', 'Complete the setup process to get started.' => 'Conclua o processo de configurao para comear.', 'Login unsuccessful' => 'Incio de sesso falhou', 'Your credentials could not be verified.' => 'Suas credenciais no puderam ser verificadas.', 'User not found.' => 'Usurio no encontrado.', 'Invalid token specified.' => 'Token especificado invlido.', 'Logged in using account recovery token' => 'Conectado usando o token de recuperao da conta', 'Your password has been updated.' => 'Sua senha foi atualizada.', 'Set Up AzuraCast' => 'Configurar o AzuraCast', 'Setup has already been completed!' => 'Configurao j foi concluda!', 'All Stations' => 'Todas as Estaes', 'AzuraCast Application Log' => 'Log do AzuraCast', 'AzuraCast Now Playing Log' => 'Registro do Tocando Agora do Azuracast', 'AzuraCast Synchronized Task Log' => 'Registro das tarefas sincronizadas do AzuraCast', 'AzuraCast Queue Worker Log' => 'Registro da fila do Worker do Azuracast', 'Service Log: %s (%s)' => 'Registro de Servios: %s (%s)', 'Nginx Access Log' => 'Log de acesso Nginx', 'Nginx Error Log' => 'Log de erro Nginx', 'PHP Application Log' => 'Log de aplicao do PHP', 'Supervisord Log' => 'Registro do Supervisor', 'Create a new storage location based on the base directory.' => 'Criar um novo local de armazenamento baseado no diretrio base.', 'You cannot modify yourself.' => 'Voc no pode modificar a si mesmo.', 'You cannot remove yourself.' => 'Voc no pode remover a si mesmo.', 'Test Message' => 'Mensagem de Teste', 'This is a test message from AzuraCast. If you are receiving this message, it means your e-mail settings are configured correctly.' => 'Esta uma mensagem de teste do AzuraCast. Se voc estiver recebendo esta mensagem, significa que suas configuraes de e-mail esto configuradas corretamente.', 'Test message sent successfully.' => 'Mensagem de teste enviada com sucesso.', 'Less than Thirty Seconds' => 'Menos de 30 Segundos', 'Thirty Seconds to One Minute' => 'De 30 Segundos a 1 Minuto', 'One Minute to Five Minutes' => 'De 1 Minuto a 5 Minutos', 'Five Minutes to Ten Minutes' => 'De 5 Minutos a 10 Minutos', 'Ten Minutes to Thirty Minutes' => 'De 10 Minutos a 30 Minutos', 'Thirty Minutes to One Hour' => 'De 30 Minutos a 1 Hora', 'One Hour to Two Hours' => 'De 1 Hora a 2 Horas', 'More than Two Hours' => 'Mais de 2 Horas', 'Mobile Device' => 'Dispositivo Mvel', 'Desktop Browser' => 'Computador', 'Non-Browser' => 'No Navegador', 'Connected Seconds' => 'Segundos Conectados', 'File Not Processed: %s' => 'Arquivo No Processado: %s', 'Cover Art' => 'Arte da Capa', 'File Processing' => 'Processando Arquivo', 'No directory specified' => 'Nenhum diretrio especificado', 'File not specified.' => 'Arquivo no especificado.', 'New path not specified.' => 'Novo caminho no especificado.', 'This station is out of available storage space.' => 'Esta rdio ultrapassou o espao disponvel em disco.', 'Web hook enabled.' => 'Hook Web ativado.', 'Web hook disabled.' => 'Web hook desativado.', 'Station reloaded.' => 'Estao Reiniciada.', 'Station restarted.' => 'Estao reiniciada.', 'Service stopped.' => 'Servio parado.', 'Service started.' => 'Servio iniciado.', 'Service reloaded.' => 'Servio recarregado.', 'Service restarted.' => 'Servio reiniciado.', 'Song skipped.' => 'Msica ignorada.', 'Streamer disconnected.' => 'Streamer desconectado.', 'Station Nginx Configuration' => 'Configurao do Nginx da Estao', 'Liquidsoap Log' => 'Log do Liquidsoap', 'Liquidsoap Configuration' => 'Configurao do Liquidsoap', 'Icecast Access Log' => 'Registro de acesso do Icecast', 'Icecast Error Log' => 'Registro de Erro do Icecast', 'Icecast Configuration' => 'Configurao do Icecast', 'Shoutcast Log' => 'Registros do Shoutcast', 'Shoutcast Configuration' => 'Configurao do Shoutcast', 'Search engine crawlers are not permitted to use this feature.' => 'No permitido que os motores de busca usem este recurso.', 'You are not permitted to submit requests.' => 'Voc no est autorizado a realizar pedidos.', 'This track is not requestable.' => 'Esta faixa no pode ser solicitada.', 'This song was already requested and will play soon.' => 'Essa msica j foi solicitada e tocar em breve.', 'This song or artist has been played too recently. Wait a while before requesting it again.' => 'Esta msica j foi reproduzida recentemente. Por favor espere antes de solicitar novamente.', 'You have submitted a request too recently! Please wait before submitting another one.' => 'Voc enviou um pedido muito recentemente! Por favor, aguarde antes de enviar outro.', 'Your request has been submitted and will be played soon.' => 'A seu pedido foi enviado e ser reproduzido em breve.', 'This playlist is not song-based.' => 'Esta playlist no baseada em msicas.', 'Playlist emptied.' => 'Playlist esvaziada.', 'This playlist is not a sequential playlist.' => 'Esta lista de reproduo no uma lista de reproduo sequencial.', 'Playlist reshuffled.' => 'Lista de reproduo reorganizada.', 'Playlist enabled.' => 'Playlist ativada.', 'Playlist disabled.' => 'Playlist desativada.', 'Playlist successfully imported; %d of %d files were successfully matched.' => 'Playlist importada com sucesso; %d de %d arquivos foram encontrados com sucesso.', 'Playlist applied to folders.' => 'Playlist aplicada s pastas.', '%d files processed.' => '%d arquivos processados.', 'No recording available.' => 'No h gravao disponvel.', 'Record not found' => 'Registro no encontrado', 'The uploaded file exceeds the upload_max_filesize directive in php.ini.' => 'O arquivo enviado excede a diretiva upload_max_filesize no php.ini.', 'The uploaded file exceeds the MAX_FILE_SIZE directive from the HTML form.' => 'O arquivo enviado excede o valor de MAX_FILE_SIZE do formulrio HTML.', 'The uploaded file was only partially uploaded.' => 'O arquivo foi enviado apenas parcialmente.', 'No file was uploaded.' => 'Nenhum arquivo foi enviado.', 'No temporary directory is available.' => 'Diretrio temporrio no est disponvel.', 'Could not write to filesystem.' => 'No foi possvel gravar no sistema de arquivos.', 'Upload halted by a PHP extension.' => 'Envio interrompido por uma extenso PHP.', 'Unspecified error.' => 'Erro no especificado.', 'Changes saved successfully.' => 'Alteraes salvas com sucesso.', 'Record created successfully.' => 'Registro criado com sucesso.', 'Record updated successfully.' => 'Registro atualizado com sucesso.', 'Record deleted successfully.' => 'Registro excludo com sucesso.', 'Playlist: %s' => 'Playlist: %s', 'Streamer: %s' => 'Transmisso: %s', 'The account associated with e-mail address "%s" has been set as an administrator' => 'A conta associada com o e-mail "%s" foi alterada para ser um administrador', 'Account not found.' => 'Conta no encontrada.', 'Roll Back Database' => 'Banco de Dados Roll Back', 'Running database migrations...' => 'Executando migraes do banco de dados...', 'Database migration failed: %s' => 'Migrao do banco de dados falhou: %s', 'Database rolled back to stable release version "%s".' => 'Banco de dados voltou para a verso estvel "%s".', 'AzuraCast Settings' => 'Configuraes AzuraCast', 'Setting Key' => 'Chave de configurao', 'Setting Value' => 'Configurando Valor', 'Fixtures loaded.' => 'Instalaes carregadas.', 'Backing up initial database state...' => 'Fazendo backup do estado inicial do banco de dados...', 'We detected a database restore file from a previous (possibly failed) migration.' => 'Detectamos um arquivo de restaurao do banco de dados de uma migrao anterior (possivelmente com falha).', 'Attempting to restore that now...' => 'Tentando restaurar isso agora...', 'Attempting to roll back to previous database state...' => 'Tentando reverter para o estado anterior do banco de dados...', 'Your database was restored due to a failed migration.' => 'Seu banco de dados foi restaurado devido a uma migrao que falhou.', 'Please report this bug to our developers.' => 'Por favor, reporte este bug para nossos desenvolvedores.', 'Restore failed: %s' => 'Restaurao falhou: %s', 'AzuraCast Backup' => 'Backup AzuraCast', 'Please wait while a backup is generated...' => 'Por favor aguarde enquanto a cpia de segurana criada...', 'Creating temporary directories...' => 'Criando diretrios temporrios...', 'Backing up MariaDB...' => 'Fazendo backup do MariaDB...', 'Creating backup archive...' => 'Criando arquivo de backup...', 'Cleaning up temporary files...' => 'Limpando arquivos provisrios...', 'Backup complete in %.2f seconds.' => 'Backup concludo em %.2f segundos.', 'Backup path %s not found!' => 'Caminho de backup %s no encontrado!', 'Imported locale: %s' => 'Local importado: %s', 'Database Migrations' => 'Migraes do Banco de Dados', 'Database is already up to date!' => 'O banco de dados j est atualizado!', 'Database migration completed!' => 'Migrao de banco de dados concluda!', 'AzuraCast Initializing...' => 'Inicializando o AzuraCast...', 'AzuraCast Setup' => 'AzuraCast Setup', 'Welcome to AzuraCast. Please wait while some key dependencies of AzuraCast are set up...' => 'Bem-vindo ao AzuraCast. Por favor, aguarde enquanto algumas dependncias fundamentais do AzuraCast so configuradas...', 'Running Database Migrations' => 'Migraes de banco de dados em execuo', 'Generating Database Proxy Classes' => 'Gerando Classes de Proxy do Banco de Dados', 'Reload System Data' => 'Recarregar Dados do Sistema', 'Installing Data Fixtures' => 'Instalando Instalaes de Dados', 'Refreshing All Stations' => 'Atualizando todas as estaes', 'AzuraCast is now updated to the latest version!' => 'AzuraCast agora est atualizado para a verso mais recente!', 'AzuraCast installation complete!' => 'Instalao AzuraCast completa!', 'Visit %s to complete setup.' => 'Visite %s para concluir a configurao.', '%s is not recognized as a service.' => '%s no reconhecido como um servio.', 'It may not be registered with Supervisor yet. Restarting broadcasting may help.' => 'Ele ainda no pode ser registrado com Supervisor. Reiniciar a transmisso pode ajudar.', '%s cannot start' => '%s no iniciada', 'It is already running.' => 'J est rodando.', '%s cannot stop' => '%s no pode parar', 'It is not running.' => 'No est rodando.', '%s encountered an error: %s' => '%s encontrou um erro: %s', 'Check the log for details.' => 'Verifique o log para detalhes.', 'You do not have permission to access this portion of the site.' => 'Voc no tem permisso para acessar essa rea do site.', 'Cannot submit request: %s' => 'No possvel enviar a solicitao: %s', 'You must be logged in to access this page.' => 'Voc precisa estar logado para acessar esta pgina.', 'Record not found.' => 'Registro no encontrado.', 'File not found.' => 'Arquivo no encontrado.', 'Station not found.' => 'Estao no encontrada.', 'Podcast not found.' => 'Podcast no encontrado.', 'This station does not currently support this functionality.' => 'Esta estao atualmente no suporta esta funcionalidade.', 'This station does not currently support on-demand media.' => 'Esta estao atualmente no suporta mdia on-demand.', 'This station does not currently accept requests.' => 'Esta estao no aceita pedidos no momento.', 'This value is already used.' => 'Este valor j est em uso.', 'The port %s is in use by another station (%s).' => 'A porta %s j est em uso por outra estao (%s).', 'Storage location %s could not be validated: %s' => 'Local de armazenamento %s no pde ser validado: %s', 'Storage location %s already exists.' => 'Local de armazenamento %s j existe.', 'All Permissions' => 'Permisso Total', 'View Station Page' => 'Visualizar pagina da Estao', 'View Station Reports' => 'Visualizar relatrios da estao', 'View Station Logs' => 'Visualizar logs da estao', 'Manage Station Profile' => 'Editar perfil da estao', 'Manage Station Broadcasting' => 'Gerenciar Transmisso da Estao', 'Manage Station Streamers' => 'Gerenciar Streamers de Estao', 'Manage Station Mount Points' => 'Gerenciar Pontos de Montagem Estao', 'Manage Station Remote Relays' => 'Gerenciar Relays de Estao Remota', 'Manage Station Media' => 'Gerenciar Arquivos de Msica da Estao', 'Manage Station Automation' => 'Gerenciar automao de estaes', 'Manage Station Web Hooks' => 'Gerenciar Hooks Web da estao', 'Manage Station Podcasts' => 'Gerenciar Podcasts da Estao', 'View Administration Page' => 'Visualizar Pgina da Administrao', 'View System Logs' => 'Visualizar Logs do Sistema', 'Administer Settings' => 'Administrar configuraes', 'Administer API Keys' => 'Administrar Chaves de API', 'Administer Stations' => 'Administrar Estaes', 'Administer Custom Fields' => 'Administrar Campos Personalizados', 'Administer Backups' => 'Administrar Backups', 'Administer Storage Locations' => 'Administrar Locais de Armazenamento', 'Runs routine synchronized tasks' => 'Executa tarefas de rotina sincronizadas', 'Database' => 'Banco de Dados', 'Web server' => 'Servidor Web', 'PHP FastCGI Process Manager' => 'Gerenciador de processos PHP FastCGI', 'Now Playing manager service' => 'Servio de gerenciamento do tocando agora', 'PHP queue processing worker' => 'Processamento de fila do PHP', 'Cache' => 'Cache', 'SFTP service' => 'Servio de SFTP', 'Live Now Playing updates' => 'Atualizaes Ao Vivo do Tocando Agora', 'Frontend Assets' => 'Frontend Assets', 'This product includes GeoLite2 data created by MaxMind, available from %s.' => 'Este produto inclui dados GeoLite2 criados pela MaxMind, disponveis em %s.', 'IP Geolocation by DB-IP' => 'Geolocalizao de IP por DB-IP', 'GeoLite database not configured for this installation. See System Administration for instructions.' => 'Banco de dados GeoLite no configurado para esta instalao. Veja a Administrao do Sistema para instrues.', 'Installation Not Recently Backed Up' => 'Instalao sem backup recente', 'This installation has not been backed up in the last two weeks.' => 'No foi feito backup desta instalao nas ltimas duas semanas.', 'Service Not Running: %s' => 'Servio No Iniciado: %s', 'One of the essential services on this installation is not currently running. Visit the system administration and check the system logs to find the cause of this issue.' => 'Um dos servios essenciais nesta instalao no est em execuo no momento. Visite a administrao do sistema e verifique os registros do sistema para encontrar a causa desse problema.', 'New AzuraCast Stable Release Available' => 'Nova Verso Estvel do AzuraCast Est Disponvel', 'Version %s is now available. You are currently running version %s. Updating is recommended.' => 'A verso %s agora est disponvel. No momento, voc est executando a verso %s. A atualizao recomendada.', 'New AzuraCast Rolling Release Available' => 'Nova Verso Rolling Realese Est Disponvel', 'Your installation is currently %d update(s) behind the latest version. Updating is recommended.' => 'Sua instalao est atualmente com %d atualizao(es) atrs da verso mais recente. A atualizao recomendada.', 'Switch to Stable Channel Available' => 'Alterao Disponvel para a Verso Estvel', 'Your Rolling Release installation is currently older than the latest Stable release. This means you can switch releases to the "Stable" release channel if desired.' => 'Sua instalao Rolling Release atualmente mais antiga que a verso estvel mais recente. Isso significa que voc pode mudar para a verso "Estvel", se desejar.', 'Synchronization Disabled' => 'Sincronizao Desativada', 'Routine synchronization is currently disabled. Make sure to re-enable it to resume routine maintenance tasks.' => 'A sincronizao de rotina est atualmente desativada. Certifique-se de reativ-la para retomar as tarefas de manuteno de rotina.', 'Synchronization Not Recently Run' => 'Sincronizao No Executada Recentemente', 'The routine synchronization task has not run recently. This may indicate an error with your installation.' => 'A tarefa de sincronizao de rotina no tem sido executada recentemente. Isto pode indicar um erro com sua instalao.', 'The performance profiling extension is currently enabled on this installation.' => 'A extenso de perfil de desempenho est ativada nesta instalao.', 'You can track the execution time and memory usage of any AzuraCast page or application from the profiler page.' => 'Voc pode rastrear o tempo de execuo e o uso de memria de qualquer pgina ou aplicativo AzuraCast na pgina do criador do perfil.', 'Profiler Control Panel' => 'Painel de Controle do Perfil', 'Performance profiling is currently enabled for all requests.' => 'O perfil de desempenho est atualmente habilitado para todas as solicitaes.', 'This can have an adverse impact on system performance. You should disable this when possible.' => 'Isso pode ter um impacto adverso no desempenho do sistema. Voc deve desativar isso quando possvel.', 'You may want to update your base URL to ensure it is correct.' => 'Voc pode querer atualizar sua URL base para garantir que ela esteja correta.', 'If you regularly use different URLs to access AzuraCast, you should enable the "Prefer Browser URL" setting.' => 'Se voc usa regularmente URLs diferentes para acessar o AzuraCast, voc deve habilitar a configurao "Preferir URL do Navegador".', 'Your "Base URL" setting (%s) does not match the URL you are currently using (%s).' => 'Sua configurao da "URL base" (%s) no coincide com a URL que voc est usando atualmente (%s).', 'AzuraCast is free and open-source software.' => 'O AzuraCast um software livre e de cdigo aberto.', 'If you are enjoying AzuraCast, please consider donating to support our work. We depend on donations to build new features, fix bugs, and keep AzuraCast modern, accessible and free.' => 'Se voc est gostando de AzuraCast, por favor considere fazer uma doao para apoiar nosso trabalho. Ns dependemos de doaes para criar novas funcionalidades, corrigir bugs e manter o AzuraCast moderno, acessvel e gratuito.', 'Donate to AzuraCast' => 'Doar para o AzuraCast', 'AzuraCast Installer' => 'Instalador do AzuraCast', 'Welcome to AzuraCast! Complete the initial server setup by answering a few questions.' => 'Bem-vindo ao AzuraCast! Complete a configurao inicial do servidor respondendo algumas perguntas.', 'AzuraCast Updater' => 'Atualizador do AzuraCast', 'Change installation settings?' => 'Alterar as configuraes de instalao?', 'AzuraCast is currently configured to listen on the following ports:' => 'O AzuraCast est configurado para ser ouvido nas seguintes portas:', 'HTTP Port: %d' => 'Porta HTTP: %d', 'HTTPS Port: %d' => 'Porta HTTPS: %d', 'SFTP Port: %d' => 'Porta SFTP: %d', 'Radio Ports: %s' => 'Portas de Rdio: %s', 'Customize ports used for AzuraCast?' => 'Personalizar portas usadas para o AzuraCast?', 'Writing configuration files...' => 'Criando arquivos de configurao...', 'Server configuration complete!' => 'Configurao do servidor completa!', 'This file was automatically generated by AzuraCast.' => 'Este arquivo foi gerado automaticamente pelo AzuraCast.', 'You can modify it as necessary. To apply changes, restart the Docker containers.' => 'Voc pode modific-lo conforme necessrio. Para aplicar as alteraes, reinicie os contineres Docker.', 'Remove the leading "#" symbol from lines to uncomment them.' => 'Remova o smbolo "#" das linhas para descoment-las.', 'Valid options: %s' => 'Opes vlidas: %s', 'Default: %s' => 'Padro: %s', 'Additional Environment Variables' => 'Variveis Adicionais de Ambiente', '(Docker Compose) All Docker containers are prefixed by this name. Do not change this after installation.' => '(Docker Compose) Todos os contineres do Docker so prefixados por este nome. No altere isso aps a instalao.', '(Docker Compose) The amount of time to wait before a Docker Compose operation fails. Increase this on lower performance computers.' => '(Docker Compose) O tempo de espera antes de uma operao do Docker Compose falhar. Aumente isso em computadores de baixo desempenho.', 'HTTP Port' => 'Porta HTTP', 'The main port AzuraCast listens to for insecure HTTP connections.' => 'A porta principal do AzuraCast das conexes HTTP inseguras.', 'HTTPS Port' => 'Porta HTTPS', 'The main port AzuraCast listens to for secure HTTPS connections.' => 'A porta principal do AzuraCast para conexes HTTPS seguras.', 'The port AzuraCast listens to for SFTP file management connections.' => 'A porta AzuraCast para as conexes de gerenciamento de arquivos SFTP.', 'Station Ports' => 'Portas da Estao', 'The ports AzuraCast should listen to for station broadcasts and incoming DJ connections.' => 'As portas do AzuraCast para transmisses de estaes e conexes de entrada de DJs.', 'Docker User UID' => 'UID de usurio Docker', 'Set the UID of the user running inside the Docker containers. Matching this with your host UID can fix permission issues.' => 'Defina o UID do usurio em execuo nos contineres do Docker. Combinar isso com o UID do host pode corrigir problemas de permisso.', 'Docker User GID' => 'GID do usurio Docker', 'Set the GID of the user running inside the Docker containers. Matching this with your host GID can fix permission issues.' => 'Defina o GID do usurio em execuo nos contineres do Docker. Combinar isso com o GID do seu host pode corrigir problemas de permisso.', 'Use Podman instead of Docker.' => 'Usar o Podman em vez do Docker.', 'Advanced: Use Privileged Docker Settings' => 'Avanado: Use as configuraes privilegiadas do Docker', 'The locale to use for CLI commands.' => 'A local a ser usado para os comandos CLI.', 'The application environment.' => 'O ambiente do aplicativo.', 'Manually modify the logging level.' => 'Modificar manualmente o nvel de registro.', 'This allows you to log debug-level errors temporarily (for problem-solving) or reduce the volume of logs that are produced by your installation, without needing to modify whether your installation is a production or development instance.' => 'Isso permite que voc registre erros de nvel de depurao temporariamente (para soluo de problemas) ou reduza o volume de registros que so produzidos por sua instalao, sem a necessidade de modificar se sua instalao uma instncia de produo ou de desenvolvimento.', 'Enable Custom Code Plugins' => 'Ativar Cdigos de Plugins Personalizados', 'Enable the composer "merge" functionality to combine the main application\'s composer.json file with any plugin composer files. This can have performance implications, so you should only use it if you use one or more plugins with their own Composer dependencies.' => 'Habilite a funcionalidade de "mesclagem" do compositor para combinar o arquivo composer.json do aplicativo principal com quaisquer arquivos de composio de plug-in. Isso pode ter implicaes de desempenho, portanto, voc s deve us-lo se usar um ou mais plug-ins com suas prprias dependncias do Composer.', 'Minimum Port for Station Port Assignment' => 'Porta mnima para atribuio da porta da estao', 'Modify this if your stations are listening on nonstandard ports.' => 'Modifique isto se suas estaes estiverem sendo ouvidas em portas que no so padro.', 'Maximum Port for Station Port Assignment' => 'Porta mxima para atribuio da porta da estao', 'Show Detailed Slim Application Errors' => 'Mostrar Erros Detalhados da Aplicao Slim', 'This allows you to debug Slim Application Errors you may encounter. Please report any Slim Application Error logs to the development team on GitHub.' => 'Isso permite que voc depure os erros do aplicativo Slim que voc pode encontrar. Por favor, relate quaisquer logs de erro de aplicativo Slim para a equipe de desenvolvimento no GitHub.', 'MariaDB Host' => 'Host do MariaDB', 'Do not modify this after installation.' => 'No modifique isto aps a instalao.', 'MariaDB Port' => 'Porta MariaDB', 'MariaDB Username' => 'Nome de Usurio MariaDB', 'MariaDB Password' => 'Senha MariaDB', 'MariaDB Database Name' => 'Nome do Banco de Dados MariaDB', 'Auto-generate Random MariaDB Root Password' => 'Gerar automaticamente uma senha de root aleatria para o MariaDB', 'MariaDB Root Password' => 'Senha Root do MariaDB', 'Enable MariaDB Slow Query Log' => 'Ativar Registro do MariaDB Para Consultas Lentas', 'Log slower queries to diagnose possible database issues. Only turn this on if needed.' => 'Registrar consultas mais lentas para diagnosticar possveis problemas de banco de dados. Apenas ative esta opo se necessrio.', 'MariaDB Maximum Connections' => 'Conexes mximas do MariaDB', 'Set the amount of allowed connections to the database. This value should be increased if you are seeing the "Too many connections" error in the logs.' => 'Definir a quantidade de conexes permitidas para o banco de dados. Esse valor deve ser aumentado se voc estiver vendo o erro "Muitas conexes" nos registros.', 'MariaDB InnoDB Buffer Pool Size' => 'Tamanho do pool de buffer do MariaDB InnoDB', 'The InnoDB buffer pool size controls how much data & indexes are kept in memory. Making sure that this value is as large as possible reduces the amount of disk IO.' => 'O tamanho do buffer pool do InnoDB controla quantos dados e ndices so mantidos na memria. Certificar-se de que esse valor seja o maior possvel reduz a quantidade de E/S do disco.', 'MariaDB InnoDB Log File Size' => 'Tamanho do arquivo de registro do MariaDB InnoDB', 'The InnoDB log file is used to achieve data durability in case of crashes or unexpected shutoffs and to allow the DB to better optimize IO for write operations.' => 'O arquivo de registro do InnoDB usado para obter a durabilidade dos dados em caso de falhas ou desligamentos inesperados e para permitir que o banco de dados otimize melhor o E/S para operaes de gravao.', 'Enable Redis' => 'Ativar Redis', 'Disable to use a flatfile cache instead of Redis.' => 'Desabilite para usar um cache flatfile em vez do Redis.', 'Redis Host' => 'Host do Redis', 'Redis Port' => 'Porta do Redis', 'PHP Maximum POST File Size' => 'Tamanho mximo do arquivo POST do PHP', 'PHP Memory Limit' => 'Limite de Memria do PHP', 'PHP Script Maximum Execution Time (Seconds)' => 'Tempo Mximo de Execuo do Script PHP (Segundos)', 'Short Sync Task Execution Time (Seconds)' => 'Tempo Curto de Execuo da Tarefa de Sincronizao (Segundos)', 'The maximum execution time (and lock timeout) for the 15-second, 1-minute and 5-minute synchronization tasks.' => 'O tempo mximo de execuo (e tempo limite de bloqueio) para as tarefas de sincronizao de 15 segundos, 1 minuto e 5 minutos.', 'Long Sync Task Execution Time (Seconds)' => 'Tempo Longo de Execuo da Tarefa de Sincronizao (Segundos)', 'The maximum execution time (and lock timeout) for the 1-hour synchronization task.' => 'O tempo mximo de execuo (e tempo limite de bloqueio) para a tarefa de sincronizao de 1 hora.', 'Now Playing Delay Time (Seconds)' => 'Tempo do Delay do Tocando Agora (Segundos)', 'The delay between Now Playing checks for every station. Decrease for more frequent checks at the expense of performance; increase for less frequent checks but better performance (for large installations).' => 'O delay entre as verificaes do Tocando Agora para cada estao. Diminuir para verificaes mais frequentes em detrimento do desempenho; aumento para verificaes menos frequentes, mas melhor desempenho (para grandes instalaes).', 'Now Playing Max Concurrent Processes' => 'Mximo de Processos Simultneos do Tocando Agora', 'The maximum number of concurrent processes for now playing updates. Increasing this can help reduce the latency between updates now playing updates on large installations.' => 'O nmero mximo de processos simultneos para atualizaes em reproduo. Aumentar isso pode ajudar a reduzir a latncia entre as atualizaes do tocando agora atualizaes em grandes instalaes.', 'Maximum PHP-FPM Worker Processes' => 'Processos Mximos de Worker de PHP-FPM', 'Enable Performance Profiling Extension' => 'Habilitar Extenso de Perfil de Desempenho', 'Profiling data can be viewed by visiting %s.' => 'Dados do perfil podem ser vistos visitando %s.', 'Profile Performance on All Requests' => 'Desempenho de perfil em todas as solicitaes', 'This will have a significant performance impact on your installation.' => 'Isto ter um impacto significativo no desempenho da sua instalao.', 'Profiling Extension HTTP Key' => 'Chave HTTP de extenso de perfil', 'The value for the "SPX_KEY" parameter for viewing profiling pages.' => 'O valor para o parmetro "SPX_KEY" para visualizar pginas de perfil.', 'Profiling Extension IP Allow List' => 'Lista de permisses de extenso de perfil de IP', 'Nginx Max Client Body Size' => 'Tamanho mximo do corpo do cliente Nginx', 'This is the total size any single request body can be. AzuraCast chunks its uploads into smaller file sizes, so this only applies when doing custom uploads via the API. Sizes should be listed in a format like "100K", "128M", "1G" for kilobytes, megabytes, and gigabytes respectively.' => 'Este o tamanho total que qualquer corpo de solicitao pode ter. O AzuraCast divide seus uploads em tamanhos de arquivo menores, portanto, isso se aplica apenas ao fazer uploads personalizados por meio da API. Os tamanhos devem ser listados em um formato como 100K, 128M, 1G para kilobytes, megabytes e gigabytes, respectivamente.', 'Enable web-based Docker image updates' => 'Ativar atualizaes de imagem do Docker baseadas na Web', 'Extra Ubuntu packages to install upon startup' => 'Pacotes extras do Ubuntu para instalar na inicializao', 'Separate package names with a space. Packages will be installed during container startup.' => 'Separe os nomes dos pacotes com um espao. Pacotes sero instalados durante a inicializao do container.', 'Album Artist' => 'Artista do lbum', 'Album Artist Sort Order' => 'Ordem de Classificao do Artista do lbum', 'Album Sort Order' => 'Ordem de Classificao do lbum', 'Band' => 'Banda', 'BPM' => 'BPM', 'Comment' => 'Comentrio', 'Commercial Information' => 'Informao Comercial', 'Composer' => 'Compositor', 'Composer Sort Order' => 'Ordem de Classificao do Compositor', 'Conductor' => 'Condutor', 'Content Group Description' => 'Descrio do Grupo de Contedo', 'Encoded By' => 'Codificado por', 'Encoder Settings' => 'Configuraes do Encoder', 'Encoding Time' => 'Tempo de Codificao', 'File Owner' => 'Proprietrio do Arquivo', 'File Type' => 'Tipo de Arquivo', 'Initial Key' => 'Chave Inicial', 'Internet Radio Station Name' => 'Nome da Estao de Rdio da Internet', 'Internet Radio Station Owner' => 'Proprietrio da Estao de Rdio da Internet', 'Involved People List' => 'Lista de Pessoas Envolvidas', 'Linked Information' => 'Informao Vinculada', 'Lyricist' => 'Compositor', 'Media Type' => 'Tipo de Mdia', 'Mood' => 'Disposio', 'Music CD Identifier' => 'Identificador do CD de Msica', 'Musician Credits List' => 'Lista de Crditos dos Msicos', 'Original Album' => 'lbum Original', 'Original Artist' => 'Artista Original', 'Original Filename' => 'Nome do Arquivo Original', 'Original Lyricist' => 'Compositor Original', 'Original Release Time' => 'Data da Origem do Lanamento', 'Original Year' => 'Ano de Origem', 'Part of a Compilation' => 'Parte de uma Compilao', 'Part of a Set' => 'Parte de um Conjunto', 'Performer Sort Order' => 'Ordem de Classificao do Artista', 'Playlist Delay' => 'Atraso da Playlist', 'Produced Notice' => 'Aviso de Produo', 'Publisher' => 'Gravadora', 'Recording Time' => 'Tempo de Gravao', 'Release Time' => 'Data de Lanamento', 'Remixer' => 'Remixer', 'Set Subtitle' => 'Definir Legenda', 'Subtitle' => 'Legenda', 'Tagging Time' => 'Tempo de Marcao', 'Terms of Use' => 'Termos de Uso', 'Title Sort Order' => 'Ordem de Classificao do Ttulo', 'Track Number' => 'Nmero da Faixa', 'Unsynchronised Lyrics' => 'Letras No Sincronizadas', 'URL Artist' => 'URL do Artista', 'URL File' => 'URL do Arquivo', 'URL Payment' => 'URL de Pagamento', 'URL Publisher' => 'URL da Gravadora', 'URL Source' => 'URL da Fonte', 'URL Station' => 'URL da Estao', 'URL User' => 'URL do Usurio', 'Year' => 'Ano', 'An account recovery link has been requested for your account on "%s".' => 'Foi solicitado um link de recuperao de conta para sua conta em "%s".', 'Click the link below to log in to your account.' => 'Clique no link abaixo para entrar em sua conta.', 'Footer' => 'Rodap', 'Powered by %s' => 'Desenvolvido por %s', 'Forgot Password' => 'Esqueceu a Senha', 'Sign in' => 'Login', 'Send Recovery E-mail' => 'Enviar E-mail de Recuperao', 'Enter Two-Factor Code' => 'Digite o cdigo de autenticao de dois fatores', 'Your account uses a two-factor security code. Enter the code your device is currently showing below.' => 'Sua conta usa um cdigo de segurana de dois fatores. Digite o cdigo que seu dispositivo atualmente est mostrando abaixo.', 'Security Code' => 'Cdigo de segurana', 'This installation\'s administrator has not configured this functionality.' => 'O administrador desta instalao no configurou esta funcionalidade.', 'Contact an administrator to reset your password following the instructions in our documentation:' => 'Entre em contato com um administrador para redefinir sua senha seguindo as instrues da nossa documentao:', 'Password Reset Instructions' => 'Instrues Para Redefinio de Senha', ), ), ); ```
/content/code_sandbox/translations/pt_BR.UTF-8/LC_MESSAGES/default.php
php
2016-04-30T21:41:23
2024-08-16T18:27:26
AzuraCast
AzuraCast/AzuraCast
2,978
44,811
```php <?php return array ( 'domain' => 'default', 'plural-forms' => 'nplurals=2; plural=(n != 1);', 'messages' => array ( '' => array ( '# Episodes' => '# ', '# Songs' => '# ', '%{ dj } is now live on %{ station }! Tune in now: %{ url }' => '%{ dj } %{ station }! : %{ url }', '%{ hours } hours' => '%{ hours } ', '%{ minutes } minutes' => '%{ minutes } ', '%{ seconds } seconds' => '%{ seconds } ', '%{ station } is back online! Tune in now: %{ url }' => '%{ station } online! : %{ url }', '%{ station } is going offline for now.' => '%{ station } .', '%{filesCount} File' => array ( 0 => '%{filesCount} ', 1 => '%{filesCount} ', ), '%{listeners} Listener' => array ( 0 => '%{listeners} ', 1 => '%{listeners} ', ), '%{messages} queued messages' => '%{messages} ', '%{name} - Copy' => '%{name} - ', '%{numPlaylists} playlist' => array ( 0 => '%{numPlaylists} ', 1 => '%{numPlaylists} ', ), '%{numSongs} uploaded song' => array ( 0 => '%{numSongs} ', 1 => '%{numSongs} ', ), '%{spaceUsed} of %{spaceTotal} Used' => '%{spaceUsed} %{spaceTotal} ', '%{spaceUsed} Used' => '%{spaceUsed} ', '%{station} - Copy' => '%{station} - ', '12 Hour' => '12 ', '24 Hour' => '24 ', 'A completely random track is picked for playback every time the queue is populated.' => ' .', 'A name for this stream that will be used internally in code. Should only contain letters, numbers, and underscores (i.e. "stream_lofi").' => ' . , ( "stream_lofi").', 'A passkey has been selected. Submit this form to add it to your account.' => ' . .', 'A playlist containing media files hosted on this server.' => ' .', 'A playlist that instructs the station to play from a remote URL.' => ' URL.', 'A unique identifier (i.e. "G-A1B2C3D4") for this measurement stream.' => ' ( "G-A1B2C3D4") .', 'About AzuraRelay' => ' AzuraRelay', 'About Master_me' => ' Master_me', 'About Release Channels' => ' ', 'Access Code' => ' ', 'Access Key ID' => ' ', 'Access Token' => ' ', 'Account Details' => ' ', 'Account is Active' => ' ', 'Account List' => ' ', 'Actions' => '', 'Adapter' => '', 'Add API Key' => ' Api', 'Add Custom Field' => ' ', 'Add Episode' => ' ', 'Add Files to Playlist' => ' ', 'Add HLS Stream' => ' HLS', 'Add Mount Point' => ' ', 'Add New GitHub Issue' => ' GitHub', 'Add New Passkey' => ' ', 'Add Playlist' => ' ', 'Add Podcast' => ' Podcast', 'Add Remote Relay' => ' ', 'Add Role' => ' ', 'Add Schedule Item' => ' ', 'Add SFTP User' => ' Sftp', 'Add Station' => ' ', 'Add Storage Location' => ' ', 'Add Streamer' => ' ', 'Add User' => ' ', 'Add Web Hook' => ' Web Hook', 'Administration' => '', 'Advanced' => ' ', 'Advanced Configuration' => ' ', 'Advanced Manual AutoDJ Scheduling Options' => ' DJ ', 'Aggregate listener statistics are used to show station reports across the system. IP-based listener statistics are used to view live listener tracking and may be required for royalty reports.' => ' . IP .', 'Album' => '', 'Album Art' => ' ', 'Alert' => '', 'All Days' => ' ', 'All listed domain names should point to this AzuraCast installation. Separate multiple domain names with commas.' => ' AzuraCast. .', 'All Playlists' => ' ', 'All Podcasts' => ' Podcast', 'All Types' => ' ', 'All values in the NowPlaying API response are available for use. Any empty fields are ignored.' => ' NowPlaying API . .', 'Allow Requests from This Playlist' => ' ', 'Allow Song Requests' => ' ', 'Allow Streamers / DJs' => ' / Djs', 'Allowed IP Addresses' => ' Ip', 'Always Use HTTPS' => ' HTTPS', 'Always Write Playlists to Liquidsoap' => ' Liquidsoap', 'Amplify: Amplification (dB)' => ': (dB)', 'An error occurred and your request could not be completed.' => ' .', 'An error occurred while loading the station profile:' => ' :', 'An error occurred with the WebDJ socket.' => ' WebDJ.', 'Analytics' => '', 'Analyze and reprocess the selected media' => ' ', 'Any of the following file types are accepted:' => ' :', 'Any time a live streamer/DJ connects to the stream' => ' streamer/DJ ', 'Any time a live streamer/DJ disconnects from the stream' => ' live streamer/DJ ', 'Any time the currently playing song changes' => ' ', 'Any time the listener count decreases' => ' ', 'Any time the listener count increases' => ' ', 'API "Access-Control-Allow-Origin" Header' => 'API "Access-Control-Allow-Origin"', 'API Documentation' => ' API', 'API Key Description/Comments' => '/ API', 'API Keys' => ' API', 'API Token' => ' (token) API', 'API Version' => ' API', 'App Key' => ' Api', 'App Secret' => ' ', 'Apple Podcasts' => ' Podcast', 'Apply audio processors (like compressors, limiters, or equalizers) to your stream to create a more uniform sound or enhance the listening experience. Processing requires extra CPU resources, so it may slow down your server.' => ' ( , , ) . CPU, .', 'Apply for an API key at Last.fm' => ' API Last.fm', 'Apply Playlist to Folders' => ' ', 'Apply Post-processing to Live Streams' => ' ', 'Apply to Folders' => ' ', 'Are you sure?' => ' ?', 'Art' => '', 'Artist' => '', 'Artwork' => '', 'Artwork must be a minimum size of 1400 x 1400 pixels and a maximum size of 3000 x 3000 pixels for Apple Podcasts.' => ' 1400 x 1400 pixels 3000 x 3000 pixels Apple Podcasts.', 'Attempt to Automatically Retrieve ISRC When Missing' => ' ISRC ', 'Audio Bitrate (kbps)' => ' Bit AutoDJ (kbps)', 'Audio Format' => ' ', 'Audio Post-processing Method' => ' ', 'Audio Processing' => ' ', 'Audio transcoding applications like Liquidsoap use a consistent amount of CPU over time, which gradually drains this available credit. If you regularly see stolen CPU time, you should consider migrating to a VM that has CPU resources dedicated to your instance.' => ' Liquidsoap CPU , . CPU, VM CPU .', 'Audit Log' => ' ', 'Author' => '', 'Auto-Assign Value' => ' ', 'AutoCue analyzes your music and automatically calculates cue points, fade points, and volume levels for a consistent listening experience.' => ' AutoCue , .', 'AutoDJ' => 'AutoDJ', 'AutoDJ Bitrate (kbps)' => ' Bit AutoDJ (kbps)', 'AutoDJ Disabled' => ' AutoDJ ', 'AutoDJ Format' => ' AutoDJ', 'AutoDJ has been disabled for this station. No music will automatically be played when a source is not live.' => ' AutoDJ . .', 'AutoDJ Queue' => ' AutoDJ', 'AutoDJ Queue Length' => ' AutoDj', 'AutoDJ Service' => ' AutoDJ', 'Automatic Backups' => ' ', 'Automatically create new podcast episodes when media is added to a specified playlist.' => ' podcast .', 'Automatically Publish New Episodes' => ' ', 'Automatically publish to a Mastodon instance.' => ' Mastodon.', 'Automatically Scroll to Bottom' => ' ', 'Automatically send a customized message to your Discord server.' => ' Discord .', 'Automatically send a message to any URL when your station data changes.' => ' URL .', 'Automatically Set from ID3v2 Value' => ' ID3v2', 'Available Logs' => ' ', 'Avatar Service' => ' Avatar', 'Avatars are retrieved based on your e-mail address from the %{ service } service. Click to manage your %{ service } settings.' => ' Avatars %{service}. %{service}.', 'Average Listeners' => ' ', 'Avoid Duplicate Artists/Titles' => ' / ', 'AzuraCast First-Time Setup' => 'AzuraCast ', 'AzuraCast Instance Name' => ' AzuraCast', 'AzuraCast ships with a built-in free IP geolocation database. You may prefer to use the MaxMind GeoLite service instead to achieve more accurate results. Using MaxMind GeoLite requires a license key, but once the key is provided, we will automatically keep the database updated.' => ' AzuraCast geolocation IP. MaxMind GeoLite . MaxMind GeoLite , , .', 'AzuraCast Update Checks' => ' AzuraCast', 'AzuraCast User' => ' AzuraCast', 'AzuraCast uses a role-based access control system. Roles are given permissions to certain sections of the site, then users are assigned into those roles.' => ' AzuraCast . , .', 'AzuraCast Wiki' => 'AzuraCast Wiki', 'AzuraCast will scan the uploaded file for matches in this station\'s music library. Media should already be uploaded before running this step. You can re-run this tool as many times as needed.' => ' AzuraCast . . .', 'AzuraRelay is a standalone service that connects to your AzuraCast instance, automatically relays your stations via its own server, then reports the listener details back to your main instance. This page shows all currently connected instances.' => 'AzuraRelay AzuraCast, , . .', 'Back' => '', 'Backing up your installation is strongly recommended before any update.' => 'H .', 'Backup' => ' ', 'Backup Format' => ' ', 'Backups' => ' ', 'Balanced' => '', 'Banned Countries' => ' ', 'Banned IP Addresses' => ' Ip', 'Banned User Agents' => ' ', 'Base Directory' => ' ', 'Base Station Directory' => ' ', 'Base Theme for Public Pages' => ' ', 'Basic Info' => ' ', 'Basic Information' => ' ', 'Basic Normalization and Compression' => ' ', 'Best & Worst' => ' & ', 'Best Performing Songs' => ' ', 'Bit Rate' => ' ', 'Bitrate' => ' bit', 'Bot Token' => ' Bot', 'Bot/Crawler' => 'Bot/', 'Branding' => '', 'Branding Settings' => ' ', 'Broadcast AutoDJ to Remote Station' => ' AutoDJ ', 'Broadcasting' => '', 'Broadcasting Service' => ' ', 'Broadcasts' => '', 'Broadcasts removed:' => ' :', 'Browser' => ' ', 'Browser Default' => ' ', 'Browser Icon' => ' ', 'Browsers' => ' ', 'Bucket Name' => ' ', 'Bulk Edit Episodes' => ' ', 'Bulk Media Import/Export' => ' / ', 'by' => '', 'By default, all playlists are written to Liquidsoap as a backup in case the normal AutoDJ fails. This can affect CPU load, especially on startup. Disable to only write essential playlists to Liquidsoap.' => ' , Liquidsoap AutoDJ . CPU, . Liquidsoap.', 'By default, radio stations broadcast on their own ports (i.e. 8000). If you\'re using a service like CloudFlare or accessing your radio station by SSL, you should enable this feature, which routes all radio through the web ports (80 and 443).' => ' , ( 8000). CloudFlare SSL, , (80 443).', 'Cached' => ' ', 'Calculate and use normalized volume level metadata for each track.' => ' .', 'Cancel' => '', 'Categories' => '', 'Change' => '', 'Change Password' => ' ', 'Changes' => '', 'Changes saved.' => ' .', 'Character Set Encoding' => ' ', 'Chat ID' => 'ID ', 'Check for Updates' => ' ', 'Check this box to apply post-processing to all audio, including live streams. Uncheck this box to only apply post-processing to the AutoDJ.' => ' , . AutoDJ.', 'Check Web Services for Album Art for "Now Playing" Tracks' => ' Web " "', 'Check Web Services for Album Art When Uploading Media' => ' Web ', 'Choose a method to use when transitioning from one song to another. Smart Mode considers the volume of the two tracks when fading for a smoother effect, but requires more CPU resources.' => ' . , CPU.', 'Choose a name for this webhook that will help you distinguish it from others. This will only be shown on the administration page.' => ' webhook . .', 'Choose a new password for your account.' => ' .', 'City' => '', 'Clear' => '', 'Clear all media from playlist?' => ' ;', 'Clear All Message Queues' => ' ', 'Clear All Pending Requests?' => ' ;', 'Clear Artwork' => ' ', 'Clear Cache' => ' ', 'Clear Extra Metadata' => ' ', 'Clear Field' => ' ', 'Clear File' => ' ', 'Clear Filters' => ' ', 'Clear Image' => ' ', 'Clear List' => ' ', 'Clear Media' => ' ', 'Clear Pending Requests' => ' ', 'Clear Queue' => ' ', 'Clear Upcoming Song Queue' => ' ', 'Clear Upcoming Song Queue?' => ' ;', 'Clearing the application cache may log you out of your session.' => ' .', 'Click "Generate new license key".' => ' " ".', 'Click "New Application"' => ' " "', 'Click the "Preferences" link, then "Development" on the left side menu.' => ' "" "" .', 'Click the button below to generate a CSV file with all of this station\'s media. You can make any necessary changes, and then import the file using the file picker on the right.' => ' CSV . , .', 'Click the button below to open your browser window to select a passkey.' => ' .', 'Click the button below to retry loading the page.' => ' .', 'Client' => '', 'Clients' => '', 'Clients by Connected Time' => ' ', 'Clients by Listeners' => ' ', 'Clone' => '', 'Clone Station' => ' ', 'Close' => '', 'CloudFlare (CF-Connecting-IP)' => 'CloudFlare (CF--IP)', 'Code from Authenticator App' => ' ', 'Collect aggregate listener statistics and IP-based listener statistics' => ' IP', 'Comments' => '', 'Complete the setup process by providing some information about your broadcast environment. These settings can be changed later from the administration panel.' => ' . .', 'Configure' => '', 'Configure Backups' => ' ', 'Confirm' => '', 'Confirm New Password' => ' ', 'Connected AzuraRelays' => ' AzuraRelays', 'Connection Information' => ' ', 'Contains explicit content' => ' ', 'Continue the setup process by creating your first radio station below. You can edit any of these details later.' => ' . .', 'Continuous Play' => ' ', 'Control how this playlist is handled by the AutoDJ software.' => ' AutoDJ.', 'Copied!' => '!', 'Copies older than the specified number of days will automatically be deleted. Set to zero to disable automatic deletion.' => ' . .', 'Copy associated media and folders.' => ' .', 'Copy scheduled playback times.' => ' .', 'Copy to Clipboard' => ' ', 'Copy to New Station' => ' ', 'Could not upload file.' => ' .', 'Countries' => '', 'Country' => '', 'CPU Load' => ' CPU', 'CPU Stats Help' => ' CPU', 'Create a new application. Choose "Scoped Access", select your preferred level of access, then name your app. Do not name it "AzuraCast", but rather use a name specific to your installation.' => ' . "Scoped Access", , . "AzuraCast", .', 'Create a New Radio Station' => ' ', 'Create Account' => ' ', 'Create an account on the MaxMind developer site.' => ' MaxMind.', 'Create and Continue' => ' ', 'Create custom fields to store extra metadata about each media file uploaded to your station libraries.' => ' .', 'Create Directory' => ' ', 'Create New Key' => ' ', 'Create New Playlist for Each Folder' => ' ', 'Create podcast episodes independent of your station\'s media collection.' => ' podcast .', 'Create Station' => ' ', 'Critical' => '', 'Crossfade Duration (Seconds)' => ' Crossfade ()', 'Crossfade Method' => ' Crossfade', 'Cue' => '', 'Current Configuration File' => ' ', 'Current Custom Fallback File' => ' Fallback', 'Current Installed Version' => ' ', 'Current Intro File' => ' ', 'Current Password' => ' ', 'Current Podcast Media' => ' Podcast', 'Custom' => '', 'Custom API Base URL' => ' URL Api', 'Custom Branding' => ' ', 'Custom Configuration' => ' ', 'Custom CSS for Internal Pages' => ' CSS ', 'Custom CSS for Public Pages' => ' CSS ', 'Custom Cues: Cue-In Point (seconds)' => ' : Cue-In ()', 'Custom Cues: Cue-Out Point (seconds)' => ' : Cue-Out ()', 'Custom Fading: Fade-In Time (seconds)' => ' : Fade-In ()', 'Custom Fading: Fade-Out Time (seconds)' => ' : Fade-Out ()', 'Custom Fading: Start Next (seconds)' => ' : ()', 'Custom Fallback File' => ' Fallback', 'Custom Fields' => ' ', 'Custom Frontend Configuration' => ' Frontend', 'Custom HTML for Public Pages' => ' HTML ', 'Custom JS for Public Pages' => ' JS ', 'Customize' => '', 'Customize Administrator Password' => ' ', 'Customize AzuraCast Settings' => ' AzuraCast', 'Customize Broadcasting Port' => ' ', 'Customize Copy' => ' ', 'Customize DJ/Streamer Mount Point' => ' Mount Point Dj/Streamer', 'Customize DJ/Streamer Port' => ' DJ/Streamer', 'Customize Internal Request Processing Port' => ' ', 'Customize Source Password' => ' ', 'Customize the number of songs that will appear in the "Song History" section for this station and in all public APIs.' => ' " " APIs.', 'Customize this setting to ensure you get the correct IP address for remote users. Only change this setting if you use a reverse proxy, either within Docker or a third-party service like CloudFlare.' => ' IP . , Docker , CloudFlare.', 'Dark' => '', 'Dashboard' => ' ', 'Date Played' => ' Played', 'Date Requested' => ' ', 'Date/Time' => '/', 'Date/Time (Browser)' => '/ (Browser)', 'Date/Time (Station)' => '/ ()', 'Days of Playback History to Keep' => ' ', 'Deactivate Streamer on Disconnect (Seconds)' => ' ()', 'Debug' => '', 'Default Album Art' => ' ', 'Default Album Art URL' => ' URL ', 'Default Avatar URL' => ' Avatar URL', 'Default Live Broadcast Message' => ' ', 'Default Mount' => ' ', 'Delete' => '', 'Delete %{ num } broadcasts?' => ' %{ num } ;', 'Delete %{ num } episodes?' => ' %{ num } ;', 'Delete %{ num } media files?' => ' %{ num } ;', 'Delete Album Art' => ' ', 'Delete API Key?' => ' Api;', 'Delete Backup?' => ' ;', 'Delete Broadcast?' => ' ;', 'Delete Custom Field?' => ' "%s";', 'Delete Episode?' => ' ;', 'Delete HLS Stream?' => ' HLS ;', 'Delete Mount Point?' => ' "%s";', 'Delete Passkey?' => ' ;', 'Delete Playlist?' => ' ;', 'Delete Podcast?' => ' ;', 'Delete Queue Item?' => ' ;', 'Delete Record?' => ' ;', 'Delete Remote Relay?' => ' Relay;', 'Delete Request?' => ' ;', 'Delete Role?' => ' ;', 'Delete SFTP User?' => ' Sftp;', 'Delete Station?' => ' ;', 'Delete Storage Location?' => ' ;', 'Delete Streamer?' => ' ;', 'Delete User?' => ' ;', 'Delete Web Hook?' => ' Web Hook;', 'Description' => '', 'Desktop' => ' ', 'Details' => '', 'Directory' => '', 'Directory Name' => ' ', 'Disable' => '', 'Disable Crossfading' => ' Crossfading', 'Disable Optimizations' => ' ', 'Disable station?' => ' ;', 'Disable Two-Factor' => ' ', 'Disable two-factor authentication?' => ' ;', 'Disable?' => ';', 'Disabled' => '', 'Disconnect Streamer' => ' ', 'Discord Web Hook URL' => 'Discord Web Hook URL', 'Discord Webhook' => 'Webhook Discord', 'Disk caching makes a system much faster and more responsive in general. It does not take memory away from applications in any way since it will automatically be released by the operating system when needed.' => ' . , .', 'Disk Space' => ' ', 'Display fields' => ' ', 'Display Name' => ' ', 'DJ/Streamer Buffer Time (Seconds)' => ' Buffer Dj/Streamer ()', 'Do not collect any listener analytics' => ' ', 'Do not use a local broadcasting service.' => ' .', 'Do not use an AutoDJ service.' => ' AutoDJ.', 'Documentation' => '', 'Domain Name(s)' => ' ', 'Donate to support AzuraCast!' => ' AzuraCast!', 'Download' => '', 'Download CSV' => ' CSV', 'Download M3U' => ' M3U', 'Download PLS' => ' PLS', 'Download the appropriate binary from the Stereo Tool downloads page:' => ' Stereo Tool:', 'Download the Linux x64 binary from the Shoutcast Radio Manager:' => ' Linux x64 Shoutcast Radio Manager:', 'Drag file(s) here to upload or' => ' () ', 'Dropbox App Console' => ' Dropbox', 'Dropbox Setup Instructions' => ' Dropbox', 'Duplicate' => '', 'Duplicate Playlist' => ' ', 'Duplicate Prevention Time Range (Minutes)' => ' ()', 'Duplicate Songs' => ' ', 'E-Mail' => 'E-mail', 'E-mail Address' => ' E-mail', 'E-mail Address (Optional)' => ' E-mail ()', 'E-mail addresses can be separated by commas.' => ' .', 'E-mail Delivery Service' => ' E-mail', 'EBU R128' => 'EBU R128', 'Edit' => '', 'Edit Branding' => ' Branding', 'Edit Custom Field' => ' ', 'Edit Episode' => ' ', 'Edit HLS Stream' => ' HLS ', 'Edit Liquidsoap Configuration' => ' Liquidsoap', 'Edit Media' => ' ', 'Edit Mount Point' => ' ', 'Edit Playlist' => ' ', 'Edit Podcast' => ' Podcast', 'Edit Profile' => ' ', 'Edit Remote Relay' => ' ', 'Edit Role' => ' ', 'Edit SFTP User' => ' Sftp', 'Edit Station' => ' ', 'Edit Station Profile' => ' ', 'Edit Storage Location' => ' ', 'Edit Streamer' => ' ', 'Edit User' => ' ', 'Edit Web Hook' => ' Web Hook', 'Embed Code' => ' ', 'Embed Widgets' => ' ', 'Emergency' => '', 'Empty' => '', 'Enable' => '', 'Enable Advanced Features' => ' ', 'Enable AutoCue (Beta)' => ' AutoCue (Beta)', 'Enable AutoDJ' => ' AutoDJ', 'Enable Broadcasting' => ' ', 'Enable certain advanced features in the web interface, including advanced playlist configuration, station port assignment, changing base media directories and other functionality that should only be used by users who are comfortable with advanced functionality.' => ' , , , .', 'Enable Downloads on On-Demand Page' => ' On-Demand', 'Enable HTTP Live Streaming (HLS)' => ' HTTP Live Streaming (HLS)', 'Enable listeners to request a song for play on your station. Only songs that are already in your playlists are requestable.' => ' . .', 'Enable Mail Delivery' => ' Email', 'Enable on Public Pages' => ' ', 'Enable On-Demand Streaming' => ' On-Demand', 'Enable Public Pages' => ' ', 'Enable ReplayGain' => ' ReplayGain', 'Enable station?' => ' ;', 'Enable this option if your S3 provider is using paths instead of sub-domains for their S3 endpoint; for example, when using MinIO or with other self-hosted S3 storage solutions that are accessible via a path on a domain/IP instead of a subdomain.' => ' S3 S3. , MinIO - S3 /IP .', 'Enable this setting to prevent metadata from being sent to the AutoDJ for files in this playlist. This is useful if the playlist contains jingles or bumpers.' => ' AutoDJ . .', 'Enable to advertise this mount point on "Yellow Pages" public radio directories.' => ' " ".', 'Enable to advertise this relay on "Yellow Pages" public radio directories.' => ' " ".', 'Enable to allow listeners to select and play from this mount point on this station\'s public pages, including embedded widgets.' => ' , .', 'Enable to allow listeners to select this relay on this station\'s public pages.' => ' relay .', 'Enable to allow this account to log in and stream.' => ' .', 'Enable to have AzuraCast automatically run nightly backups at the time specified.' => ' AzuraCast .', 'Enable Two-Factor' => ' ', 'Enable Two-Factor Authentication' => ' ', 'Enable?' => ';', 'Enabled' => '', 'End Date' => ' ', 'End Time' => ' ', 'Endpoint' => ' ', 'Enforce Schedule Times' => ' ', 'Enlarge Album Art' => ' ', 'Ensure the library matches your system architecture' => ' ', 'Enter "AzuraCast" as the application name. You can leave the URL fields unchanged. For "Scopes", only "write:media" and "write:statuses" are required.' => ' "AzuraCast" . URL . "Scopes", "write:media" "write:statuses".', 'Enter the access code you receive below.' => ' .', 'Enter the current code provided by your authenticator app to verify that it\'s working correctly.' => ' .', 'Enter the full URL of another stream to relay its broadcast through this mount point.' => ' URL .', 'Enter your app secret and app key below.' => ' .', 'Enter your e-mail address to receive updates about your certificate.' => ' .', 'Enter your password' => ' ', 'Episode' => '', 'Episode Number' => ' ', 'Episodes' => '', 'Episodes removed:' => ' :', 'Episodes updated:' => ' :', 'Error' => '', 'Error moving files:' => ' :', 'Error queueing files:' => ' :', 'Error removing broadcasts:' => ' :', 'Error removing episodes:' => ' :', 'Error removing files:' => ' :', 'Error reprocessing files:' => ' :', 'Error updating episodes:' => ' :', 'Error updating playlists:' => ' :', 'Example: if the remote radio URL is path_to_url enter "path_to_url".' => ': URL path_to_url "path_to_url".', 'Exclude Media from Backup' => ' ', 'Excluding media from automated backups will save space, but you should make sure to back up your media elsewhere. Note that only locally stored media will be backed up.' => ' , . .', 'Exit Fullscreen' => ' ', 'Expected to Play at' => ' ', 'Explicit' => '', 'Export %{format}' => ' %{format}', 'Export Media to CSV' => ' CSV', 'External' => '', 'Extra metadata cleared for files:' => ' :', 'Fallback Mount' => ' ', 'Field Name' => ' ', 'File Name' => ' ', 'Files marked for reprocessing:' => ' :', 'Files moved:' => ' :', 'Files played immediately:' => ' :', 'Files queued for playback:' => ' :', 'Files removed:' => ' :', 'First Connected' => ' ', 'Followers Only' => ' ', 'Footer Text' => ' ', 'For ARM (Raspberry Pi, etc.) installations, choose "Raspberry Pi Thimeo-ST plugin".' => ' ARM (Raspberry Pi, .), "Raspberry Pi Thimeo-ST plugin".', 'For local filesystems, this is the base path of the directory. For remote filesystems, this is the folder prefix.' => ' , . , .', 'For most cases, use the default UTF-8 encoding. The older ISO-8859-1 encoding can be used if accepting connections from Shoutcast 1 DJs or using other legacy software.' => ' , UTF-8. ISO-8859-1 SHOUTcast 1 DJs .', 'for selected period' => ' ', 'For simple updates where you want to keep your current configuration, you can update directly via your web browser. You will be disconnected from the web interface and listeners will be disconnected from all stations.' => ' , . .', 'For some clients, use port:' => ' , :', 'For the legacy version' => ' ', 'For x86/64 installations, choose "x86/64 Linux Thimeo-ST plugin".' => ' x86/64, "x86/64 Linux Thimeo-ST plugin".', 'Forgot your password?' => ' ;', 'Format' => '', 'Friday' => '', 'From your smartphone, scan the code to the right using an authentication app of your choice (FreeOTP, Authy, etc).' => ' , (FreeOTP, Authy, ).', 'Full' => '', 'Full Volume' => ' ', 'General Rotation' => ' ', 'Generate Access Code' => ' ', 'Generate Report' => ' ', 'Generate/Renew Certificate' => '/ ', 'Generic Web Hook' => ' Web Hook', 'Generic Web Hooks' => ' Web Hook', 'Genre' => '', 'GeoLite is not currently installed on this installation.' => ' GeoLite .', 'GeoLite version "%{ version }" is currently installed.' => 'GeoLite "%{ version }" .', 'Get Next Song' => ' ', 'Get Now Playing' => ' ', 'GetMeRadio' => 'GetMeRadio', 'GetMeRadio Station ID' => ' GetMeRadio', 'Global' => '', 'Global Permissions' => ' ', 'Go' => '', 'Google Analytics V4 Integration' => ' Google Analytics', 'Help' => '', 'Hide Album Art on Public Pages' => ' ', 'Hide AzuraCast Branding on Public Pages' => ' AzuraCast Branding ', 'Hide Charts' => ' ', 'Hide Credentials' => ' ', 'Hide Metadata from Listeners ("Jingle Mode")' => ' (" Jing")', 'High CPU' => ' CPU', 'High I/O Wait can indicate a bottleneck with the server\'s hard disk, a potentially failing hard disk, or heavy load on the hard disk.' => ' I/O , , .', 'Higher weight playlists are played more frequently compared to other lower-weight playlists.' => ' .', 'History' => '', 'HLS' => 'HLS', 'HLS Streams' => 'HLS ', 'Home' => '', 'Homepage Redirect URL' => 'URL ', 'Hour' => '', 'HTML' => 'HTML', 'HTTP Live Streaming (HLS)' => 'HTTP (HLS)', 'HTTP Live Streaming (HLS) is a new adaptive-bitrate streaming technology. From this page, you can configure the individual bitrates and formats that are included in the combined HLS stream.' => 'HTTP Live Streaming (HLS) -bitrate streaming . , bitrates HLS.', 'HTTP Live Streaming (HLS) is a new adaptive-bitrate technology supported by some clients. It does not use the standard broadcasting frontends.' => ' HTTP Live Streaming (HLS) -bitrate .', 'Icecast Clients' => ' Icecast', 'Icecast/Shoutcast Stream URL' => 'Url Icecast/Shoutcast', 'Identifier' => '', 'If a live DJ connects but has not yet sent metadata, this is the message that will display on player pages.' => ' DJ , .', 'If a song has no album art, this URL will be listed instead. Leave blank to use the standard placeholder art.' => ' , URL . .', 'If a visitor is not signed in and visits the AzuraCast homepage, you can automatically redirect them to the URL specified here. Leave blank to redirect them to the login screen by default.' => ' AzuraCast, URL . .', 'If disabled, the playlist will not be included in radio playback, but can still be managed.' => ' , , .', 'If disabled, the station will not be visible on public-facing pages or APIs.' => ' , API.', 'If disabled, the station will not broadcast or shuffle its AutoDJ.' => ' , AutoDJ.', 'If enabled, a download button will also be present on the public "On-Demand" page.' => ' , "On-Demand".', 'If enabled, AzuraCast will automatically record any live broadcasts made to this station to per-broadcast recordings.' => ' , AzuraCast .', 'If enabled, AzuraCast will connect to the MusicBrainz database to attempt to find an ISRC for any files where one is missing. Disabling this may improve performance.' => ' , AzuraCast MusicBrainz ISRC . .', 'If enabled, music from playlists with on-demand streaming enabled will be available to stream via a specialized public page.' => ' , .', 'If enabled, streamers (or DJs) will be able to connect directly to your stream and broadcast live music that interrupts the AutoDJ stream.' => ' , streamers ( DJs) AutoDJ.', 'If enabled, the AutoDJ on this installation will automatically play music to this mount point.' => ' , AutoDJ .', 'If enabled, the AutoDJ will automatically play music to this mount point.' => ' , AutoDJ .', 'If enabled, this streamer will only be able to connect during their scheduled broadcast times.' => ' , streamer .', 'If requests are enabled for your station, users will be able to request media that is on this playlist.' => ' , .', 'If requests are enabled, this specifies the minimum delay (in minutes) between a request being submitted and being played. If set to zero, a minor delay of 15 seconds is applied to prevent request floods.' => ' , ( ) . , 15 .', 'If selected, album art will not display on public-facing radio pages.' => ' , .', 'If selected, this will remove the AzuraCast branding from public-facing pages.' => ' , AzuraCast .', 'If the end time is before the start time, the playlist will play overnight.' => ' , .', 'If the end time is before the start time, the schedule entry will continue overnight.' => ' , .', 'If the mountpoint (i.e. /radio.mp3) or Shoutcast SID (i.e. 2) you broadcast to is different from the stream URL, specify the source mount point here.' => ' ( /radio.mp3) Shoutcast SID ( 2) , .', 'If the port you broadcast to is different from the stream URL, specify the source port here.' => ' URL, .', 'If this mount is the default, it will be played on the radio preview and the public radio page in this system.' => ' , .', 'If this mount point is not playing audio, listeners will automatically be redirected to this mount point. The default is /error.mp3, a repeating error message.' => ' , . /error.mp3, .', 'If this setting is set to "Yes", the browser URL will be used instead of the base URL when it\'s available. Set to "No" to always use the base URL.' => ' "", URL URL . "" URL.', 'If this station has on-demand streaming and downloading enabled, only songs that are in playlists with this setting enabled will be visible.' => ' , .', 'If you are broadcasting using AutoDJ, enter the source password here.' => ' AutoDJ, .', 'If you are broadcasting using AutoDJ, enter the source username here. This may be blank.' => ' AutoDJ, . .', 'If you\'re experiencing a bug or error, you can submit a GitHub issue using the link below.' => ' , GitHub .', 'If your installation is constrained by CPU or memory, you can change this setting to tune the resources used by Liquidsoap.' => ' CPU , Liquidsoap.', 'If your Mastodon username is "@test@example.com", enter "example.com".' => ' Mastodon "@test@example.com", "example.com".', 'If your stream is set to advertise to YP directories above, you must specify an authorization hash. You can manage these on the Shoutcast web site.' => ' YP , hash . authhashes <a href="%s" target="_blank"> SHOUTcast</a>.', 'If your streaming software requires a specific mount point path, specify it here. Otherwise, use the default.' => ' , . , .', 'If your web hook requires HTTP basic authentication, provide the password here.' => ' Web Hook HTTP, .', 'If your web hook requires HTTP basic authentication, provide the username here.' => ' Web Hook HTTP, .', 'Import Changes from CSV' => ' CSV', 'Import from PLS/M3U' => ' PLS/M3U', 'Import Results' => ' ', 'Important: copy the key below before continuing!' => ': !', 'In order to install Shoutcast:' => ' Shoutcast:', 'In order to install Stereo Tool:' => ' Stereo Tool:', 'In order to process quickly, web hooks have a short timeout, so the responding service should be optimized to handle the request in under 2 seconds.' => ' , web hooks , 2 .', 'Include in On-Demand Player' => ' ', 'Indefinitely' => ' \'', 'Indicates the presence of explicit content (explicit language or adult content). Apple Podcasts displays an Explicit parental advisory graphic for your episode if turned on. Episodes containing explicit material aren\'t available in some Apple Podcasts territories.' => ' ( ). Apple Podcasts , . Apple Podcasts.', 'Info' => '', 'Information about the current playing track will appear here once your station has started.' => ' .', 'Insert' => '', 'Install GeoLite IP Database' => ' GeoLite IP', 'Install Shoutcast' => ' Shoutcast', 'Install Shoutcast 2 DNAS' => ' Shoutcast 2 DNAS', 'Install Stereo Tool' => ' Stereo Tool', 'Instructions' => '', 'Internal notes or comments about the user, visible only on this control panel.' => ' , .', 'International Standard Recording Code, used for licensing reports.' => ' , .', 'Interrupt other songs to play at scheduled time.' => ' .', 'Intro' => '', 'IP' => 'IP', 'IP Address Source' => ' IP', 'IP Geolocation is used to guess the approximate location of your listeners based on the IP address they connect with. Use the free built-in IP Geolocation library or enter a license key on this page to use MaxMind GeoLite.' => ' IP IP . IP Geolocation MaxMind GeoLite.', 'Is Public' => ' ', 'Is Published' => '', 'ISRC' => 'ISRC', 'Items per page' => ' ', 'Jingle Mode' => ' Jingle', 'Language' => '', 'Last 14 Days' => ' 14 ', 'Last 2 Years' => ' 2 ', 'Last 24 Hours' => ' 24 ', 'Last 30 Days' => ' 30 ', 'Last 60 Days' => ' 60 ', 'Last 7 Days' => ' 7 ', 'Last Modified' => ' ', 'Last Month' => ' ', 'Last Processed Time' => ' ', 'Last Run' => ' ', 'Last run:' => ' :', 'Last Year' => ' ', 'Last.fm API Key' => 'Last.fm API Key', 'Latest Update' => ' ', 'Learn about Advanced Playlists' => ' ', 'Learn more about AutoCue' => ' AutoCue', 'Learn More about Post-processing CPU Impact' => ' - CPU Impact', 'Learn more about release channels in the AzuraCast docs.' => ' AzuraCast.', 'Learn more about this header.' => ' .', 'Leave blank to automatically generate a new password.' => ' .', 'Leave blank to play on every day of the week.' => ' .', 'Leave blank to use the current password.' => ' .', 'Leave blank to use the default Telegram API URL (recommended).' => ' URL API Telegram ().', 'Length' => '', 'Let\'s get started by creating your Super Administrator account.' => ' Super Administrator.', 'LetsEncrypt' => 'LetsEncrypt', 'LetsEncrypt provides simple, free SSL certificates allowing you to secure traffic through your control panel and radio streams.' => ' LetsEncrypt , SSL .', 'Light' => '', 'Like our software?' => ' ;', 'Limited' => '', 'LiquidSoap is currently shuffling from %{songs} and %{playlists}.' => ' Liquidsoap %{songs} %{playlists}.', 'Liquidsoap Performance Tuning' => ' Liquidsoap', 'List one IP address or group (in CIDR format) per line.' => ' IP ( CIDR) .', 'List one user agent per line. Wildcards (*) are allowed.' => ' . (*).', 'Listener Analytics Collection' => ' ', 'Listener Gained' => ' ', 'Listener History' => ' ', 'Listener Lost' => ' ', 'Listener Report' => ' ', 'Listener Request' => ' ', 'Listener Type' => ' ', 'Listeners' => '', 'Listeners by Day' => ' ', 'Listeners by Day of Week' => ' ', 'Listeners by Hour' => ' ', 'Listeners by Listening Time' => ' ', 'Listeners By Time Period' => ' ', 'Listeners Per Station' => ' ', 'Listening Time' => ' ', 'Live' => '', 'Live Broadcast Recording Bitrate (kbps)' => 'Bitrate (kbps)', 'Live Broadcast Recording Format' => ' ', 'Live Listeners' => ' ', 'Live Recordings Storage Location' => ' ', 'Live Streamer:' => ' :', 'Live Streamer/DJ Connected' => ' /DJ', 'Live Streamer/DJ Disconnected' => ' /DJ ', 'Live Streaming' => ' ', 'Load Average' => ' ', 'Loading' => '', 'Local' => '', 'Local Broadcasting Service' => ' ', 'Local Filesystem' => ' ', 'Local IP (Default)' => ' IP ()', 'Local Streams' => ' ', 'Location' => '', 'Log In' => '', 'Log Output' => ' ', 'Log Viewer' => ' ', 'Logs' => '', 'Logs by Station' => ' ', 'Loop Once' => ' ', 'Main Message Content' => ' ', 'Make HLS Stream Default in Public Player' => ' HLS ', 'Make the selected media play immediately, interrupting existing media' => ' , ', 'Manage' => '', 'Manage Avatar' => ' Avatar', 'Manage SFTP Accounts' => ' SFTP', 'Manage Stations' => ' ', 'Manual AutoDJ Mode' => ' AutoDJ', 'Manual Updates' => ' ', 'Manually Add Episodes' => ' ', 'Manually define how this playlist is used in Liquidsoap configuration.' => ' Liquidsoap.', 'Markdown' => '', 'Master_me is an open-source automatic mastering plugin for streaming, podcasts and Internet radio.' => 'Master_me open-source plugin mastering streaming, podcasts .', 'Master_me Loudness Target (LUFS)' => 'Master_me Loudness Target (LUFS)', 'Master_me Post-processing' => 'Master_me -', 'Master_me Preset' => 'Master_me Preset', 'Master_me Project Homepage' => ' Master_me', 'Mastodon Account Details' => ' Mastodon', 'Mastodon Instance URL' => ' URL Mastodon', 'Mastodon Post' => ' Mastodon', 'Matched' => '', 'Matomo Analytics Integration' => 'Matomo Analytics Integration', 'Matomo API Token' => 'Matomo API Token', 'Matomo Installation Base URL' => ' Url Matomo', 'Matomo Site ID' => 'Matomo Site ID', 'Max Listener Duration' => ' ', 'Max. Connected Time' => '. ', 'Maximum Listeners' => ' ', 'Maximum number of total listeners across all streams. Leave blank to use the default.' => ' . .', 'MaxMind Developer Site' => ' MaxMind Developer', 'Measurement ID' => ' ()', 'Media' => '', 'Media File' => ' ', 'Media Storage Location' => ' ', 'Memory' => '', 'Memory Stats Help' => ' ', 'Merge playlist to play as a single track.' => ' .', 'Message Body' => ' ', 'Message Body on Song Change' => ' ', 'Message Body on Song Change with Streamer/DJ Connected' => ' Stramer/DJ', 'Message Body on Station Offline' => ' ', 'Message Body on Station Online' => ' on-line', 'Message Body on Streamer/DJ Connect' => ' Streamer/DJ Connect', 'Message Body on Streamer/DJ Disconnect' => ' Streamer/DJ', 'Message Customization Tips' => ' ', 'Message parsing mode' => ' ', 'Message Queues' => ' ', 'Message Recipient(s)' => '() ', 'Message Subject' => ' ', 'Message Visibility' => ' ', 'Metadata updated.' => ' .', 'Microphone' => '', 'Microphone Source' => ' ', 'Min. Connected Time' => '. ', 'Minute of Hour to Play' => ' ', 'Mixer' => '', 'Mobile' => '', 'Modified' => '', 'Monday' => '', 'More' => '', 'Most hosting providers will put more Virtual Machines (VPSes) on a server than the hardware can handle when each VM is running at full CPU load. This is called over-provisioning, which can lead to other VMs on the server "stealing" CPU time from your VM and vice-versa.' => ' (VPSes) , VM CPU. -, VMs "" CPU VM .', 'Most Played Songs' => ' ', 'Most Recent Backup Log' => ' ', 'Mount Name:' => ' :', 'Mount Point URL' => 'Url ', 'Mount Points' => ' ', 'Mount points are how listeners connect and listen to your station. Each mount point can be a different audio format or quality. Using mount points, you can set up a high-quality stream for broadband listeners and a mobile stream for phone users.' => ' . . , .', 'Move' => '', 'Move %{ num } File(s) to' => ' %{ num } ', 'Move Down' => ' ', 'Move to Bottom' => ' ', 'Move to Directory' => ' ', 'Move to Top' => ' ', 'Move Up' => ' ', 'Music Files' => ' ', 'Music General' => ' ', 'Must match new password.' => ' .', 'Mute' => '', 'My Account' => ' ', 'N/A' => '/', 'Name' => '', 'name@example.com' => 'name@example.com', 'Name/Type' => '/', 'Need Help?' => ' ;', 'Network Interfaces' => ' ', 'Never run' => ' ', 'New Directory' => ' ', 'New directory created.' => ' .', 'New File Name' => ' ', 'New Folder' => ' ', 'New Key Generated' => ' ', 'New Password' => ' ', 'New Playlist' => ' ', 'New Playlist Name' => ' ', 'New Station Description' => ' ', 'New Station Name' => ' ', 'Next Run' => ' ', 'No' => '', 'No AutoDJ Enabled' => ' AutoDj', 'No files selected.' => ' .', 'No Limit' => '', 'No Match' => ' ', 'No other program can be using this port. Leave blank to automatically assign a port.' => ' . .', 'No Post-processing' => ' -', 'No records to display.' => ' .', 'No records.' => ' .', 'None' => '', 'Normal Mode' => ' ', 'Not Played' => ' ', 'Not Run' => ' ', 'Not Running' => ' ', 'Not Scheduled' => ' ', 'Note that restoring a backup will clear your existing database. Never restore backup files from untrusted users.' => ' . .', 'Note that Stereo Tool can be resource-intensive for both CPU and Memory. Please ensure you have sufficient resources before proceeding.' => ' Stereo Tool . .', 'Note: If your media metadata has UTF-8 characters, you should use a spreadsheet editor that supports UTF-8 encoding, like OpenOffice.' => ': UTF-8 , UTF-8, OpenOffice.', 'Note: the port after this one will automatically be used for legacy connections.' => ': .', 'Note: This should be the public-facing homepage of the radio station, not the AzuraCast URL. It will be included in broadcast details.' => ': , AzuraCast URL. .', 'Notes' => '', 'Notice' => '', 'Now' => '', 'Now Playing' => ' ', 'Now playing on %{ station }:' => ' %{ station }:', 'Now playing on %{ station }: %{ title } by %{ artist } with your host, %{ dj }! Tune in now: %{ url }' => ' %{ station }: %{ title } %{ artist }! : %{ url }', 'Now playing on %{ station }: %{ title } by %{ artist }! Tune in now: %{ url }' => ' %{ station }: %{ title } %{ artist }! : %{ url }', 'Now playing on %{ station }: %{ title } by %{ artist }! Tune in now.' => ' %{ station }: %{ title } %{ artist }! .', 'NowPlaying API Response' => ' NowPlaying Api', 'Number of Backup Copies to Keep' => ' ', 'Number of Minutes Between Plays' => ' ', 'Number of seconds to overlap songs.' => ' .', 'Number of Songs Between Plays' => ' ', 'Number of Visible Recent Songs' => ' ', 'On the Air' => ' ', 'On-Demand' => ' ', 'On-Demand Media' => ' ', 'On-Demand Streaming' => ' ', 'Once per %{minutes} Minutes' => ' %{minutes} ', 'Once per %{songs} Songs' => ' %{songs} ', 'Once per Hour' => ' ', 'Once per Hour (at %{minute})' => ' ( %{minute})', 'Once per x Minutes' => ' x ', 'Once per x Songs' => ' x ', 'Once these steps are completed, enter the "Access Token" from the application\'s page into the field below.' => ' , " " .', 'One important note on I/O Wait is that it can indicate a bottleneck or problem but also may be completely meaningless, depending on the workload and general available resources. A constantly high I/O Wait should prompt further investigation with more sophisticated tools.' => ' I/O Wait , , . I/O Wait .', 'Only collect aggregate listener statistics' => ' ', 'Only loop through playlist once.' => ' .', 'Only play one track at scheduled time.' => ' .', 'Only Post Once Every...' => ' ...', 'Operation' => '', 'Optional: HTTP Basic Authentication Password' => ': HTTP ', 'Optional: HTTP Basic Authentication Username' => ': HTTP ', 'Optional: Request Timeout (Seconds)' => ': ()', 'Optionally list this episode as part of a season in some podcast aggregators.' => ' podcast .', 'Optionally select an ID3v2 metadata field that, if present, will be used to set this field\'s value.' => ' ID3v2 , , .', 'Optionally set a specific episode number in some podcast aggregators.' => ' podcast.', 'Optionally specify a short URL-friendly name, such as "my_station_name", that will be used in this station\'s URLs. Leave this field blank to automatically create one based on the station name.' => ' URL, "my_station_name", URL . .', 'Optionally specify an API-friendly name, such as "field_name". Leave this field blank to automatically create one based on the name.' => ' API, "field_name". .', 'Optionally supply an API token to allow IP address overriding.' => ' API IP.', 'Optionally supply SSH public keys this user can use to connect instead of a password. Enter one key per line.' => ' SSH . .', 'or' => '', 'Original Path' => ' ', 'Other Remote URL (File, HLS, etc.)' => ' URL (, HLS, .)', 'Owner' => '', 'Page' => '', 'Passkey Authentication' => ' ', 'Passkey Nickname' => ' ', 'Password' => ' ', 'Password:' => ':', 'Paste the generated license key into the field on this page.' => ' .', 'Path/Suffix' => '/', 'Pending Requests' => ' ', 'Permissions' => '', 'Play' => '', 'Play Now' => ' ', 'Play once every $x minutes.' => ' $x .', 'Play once every $x songs.' => ' $x .', 'Play once per hour at the specified minute.' => ' .', 'Playback Queue' => ' ', 'Playing Next' => ' ', 'Playlist' => ' ', 'Playlist (M3U/PLS) URL' => ' URL (M3U/PLS)', 'Playlist 1' => ' 1', 'Playlist 2' => ' 2', 'Playlist Name' => ' ', 'Playlist order set.' => ' .', 'Playlist queue cleared.' => ' .', 'Playlist successfully applied to folders.' => ' .', 'Playlist Type' => ' ', 'Playlist Weight' => ' ', 'Playlist-Based' => '- ', 'Playlist-Based Podcast' => 'Podcast - ', 'Playlist-based podcasts will automatically sync with the contents of a playlist, creating new podcast episodes for any media added to the playlist.' => ' podcast - , podcast .', 'Playlist:' => ' :', 'Playlists' => ' ', 'Playlists cleared for selected files:' => ' :', 'Playlists updated for selected files:' => ' :', 'Plays' => '', 'Please log in to continue.' => ' .', 'Podcast' => 'Podcast', 'Podcast media should be in the MP3 or M4A (AAC) format for the greatest compatibility.' => ' Podcast MP3 M4A (AAC) .', 'Podcast Title' => ' Podcast', 'Podcasts' => 'Podcasts', 'Podcasts Storage Location' => ' Podcast', 'Port' => '', 'Port:' => ':', 'Powered by' => ' ', 'Powered by AzuraCast' => ' AzuraCast', 'Prefer Browser URL (If Available)' => ' Url ( )', 'Prefer System Default' => ' ', 'Preview' => '', 'Previous' => '', 'Privacy' => '', 'Profile' => '', 'Programmatic Name' => ' ', 'Provide a valid license key from Thimeo. Functionality is limited without a license key.' => ' Thimeo. .', 'Public' => ' ', 'Public Page' => ' ', 'Public Page Background' => ' ', 'Public Pages' => ' ', 'Publish At' => ' ', 'Publish to "Yellow Pages" Directories' => ' " "', 'Queue' => ' ', 'Queue the selected media to play next' => ' ', 'Radio Player' => ' Player', 'Radio.de' => 'Radio.de', 'Radio.de API Key' => ' Radio.de Api', 'Radio.de Broadcast Subdomain' => ' Radio.de', 'RadioRed Organization API Key' => ' API RadioRed', 'RadioReg Webhook URL' => 'RadioReg Webhook URL', 'RadioReg.net' => 'RadioReg.net', 'Random' => '', 'Ready to start broadcasting? Click to start your station.' => ' ? .', 'Received' => '', 'Record Live Broadcasts' => ' ', 'Recover Account' => ' ', 'Refresh' => '', 'Refresh rows' => ' ', 'Region' => '', 'Relay' => '', 'Relay Stream URL' => 'Url Relay', 'Release Channel' => ' ', 'Reload' => ' ', 'Reload Configuration' => ' ', 'Reload to Apply Changes' => ' ', 'Reloading broadcasting will not disconnect your listeners.' => ' .', 'Remember me' => ' ', 'Remote' => '', 'Remote Playback Buffer (Seconds)' => ' ()', 'Remote Relays' => ' relay', 'Remote relays let you work with broadcasting software outside this server. Any relay you include here will be included in your station\'s statistics. You can also broadcast from this server to remote relays.' => ' . . .', 'Remote Station Administrator Password' => ' ', 'Remote Station Listening Mountpoint/SID' => ' /SID', 'Remote Station Listening URL' => ' Listening URL', 'Remote Station Source Mountpoint/SID' => ' Mountpoint/SID', 'Remote Station Source Password' => ' ', 'Remote Station Source Port' => ' ', 'Remote Station Source Username' => ' ', 'Remote Station Type' => ' ', 'Remote URL' => ' URL', 'Remote URL Playlist' => ' URL', 'Remote URL Type' => ' URL', 'Remote: Dropbox' => ': Dropbox', 'Remote: S3 Compatible' => 'Remote: S3 ', 'Remote: SFTP' => ': SFTP', 'Remove' => '', 'Remove any extra metadata (fade points, cue points, etc.) from the selected media' => ' ( , cue, .) ', 'Remove Key' => ' ', 'Rename' => '', 'Rename File/Directory' => ' /', 'Reorder' => '', 'Reorder Playlist' => ' ', 'Repeat' => '', 'Replace Album Cover Art' => ' ', 'Reports' => '', 'Reprocess' => '', 'Request' => '', 'Request a Song' => ' ', 'Request History' => ' ', 'Request Last Played Threshold (Minutes)' => ' ()', 'Request Minimum Delay (Minutes)' => ' ()', 'Request Song' => ' ', 'Requester IP' => 'IP ', 'Requests' => '', 'Required' => '', 'Reshuffle' => '', 'Restart' => '', 'Restart Broadcasting' => ' ', 'Restarting broadcasting will briefly disconnect your listeners.' => ' .', 'Restarting broadcasting will rewrite all configuration files and restart all services.' => ' .', 'Restoring Backups' => ' ', 'Reverse Proxy (X-Forwarded-For)' => ' (X-Forwarded-For)', 'Role Name' => ' ', 'Roles' => '', 'Roles & Permissions' => ' & ', 'Rolling Release' => ' ', 'RSS' => 'RSS', 'RSS Feed' => ' RSS', 'Run Automatic Nightly Backups' => ' ', 'Run Manual Backup' => ' ', 'Run Task' => ' ', 'Running' => '', 'Sample Rate' => ' ', 'Saturday' => '', 'Save' => '', 'Save and Continue' => ' ', 'Save Changes' => ' ', 'Save Changes first' => ' ', 'Schedule' => '', 'Schedule View' => ' ', 'Scheduled' => '', 'Scheduled Backup Time' => ' ', 'Scheduled Play Days of Week' => ' ', 'Scheduled playlists and other timed items will be controlled by this time zone.' => ' .', 'Scheduled Time #%{num}' => ' #%{num}', 'Scheduling' => '', 'Search' => '', 'Season Number' => ' ', 'Seconds from the start of the song that the AutoDJ should start playing.' => ' AutoDJ.', 'Seconds from the start of the song that the AutoDJ should stop playing.' => ' AutoDJ.', 'Seconds from the start of the song that the next song should begin when fading. Leave blank to use the system default.' => ' . .', 'Secret Key' => ' ', 'Security' => '', 'Security & Privacy' => ' & ', 'See the Telegram documentation for more details.' => ' Telegram .', 'See the Telegram Documentation for more details.' => ' Telegram .', 'Seek' => '', 'Segment Length (Seconds)' => ' ()', 'Segments in Playlist' => ' ', 'Segments Overhead' => ' ', 'Select' => '', 'Select a theme to use as a base for station public pages and the login page.' => ' .', 'Select All Rows' => ' ', 'Select an option here to apply post-processing using an easy preset or tool. You can also manually apply post-processing by editing your Liquidsoap configuration manually.' => ' . Liquidsoap .', 'Select Configuration File' => ' ', 'Select CSV File' => ' CSV', 'Select Custom Fallback File' => ' Fallback', 'Select File' => ' ', 'Select Intro File' => ' ', 'Select Media File' => ' ', 'Select Passkey' => ' ', 'Select Playlist' => ' ', 'Select PLS/M3U File to Import' => ' PLS/M3U ', 'Select PNG/JPG artwork file' => ' PNG/JPG', 'Select Row' => ' ', 'Select the category/categories that best reflects the content of your podcast.' => ' / podcast .', 'Select the countries that are not allowed to connect to the streams.' => ' .', 'Select Web Hook Type' => ' Hook Web', 'Selected directory:' => ' :', 'Send an e-mail to specified address(es).' => ' e-mail () () .', 'Send E-mail' => ' E-mail', 'Send song metadata changes to %{service}' => ' TuneIn', 'Send song metadata changes to %{service}.' => ' TuneIn.', 'Send stream listener details to Google Analytics.' => ' Google Analytics.', 'Send stream listener details to Matomo Analytics.' => ' Matomo Analytics.', 'Send Test Message' => ' ', 'Sender E-mail Address' => ' Email ', 'Sender Name' => ' ', 'Sequential' => '', 'Server Status' => ' ', 'Server:' => ':', 'Services' => '', 'Set a maximum disk space that this storage location can use. Specify the size with unit, i.e. "8 GB". Units are measured in 1024 bytes. Leave blank to default to the available space on the disk.' => ' . , "8 GB". 1024 bytes. .', 'Set as Default Mount Point' => ' ', 'Set cue and fade points using the visual editor. The timestamps will be saved to the corresponding fields in the advanced playback settings.' => ' cue fade . timestamps .', 'Set Cue In' => ' Cue ', 'Set Cue Out' => ' Cue ', 'Set Fade In' => ' ', 'Set Fade Out' => ' Cue ', 'Set Fade Start Next' => ' ', 'Set longer to preserve more playback history and listener metadata for stations. Set shorter to save disk space.' => ' . .', 'Set the length of time (seconds) a listener will stay connected to the stream. If set to 0, listeners can stay connected infinitely.' => ' () . 0, .', 'Set to "Yes" to always use "https://" secure URLs, and to automatically redirect to the secure URL when an insecure URL is visited (HSTS).' => ' "" URL "https://", URL URL (HSTS).', 'Set to * to allow all sources, or specify a list of origins separated by a comma (,).' => ' * , (,).', 'Settings' => '', 'Setup instructions for broadcasting software are available on the AzuraCast wiki.' => ' AzuraCast wiki.', 'SFTP Host' => ' SFTP', 'SFTP Password' => 'Sftp ', 'SFTP Port' => ' SFTP', 'SFTP Private Key' => ' SFTP', 'SFTP Private Key Pass Phrase' => ' Sftp', 'SFTP Username' => ' SFTP', 'SFTP Users' => ' sftp', 'Share Media Storage Location' => ' ', 'Share Podcasts Storage Location' => ' Podcast', 'Share Recordings Storage Location' => ' ', 'Shoutcast 2 DNAS is not currently installed on this installation.' => ' Shoutcast 2 DNAS .', 'Shoutcast 2 DNAS is not free software, and its restrictive license does not allow AzuraCast to distribute the Shoutcast binary.' => ' Shoutcast 2 DNAS AzuraCast Shoutcast.', 'Shoutcast Clients' => ' Shoutcast', 'Shoutcast Radio Manager' => ' Shoutcast', 'Shoutcast User ID' => ' Shoutcast', 'Shoutcast version "%{ version }" is currently installed.' => 'Shoutcast version "%{ version }" .', 'Show Charts' => ' ', 'Show Credentials' => ' Sftp', 'Show HLS Stream on Public Player' => ' HLS ', 'Show new releases within your update channel on the AzuraCast homepage.' => ' AzuraCast.', 'Show on Public Pages' => ' ', 'Show the station in public pages and general API results.' => ' API.', 'Show Update Announcements' => ' ', 'Shuffled' => '', 'Sidebar' => ' ', 'Sign In' => '', 'Sign In with Passkey' => ' ', 'Sign Out' => '', 'Site Base URL' => ' URL ', 'Size' => '', 'Skip Song' => ' ', 'Skip to main content' => ' ', 'Smart Mode' => ' ', 'SMTP Host' => ' SMTP', 'SMTP Password' => ' SMTP', 'SMTP Port' => ' SMTP', 'SMTP Username' => ' SMTP', 'Social Media' => ' ', 'Some clients may require that you enter a port number that is either one above or one below this number.' => ' .', 'Some stream licensing providers may have specific rules regarding song requests. Check your local regulations for more information.' => ' . .', 'Song' => '', 'Song Album' => ' ', 'Song Artist' => ' ', 'Song Change' => ' ', 'Song Change (Live Only)' => ' ( )', 'Song Genre' => ' ', 'Song History' => ' ', 'Song Length' => ' ', 'Song Lyrics' => ' ', 'Song Playback Order' => ' ', 'Song Playback Timeline' => ' ', 'Song Requests' => ' ', 'Song Title' => ' ', 'Song-based' => '', 'Song-Based' => '', 'Song-Based Playlist' => ' ', 'SoundExchange Report' => ' SoundExchange', 'SoundExchange Royalties' => 'SoundExchange Royalties', 'Source' => '', 'Space Used' => ' ', 'Specify a mountpoint (i.e. "/radio.mp3") or a Shoutcast SID (i.e. "2") to specify a specific stream to use for statistics or broadcasting.' => ' ( "/radio.mp3") Shoutcast SID ( "2") .', 'Specify the minute of every hour that this playlist should play.' => ' .', 'Speech General' => ' ', 'SSH Public Keys' => ' SSH', 'Stable' => '', 'Standard playlist, shuffles with other standard playlists based on weight.' => ' , .', 'Start' => '', 'Start Date' => ' ', 'Start Station' => ' ', 'Start Streaming' => ' ', 'Start Time' => ' ', 'Station Directories' => ' ', 'Station Disabled' => ' ', 'Station Goes Offline' => ' ', 'Station Goes Online' => ' ', 'Station Media' => ' ', 'Station Name' => ' ', 'Station Offline' => ' ', 'Station Offline Display Text' => ' Offline ', 'Station Overview' => ' ', 'Station Permissions' => ' ', 'Station Podcasts' => ' Podcasts', 'Station Recordings' => ' ', 'Station Statistics' => ' ', 'Station Time' => ' ', 'Station Time Zone' => ' ', 'Station-Specific Debugging' => ' ', 'Station(s)' => '()', 'Stations' => '', 'Stations using Icecast can soft-reload the station configuration, applying changes while keeping the stream broadcast running.' => ' Icecast , .', 'Steal' => '', 'Steal (St)' => ' (St)', 'Step %{step}' => ' %{step}', 'Step 1: Scan QR Code' => 'Step 1: Scan QR Code', 'Step 2: Verify Generated Code' => ' 2: ', 'Steps for configuring a Mastodon application:' => ' Mastodon:', 'Stereo Tool' => 'Stereo Tool', 'Stereo Tool documentation.' => ' .', 'Stereo Tool Downloads' => ' ', 'Stereo Tool is a popular, proprietary tool for software audio processing. Using Stereo Tool, you can customize the sound of your stations using preset configuration files.' => ' Stereo Tool , . Stereo Tool, .', 'Stereo Tool is an industry standard for software audio processing. For more information on how to configure it, please refer to the' => ' . , ', 'Stereo Tool is not currently installed on this installation.' => ' .', 'Stereo Tool is not free software, and its restrictive license does not allow AzuraCast to distribute the Stereo Tool binary.' => ' AzuraCast .', 'Stereo Tool version %{ version } is currently installed.' => ' %{ version } .', 'Stop' => '', 'Stop Streaming' => ' ', 'Storage Adapter' => ' ', 'Storage Location' => ' ', 'Storage Locations' => ' ', 'Storage Quota' => ' ', 'Stream' => '', 'Streamer Broadcasts' => 'Streamer ', 'Streamer Display Name' => ' ', 'Streamer password' => ' ', 'Streamer Username' => 'Streamer ', 'Streamer/DJ' => 'Streamer/DJ', 'Streamer/DJ Accounts' => ' Streamer/DJ', 'Streamers/DJs' => 'Streamers/DJs', 'Streams' => '', 'Submit Code' => ' ', 'Sunday' => '', 'Support Documents' => ' ', 'Supported file formats:' => ' :', 'Switch Theme' => ' ', 'Synchronization Tasks' => ' ', 'Synchronize with Playlist' => ' ', 'System Administration' => ' ', 'System Debugger' => ' ', 'System Logs' => ' ', 'System Maintenance' => ' ', 'System Settings' => ' ', 'Target' => '', 'Task Name' => ' ', 'Telegram Chat Message' => ' Telegram', 'Test' => '', 'Test message sent.' => ' .', 'Thanks for listening to %{ station }!' => ' %{ station }!', 'The amount of memory Linux is using for disk caching.' => ' Linux .', 'The average target loudness (measured in LUFS) for the broadcasted stream. Values between -14 and -18 LUFS are common for Internet radio stations.' => ' -14 -18 LUFS .', 'The base URL where this service is located. Use either the external IP address or fully-qualified domain name (if one exists) pointing to this server.' => ' URL . IP ( ) .', 'The body of the POST message is the exact same as the NowPlaying API response for your station.' => ' POST NowPlaying API .', 'The contact person of the podcast. May be required in order to list the podcast on services like Apple Podcasts, Spotify, Google Podcasts, etc.' => ' podcast. podcast Apple Podcasts, Spotify, Google Podcasts, .', 'The current CPU usage including I/O Wait and Steal.' => ' CPU, I/O Steal.', 'The current Memory usage excluding cached memory.' => ' .', 'The date and time when the episode should be published.' => ' .', 'The description of the episode. The typical maximum amount of text allowed for this is 4000 characters.' => ' . 4000 .', 'The description of your podcast. The typical maximum amount of text allowed for this is 4000 characters.' => ' podcast . 4000 .', 'The display name assigned to this mount point when viewing it on administrative or public pages. Leave blank to automatically generate one.' => ' . .', 'The display name assigned to this relay when viewing it on administrative or public pages. Leave blank to automatically generate one.' => ' . .', 'The editable text boxes are areas where you can insert custom configuration code. The non-editable sections are automatically generated by AzuraCast.' => ' . AzuraCast.', 'The email of the podcast contact. May be required in order to list the podcast on services like Apple Podcasts, Spotify, Google Podcasts, etc.' => ' email podcast. podcast Apple Podcasts, Spotify, Google Podcasts, .', 'The file name should look like:' => ' :', 'The format and headers of this CSV should match the format generated by the export function on this page.' => ' CSV .', 'The full base URL of your Matomo installation.' => ' URL Matomo.', 'The full playlist is shuffled and then played through in the shuffled order.' => ' .', 'The I/O Wait is the percentage of time that the CPU is waiting for disk access before it can continue the work that depends on the result of this.' => ' I/O Wait CPU .', 'The language spoken on the podcast.' => ' podcast.', 'The length of playback time that Liquidsoap should buffer when playing this remote playlist. Shorter times may lead to intermittent playback on unstable connections.' => ' Liquidsoap . .', 'The number of seconds of signal to store in case of interruption. Set to the lowest value that your DJs can use without stream interruptions.' => ' . DJs .', 'The number of seconds to wait for a response from the remote server before cancelling the request.' => ' .', 'The numeric site ID for this site.' => ' .', 'The order of the playlist is manually specified and followed by the AutoDJ.' => ' AutoDJ.', 'The parent directory where station playlist and configuration files are stored. Leave blank to use default directory.' => ' . .', 'The relative path of the file in the station\'s media directory.' => ' .', 'The station ID will be a numeric string that starts with the letter S.' => ' ID S.', 'The streamer will use this password to connect to the radio server.' => ' streamer .', 'The streamer will use this username to connect to the radio server.' => ' streamer .', 'The time period that the song should fade in. Leave blank to use the system default.' => ' . .', 'The time period that the song should fade out. Leave blank to use the system default.' => ' . .', 'The URL that will receive the POST messages any time an event is triggered.' => ' URL POST .', 'The volume in decibels to amplify the track with. Leave blank to use the system default.' => ' . .', 'The WebDJ lets you broadcast live to your station using just your web browser.' => ' WebDJ .', 'Theme' => '', 'There is no existing custom fallback file associated with this station.' => ' .', 'There is no existing intro file associated with this mount point.' => ' .', 'There is no existing media associated with this episode.' => ' .', 'There is no Stereo Tool configuration file present.' => ' .', 'This account will have full access to the system, and you\'ll automatically be logged in to it for the rest of setup.' => ' .', 'This can be generated in the "Events" section for a measurement.' => ' "" .', 'This can be retrieved from the GetMeRadio dashboard.' => ' GetMeRadio .', 'This can make it look like your memory is low while it actually is not. Some monitoring solutions/panels include cached memory in their used memory statistics without indicating this.' => ' , . / cached .', 'This code will be included in the frontend configuration. Allowed formats are:' => ' frontend. :', 'This configuration file should be a valid .sts file exported from Stereo Tool.' => ' .sts Stereo.', 'This CSS will be applied to the main management pages, like this one.' => ' CSS , .', 'This CSS will be applied to the station public pages and login page.' => ' CSS .', 'This CSS will be applied to the station public pages.' => ' CSS .', 'This determines how many songs in advance the AutoDJ will automatically fill the queue.' => ' AutoDJ .', 'This feature requires the AutoDJ feature to be enabled.' => ' AutoDJ.', 'This field is required.' => ' .', 'This field must be a valid decimal number.' => ' .', 'This field must be a valid e-mail address.' => ' email.', 'This field must be a valid integer.' => ' .', 'This field must be a valid IP address.' => ' IP.', 'This field must be a valid URL.' => ' URL.', 'This field must be between %{ min } and %{ max }.' => ' %{ min } %{ max }.', 'This field must have at least %{ min } letters.' => ' %{ min } .', 'This field must have at most %{ max } letters.' => ' %{ max } .', 'This field must only contain alphabetic characters.' => ' .', 'This field must only contain alphanumeric characters.' => ' .', 'This field must only contain numeric characters.' => ' .', 'This file will be played on your radio station any time no media is scheduled to play or a critical error occurs that interrupts regular broadcasting.' => ' .', 'This image will be used as the default album art when this streamer is live.' => ' streamer .', 'This introduction file should exactly match the bitrate and format of the mount point itself.' => ' bitrate .', 'This is a 3-5 digit number.' => ' 3-5 .', 'This is an advanced feature and custom code is not officially supported by AzuraCast. You may break your station by adding custom code, but removing it should fix any issues.' => ' AzuraCast. , .', 'This is the informal display name that will be shown in API responses if the streamer/DJ is live.' => ' API streamer/DJ .', 'This is the number of seconds until a streamer who has been manually disconnected can reconnect to the stream. Set to 0 to allow the streamer to immediately reconnect.' => ' streamer . 0 streamer.', 'This javascript code will be applied to the station public pages and login page.' => ' javascript .', 'This javascript code will be applied to the station public pages.' => ' javascript .', 'This mode disables AzuraCast\'s AutoDJ management, using Liquidsoap itself to manage song playback. "next song" and some other features will not be available.' => ' AutoDJ AzuraCast, Liquidsoap . "Next Song" .', 'This Month' => ' ', 'This name should always begin with a slash (/), and must be a valid URL, such as /autodj.mp3' => ' (/), URL, /autodj.mp3', 'This name will appear as a sub-header next to the AzuraCast logo, to help identify this server.' => ' AzuraCast .', 'This page lists all API keys assigned to all users across the system. To manage your own API keys, visit your account profile.' => ' API . API, .', 'This password is too common or insecure.' => ' .', 'This playlist currently has no scheduled times. It will play at all times. To add a new scheduled time, click the button below.' => ' . . , .', 'This playlist will play every $x minutes, where $x is specified here.' => ' $x , $x .', 'This playlist will play every $x songs, where $x is specified here.' => ' $x , $x .', 'This podcast is automatically synchronized with a playlist. Episodes cannot be manually added or removed via this panel.' => ' podcast . .', 'This port is not used by any external process. Only modify this port if the assigned port is in use. Leave blank to automatically assign a port.' => ' . . .', 'This queue contains the remaining tracks in the order they will be queued by the AzuraCast AutoDJ (if the tracks are eligible to be played).' => ' AzuraCast AutoDJ ( ).', 'This service can provide album art for tracks where none is available locally.' => ' .', 'This setting can result in excessive CPU consumption and should be used with caution.' => ' CPU .', 'This software is traditionally used to deliver your broadcast to your listeners. You can still broadcast remotely or via HLS if this service is disabled.' => ' . HLS .', 'This software shuffles from playlists of music constantly and plays when no other radio source is available.' => ' .', 'This specifies the minimum time (in minutes) between a song playing on the radio and being available to request again. Set to 0 for no threshold.' => ' ( ) . 0 .', 'This specifies the time range (in minutes) of the song history that the duplicate song prevention algorithm should take into account.' => ' ( ) .', 'This station\'s time zone is currently %{tz}.' => ' %{tz}.', 'This streamer is not scheduled to play at any times.' => ' streamer .', 'This URL is provided within the Discord application.' => ' URL Discord.', 'This web hook is no longer supported. Removing it is recommended.' => ' . .', 'This web hook will only run when the selected event(s) occur on this specific station.' => ' web hook .', 'This will be shown on public player pages if the station is offline. Leave blank to default to a localized version of "%{message}".' => ' . "%{message}".', 'This will be the file name for your backup, include the extension for file type you wish to use. Leave blank to have a name generated automatically.' => ' , . .', 'This will be used as the label when editing individual songs, and will show in API results.' => ' API.', 'This will clear any pending unprocessed messages in all message queues.' => ' .', 'This will produce a significantly smaller backup, but you should make sure to back up your media elsewhere. Note that only locally stored media will be backed up.' => ' , . .', 'Thumbnail Image URL' => ' ', 'Thursday' => '', 'Time' => '', 'Time (sec)' => ' ()', 'Time Display' => ' ', 'Time spent waiting for disk I/O to be completed.' => ' I/O .', 'Time stolen by other virtual machines on the same physical server.' => ' .', 'Time Zone' => ' ', 'Title' => '', 'To alleviate this potential problem with shared CPU resources, hosts assign "credits" to a VPS which are used up according to an algorithm based on the CPU load as well as the time over which the CPU load is generated. If your VM\'s assigned credit is used up, they will take CPU time from your VM and assign it to other VMs on the machine. This is seen as the "Steal" or "St" value.' => ' CPU, "" VPS CPU, CPU. VM , CPU VM VM . "Steal" "St".', 'To customize installation settings, or if automatic updates are disabled, you can follow our standard update instructions to update via your SSH console.' => ' , , SSH.', 'To download the GeoLite database:' => ' GeoLite:', 'To play once per day, set the start and end times to the same value.' => ' , .', 'To restore a backup from your host computer, run:' => ' , :', 'To retrieve detailed unique listeners and client details, an administrator password is often required.' => ' , .', 'To set this schedule to run only within a certain date range, specify a start and end date.' => ' , .', 'To use this feature, a secure (HTTPS) connection is required. Firefox is recommended to avoid static when broadcasting.' => ' , (HTTPS). Firefox .', 'To verify that the code was set up correctly, enter the 6-digit code the app shows you.' => ' , 6- .', 'Today' => '', 'Toggle Menu' => ' ', 'Toggle Sidebar' => ' ', 'Top Browsers by Connected Time' => ' ', 'Top Browsers by Listeners' => ' ', 'Top Countries by Connected Time' => ' ', 'Top Countries by Listeners' => ' ', 'Top Streams by Connected Time' => ' ', 'Top Streams by Listeners' => ' ', 'Total Disk Space' => ' ', 'Total Listener Hours' => ' ', 'Total RAM' => ' RAM', 'Transmitted' => '', 'Triggers' => '', 'Tuesday' => '', 'TuneIn AIR' => 'TuneIn AIR', 'TuneIn Partner ID' => ' TuneIn', 'TuneIn Partner Key' => 'TuneIn ', 'TuneIn Station ID' => 'Id Tunein', 'Two-Factor Authentication' => ' ', 'Two-factor authentication improves the security of your account by requiring a second one-time access code in addition to your password when you log in.' => ' .', 'Typically a website with content about the episode.' => ' .', 'Typically the home page of a podcast.' => ' podcast.', 'Unable to update.' => ' .', 'Unassigned Files' => ' ', 'Uninstall' => '', 'Unique' => '()', 'Unique identifier for the target chat or username of the target channel (in the format @channelusername).' => ' ( @channelusername).', 'Unique Listeners' => ' ', 'Unknown' => '', 'Unknown Artist' => ' ', 'Unknown Title' => ' ', 'Unlisted' => '', 'Unmute' => ' ', 'Unprocessable Files' => ' ', 'Unpublished' => '', 'Unselect All Rows' => ' ', 'Unselect Row' => ' ', 'Upcoming Song Queue' => ' ', 'Update' => '', 'Update AzuraCast' => ' AzuraCast', 'Update AzuraCast via Web' => ' AzuraCast Web', 'Update AzuraCast? Your installation will restart.' => ' AzuraCast? .', 'Update Details' => ' ', 'Update Instructions' => ' ', 'Update Metadata' => ' ', 'Update started. Your installation will restart shortly.' => ' . .', 'Update Station Configuration' => ' ', 'Update via Web' => ' Web', 'Updated' => '', 'Updated successfully.' => ' .', 'Upload a Stereo Tool configuration file from the "Broadcasting" submenu in the station profile.' => ' Stereo Tool "Broadcasting" .', 'Upload Custom Assets' => ' ', 'Upload Stereo Tool Configuration' => ' Stereo', 'Upload the file on this page to automatically extract it into the proper directory.' => ' .', 'Uploaded Time' => ' ', 'URL' => ' URL', 'URL Stub' => 'Stub URL', 'Use' => '', 'Use (Us)' => ' (Us)', 'Use API keys to authenticate with the AzuraCast API using the same permissions as your user account.' => ' API AzuraCast API .', 'Use Browser Default' => ' ', 'Use High-Performance Now Playing Updates' => ' ', 'Use Icecast 2.4 on this server.' => ' Icecast 2.4 .', 'Use Less CPU (Uses More Memory)' => ' Cpu ( )', 'Use Less Memory (Uses More CPU)' => ' ( CpU)', 'Use Liquidsoap on this server.' => ' Liquidsoap .', 'Use Path Instead of Subdomain Endpoint Style' => ' ', 'Use Secure (TLS) SMTP Connection' => ' (Tls) Smtp', 'Use Shoutcast DNAS 2 on this server.' => ' Shoutcast DNAS 2 .', 'Use the Telegram Bot API to send a message to a channel.' => ' Telegram Bot API .', 'Use this form to send a manual metadata update. Note that this will override any existing metadata on the stream.' => ' . .', 'Use Web Proxy for Radio' => ' Web ', 'Used' => '', 'Used for "Forgot Password" functionality, web hooks and other functions.' => ' " ", .', 'User' => '', 'User Accounts' => ' ', 'User Agent' => ' ', 'User Name' => ' ', 'User Permissions' => ' ', 'Username' => ' ', 'Username:' => ' :', 'Users' => '', 'Users with this role will have these permissions across the entire installation.' => ' .', 'Users with this role will have these permissions for this single station.' => ' .', 'Uses either Websockets, Server-Sent Events (SSE) or static JSON files to serve Now Playing data on public pages. This improves performance, especially with large listener volume. Disable this if you are encountering problems with the service or use multiple URLs to serve your public pages.' => ' Websockets, Server-Sent Events (SSE) JSON . , . URL .', 'Using a passkey (like Windows Hello, YubiKey, or your smartphone) allows you to securely log in without needing to enter your password or two-factor code.' => ' ( Windows Hello, YubiKey, smartphone ) , .', 'Using this page, you can customize several sections of the Liquidsoap configuration. This allows you to add advanced functionality to your station\'s AutoDJ.' => ' , Liquidsoap. AutoDJ .', 'Usually enabled for port 465, disabled for ports 587 or 25.' => ' 465, 587 25.', 'Variables are in the form of: ' => ' : ', 'View' => '', 'View Fullscreen' => ' ', 'View Listener Report' => ' ', 'View Profile' => ' ', 'View tracks in playlist' => ' ', 'Visit the Dropbox App Console:' => ' Dropbox:', 'Visit the link below to sign in and generate an access code:' => ' :', 'Visit your Mastodon instance.' => ' Mastodon.', 'Visual Cue Editor' => ' Cue', 'Volume' => '', 'Wait' => '', 'Wait (Wa)' => ' (Wa)', 'Warning' => '', 'Waveform Zoom' => ' ', 'Web DJ' => 'Web DJ', 'Web Hook Details' => ' Web Hook', 'Web Hook Name' => ' Hook Web', 'Web Hook Triggers' => ' Web Hook', 'Web Hook URL' => 'Url Hook Web', 'Web Hooks' => 'Web Hooks', 'Web hooks automatically send a HTTP POST request to the URL you specify to notify it any time one of the triggers you specify occurs on your station.' => ' web hook HTTP POST URL .', 'Web hooks let you connect to external web services and broadcast changes to your station to them.' => ' web hook web .', 'Web Site URL' => 'Web Site URL', 'Web updates are not available for your installation. To update your installation, perform the manual update process instead.' => ' Web . , \' .', 'WebDJ' => 'WebDJ', 'WebDJ connected!' => ' WebDJ !', 'Website' => ' web', 'Wednesday' => '', 'Weight' => '', 'Welcome to AzuraCast!' => ' AzuraCast!', 'Welcome!' => ' !', 'When making API calls, you can pass this value in the "X-API-Key" header to authenticate as yourself.' => ' API, "X-API-Key" .', 'When the song changes and a live streamer/DJ is connected' => ' streamer/DJ ', 'When the station broadcast comes online' => ' ', 'When the station broadcast goes offline' => ' ', 'Whether new episodes should be marked as published or held for review as unpublished.' => ' .', 'Whether the AutoDJ should attempt to avoid duplicate artists and track titles when playing media from this playlist.' => ' AutoDJ .', 'Widget Type' => ' ', 'With selected:' => ' :', 'Worst Performing Songs' => ' ', 'Yes' => '', 'Yesterday' => '', 'You' => '', 'You can also upload files in bulk via SFTP.' => ' SFTP.', 'You can find answers for many common questions in our support documents.' => ' .', 'You can include any special mount point settings here, in either JSON { key: \'value\' } format or XML <key>value</key>' => ' , JSON { key: \'value\' } XML <key></key>', 'You can only perform the actions your user account is allowed to perform.' => ' .', 'You can set a custom URL for this stream that AzuraCast will use when referring to it on the web interface and in the Now Playing API return data. Leave empty to use the default value.' => ' URL AzuraCast Now Playing API. .', 'You may need to connect directly to your IP address:' => ' IP :', 'You may need to connect directly via your IP address:' => ' IP :', 'You will not be able to retrieve it again.' => ' .', 'Your browser does not support passkeys. Consider updating your browser to the latest version.' => ' . .', 'Your full API key is below:' => ' API :', 'Your installation is currently on this release channel:' => ' :', 'Your installation is up to date! No update is required.' => ' ! .', 'Your installation needs to be updated. Updating is recommended for performance and security improvements.' => ' . .', 'Your station does not support reloading configuration. Restart broadcasting instead to apply changes.' => ' . \' .', 'Your station has changes that require a reload to apply.' => ' .', 'Your station is currently not enabled for broadcasting. You can still manage media, playlists, and other station settings. To re-enable broadcasting, edit your station profile.' => ' . , . , <a href="%s"> </a>.', 'Your station supports reloading configuration.' => ' .', 'YouTube' => ' ', 'YP Directory Authorization Hash' => ' Yp ', 'Select...' => '...', 'Too many forgot password attempts' => ' ', 'You have attempted to reset your password too many times. Please wait 30 seconds and try again.' => ' . 30 .', 'Account Recovery' => ' ', 'Account recovery e-mail sent.' => ' e-mail .', 'If the e-mail address you provided is in the system, check your inbox for a password reset message.' => ' , .', 'Too many login attempts' => ' ', 'You have attempted to log in too many times. Please wait 30 seconds and try again.' => ' . 30 .', 'Logged in successfully.' => ' ', 'Complete the setup process to get started.' => ' .', 'Login unsuccessful' => ' ', 'Your credentials could not be verified.' => ' .', 'User not found.' => ' .', 'Invalid token specified.' => ' .', 'Logged in using account recovery token' => ' ', 'Your password has been updated.' => ' .', 'Set Up AzuraCast' => ' AzuraCast', 'Setup has already been completed!' => ' !', 'All Stations' => ' ', 'AzuraCast Application Log' => ' AzuraCast', 'AzuraCast Now Playing Log' => ' AzuraCast ', 'AzuraCast Synchronized Task Log' => ' AzuraCast ', 'AzuraCast Queue Worker Log' => ' AzuraCast ', 'Service Log: %s (%s)' => ' : %s (%s)', 'Nginx Access Log' => ' Nginx', 'Nginx Error Log' => ' Nginx', 'PHP Application Log' => ' PHP', 'Supervisord Log' => ' Supervisord', 'Create a new storage location based on the base directory.' => ' .', 'You cannot modify yourself.' => ' .', 'You cannot remove yourself.' => ' .', 'Test Message' => ' ', 'This is a test message from AzuraCast. If you are receiving this message, it means your e-mail settings are configured correctly.' => ' AzuraCast. , e-mail .', 'Test message sent successfully.' => ' .', 'Less than Thirty Seconds' => ' ', 'Thirty Seconds to One Minute' => ' ', 'One Minute to Five Minutes' => ' ', 'Five Minutes to Ten Minutes' => ' ', 'Ten Minutes to Thirty Minutes' => ' ', 'Thirty Minutes to One Hour' => ' ', 'One Hour to Two Hours' => ' ', 'More than Two Hours' => ' ', 'Mobile Device' => ' ', 'Desktop Browser' => ' ', 'Non-Browser' => ' ', 'Connected Seconds' => ' ', 'File Not Processed: %s' => ' : %s', 'Cover Art' => '', 'File Processing' => ' ', 'No directory specified' => ' ', 'File not specified.' => ' .', 'New path not specified.' => ' .', 'This station is out of available storage space.' => ' .', 'Web hook enabled.' => 'Web Hook .', 'Web hook disabled.' => ' Web Hook .', 'Station reloaded.' => ' .', 'Station restarted.' => ' .', 'Service stopped.' => ' .', 'Service started.' => ' .', 'Service reloaded.' => ' .', 'Service restarted.' => ' .', 'Song skipped.' => ' .', 'Streamer disconnected.' => ' .', 'Station Nginx Configuration' => ' Nginx', 'Liquidsoap Log' => ' Liquidsoap', 'Liquidsoap Configuration' => ' Liquidsoap', 'Icecast Access Log' => ' Icecast', 'Icecast Error Log' => ' Icecast', 'Icecast Configuration' => ' Icecast', 'Shoutcast Log' => ' Shoutcast', 'Shoutcast Configuration' => ' Shoutcast', 'Search engine crawlers are not permitted to use this feature.' => ' .', 'You are not permitted to submit requests.' => ' .', 'This track is not requestable.' => ' .', 'This song was already requested and will play soon.' => ' .', 'This song or artist has been played too recently. Wait a while before requesting it again.' => ' . .', 'You have submitted a request too recently! Please wait before submitting another one.' => ' ! .', 'Your request has been submitted and will be played soon.' => ' .', 'This playlist is not song-based.' => ' .', 'Playlist emptied.' => ' .', 'This playlist is not a sequential playlist.' => ' .', 'Playlist reshuffled.' => ' .', 'Playlist enabled.' => ' .', 'Playlist disabled.' => ' .', 'Playlist successfully imported; %d of %d files were successfully matched.' => ' : %d %d .', 'Playlist applied to folders.' => ' .', '%d files processed.' => '%d .', 'No recording available.' => ' .', 'Record not found' => ' ', 'The uploaded file exceeds the upload_max_filesize directive in php.ini.' => ' upload_max_filesize php.ini.', 'The uploaded file exceeds the MAX_FILE_SIZE directive from the HTML form.' => ' MAX_FILE_SIZE HTML.', 'The uploaded file was only partially uploaded.' => ': .', 'No file was uploaded.' => ' .', 'No temporary directory is available.' => ' .', 'Could not write to filesystem.' => ' .', 'Upload halted by a PHP extension.' => ' PHP.', 'Unspecified error.' => ' .', 'Changes saved successfully.' => ' .', 'Record created successfully.' => ' .', 'Record updated successfully.' => ' .', 'Record deleted successfully.' => ' .', 'Playlist: %s' => ' : %s', 'Streamer: %s' => ': %s', 'The account associated with e-mail address "%s" has been set as an administrator' => ' "%s" ', 'Account not found.' => ' .', 'Roll Back Database' => 'Roll ', 'Running database migrations...' => ' ...', 'Database migration failed: %s' => ' : %s', 'Database rolled back to stable release version "%s".' => ' "%s".', 'AzuraCast Settings' => ' AzuraCast', 'Setting Key' => ' ', 'Setting Value' => ' ', 'Fixtures loaded.' => 'Fixtures ', 'Backing up initial database state...' => ' ...', 'We detected a database restore file from a previous (possibly failed) migration.' => ' ( ) .', 'Attempting to restore that now...' => '\' ...', 'Attempting to roll back to previous database state...' => ' ...', 'Your database was restored due to a failed migration.' => ' .', 'Please report this bug to our developers.' => ' .', 'Restore failed: %s' => ' : %s', 'AzuraCast Backup' => ' AzuraCast', 'Please wait while a backup is generated...' => ' ...', 'Creating temporary directories...' => ' ...', 'Backing up MariaDB...' => ' MariaDB...', 'Creating backup archive...' => ' ...', 'Cleaning up temporary files...' => ' ...', 'Backup complete in %.2f seconds.' => ' %.2f .', 'Backup path %s not found!' => ' %s !', 'Imported locale: %s' => ' : %s', 'Database Migrations' => ' ', 'Database is already up to date!' => ' !', 'Database migration completed!' => ' !', 'AzuraCast Initializing...' => 'AzuraCast ...', 'AzuraCast Setup' => ' AzuraCast', 'Welcome to AzuraCast. Please wait while some key dependencies of AzuraCast are set up...' => ' AzuraCast. AzuraCast ...', 'Running Database Migrations' => ' ', 'Generating Database Proxy Classes' => ' ', 'Reload System Data' => ' ', 'Installing Data Fixtures' => ' ', 'Refreshing All Stations' => ' ', 'AzuraCast is now updated to the latest version!' => ' AzuraCast !', 'AzuraCast installation complete!' => ' AzuraCast !', 'Visit %s to complete setup.' => ' %s .', '%s is not recognized as a service.' => '%s .', 'It may not be registered with Supervisor yet. Restarting broadcasting may help.' => ' . " .', '%s cannot start' => '%s ', 'It is already running.' => ' .', '%s cannot stop' => '%s ', 'It is not running.' => ' .', '%s encountered an error: %s' => '%s : %s', 'Check the log for details.' => ' .', 'You do not have permission to access this portion of the site.' => ' .', 'Cannot submit request: %s' => ' : %s', 'You must be logged in to access this page.' => ' .', 'Record not found.' => ' .', 'File not found.' => ' .', 'Station not found.' => ' .', 'Podcast not found.' => ' Podcast .', 'This station does not currently support this functionality.' => ' .', 'This station does not currently support on-demand media.' => ' .', 'This station does not currently accept requests.' => ' .', 'This value is already used.' => ' .', 'The port %s is in use by another station (%s).' => ' %s (%s).', 'Storage location %s could not be validated: %s' => ' %s : %s', 'Storage location %s already exists.' => ' %s .', 'All Permissions' => '', 'View Station Page' => ' ', 'View Station Reports' => ' ', 'View Station Logs' => ' ', 'Manage Station Profile' => ' ', 'Manage Station Broadcasting' => ' ', 'Manage Station Streamers' => ' Streamers ', 'Manage Station Mount Points' => ' ', 'Manage Station Remote Relays' => ' ', 'Manage Station Media' => ' ', 'Manage Station Automation' => ' ', 'Manage Station Web Hooks' => ' Web Hooks', 'Manage Station Podcasts' => ' podcast ', 'View Administration Page' => ' ', 'View System Logs' => ' ', 'Administer Settings' => ' ', 'Administer API Keys' => ' API', 'Administer Stations' => ' ', 'Administer Custom Fields' => ' ', 'Administer Backups' => ' ', 'Administer Storage Locations' => ' ', 'Runs routine synchronized tasks' => ' ', 'Database' => ' ', 'Web server' => ' ', 'PHP FastCGI Process Manager' => ' PHP FastCGI', 'Now Playing manager service' => ' ', 'PHP queue processing worker' => ' PHP ', 'Cache' => ' Cache', 'SFTP service' => ' SFTP', 'Live Now Playing updates' => ' Live Now Playing', 'Frontend Assets' => ' ', 'This product includes GeoLite2 data created by MaxMind, available from %s.' => ' GeoLite2 MaxMind, %s.', 'IP Geolocation by DB-IP' => ' IP DB-IP', 'GeoLite database not configured for this installation. See System Administration for instructions.' => ' GeoLite . .', 'Installation Not Recently Backed Up' => ' ', 'This installation has not been backed up in the last two weeks.' => ' .', 'Service Not Running: %s' => ' : %s', 'One of the essential services on this installation is not currently running. Visit the system administration and check the system logs to find the cause of this issue.' => ' . .', 'New AzuraCast Stable Release Available' => ' AzuraCast ', 'Version %s is now available. You are currently running version %s. Updating is recommended.' => ' %s . %s. .', 'New AzuraCast Rolling Release Available' => ' AzuraCast ', 'Your installation is currently %d update(s) behind the latest version. Updating is recommended.' => ' %d () .', 'Switch to Stable Channel Available' => ' ', 'Your Rolling Release installation is currently older than the latest Stable release. This means you can switch releases to the "Stable" release channel if desired.' => ' Rolling Release Stable. "" .', 'Synchronization Disabled' => ' ', 'Routine synchronization is currently disabled. Make sure to re-enable it to resume routine maintenance tasks.' => ' . .', 'Synchronization Not Recently Run' => ' ', 'The routine synchronization task has not run recently. This may indicate an error with your installation.' => ' . .', 'The performance profiling extension is currently enabled on this installation.' => ' .', 'You can track the execution time and memory usage of any AzuraCast page or application from the profiler page.' => ' AzuraCast .', 'Profiler Control Panel' => ' ', 'Performance profiling is currently enabled for all requests.' => ' .', 'This can have an adverse impact on system performance. You should disable this when possible.' => ' . .', 'You may want to update your base URL to ensure it is correct.' => ' URL .', 'If you regularly use different URLs to access AzuraCast, you should enable the "Prefer Browser URL" setting.' => ' URL AzuraCast, "Prefer Browser URL".', 'Your "Base URL" setting (%s) does not match the URL you are currently using (%s).' => ' "Base URL" (%s) URL (%s).', 'AzuraCast is free and open-source software.' => ' AzuraCast .', 'If you are enjoying AzuraCast, please consider donating to support our work. We depend on donations to build new features, fix bugs, and keep AzuraCast modern, accessible and free.' => ' AzuraCast, . , , AzuraCast , .', 'Donate to AzuraCast' => ' AzuraCast', 'AzuraCast Installer' => ' AzuraCast', 'Welcome to AzuraCast! Complete the initial server setup by answering a few questions.' => ' AzuraCast! .', 'AzuraCast Updater' => 'AzuraCast Updater', 'Change installation settings?' => ' ;', 'AzuraCast is currently configured to listen on the following ports:' => ' AzuraCast :', 'HTTP Port: %d' => ' HTTP: %d', 'HTTPS Port: %d' => ' HTTPS: %d', 'SFTP Port: %d' => ' SFTP: %d', 'Radio Ports: %s' => ': %s', 'Customize ports used for AzuraCast?' => ' AzuraCast;', 'Writing configuration files...' => ' ...', 'Server configuration complete!' => ' !', 'This file was automatically generated by AzuraCast.' => ' AzuraCast.', 'You can modify it as necessary. To apply changes, restart the Docker containers.' => ' . , Docker.', 'Remove the leading "#" symbol from lines to uncomment them.' => ' "#" .', 'Valid options: %s' => ' : %s', 'Default: %s' => ': %s', 'Additional Environment Variables' => ' ', '(Docker Compose) All Docker containers are prefixed by this name. Do not change this after installation.' => '(Docker Compose) Docker . .', '(Docker Compose) The amount of time to wait before a Docker Compose operation fails. Increase this on lower performance computers.' => '(Docker Compose) Docker. .', 'HTTP Port' => ' HTTP', 'The main port AzuraCast listens to for insecure HTTP connections.' => ' AzuraCast HTTP.', 'HTTPS Port' => ' HTTPS', 'The main port AzuraCast listens to for secure HTTPS connections.' => ' AzuraCast HTTPS.', 'The port AzuraCast listens to for SFTP file management connections.' => ' AzuraCast SFTP.', 'Station Ports' => ' ', 'The ports AzuraCast should listen to for station broadcasts and incoming DJ connections.' => ' AzuraCast DJ.', 'Docker User UID' => 'UID ', 'Set the UID of the user running inside the Docker containers. Matching this with your host UID can fix permission issues.' => ' UID Docker. .', 'Docker User GID' => 'GID ', 'Set the GID of the user running inside the Docker containers. Matching this with your host GID can fix permission issues.' => ' GID Docker. GID .', 'Use Podman instead of Docker.' => ' Podman Docker.', 'Advanced: Use Privileged Docker Settings' => ': Docker', 'The locale to use for CLI commands.' => ' CLI.', 'The application environment.' => ' .', 'Manually modify the logging level.' => ' .', 'This allows you to log debug-level errors temporarily (for problem-solving) or reduce the volume of logs that are produced by your installation, without needing to modify whether your installation is a production or development instance.' => ' ( ) , .', 'Enable Custom Code Plugins' => ' ', 'Enable the composer "merge" functionality to combine the main application\'s composer.json file with any plugin composer files. This can have performance implications, so you should only use it if you use one or more plugins with their own Composer dependencies.' => ' "" composer.json . , plugins .', 'Minimum Port for Station Port Assignment' => ' ', 'Modify this if your stations are listening on nonstandard ports.' => ' .', 'Maximum Port for Station Port Assignment' => ' ', 'Show Detailed Slim Application Errors' => ' Slim', 'This allows you to debug Slim Application Errors you may encounter. Please report any Slim Application Error logs to the development team on GitHub.' => ' Slim . Slim GitHub.', 'MariaDB Host' => ' MariaDB', 'Do not modify this after installation.' => ' .', 'MariaDB Port' => 'MariaDB Port', 'MariaDB Username' => 'MariaDB Username', 'MariaDB Password' => ' MariaDb', 'MariaDB Database Name' => ' MariaDb', 'Auto-generate Random MariaDB Root Password' => ' Root MariaDb', 'MariaDB Root Password' => ' Root MariaDb', 'Enable MariaDB Slow Query Log' => ' MariaDb ', 'Log slower queries to diagnose possible database issues. Only turn this on if needed.' => ' . .', 'MariaDB Maximum Connections' => 'MariaDb ', 'Set the amount of allowed connections to the database. This value should be increased if you are seeing the "Too many connections" error in the logs.' => ' . " " .', 'MariaDB InnoDB Buffer Pool Size' => ' Db Innodb Buffer', 'The InnoDB buffer pool size controls how much data & indexes are kept in memory. Making sure that this value is as large as possible reduces the amount of disk IO.' => ' InnoDB & . IO.', 'MariaDB InnoDB Log File Size' => ' Innodb MariaDb', 'The InnoDB log file is used to achieve data durability in case of crashes or unexpected shutoffs and to allow the DB to better optimize IO for write operations.' => ' InnoDB shutoffs DB IO .', 'Enable Redis' => ' Redis', 'Disable to use a flatfile cache instead of Redis.' => ' Redis.', 'Redis Host' => ' Redis', 'Redis Port' => ' Redis', 'PHP Maximum POST File Size' => 'PHP POST', 'PHP Memory Limit' => ' PHP', 'PHP Script Maximum Execution Time (Seconds)' => 'PHP Script ', 'Short Sync Task Execution Time (Seconds)' => ' ', 'The maximum execution time (and lock timeout) for the 15-second, 1-minute and 5-minute synchronization tasks.' => ' ( ) 15 , 1 5 .', 'Long Sync Task Execution Time (Seconds)' => ' ', 'The maximum execution time (and lock timeout) for the 1-hour synchronization task.' => ' ( ) .', 'Now Playing Delay Time (Seconds)' => ' ()', 'The delay between Now Playing checks for every station. Decrease for more frequent checks at the expense of performance; increase for less frequent checks but better performance (for large installations).' => ' . , ( ).', 'Now Playing Max Concurrent Processes' => ' ', 'The maximum number of concurrent processes for now playing updates. Increasing this can help reduce the latency between updates now playing updates on large installations.' => ' . .', 'Maximum PHP-FPM Worker Processes' => ' PHP-FPM', 'Enable Performance Profiling Extension' => ' ', 'Profiling data can be viewed by visiting %s.' => ' %s.', 'Profile Performance on All Requests' => ' ', 'This will have a significant performance impact on your installation.' => ' .', 'Profiling Extension HTTP Key' => ' HTTP', 'The value for the "SPX_KEY" parameter for viewing profiling pages.' => ' "SPX_ KEY" .', 'Profiling Extension IP Allow List' => ' Ip ', 'Nginx Max Client Body Size' => ' Nginx', 'This is the total size any single request body can be. AzuraCast chunks its uploads into smaller file sizes, so this only applies when doing custom uploads via the API. Sizes should be listed in a format like "100K", "128M", "1G" for kilobytes, megabytes, and gigabytes respectively.' => ' . AzuraCast , API. "100K", "128M", "1G" kilobytes, megabytes, gigabytes .', 'Enable web-based Docker image updates' => ' Docker ', 'Extra Ubuntu packages to install upon startup' => ' Ubuntu ', 'Separate package names with a space. Packages will be installed during container startup.' => ' . .', 'Album Artist' => ' ', 'Album Artist Sort Order' => ' ', 'Album Sort Order' => ' ', 'Band' => '', 'BPM' => 'BPM', 'Comment' => '', 'Commercial Information' => ' ', 'Composer' => '', 'Composer Sort Order' => ' ', 'Conductor' => '', 'Content Group Description' => ' ', 'Encoded By' => ' ', 'Encoder Settings' => ' ', 'Encoding Time' => ' ', 'File Owner' => ' ', 'File Type' => ' ', 'Initial Key' => ' ', 'Internet Radio Station Name' => ' ', 'Internet Radio Station Owner' => ' Internet', 'Involved People List' => ' ', 'Linked Information' => ' ', 'Lyricist' => 'Lyricist', 'Media Type' => ' ', 'Mood' => '', 'Music CD Identifier' => ' CD ', 'Musician Credits List' => ' ', 'Original Album' => ' ', 'Original Artist' => ' ', 'Original Filename' => ' ', 'Original Lyricist' => ' ', 'Original Release Time' => ' ', 'Original Year' => ' ', 'Part of a Compilation' => ' ', 'Part of a Set' => ' ', 'Performer Sort Order' => ' ', 'Playlist Delay' => ' ', 'Produced Notice' => ' ', 'Publisher' => '', 'Recording Time' => ' ', 'Release Time' => ' ', 'Remixer' => 'Remixer', 'Set Subtitle' => ' ', 'Subtitle' => '', 'Tagging Time' => ' ', 'Terms of Use' => ' ', 'Title Sort Order' => ' ', 'Track Number' => ' ', 'Unsynchronised Lyrics' => ' ', 'URL Artist' => ' URL', 'URL File' => ' URL', 'URL Payment' => ' URL', 'URL Publisher' => ' URL', 'URL Source' => ' URL', 'URL Station' => ' URL', 'URL User' => ' URL', 'Year' => '', 'An account recovery link has been requested for your account on "%s".' => ' "%s".', 'Click the link below to log in to your account.' => ' .', 'Footer' => '', 'Powered by %s' => ' %s', 'Forgot Password' => ' ', 'Sign in' => '', 'Send Recovery E-mail' => ' Email ', 'Enter Two-Factor Code' => ' ', 'Your account uses a two-factor security code. Enter the code your device is currently showing below.' => ' . .', 'Security Code' => ' ', 'This installation\'s administrator has not configured this functionality.' => ' .', 'Contact an administrator to reset your password following the instructions in our documentation:' => ' :', 'Password Reset Instructions' => ' ', ), ), ); ```
/content/code_sandbox/translations/el_GR.UTF-8/LC_MESSAGES/default.php
php
2016-04-30T21:41:23
2024-08-16T18:27:26
AzuraCast
AzuraCast/AzuraCast
2,978
28,919
```php <?php return array ( 'domain' => 'default', 'plural-forms' => 'nplurals=2; plural=(n != 1);', 'messages' => array ( '' => array ( '# Episodes' => 'afleveringen', '# Songs' => 'Nummer', '%{ dj } is now live on %{ station }! Tune in now: %{ url }' => '%{ dj } is nu live op %{ station }! speel nu af: %{ url }', '%{ hours } hours' => '%{ hours } uren', '%{ minutes } minutes' => '%{ minutes } minuten', '%{ seconds } seconds' => '%{ seconds } seconden', '%{ station } is back online! Tune in now: %{ url }' => '%{ station } is weer online! Draai nu: %{ url }', '%{ station } is going offline for now.' => '%{ station } gaat nu offline voor nu.', '%{filesCount} File' => array ( 0 => '%{filesCount} Bestand', 1 => '%{filesCount} Bestanden', ), '%{listeners} Listener' => array ( 0 => '%{listeners} Luisteraar', 1 => '%{listeners} luisteraars', ), '%{messages} queued messages' => '%{messages} berichten in wachtrij', '%{name} - Copy' => '%{name} - Kopiren', '%{numPlaylists} playlist' => array ( 0 => '%{numPlaylists} afspeellijst', 1 => '%{numPlaylists} afspeellijst', ), '%{numSongs} uploaded song' => array ( 0 => '%{numSongs} gepload nummer', 1 => '%{numSongs} geploade nummers', ), '%{spaceUsed} of %{spaceTotal} Used' => '%{spaceUsed} van %{spaceTotal} gebruikt', '%{spaceUsed} Used' => '%{spaceUsed} Gebruikt', '%{station} - Copy' => '%{station} - Kopieer', '12 Hour' => '12 uur', '24 Hour' => '24 uur', 'A completely random track is picked for playback every time the queue is populated.' => 'Elke keer dat de wachtrij wordt gevuld, wordt een volledig willekeurige track gekozen om af te spelen.', 'A name for this stream that will be used internally in code. Should only contain letters, numbers, and underscores (i.e. "stream_lofi").' => 'Een naam voor deze stream die intern in code wordt gebruikt. Mag alleen letters, cijfers en onderstrepingstekens bevatten (d.w.z. "stream_lofi").', 'A passkey has been selected. Submit this form to add it to your account.' => 'Er is een toegangssleutel geselecteerd. Stuur dit formulier in om het aan uw account toe te voegen.', 'A playlist containing media files hosted on this server.' => 'Een afspeellijst met mediabestanden die op deze server worden gehost.', 'A playlist that instructs the station to play from a remote URL.' => 'Een afspeellijst afspelen vanaf een andere externe URL.', 'About AzuraRelay' => 'Over AzuraRelay', 'About Master_me' => 'Over Master_me', 'About Release Channels' => 'Over Release Kanalen', 'Access Code' => 'Toegangscode', 'Access Key ID' => 'Toegangs-ID', 'Access Token' => 'Toegangstoken', 'Account Details' => 'Accountdetails', 'Account is Active' => 'Account is actief', 'Account List' => 'Accountoverzicht', 'Actions' => 'Acties', 'Adapter' => 'Adapter', 'Add API Key' => 'API-sleutel toevoegen', 'Add Custom Field' => 'Voeg aangepast veld toe', 'Add Episode' => 'Aflevering toevoegen', 'Add Files to Playlist' => 'Bestanden toevoegen aan afspeellijst', 'Add HLS Stream' => 'HLS Stream toevoegen', 'Add Mount Point' => 'Mount point toevoegen', 'Add New GitHub Issue' => 'Voeg nieuw GitHub probleem toe', 'Add New Passkey' => 'Een nieuwe Passkey toevoegen', 'Add Playlist' => 'Afspeellijst toevoegen', 'Add Podcast' => 'Podcast toevoegen', 'Add Remote Relay' => 'Externe relay toevoegen', 'Add Role' => 'Rol toevoegen', 'Add Schedule Item' => 'Voeg item toe aan schema', 'Add SFTP User' => 'SFTP-gebruiker toevoegen', 'Add Station' => 'Station toevoegen', 'Add Storage Location' => 'Voeg opslaglocatie toe', 'Add Streamer' => 'Streamer toevoegen', 'Add User' => 'Gebruiker toevoegen', 'Add Web Hook' => 'Web hook toevoegen', 'Administration' => 'Administratie', 'Advanced' => 'Geavanceerd', 'Advanced Configuration' => 'Geavanceerde configuratie', 'Advanced Manual AutoDJ Scheduling Options' => 'Geavanceerde handmatige AutoDJ planning instellingen', 'Aggregate listener statistics are used to show station reports across the system. IP-based listener statistics are used to view live listener tracking and may be required for royalty reports.' => 'Luisterstatistieken worden gebruikt om stationsrapporten te tonen over het binnen het systeem. Op IP-gebaseerde luisterstatistieken worden gebruikt om de locatie van de luisteraar op te halen.', 'Album' => 'Album', 'Album Art' => 'Albumhoes', 'Alert' => 'Waarschuwing', 'All Days' => 'Alle dagen', 'All listed domain names should point to this AzuraCast installation. Separate multiple domain names with commas.' => 'Alle vermelde domeinnamen moeten naar deze AzuraCast installatie wijzen. Scheid meerdere domeinnamen met komma\'s.', 'All Playlists' => 'Alle afspeellijsten', 'All Podcasts' => 'Alle Podcasts', 'All Types' => 'Alle typen', 'All values in the NowPlaying API response are available for use. Any empty fields are ignored.' => 'Alle waarden in het Nu Speelt API-antwoord zijn beschikbaar voor gebruik. Eventuele lege velden worden genegeerd.', 'Allow Requests from This Playlist' => 'Sta liedjes verzoeken toe van deze afspeellijst', 'Allow Song Requests' => 'Accepteer verzoeknummers', 'Allow Streamers / DJs' => 'Streamers / DJ\'s toestaan', 'Allowed IP Addresses' => 'Toegestane IP-adressen', 'Always Use HTTPS' => 'Gebruik altijd HTTPS', 'Amplify: Amplification (dB)' => 'Versterk: Versterking (dB)', 'An error occurred and your request could not be completed.' => 'Er is een fout opgetreden en uw verzoek kon niet worden voltooid.', 'An error occurred while loading the station profile:' => 'Er is een fout opgetreden tijdens het laden van het station profiel:', 'An error occurred with the WebDJ socket.' => 'Er is een fout opgetreden met de WebDJ socket.', 'Analytics' => 'Analyses', 'Analyze and reprocess the selected media' => 'Analyseer en verwerk de geselecteerde media', 'Any of the following file types are accepted:' => 'n van de volgende bestandstypen worden geaccepteerd:', 'Any time a live streamer/DJ connects to the stream' => 'Elke keer dat een live streamer/DJ verbinding maakt met de stream', 'Any time a live streamer/DJ disconnects from the stream' => 'Elke keer dat een live streamer/DJ verbinding verbreekt van de stream', 'Any time the currently playing song changes' => 'Elke keer dat het huidige nummer verandert', 'Any time the listener count decreases' => 'Elke keer dat het aantal luisteraars afneemt', 'Any time the listener count increases' => 'Elke keer als het aantal luisteraars stijgt', 'API "Access-Control-Allow-Origin" Header' => 'API "Access-Control-Allow-Origin" Header', 'API Documentation' => 'API-documentatie', 'API Key Description/Comments' => 'API Key Omschrijving/Opmerkingen', 'API Keys' => 'API-Sleutels', 'API Token' => 'API-token', 'API Version' => 'API versie', 'App Key' => 'App-sleutel', 'App Secret' => 'App secret', 'Apple Podcasts' => 'Alle Podcasts', 'Apply audio processors (like compressors, limiters, or equalizers) to your stream to create a more uniform sound or enhance the listening experience. Processing requires extra CPU resources, so it may slow down your server.' => 'Audioprocessoren (zoals compressors, limiters, of equaliers) toepassen op uw stream om een uniform geluid te maken of de luisterervaring te verbeteren. Gebruik hiervan vereist extra CPU-bronnen, hierdoor kan uw server vertragen.', 'Apply for an API key at Last.fm' => 'Een API-sleutel aanvragen bij Last.fm', 'Apply Playlist to Folders' => 'Afspeellijst toepassen op mappen', 'Apply Post-processing to Live Streams' => 'Post-processing toepassen op Live Streams', 'Apply to Folders' => 'Toepassen op mappen', 'Are you sure?' => 'Weet je het zeker?', 'Art' => 'Albumhoes', 'Artist' => 'Artiest', 'Artwork' => 'Kunstwerk', 'Artwork must be a minimum size of 1400 x 1400 pixels and a maximum size of 3000 x 3000 pixels for Apple Podcasts.' => 'Illustraties moeten een minimale grootte hebben van 1400 x 1400 pixels en een maximale grootte van 3000 x 3000 pixels voor Apple Podcasts.', 'Attempt to Automatically Retrieve ISRC When Missing' => 'Probeer ISRC automatisch op te halen wanneer deze ontbreekt', 'Audio Bitrate (kbps)' => 'Audio bitsnelheid (kbps)', 'Audio Format' => 'Audio Formaat', 'Audio Post-processing Method' => 'Audio Processing Methode', 'Audio Processing' => 'Audio Processing', 'Audio transcoding applications like Liquidsoap use a consistent amount of CPU over time, which gradually drains this available credit. If you regularly see stolen CPU time, you should consider migrating to a VM that has CPU resources dedicated to your instance.' => 'Audio-transcodering applicaties zoals Liquidsoap gebruiken na verloop van tijd een consistente hoeveelheid CPU-gebruik, wat geleidelijk dit beschikbare krediet verliest. Als u regelmatig gestolen CPU-tijd ziet, kunt u overwegen te migreren naar een VM dat CPU middelen heeft die aan uw instantie zijn toegewijd.', 'Audit Log' => 'Controle logboek', 'Author' => 'Auteur', 'Auto-Assign Value' => 'Waarde automatisch toewijzen', 'AutoCue analyzes your music and automatically calculates cue points, fade points, and volume levels for a consistent listening experience.' => 'AutoCue analyseert uw muziek en berekent automatisch cue-punten, fade-punten en volume niveaus voor een consistente luisterervaring.', 'AutoDJ' => 'AutoDJ', 'AutoDJ Bitrate (kbps)' => 'AutoDJ bitrate (kbps)', 'AutoDJ Disabled' => 'AutoDJ uitgeschakeld', 'AutoDJ Format' => 'AutoDJ formaat', 'AutoDJ has been disabled for this station. No music will automatically be played when a source is not live.' => 'AutoDJ is uitgeschakeld. Er zal geen muziek worden afgespeeld wanneer er niet live wordt uitgezonden.', 'AutoDJ Queue' => 'AutoDJ Wachtrij', 'AutoDJ Queue Length' => 'AutoDJ wachtrij lengte', 'AutoDJ Service' => 'AutoDJ-service', 'Automatic Backups' => 'Automatische back-ups', 'Automatically create new podcast episodes when media is added to a specified playlist.' => 'Maak automatisch nieuwe podcast afleveringen aan als de media aan een opgegeven afspeellijst is toegevoegd.', 'Automatically Publish New Episodes' => 'Publiceer automatisch nieuwe afleveringen', 'Automatically publish to a Mastodon instance.' => 'Publiceer automatisch naar een Mastodon installatie.', 'Automatically Scroll to Bottom' => 'Scroll automatisch naar beneden', 'Automatically send a customized message to your Discord server.' => 'Stuur automatisch een aangepast bericht naar je Discord server.', 'Automatically send a message to any URL when your station data changes.' => 'Stuur automatisch een bericht naar een URL wanneer uw station gegevens veranderen.', 'Automatically Set from ID3v2 Value' => 'Automatisch instellen op basis van ID3v2 waarde', 'Available Logs' => 'Beschikbare logs', 'Avatar Service' => 'Avater service', 'Avatars are retrieved based on your e-mail address from the %{ service } service. Click to manage your %{ service } settings.' => 'Avatars worden opgehaald op basis van je e-mailadres van de %{service} service. Klik om je %{service} instellingen te beheren.', 'Average Listeners' => 'Gemiddeld aantal luisteraars', 'Avoid Duplicate Artists/Titles' => 'Voorkom dubbele artiesten/titels', 'AzuraCast First-Time Setup' => 'AzuraCast installatie', 'AzuraCast Instance Name' => 'AzuraCast: Stations Naam', 'AzuraCast ships with a built-in free IP geolocation database. You may prefer to use the MaxMind GeoLite service instead to achieve more accurate results. Using MaxMind GeoLite requires a license key, but once the key is provided, we will automatically keep the database updated.' => 'AzuraCast werkt met een ingebouwde gratis IP geolocatie database. U kunt in plaats daarvan de MaxMind GeoLite gebruiken om nauwkeurigere resultaten te bereiken. Het gebruik van MaxMind GeoLite vereist een licentiesleutel, maar zodra de sleutel is ingevult, zullen we de database automatisch op de hoogte houden.', 'AzuraCast Update Checks' => 'AzuraCast update controles', 'AzuraCast User' => 'AzuraCast gebruiker', 'AzuraCast uses a role-based access control system. Roles are given permissions to certain sections of the site, then users are assigned into those roles.' => 'AzuraCast gebruikt een op rol gebaseerd toegangscontrolesysteem. Rollen krijgen machtigingen voor bepaalde delen van de site, waarna gebruikers worden toegewezen aan deze rollen.', 'AzuraCast Wiki' => 'AzuraCast Wiki', 'AzuraCast will scan the uploaded file for matches in this station\'s music library. Media should already be uploaded before running this step. You can re-run this tool as many times as needed.' => 'AzuraCast zal het geploade bestand scannen voor overeenkomsten in de muziekbibliotheek van dit station. Media dient gepload te zijn voor deze stap wordt uitgevoerd. Je kunt deze tool opnieuw uitvoeren, zo vaak als nodig is.', 'AzuraRelay is a standalone service that connects to your AzuraCast instance, automatically relays your stations via its own server, then reports the listener details back to your main instance. This page shows all currently connected instances.' => 'AzuraRelay is een zelfstandige service die verbinding maakt met uw AzuraCast installatie. verspreid automatisch uw stations via een andere server en meldt dan de luistergegevens terug naar uw hoofdserver. Deze pagina toont alle momenteel aangesloten relay servers.', 'Back' => 'Terug', 'Backing up your installation is strongly recommended before any update.' => 'Een back-up van uw installatie wordt sterk aanbevolen voordat u een update uitvoert.', 'Backup' => 'Back-up', 'Backup Format' => 'Backup Formaat', 'Backups' => 'Back-ups', 'Balanced' => 'Gebalanceerd', 'Banned Countries' => 'Geblokkeerde landen', 'Banned IP Addresses' => 'Geblokkeerde e-mailadressen', 'Banned User Agents' => 'Verbannen Gebruikers', 'Base Station Directory' => 'Station basis directory', 'Base Theme for Public Pages' => 'Basis thema voor openbare pagina\'s', 'Basic Info' => 'Algemene informatie', 'Basic Information' => 'Algemene Informatie', 'Basic Normalization and Compression' => 'Basis normalisatie en compressie', 'Best & Worst' => 'Beste & slechtste', 'Best Performing Songs' => 'Best presterende nummers', 'Bit Rate' => 'Bit Rate', 'Bitrate' => 'Bitrate', 'Bot Token' => 'Bot Token', 'Bot/Crawler' => 'Bot/Crawler', 'Branding' => 'Huisstijl', 'Branding Settings' => 'Merk instellingen', 'Broadcast AutoDJ to Remote Station' => 'Zend AutoDJ uit naar het station', 'Broadcasting' => 'Uitzenden', 'Broadcasting Service' => 'Uitzend-service', 'Broadcasts' => 'Uitzendingen', 'Browser' => 'Browser', 'Browser Default' => 'Browser standaard', 'Browser Icon' => 'Browser icoon', 'Browsers' => 'Browsers', 'Bucket Name' => 'Bucket Naam', 'Bulk Edit Episodes' => 'Bulk bewerken afleveringen', 'Bulk Media Import/Export' => 'Bulk Media Import/Export', 'by' => 'van', 'By default, radio stations broadcast on their own ports (i.e. 8000). If you\'re using a service like CloudFlare or accessing your radio station by SSL, you should enable this feature, which routes all radio through the web ports (80 and 443).' => 'Een radiouitzending is standaard te beluisteren op zijn eigen poorten (bijv. 8000). Wanneer je gebruikt maakt van een service als CloudFlare, of je je radiostation wilt beveiligen met SSL, dien je deze optie in te schakelen. Deze optie zorgt ervoor dat al het radioverkeer via web poorten wordt verzonden (80 en 443).', 'Cached' => 'Gebufferd', 'Cancel' => 'Annuleren', 'Categories' => 'Categorien', 'Change' => 'Wijzig', 'Change Password' => 'Wachtwoord Wijzigen', 'Changes' => 'Wijzigingen', 'Changes saved.' => 'Wijzigingen opgeslagen.', 'Character Set Encoding' => 'Karaktercodering', 'Chat ID' => 'Chat ID', 'Check for Updates' => 'Controleren op updates', 'Check this box to apply post-processing to all audio, including live streams. Uncheck this box to only apply post-processing to the AutoDJ.' => 'Vink dit selectievakje aan om de post-audioproccesing toe te passen op alle audio, inclusief live streams. Haal het vinkje weg om alleen post-audioproccesing toe te passen op de AutoDJ.', 'Check Web Services for Album Art for "Now Playing" Tracks' => 'Controleer de webservices voor Albumhoezen voor het Huidig nummer', 'Check Web Services for Album Art When Uploading Media' => 'Controleer de webservices voor Albumhoezen tijdens het uploaden van de media', 'Choose a method to use when transitioning from one song to another. Smart Mode considers the volume of the two tracks when fading for a smoother effect, but requires more CPU resources.' => 'Kies een methode om te gebruiken tijdens de overgang van het ene nummer naar het andere. Slimme modus bekijkt het volume van beide nummers voor een vloeiende overgang, dit belast de CPU echter meer.', 'Choose a name for this webhook that will help you distinguish it from others. This will only be shown on the administration page.' => 'Kies een naam voor deze webhook die u helpt om het van anderen te onderscheiden. Dit wordt alleen getoond op de beheerpagina.', 'Choose a new password for your account.' => 'Kies een nieuw wachtwoord voor uw account.', 'City' => 'Woonplaats', 'Clear' => 'Leegmaken', 'Clear all media from playlist?' => 'Alle media uit afspeellijst wissen?', 'Clear All Message Queues' => 'Alle berichtenwachtrijen leegmaken', 'Clear All Pending Requests?' => 'Alle verzoeknummers in de wachtrij verwijderen?', 'Clear Artwork' => 'Verwijder Illustratie', 'Clear Cache' => 'Cache legen', 'Clear Field' => 'Veld wissen', 'Clear File' => 'Bestand wissen', 'Clear Filters' => 'Filters wissen', 'Clear Image' => 'Afbeelding wissen', 'Clear List' => 'Wis lijst', 'Clear Media' => 'Media wissen', 'Clear Pending Requests' => 'Verwijder verzoeknummer uit de wachtrij', 'Clear Queue' => 'Wachtrij legen', 'Clear Upcoming Song Queue' => 'Wis de aanstaande muziek in wachtrij lijst', 'Clear Upcoming Song Queue?' => 'Wil je de aankomende nummers uit de wachterij verwijderen?', 'Clearing the application cache may log you out of your session.' => 'Als u de applicatiecache wist, wordt u mogelijk uit uw sessie afgemeld.', 'Click "Generate new license key".' => 'Klik op "Genereer nieuwe licentiesleutel".', 'Click "New Application"' => 'Klik op "Nieuwe Applicatie"', 'Click the "Preferences" link, then "Development" on the left side menu.' => 'Klik op de "Voorkeuren" link, dan op "Ontwikkeling" in het menu aan de linkerkant.', 'Click the button below to generate a CSV file with all of this station\'s media. You can make any necessary changes, and then import the file using the file picker on the right.' => 'Klik op de knop hieronder om een Csv-bestand te genereren met alle media van dit station. U kunt alle noodzakelijke wijzigingen aanbrengen en het bestand importeren met behulp van de bestandsviewer aan de rechterkant.', 'Click the button below to open your browser window to select a passkey.' => 'Klik op de knop hieronder om uw browservenster te openen om een toegangscode te selecteren.', 'Click the button below to retry loading the page.' => 'Klik op de knop hieronder om de pagina opnieuw te laden.', 'Client' => 'Klant', 'Clients' => 'Klanten', 'Clients by Connected Time' => 'Klanten door Connected Time', 'Clone' => 'Kloon', 'Clone Station' => 'Station klonen', 'Close' => 'Sluit', 'CloudFlare (CF-Connecting-IP)' => 'CloudFlares (CF-Connecting-IP)', 'Code from Authenticator App' => 'Code van Authenticator App', 'Collect aggregate listener statistics and IP-based listener statistics' => 'Verzamel luisterstatistieken en IP-gebaseerde luisterstatistieken', 'Comments' => 'Opmerkingen', 'Complete the setup process by providing some information about your broadcast environment. These settings can be changed later from the administration panel.' => 'Voltooi de installatie door het verstrekken van informatie over je uitzendomgeving. Deze instellingen kunnen later gewijzigd worden vanuit het administratiepaneel.', 'Configure' => 'Configureren', 'Configure Backups' => 'Back-ups configureren', 'Confirm' => 'Bevestigen', 'Confirm New Password' => 'Bevestig nieuw wachtwoord', 'Connected AzuraRelays' => 'Verbonden AzuraRelays', 'Connection Information' => 'Connectie informatie', 'Contains explicit content' => 'Bevat expliciete inhoud', 'Continue the setup process by creating your first radio station below. You can edit any of these details later.' => 'Ga verder met de installatie door je eerste radiostation aan te maken. Je kunt alle instellingen later nogmaals aanpassen.', 'Continuous Play' => 'Continu spelen', 'Control how this playlist is handled by the AutoDJ software.' => 'Bepaal hoe deze afspeellijst wordt behandeld door de AutoDJ software.', 'Copied!' => 'Gekopieerd!', 'Copies older than the specified number of days will automatically be deleted. Set to zero to disable automatic deletion.' => 'Kopies ouder dan het opgegeven aantal dagen zullen automatisch worden verwijderd. Zet op nul om automatische verwijdering uit te schakelen.', 'Copy associated media and folders.' => 'Kopieer bijbehorende media en mappen.', 'Copy scheduled playback times.' => 'Kopieer geplande afspeeltijden.', 'Copy to Clipboard' => 'Kopiren naar klembord', 'Copy to New Station' => 'Kopieer naar een nieuw station', 'Could not upload file.' => 'Kon het bestand niet uploaden.', 'Countries' => 'Landen', 'Country' => 'Land', 'CPU Load' => 'CPU belasting', 'CPU Stats Help' => 'Hulp bij CPU-statistieken', 'Create a new application. Choose "Scoped Access", select your preferred level of access, then name your app. Do not name it "AzuraCast", but rather use a name specific to your installation.' => 'Maak een nieuwe toepassing. Kies "Scoped Access", selecteer uw voorkeursniveau voor toegang, en noem uw app. Noem het niet "AzuraCast", maar gebruik een naam specifiek voor uw installatie.', 'Create a New Radio Station' => 'Maak een nieuw radiostation', 'Create Account' => 'Account Aanmaken', 'Create an account on the MaxMind developer site.' => 'Maak een account aan op de MaxMind ontwikkelaars site.', 'Create and Continue' => 'Aanmaken en doorgaan', 'Create custom fields to store extra metadata about each media file uploaded to your station libraries.' => 'Maak aangepaste velden om extra metadata op te slaan over elk mediabestand dat is gepload naar uw station bibliotheken.', 'Create Directory' => 'Maak map', 'Create New Key' => 'Nieuwe sleutel maken', 'Create New Playlist for Each Folder' => 'Nieuwe afspeellijst voor elke map aanmaken', 'Create podcast episodes independent of your station\'s media collection.' => 'Maak podcast afleveringen onafhankelijk van de media collectie van je station aan.', 'Create Station' => 'Creer een nieuw radiostation', 'Critical' => 'Kritisch', 'Crossfade Duration (Seconds)' => 'Lengte van crossfade (seconden)', 'Crossfade Method' => 'Crossfade methode', 'Cue' => 'Stop (in cue mode)', 'Current Configuration File' => 'Huidig configuratie bestand', 'Current Custom Fallback File' => 'Huidig aangepast terugvalbestand', 'Current Installed Version' => 'Huidige genstalleerde versie', 'Current Intro File' => 'Huidige Intro Bestand', 'Current Password' => 'Huidig wachtwoord', 'Current Podcast Media' => 'Huidige Podcast Media', 'Custom' => 'Aangepast', 'Custom API Base URL' => 'Aangepaste API basis URL', 'Custom Branding' => 'Aangepaste huisstijl', 'Custom Configuration' => 'Aangepaste configuratie', 'Custom CSS for Internal Pages' => 'Aangepaste CSS voor interne pagina\'s', 'Custom CSS for Public Pages' => 'Aangepaste CSS voor openbare pagina\'s', 'Custom Cues: Cue-In Point (seconds)' => 'Op maat gemaakte Cues: In rij staan (seconden)', 'Custom Cues: Cue-Out Point (seconds)' => 'Op maat gemaakte Cues: In rij staan (seconden)', 'Custom Fading: Fade-In Time (seconds)' => 'Op maat gemaakte Fade in (seconden)', 'Custom Fading: Fade-Out Time (seconds)' => 'Op maat gemaakte Fade out (seconden)', 'Custom Fallback File' => 'Aangepast terugvalbestand', 'Custom Fields' => 'Aangepaste velden', 'Custom Frontend Configuration' => 'Aangepaste front-end configuratie', 'Custom HTML for Public Pages' => 'Aangepaste HTML voor openbare pagina\'s', 'Custom JS for Public Pages' => 'Aangepaste JS voor openbare pagina\'s', 'Customize' => 'Aanpassen', 'Customize Administrator Password' => 'Beheerderswachtwoord aanpassen', 'Customize AzuraCast Settings' => 'AzuraCast instellingen aanpassen', 'Customize Broadcasting Port' => 'Uitzendpoort aanpassen', 'Customize Copy' => 'Kopie aanpassen', 'Customize DJ/Streamer Mount Point' => 'DJ/Streamer Mount Point aanpassen', 'Customize DJ/Streamer Port' => 'DJ/Streamer poort aanpassen', 'Customize Internal Request Processing Port' => 'Interne request verwerkingspoort aanpassen', 'Customize Source Password' => 'Bronwachtwoord aanpassen', 'Customize the number of songs that will appear in the "Song History" section for this station and in all public APIs.' => 'Pas het aantal nummers aan die worden getoond in de "Afspeelgeschiedenis" sectie voor dit station en in alle openbare API\'s.', 'Dark' => 'Donker', 'Dashboard' => 'Dashboard', 'Date Played' => 'Datum afgespeeld', 'Date Requested' => 'Datum aangevraagd', 'Date/Time' => 'Datum/Tijd', 'Date/Time (Browser)' => 'Datum/Tijd (Browser)', 'Date/Time (Station)' => 'Datum/Tijd (Station)', 'Days of Playback History to Keep' => 'Aantal dagen waarvan afspeel geschiedenis bewaart dient te blijven', 'Deactivate Streamer on Disconnect (Seconds)' => 'Streamer uitschakelen bij verbreken van verbinding (aantal seconden)', 'Debug' => 'Foutopsporing', 'Default Album Art' => 'Standaard Albumhoes', 'Default Album Art URL' => 'URL van standaard albumhoes', 'Default Avatar URL' => 'Standaard Avatar URL', 'Default Live Broadcast Message' => 'Standaard Live Broadcast Bericht', 'Default Mount' => 'Standaard mount point', 'Delete' => 'Verwijderen', 'Delete %{ num } episodes?' => '%{ num } mediabestand(en) verwijderen?', 'Delete %{ num } media files?' => '%{ num } mediabestanden verwijderen?', 'Delete Album Art' => 'Verwijder Albumhoezen', 'Delete API Key?' => 'API-sleutel verwijderen?', 'Delete Backup?' => 'Back-up verwijderen?', 'Delete Broadcast?' => 'Uitzending verwijderen?', 'Delete Custom Field?' => 'Aangepast veld verwijderen?', 'Delete Episode?' => 'Aflevering verwijderen?', 'Delete HLS Stream?' => 'Verwijder HLS Stream?', 'Delete Mount Point?' => 'Mount point verwijderen?', 'Delete Passkey?' => 'Passkey verwijderen?', 'Delete Playlist?' => 'Afspeellijst verwijderen?', 'Delete Podcast?' => 'Podcast verwijderen?', 'Delete Queue Item?' => 'Item in de wachtrij verwijderen?', 'Delete Record?' => 'Record verwijderen?', 'Delete Remote Relay?' => 'Externe relay verwijderen?', 'Delete Request?' => 'Verzoek verwijderen?', 'Delete Role?' => 'Deze rol verwijderen?', 'Delete SFTP User?' => 'SFTP-gebruiker verwijderen?', 'Delete Station?' => 'Station verwijderen?', 'Delete Storage Location?' => 'Opslaglocatie verwijderen?', 'Delete Streamer?' => 'Streamer verwijderen?', 'Delete User?' => 'Gebruiker verwijderen?', 'Delete Web Hook?' => 'Web hook verwijderen?', 'Description' => 'Omschrijving', 'Desktop' => 'Desktop', 'Details' => 'Beschrijving', 'Directory' => 'Map', 'Directory Name' => 'Directorynaam', 'Disable' => 'Schakel uit', 'Disable Crossfading' => 'Crossfading uitschakelen', 'Disable Optimizations' => 'Optimalisaties uitschakelen', 'Disable station?' => 'Station uitschakelen?', 'Disable Two-Factor' => 'Twee-factor uitschakelen', 'Disable two-factor authentication?' => 'Tweestapsverificatie uitschakelen?', 'Disable?' => 'Uitschakelen?', 'Disabled' => 'Uitgeschakeld', 'Disconnect Streamer' => 'Verbreek verbinding met streamer', 'Discord Web Hook URL' => 'Discord Web Hook URL', 'Discord Webhook' => 'Discord Webhook', 'Disk caching makes a system much faster and more responsive in general. It does not take memory away from applications in any way since it will automatically be released by the operating system when needed.' => 'Schijfcaching maakt een systeem veel sneller en sneller in het algemeen. Het ontneemt op geen enkele manier geheugen voor toepassingen, omdat het automatisch door het besturingssysteem wordt vrijgegeven wanneer dat nodig is.', 'Disk Space' => 'Schijfruimte', 'Display fields' => 'Velden weergeven', 'Display Name' => 'Weergavenaam', 'DJ/Streamer Buffer Time (Seconds)' => 'DJ/Streamer buffer tijd (seconden)', 'Do not collect any listener analytics' => 'Verzamel geen statistieken over luisteraars', 'Do not use a local broadcasting service.' => 'Gebruik geen lokale uitzend server.', 'Do not use an AutoDJ service.' => 'Gebruik geen AutoDJ service.', 'Documentation' => 'Documentatie', 'Domain Name(s)' => 'Domeinnamen', 'Donate to support AzuraCast!' => 'Doneer om Azuracast te ondersteunen!', 'Download' => 'Download', 'Download CSV' => 'Download CSV', 'Download M3U' => 'M3U downloaden', 'Download PLS' => 'PLS downloaden', 'Download the appropriate binary from the Stereo Tool downloads page:' => 'Download het juiste binaire bestand van de Stereo Tool downloadpagina:', 'Download the Linux x64 binary from the Shoutcast Radio Manager:' => 'Download de Linux x64 binary van de Shoutcast Radio Manager:', 'Drag file(s) here to upload or' => 'Bestand(en) hierheen slepen om te uploaden of', 'Dropbox App Console' => 'Dropbox App console', 'Dropbox Setup Instructions' => 'Dropbox Setup instructies', 'Duplicate' => 'Dupliceren', 'Duplicate Playlist' => 'Afspeellijst dupliceren', 'Duplicate Prevention Time Range (Minutes)' => 'Dubbele artiesten check die gedraaid worden (in minuten)', 'Duplicate Songs' => 'Dupliceer nummers', 'E-Mail' => 'E-Mail', 'E-mail Address' => 'E-mailadres', 'E-mail Address (Optional)' => 'E-mailadres (optioneel)', 'E-mail addresses can be separated by commas.' => 'E-mailadressen kunnen gescheiden worden door komma\'s.', 'E-mail Delivery Service' => 'Aflevering via e-mail', 'EBU R128' => 'EBU R128', 'Edit' => 'Wijzig', 'Edit Branding' => 'Branding bewerken', 'Edit Custom Field' => 'Wijzig aangepast veld', 'Edit Episode' => 'Aflevering bewerken', 'Edit HLS Stream' => 'Bewerk HLS Stream', 'Edit Liquidsoap Configuration' => 'Liquidsoap configuratie bewerken', 'Edit Media' => 'Media gegevens aanpassen', 'Edit Mount Point' => 'Mount point bewerken', 'Edit Playlist' => 'Afspeellijst bewerken', 'Edit Podcast' => 'Podcast bewerken', 'Edit Profile' => 'Wijzig profiel', 'Edit Remote Relay' => 'Wijzig externe relay', 'Edit Role' => 'Rol bewerken', 'Edit SFTP User' => 'SFTP-gebruiker bewerken', 'Edit Station' => 'Wijzig station', 'Edit Station Profile' => 'Wijzig stationsprofiel', 'Edit Storage Location' => 'Bewerk opslaglocatie', 'Edit Streamer' => 'Wijzig streamer', 'Edit User' => 'Wijzig gebruiker', 'Edit Web Hook' => 'Web hook bewerken', 'Embed Code' => 'Code insluiten', 'Embed Widgets' => 'Widgets insluiten', 'Emergency' => 'Noodgeval', 'Empty' => 'Leeg', 'Enable' => 'Schakel in', 'Enable Advanced Features' => 'Geavanceerde functies inschakelen', 'Enable AutoDJ' => 'AutoDJ inschakelen', 'Enable Broadcasting' => 'Uitzending inschakelen', 'Enable certain advanced features in the web interface, including advanced playlist configuration, station port assignment, changing base media directories and other functionality that should only be used by users who are comfortable with advanced functionality.' => 'Schakel bepaalde geavanceerde functies in de webinterface in, inclusief geavanceerde configuratie van afspeellijsten, toewijzing van poort, wijzigen van basismediamappen en andere functionaliteit die alleen gebruikt moeten worden door gebruikers die vertrouwd zijn met geavanceerde functionaliteit.', 'Enable Downloads on On-Demand Page' => 'Downloads inschakelen op On-Demand pagina', 'Enable HTTP Live Streaming (HLS)' => 'Inschakelen HTTP Live Streaming (HLS)', 'Enable listeners to request a song for play on your station. Only songs that are already in your playlists are requestable.' => 'Wanneer deze optie is ingeschakeld zullen luisteraars de mogelijkheid hebben een verzoeknummer aan te vragen op je station. Enkel nummers die toegevoegd zijn aan een afspeellijst zijn aan te vragen.', 'Enable Mail Delivery' => 'Mail Levering inschakelen', 'Enable on Public Pages' => 'Toon op openbare pagina\'s', 'Enable On-Demand Streaming' => 'Schakel On-Demand Streaming in', 'Enable Public Pages' => 'Openbare pagina inschakelen', 'Enable station?' => 'Station inschakelen?', 'Enable this option if your S3 provider is using paths instead of sub-domains for their S3 endpoint; for example, when using MinIO or with other self-hosted S3 storage solutions that are accessible via a path on a domain/IP instead of a subdomain.' => 'Schakel deze optie in als uw S3-provider paden in plaats van sub-domeinen gebruikt voor hun S3-eindpunt; bijvoorbeeld bij het gebruik van MinIO of met andere zelf gehoste S3 opslagoplossingen die toegankelijk zijn via een pad op een domein/IP in plaats van een subdomein.', 'Enable this setting to prevent metadata from being sent to the AutoDJ for files in this playlist. This is useful if the playlist contains jingles or bumpers.' => 'Schakel deze instelling in om te voorkomen dat metadata naar de AutoDJ wordt verzonden voor bestanden binnen deze afspeellijst. Dit is handig wanneer de afspeellijst jingles of reclames bevat.', 'Enable to advertise this mount point on "Yellow Pages" public radio directories.' => 'Schakel in om dit mountpoint binnen de publieke "Yellow Pages" weer te geven.', 'Enable to advertise this relay on "Yellow Pages" public radio directories.' => 'Schakel in om deze relais te adverteren in de openbare radiomappen "Gele Pagina".', 'Enable to allow listeners to select this relay on this station\'s public pages.' => 'Inschakelen om luisteraars toe te staan dit mount point te selecteren op de publieke pagina van het station.', 'Enable to allow this account to log in and stream.' => 'Stel in op Ja om dit account toegang te geven om in te loggen en te streamen.', 'Enable to have AzuraCast automatically run nightly backups at the time specified.' => 'Inschakelen om AzuraCast automatisch nachtelijke back-ups te laten uitvoeren op het opgegeven tijdstip.', 'Enable Two-Factor' => 'Twee-factor inschakelen', 'Enable Two-Factor Authentication' => 'Tweestapsverificatie inschakelen', 'Enable?' => 'Activeren?', 'Enabled' => 'Ingeschakeld', 'End Date' => 'Eind Datum', 'End Time' => 'Eind Tijd', 'Endpoint' => 'Eindpunt', 'Enforce Schedule Times' => 'Geplande uitzendtijden afdwingen', 'Ensure the library matches your system architecture' => 'Zorg ervoor dat de bibliotheek overeenkomt met uw systeemarchitectuur', 'Enter the current code provided by your authenticator app to verify that it\'s working correctly.' => 'Voer de huidige code in die door uw authenticator app is opgegeven om te controleren of alles correct werkt.', 'Enter the full URL of another stream to relay its broadcast through this mount point.' => 'Voer de volledige URL in van een andere stream om deze opnieuw uit te zenden via dit mount punt.', 'Enter your e-mail address to receive updates about your certificate.' => 'Voer je e-mailadres in om updates over je certificaat te ontvangen.', 'Enter your password' => 'Voer uw wachtwoord in', 'Episode' => 'Aflevering', 'Episode Number' => 'Afleveringnummer', 'Episodes' => 'Afleveringen', 'Example: if the remote radio URL is path_to_url enter "path_to_url".' => 'Voorbeeld: als de externe radio URL path_to_url is, vul dan "path_to_url" in.', 'Exclude Media from Backup' => 'Media uitsluiten van back-up', 'Excluding media from automated backups will save space, but you should make sure to back up your media elsewhere. Note that only locally stored media will be backed up.' => 'Door media uit te sluiten van automatische back-ups bespaart u ruimte, maar u moet ervoor zorgen dat u ergens anders een back-up van uw media maakt. Merk op dat er alleen een back-up wordt gemaakt van lokaal opgeslagen media.', 'Explicit' => 'Expliciet', 'Export %{format}' => 'Exporteren Formaat', 'Export Media to CSV' => 'Exporteer media naar CSV', 'Fallback Mount' => 'Back-up mount point', 'Field Name' => 'Veldnaam', 'File Name' => 'Bestandsnaam', 'Footer Text' => 'Voettekst', 'For ARM (Raspberry Pi, etc.) installations, choose "Raspberry Pi Thimeo-ST plugin".' => 'Voor ARM (Raspberry Pi, etc.) installeert u "Raspberry Pi Thimeo-ST plugin".', 'For local filesystems, this is the base path of the directory. For remote filesystems, this is the folder prefix.' => 'Voor lokale bestandssystemen is dit het basispad van de map. Voor externe bestandssystemen is dit het voorvoegsel van de map.', 'for selected period' => 'voor geselecteerde periode', 'For some clients, use port:' => 'Voor sommige gebruikers, gebruik poort:', 'For the legacy version' => 'Voor de oudere versie', 'For x86/64 installations, choose "x86/64 Linux Thimeo-ST plugin".' => 'Voor x86/64 installaties, kies "x86/64 Linux Thimeo-ST plugin".', 'Forgot your password?' => 'Wachtwoord vergeten?', 'Friday' => 'Vrijdag', 'From your smartphone, scan the code to the right using an authentication app of your choice (FreeOTP, Authy, etc).' => 'Scan de code via een authenticatie app naar keuze (FreeOTP, Authy, etc) op uw mobiele telefoon.', 'Full Volume' => 'Volledige volume', 'General Rotation' => 'Algemene Rotatie', 'Generate Report' => 'Rapportage maken', 'Generate/Renew Certificate' => 'Genereer/vernieuw certificaat', 'Genre' => 'Genre', 'GeoLite is not currently installed on this installation.' => 'GeoLite is momenteel niet genstalleerd.', 'Get Next Song' => 'Volgende nummer krijgen', 'Get Now Playing' => 'Verkrijg het Nummer dat nu speelt', 'Global' => 'Globaal', 'Global Permissions' => 'Globale permissies', 'Hide Album Art on Public Pages' => 'Verberg albumhoezen op openbare pagina\'s', 'Hide AzuraCast Branding on Public Pages' => 'Verberg AzuraCast reclame op openbare pagina\'s', 'Hide Charts' => 'Verberg grafieken', 'Hide Credentials' => 'Inloggegevens verbergen', 'Hide Metadata from Listeners ("Jingle Mode")' => 'Verberg metadata voor luisteraars (Jingel Modus)', 'High I/O Wait can indicate a bottleneck with the server\'s hard disk, a potentially failing hard disk, or heavy load on the hard disk.' => 'Een hoge I/O wachttijd kan wijzen op een knelpunt met de harde schijf van de server, een mogelijk defecte harde schijf, of zware belasting van de harde schijf.', 'Higher weight playlists are played more frequently compared to other lower-weight playlists.' => 'Afspeellijsten met een hoger gewicht worden vaker afgespeeld dan afspeellijsten met een lager gewicht.', 'History' => 'Geschiedenis', 'HLS' => 'HLS', 'HLS Streams' => 'HLS Streams', 'Home' => 'Startpagina', 'Homepage Redirect URL' => 'URL van homepage omleiden', 'Hour' => 'Uur', 'HTML' => 'HTML', 'HTTP Live Streaming (HLS)' => 'HTTP Live Streaming (HLS)', 'HTTP Live Streaming (HLS) is a new adaptive-bitrate streaming technology. From this page, you can configure the individual bitrates and formats that are included in the combined HLS stream.' => 'HTTP Live Streaming (HLS) is een nieuwe adaptive-bitrate streaming technologie. Vanaf deze pagina kunt u de individuele bitrates en formaten configureren die zijn opgenomen in de gecombineerde HLS-stream.', 'HTTP Live Streaming (HLS) is a new adaptive-bitrate technology supported by some clients. It does not use the standard broadcasting frontends.' => 'HTTP Live Streaming (HLS) is een nieuwe adaptive-bitrate technologie ondersteund door sommige applicaties. Het gebruikt niet de standaard uitzendingsfrontends.', 'Icecast Clients' => 'IceCast gebruikers', 'Icecast/Shoutcast Stream URL' => 'Icecast/Shoutcast Stream URL', 'Identifier' => 'Identifier', 'If a live DJ connects but has not yet sent metadata, this is the message that will display on player pages.' => 'Als een live DJ verbindt maar nog geen metagegevens heeft verzonden, is dit het bericht dat wordt weergegeven op spelerpagina\'s.', 'If a song has no album art, this URL will be listed instead. Leave blank to use the standard placeholder art.' => 'Als een nummer geen albumhoes heeft, zal deze URL in plaats daarvan worden weergegeven. Laat leeg om de standaard hoes te gebruiken.', 'If a visitor is not signed in and visits the AzuraCast homepage, you can automatically redirect them to the URL specified here. Leave blank to redirect them to the login screen by default.' => 'Als een bezoeker niet is aangemeld en de homepage van AzuraCast bezoekt, kunt u ze automatisch doorverwijzen naar de hier opgegeven URL. Laat leeg om ze standaard naar het login scherm te verwijzen.', 'If disabled, the playlist will not be included in radio playback, but can still be managed.' => 'Wanneer gekozen voor "Nee", zal de afspeellijst niet worden afgespeeld op de stream. De afspeellijst kan nog steeds worden beheert.', 'If disabled, the station will not be visible on public-facing pages or APIs.' => 'Indien uitgeschakeld zal het station niet zichtbaar zijn op openbare pagina\'s of API\'s.', 'If disabled, the station will not broadcast or shuffle its AutoDJ.' => 'Indien uitgeschakeld, zal het station zijn AutoDJ niet uitzenden.', 'If enabled, a download button will also be present on the public "On-Demand" page.' => 'Indien ingeschakeld, zal er een downloadknop aanwezig zijn op de openbare "On-Demand" pagina.', 'If enabled, AzuraCast will automatically record any live broadcasts made to this station to per-broadcast recordings.' => 'Indien ingeschakeld, zal AzuraCast automatisch alle live uitzendingen opnemen die op dit station hoorbaar zijn geweest.', 'If enabled, AzuraCast will connect to the MusicBrainz database to attempt to find an ISRC for any files where one is missing. Disabling this may improve performance.' => 'Indien ingeschakeld, zal AzuraCast verbinding maken met de MusicBrainz database om te proberen een ISRC te vinden voor bestanden waar er een ontbreekt. Het uitschakelen hiervan kan de prestaties verbeteren.', 'If enabled, music from playlists with on-demand streaming enabled will be available to stream via a specialized public page.' => 'Indien ingeschakeld, zullen muziek van afspeellijsten met on-demand streaming beschikbaar zijn om te streamen en downloaden via een gespecialiseerde openbare pagina.', 'If enabled, streamers (or DJs) will be able to connect directly to your stream and broadcast live music that interrupts the AutoDJ stream.' => 'Indien ingeschakeld, zullen streamers (of DJs) rechtstreeks verbinding kunnen maken met uw stream en live muziek kunnen uitzenden die de AutoDJ stream onderbreekt.', 'If enabled, the AutoDJ on this installation will automatically play music to this mount point.' => 'Indien ingeschakeld, zal de AutoDJ op deze installatie automatisch muziek afspelen naar dit mount punt.', 'If enabled, the AutoDJ will automatically play music to this mount point.' => 'Indien ingeschakeld, zal de AutoDJ automatisch muziek afspelen op dit mount punt.', 'If enabled, this streamer will only be able to connect during their scheduled broadcast times.' => 'Indien ingeschakeld, zal deze streamer enkel de mogelijkheid hebben om te verbinden gedurende de geplande uitzendtijden.', 'If requests are enabled for your station, users will be able to request media that is on this playlist.' => 'Als requests zijn ingeschakeld voor uw station zullen luisteraars de mogelijkheid hebben om nummers binnen deze afspeellijst aan te vragen.', 'If requests are enabled, this specifies the minimum delay (in minutes) between a request being submitted and being played. If set to zero, a minor delay of 15 seconds is applied to prevent request floods.' => 'Als verzoeken zijn ingeschakeld, geeft dit de minimale vertraging (in minuten) aan tussen het indienen van een verzoek en het afspelen ervan. Indien ingesteld op nul, wordt een kleine vertraging van 15 seconden toegepast om request floods te voorkomen.', 'If selected, album art will not display on public-facing radio pages.' => 'Indien geselecteerd, worden albumhoezen niet weergegeven op publieke radio-pagina\'s.', 'If selected, this will remove the AzuraCast branding from public-facing pages.' => 'Indien geselecteerd, zal dit AzuraCast reclame van publieke pagina\'s verwijderen.', 'If the end time is before the start time, the playlist will play overnight.' => 'Als de eindtijd voor de begintijd is, zal de afspeellijst van de ene op de andere dag afspelen.', 'If the end time is before the start time, the schedule entry will continue overnight.' => 'Als de eindtijd voor de begintijd is, zal het geplande item in de nacht doorgaan.', 'If the mountpoint (i.e. /radio.mp3) or Shoutcast SID (i.e. 2) you broadcast to is different from the stream URL, specify the source mount point here.' => 'Als het mountpoint (bijv. /radio.mp3) of Shoutcast SID (bijv. 2) waar je naar uitzendt is anders dan hierboven vermeld, geef hier het bronmount punt op.', 'If the port you broadcast to is different from the stream URL, specify the source port here.' => 'Als de poort waar u naar uitzendt anders is dan de poort die u hierboven hebt aangegeven, geef dan hier de bronpoort op.', 'If this mount is the default, it will be played on the radio preview and the public radio page in this system.' => 'Als dit mount point standaard is, zal deze gebruikt worden binnen de radiospeler op de publieke radio pagina van dit systeem.', 'If this mount point is not playing audio, listeners will automatically be redirected to this mount point. The default is /error.mp3, a repeating error message.' => 'Wanneer dit mount point geen audio speelt, zullen luisteraars doorverwezen worden naar dit mount punt. De standaard is /error.mp3, welke herhaaldelijk een foutmelding laat horen.', 'If this setting is set to "Yes", the browser URL will be used instead of the base URL when it\'s available. Set to "No" to always use the base URL.' => 'Als deze instelling is ingesteld op "Ja" zal, in plaats van de basis URL, de browser URL worden gebruikt wanneer deze beschikbaar is. Stel in op "Nee" om altijd de basis URL te gebruiken.', 'If this station has on-demand streaming and downloading enabled, only songs that are in playlists with this setting enabled will be visible.' => 'Als dit station on-demand streamen en downloaden heeft ingeschakeld, zullen alleen nummers die in afspeellijsten staan met deze instelling ingeschakeld zichtbaar zijn.', 'If you are broadcasting using AutoDJ, enter the source password here.' => 'Als u met AutoDJ uitzendt, voer hier het bronwachtwoord in.', 'If you are broadcasting using AutoDJ, enter the source username here. This may be blank.' => 'Als u met AutoDJ uitzendt, voer hier de brongebruikersnaam in. Dit kan leeg zijn.', 'If you\'re experiencing a bug or error, you can submit a GitHub issue using the link below.' => 'Als je een bug of fout ontdekt, kun je een GitHub issue indienen met behulp van de onderstaande link.', 'If your installation is constrained by CPU or memory, you can change this setting to tune the resources used by Liquidsoap.' => 'Als uw installatie beperkt is door CPU of geheugen, kunt u deze instelling wijzigen om de bronnen die door Liquidsoap worden gebruikt aan te passen.', 'If your Mastodon username is "@test@example.com", enter "example.com".' => 'Als uw Mastodon-gebruikersnaam "@test@example.com" is, voer "example.com" in.', 'If your stream is set to advertise to YP directories above, you must specify an authorization hash. You can manage these on the Shoutcast web site.' => 'Als uw stream is geconfigureerd om op YP directories te verschijnen, moet u een autorisatie hash opgeven. Je kunt deze beheren op de Shoutcast website.', 'If your streaming software requires a specific mount point path, specify it here. Otherwise, use the default.' => 'Als je streaming software een specifiek pad voor het mount point vereist, geef deze dan hier op. Gebruik anders de standaard.', 'If your web hook requires HTTP basic authentication, provide the password here.' => 'Als je web hook HTTP basis authenticate vereist, geef dan hier het wachtwoord op.', 'If your web hook requires HTTP basic authentication, provide the username here.' => 'Als je web hook HTTP basis authenticate vereist, geef dan hier de gebruikersnaam op.', 'Import Changes from CSV' => 'Importeer wijzigingen van CSV', 'Import from PLS/M3U' => 'Importeren uit PLS/M3U', 'Import Results' => 'Importeer Resultaten', 'Important: copy the key below before continuing!' => 'Belangrijk: kopieer de onderstaande sleutel voordat u doorgaat!', 'In order to install Shoutcast:' => 'Om Shoutcast te installeren:', 'In order to install Stereo Tool:' => 'Om Stereo Tool te installeren:', 'In order to process quickly, web hooks have a short timeout, so the responding service should be optimized to handle the request in under 2 seconds.' => 'Voor een snelle verwerking hebben webhooks een korte time-out, dus de passende service moet worden geoptimaliseerd om het verzoek binnen 2 seconden te behandelen.', 'Include in On-Demand Player' => 'Opnemen in On-Demand speler', 'Indefinitely' => 'Onbepaald', 'Insert' => 'Toevoegen', 'Install GeoLite IP Database' => 'GeoLite IP-database installeren', 'Install Stereo Tool' => 'Installeer Stereo Tool', 'Instructions' => 'Instructies', 'Internal notes or comments about the user, visible only on this control panel.' => 'Interne notities of commentaar over de gebruiker, alleen zichtbaar vanuit dit controle paneel.', 'International Standard Recording Code, used for licensing reports.' => 'Internationale standaardcode voor het opnemen van licenties.', 'IP' => 'IP-adres', 'IP Geolocation is used to guess the approximate location of your listeners based on the IP address they connect with. Use the free built-in IP Geolocation library or enter a license key on this page to use MaxMind GeoLite.' => 'IP-Geolocatie wordt gebruikt om de geschatte locatie van uw luisteraars te raden, gebaseerd op het IP-adres waarmee u verbinding maakt. Gebruik de gratis ingebouwde IP Geolocation library of voer een licentiesleutel in op deze pagina om MaxMind GeoLite te gebruiken.', 'Is Published' => 'Is gepubliceerd', 'ISRC' => 'ISRC', 'Items per page' => 'Items per pagina', 'Jingle Mode' => 'Jingle modus', 'Language' => 'Taal', 'Last 14 Days' => 'Laatste 14 dagen', 'Last 2 Years' => 'Laatste 2 jaar', 'Last 24 Hours' => 'Laatste 24 uur', 'Last 30 Days' => 'Laatste 30 dagen', 'Last 60 Days' => 'Laatste 60 dagen', 'Last 7 Days' => 'Laatste 7 dagen', 'Last Modified' => 'Laatst gewijzigd', 'Last Month' => 'Laatste maand', 'Last Run' => 'Laatst uitgevoerd', 'Last run:' => 'Laatst uitgevoerd:', 'Last Year' => 'Vorig jaar', 'Last.fm API Key' => 'Last.fm API Sleutel', 'Latest Update' => 'Laatste update', 'Learn about Advanced Playlists' => 'Meer informatie over geavanceerde afspeellijsten', 'Learn More about Post-processing CPU Impact' => 'Meer informatie over de impact van audioprocessing op de CPU', 'Learn more about release channels in the AzuraCast docs.' => 'Meer informatie over release kanalen in de AzuraCast documentatie.', 'Learn more about this header.' => 'Lees meer over deze header.', 'Leave blank to automatically generate a new password.' => 'Laat leeg om automatisch een wachtwoord te genereren.', 'Leave blank to play on every day of the week.' => 'Laat leeg om elke dag van de week af te laten spelen', 'Leave blank to use the current password.' => 'Laat leeg om het huidige wachtword te gebruiken.', 'Leave blank to use the default Telegram API URL (recommended).' => 'Laat leeg om de standaard Telegram API URL te gebruiken (aanbevolen).', 'Length' => 'Lengte', 'Let\'s get started by creating your Super Administrator account.' => 'Laten we beginnen met het maken van een account voor de systeembeheerder.', 'LetsEncrypt' => 'LetsEncrypt', 'LetsEncrypt provides simple, free SSL certificates allowing you to secure traffic through your control panel and radio streams.' => 'Let\'s Encrypt biedt eenvoudige en gratis SSL-certificaten waarmee u het verkeer voor uw controlepaneel en radiostreams kunt beveiligen.', 'Light' => 'Licht', 'Like our software?' => 'Vind je onze software leuk?', 'Limited' => 'Beperkt', 'LiquidSoap is currently shuffling from %{songs} and %{playlists}.' => 'LiquidSoap wordt momenteel geschuffeld van %{songs} en %{playlists}.', 'Liquidsoap Performance Tuning' => 'Liquidsoap Prestatie Tuning', 'List one IP address or group (in CIDR format) per line.' => 'Geef n IP-adres of groep (in CIDR formaat) per regel aan.', 'List one user agent per line. Wildcards (*) are allowed.' => 'Laat n user agent per regel zien. jokers (*) zijn toegestaan.', 'Listener Analytics Collection' => 'Luisteraars statistieken', 'Listener Gained' => 'Luisteraar gestegen', 'Listener History' => 'Luisteraar Geschiedenis', 'Listener Lost' => 'Luisteraar verloren', 'Listener Report' => 'Luisteraar Rapport', 'Listener Request' => 'Luisteraar request', 'Listener Type' => 'Luisteraar Type', 'Listeners' => 'Aantal luisteraars', 'Listeners by Day' => 'Aantal luisteraars per dag', 'Listeners by Day of Week' => 'Aantal luisteraars per dag van de week', 'Listeners by Hour' => 'Aantal luisteraars per uur', 'Listeners by Listening Time' => 'Luisteraars door luistertijd', 'Listeners By Time Period' => 'Luisteraars per tijdsperiode', 'Listeners Per Station' => 'Luisteraars per station', 'Listening Time' => 'Luister tijd', 'Live' => 'Live', 'Live Broadcast Recording Bitrate (kbps)' => 'Bitrate (kbps) voor live uitzending opnames', 'Live Broadcast Recording Format' => 'Formaat voor live uitzending opnames', 'Live Listeners' => 'Live luisteraars', 'Live Recordings Storage Location' => 'Opslaglocatie voor live-opnamen', 'Live Streamer:' => 'Live Streamer:', 'Live Streamer/DJ Connected' => 'Live Streamer/DJ verbonden', 'Live Streamer/DJ Disconnected' => 'Live Streamer/DJ verbroken', 'Live Streaming' => 'Live Streaming', 'Load Average' => 'Gemiddelde belasting', 'Loading' => 'Bezig met laden', 'Local' => 'Lokaal', 'Local Broadcasting Service' => 'Uitzend-service', 'Local Filesystem' => 'Lokaal bestandssysteem', 'Local IP (Default)' => 'Lokaal IP (standaard)', 'Local Streams' => 'Lokale streams', 'Location' => 'Locatie', 'Log In' => 'Inloggen', 'Log Output' => 'Log Uitvoer', 'Log Viewer' => 'Log weergave', 'Logs' => 'Logs', 'Logs by Station' => 'Logs per station', 'Loop Once' => 'Eenmalig herhalen', 'Main Message Content' => 'Inhoud hoofdbericht', 'Make HLS Stream Default in Public Player' => 'Maak HLS Stream standaard in publieke speler', 'Make the selected media play immediately, interrupting existing media' => 'Laat de geselecteerde media onmiddellijk afspelen en onderbreek bestaande media', 'Manage' => 'Beheer', 'Manage Avatar' => 'Avatar beheren', 'Manage SFTP Accounts' => 'SFTP accounts beheren', 'Manage Stations' => 'Stations Beheren', 'Manual AutoDJ Mode' => 'Handmatige AutoDJ Modus', 'Manual Updates' => 'Handmatige updates', 'Manually Add Episodes' => 'Handmatig afleveringen toevoegen', 'Manually define how this playlist is used in Liquidsoap configuration.' => 'Handmatig definiren hoe deze afspeellijst wordt gebruikt in de Liquidsoap configuratie.', 'Markdown' => 'Markdown', 'Master_me is an open-source automatic mastering plugin for streaming, podcasts and Internet radio.' => 'Master_me is een open-source automatische mastering-plugin voor het streamen, podcasts en internetradio.', 'Master_me Loudness Target (LUFS)' => 'Master_me Loudness Target (LUFS)', 'Master_me Post-processing' => 'Master_me na verwerking', 'Master_me Preset' => 'Master_me Preset', 'Master_me Project Homepage' => 'Master_me Project Homepage', 'Mastodon Account Details' => 'Mastodon Accountgegevens', 'Mastodon Instance URL' => 'Mastodon Instance URL', 'Mastodon Post' => 'Mastodon bericht', 'Matched' => 'Overeenkomend', 'Matomo Analytics Integration' => 'Integratie met Matomo Analytics', 'Matomo Installation Base URL' => 'Basis URL van de Matomo installatie', 'Max Listener Duration' => 'Maximale luistertijd', 'Max. Connected Time' => 'Max. Verbonden Tijd', 'Maximum Listeners' => 'Maximaal aantal luisteraars', 'Maximum number of total listeners across all streams. Leave blank to use the default.' => 'Maximumaantal luisteraars over alle stations. Laat leeg om de standaard limiet te gebruiken.', 'MaxMind Developer Site' => 'MaxMind ontwikkelaars site', 'Media File' => 'Media bestand', 'Media Storage Location' => 'Opslaglocatie voor media', 'Memory' => 'Geheugen', 'Memory Stats Help' => 'Geheugen Statistieken Help', 'Message Body' => 'Berichtinhoud', 'Message Customization Tips' => 'Tips voor bericht aan te passen', 'Message parsing mode' => 'Berichtverwerking modus', 'Message Queues' => 'Berichten wachtrijen', 'Message Recipient(s)' => 'Bericht geadresseerde(n)', 'Message Subject' => 'Bericht onderwerp', 'Message Visibility' => 'Zichtbaarheid beheren', 'Metadata updated.' => 'Metadata bijgewerkt.', 'Microphone' => 'Microfoon', 'Microphone Source' => 'Microfoon bron', 'Min. Connected Time' => 'Min. Verbonden Tijd', 'Minute of Hour to Play' => 'Minuten van het uur om te spelen', 'Mixer' => 'Mixen', 'Mobile' => 'Mobiel', 'Modified' => 'Gewijzigd', 'Monday' => 'Maandag', 'More' => 'Meer', 'Most hosting providers will put more Virtual Machines (VPSes) on a server than the hardware can handle when each VM is running at full CPU load. This is called over-provisioning, which can lead to other VMs on the server "stealing" CPU time from your VM and vice-versa.' => 'De meeste hosting providers zullen meer Virtual Machines (VPSen) op een server zetten dan de hardware aan kan wanneer elke VM op volle CPU belasting draait. Dit wordt over-provisioning genoemd, wat ertoe kan leiden dat andere VM\'s op de server CPU-tijd van jouw VM "stelen" en vice versa.', 'Most Played Songs' => 'Meest gedraaide nummers', 'Most Recent Backup Log' => 'Meest recente back-up log', 'Mount Name:' => 'Koppeling naam:', 'Mount Point URL' => 'Mount point URL', 'Mount Points' => 'Mount points', 'Mount points are how listeners connect and listen to your station. Each mount point can be a different audio format or quality. Using mount points, you can set up a high-quality stream for broadband listeners and a mobile stream for phone users.' => 'Mount points zijn hoe luisteraars verbinding maken met uw station. Elk mount point kan een ander audio formaat of andere kwaliteit zijn. Door gebruik te maken van mount points is het mogelijk een stream met een hoge kwaliteit aan te bieden voor luisteraars met een snelle internetverbinding en een stream met een lage kwaliteit voor mobiele luisteraars.', 'Move' => 'Verplaats', 'Move %{ num } File(s) to' => 'Verplaats %{ num } bestand(en) naar', 'Move Down' => 'Omlaag Schuiven', 'Move to Bottom' => 'Naar de onderkant verplaatsen', 'Move to Directory' => 'Verplaats naar map', 'Move to Top' => 'Verplaats naar boven', 'Move Up' => 'Omhoog Schuiven', 'Music Files' => 'Mediabestanden', 'Music General' => 'Muziek algemeen', 'Must match new password.' => 'Moet overeenkomen met nieuw wachtwoord.', 'Mute' => 'Geluid dempen', 'My Account' => 'Mijn account', 'N/A' => 'NB', 'Name' => 'Naam', 'name@example.com' => 'naam@voorbeeld.com', 'Name/Type' => 'Naam/Type', 'Need Help?' => 'Hulp nodig?', 'Network Interfaces' => 'Netwerk Interfaces', 'Never run' => 'Nooit uitvoeren', 'New Directory' => 'Nieuwe map', 'New directory created.' => 'Nieuwe map aangemaakt.', 'New File Name' => 'Nieuwe bestandsnaam', 'New Folder' => 'Nieuwe map', 'New Key Generated' => 'Nieuwe sleutel gegenereerd', 'New Password' => 'Nieuw wachtwoord', 'New Playlist' => 'Nieuwe afspeellijst', 'New Playlist Name' => 'Nieuwe afspeellijst naam', 'New Station Description' => 'Nieuwe station beschrijving', 'New Station Name' => 'Nieuwe stationsnaam', 'Next Run' => 'Volgende uitvoering', 'No' => 'Nee', 'No AutoDJ Enabled' => 'Geen AutoDJ ingeschakeld', 'No files selected.' => 'Geen bestanden geselecteerd.', 'No Limit' => 'Geen limiet', 'No Match' => 'Geen overeenkomsten', 'No other program can be using this port. Leave blank to automatically assign a port.' => 'Deze poort kan niet door een ander programma gebruikt worden. Laat dit veld leeg om automatisch een poort toe te laten kennen.', 'No Post-processing' => 'Geen audioprocessing', 'No records to display.' => 'Geen archief om te laten zien.', 'No records.' => 'Geen gegevens.', 'None' => 'Geen', 'Normal Mode' => 'Normale modus', 'Not Played' => 'Niet afgespeeld', 'Not Run' => 'Niet Uitgevoerd', 'Not Running' => 'Wordt niet uitgevoerd', 'Not Scheduled' => 'Niet gepland', 'Note that restoring a backup will clear your existing database. Never restore backup files from untrusted users.' => 'Let op dat het herstellen van een back-up uw bestaande database zal wissen. Herstel nooit back-up bestanden van niet-vertrouwde gebruikers.', 'Note that Stereo Tool can be resource-intensive for both CPU and Memory. Please ensure you have sufficient resources before proceeding.' => 'Houd er rekening mee dat Stereo Tool intensief kan zijn voor zowel CPU als geheugen. Zorg ervoor dat u voldoende bronnen beschikbaar heeft voordat u verder gaat.', 'Note: If your media metadata has UTF-8 characters, you should use a spreadsheet editor that supports UTF-8 encoding, like OpenOffice.' => 'Opmerking: als uw mediametagegevens UTF-8-tekens hebben, moet u een spreadsheet-editor gebruiken die UTF-8-codering ondersteunt, zoals OpenOffice.', 'Note: the port after this one will automatically be used for legacy connections.' => 'Opmerking: de poort na deze zal automatisch worden gebruikt voor legacy verbindingen.', 'Note: This should be the public-facing homepage of the radio station, not the AzuraCast URL. It will be included in broadcast details.' => 'Opmerking: Dit moet de publieke startpagina van het radiostation zijn, niet de AzuraCast pagina. Deze website zal worden opgenomen in de uitzendgegevens.', 'Notes' => 'Opmerkingen', 'Now' => 'Nu', 'Now Playing' => 'Huidig nummer', 'Now playing on %{ station }:' => 'Wordt nu afgespeeld op %{ station }:', 'NowPlaying API Response' => 'Nu Speelt API Response', 'Number of Backup Copies to Keep' => 'Aantal te bewaren back-up kopien', 'Number of Minutes Between Plays' => 'Aantal minuten tussen het afspelen', 'Number of seconds to overlap songs.' => 'Aantal seconden om nummers te overlappen.', 'Number of Songs Between Plays' => 'Aantal nummers tussen spelen', 'Number of Visible Recent Songs' => 'Aantal zichtbare recente nummers', 'On-Demand Media' => 'On-Demand Media', 'Once per Hour' => 'Eenmaal per uur', 'Once per x Minutes' => 'Eens in de x minuten', 'Once per x Songs' => 'Eenmaal per x nummers', 'One important note on I/O Wait is that it can indicate a bottleneck or problem but also may be completely meaningless, depending on the workload and general available resources. A constantly high I/O Wait should prompt further investigation with more sophisticated tools.' => 'Een belangrijk punt in I/O Wait is dat het een knelpunt of probleem kan aangeven, maar ook volledig zinloos kan zijn. afhankelijk van de werklast en de algemene beschikbare middelen. Een constant hoge I/O Wait moet aanleiding geven tot verder onderzoek met geavanceerdere middelen.', 'Only loop through playlist once.' => 'Afspeellijst maar eenmaal afspelen.', 'Optional: HTTP Basic Authentication Password' => 'Optioneel: HTTP standaard authenticatie wachtwoord', 'Optional: HTTP Basic Authentication Username' => 'Optioneel: HTTP standaard authenticatie gebruikersnaam', 'Optional: Request Timeout (Seconds)' => 'Optioneel: Time-out verzoek (Seconden)', 'Optionally select an ID3v2 metadata field that, if present, will be used to set this field\'s value.' => 'Optioneel selecteer een ID3v2 metadata veld dat indien aanwezig, gebruikt zal worden om de waarde van dit veld in te stellen.', 'Optionally specify a short URL-friendly name, such as "my_station_name", that will be used in this station\'s URLs. Leave this field blank to automatically create one based on the station name.' => 'Geef optioneel een korte URL-vriendelijke naam op, zoals "mijn_station_name", die zal worden gebruikt in de URL\'s van dit station. Laat leeg om automatisch een veld aan te maken op basis van de stationnaam.', 'Optionally specify an API-friendly name, such as "field_name". Leave this field blank to automatically create one based on the name.' => 'Optioneel geef een API-vriendelijke naam op, zoals <code>veld_naam</code>. Laat dit veld leeg om er automatisch een te maken op basis van de naam.', 'Optionally supply an API token to allow IP address overriding.' => 'Optioneel Geef een API-sleutel op om het IP-adres te kunnen overschrijven.', 'Optionally supply SSH public keys this user can use to connect instead of a password. Enter one key per line.' => 'Geef optioneel publieke SSH sleutels in die deze gebruiker kan gebruiken om verbinding te maken in plaats van een wachtwoord. Voer n sleutel per regel in.', 'or' => 'of', 'Original Path' => 'Oorspronkelijke pad', 'Password' => 'Wachtwoord', 'Password:' => 'Wachtwoord: ', 'Paste the generated license key into the field on this page.' => 'Plak de gegenereerde licentiesleutel in het veld op deze pagina.', 'Path/Suffix' => 'Pad/achtervoegsel', 'Play' => 'Speel', 'Play Now' => 'Speel nu', 'Playback Queue' => 'Wachtrij afspelen', 'Playing Next' => 'Speelt hierna', 'Playlist' => 'Afspeellijst', 'Playlist 1' => 'Afspeellijst 1', 'Playlist 2' => 'Afspeellijst 2', 'Playlist Name' => 'Naam van afspeellijst', 'Playlist queue cleared.' => 'Afspeellijst wachtrij gewist.', 'Playlist Type' => 'Afspeellijst type', 'Playlist Weight' => 'Gewicht van afspeellijst', 'Playlist:' => 'Afspeellijst:', 'Playlists' => 'Afspeellijsten', 'Plays' => 'Aantal keer gespeeld', 'Please log in to continue.' => 'Log-in om verder te gaan.', 'Podcast media should be in the MP3 or M4A (AAC) format for the greatest compatibility.' => 'Podcast media moeten MP3 of M4A (AAC) formaat hebben voor de beste compatibiliteit.', 'Podcast Title' => 'Podcast Titel', 'Podcasts Storage Location' => 'Opslaglocatie voor podcasts', 'Port:' => 'Poort:', 'Prefer Browser URL (If Available)' => 'Voorkeur browser URL (indien beschikbaar)', 'Previous' => 'Vorige', 'Profile' => 'Profiel', 'Programmatic Name' => 'Programmatische naam', 'Provide a valid license key from Thimeo. Functionality is limited without a license key.' => 'Zorg voor een geldige licentiesleutel van Thimeo. De functionaliteit is beperkt zonder licentiesleutel.', 'Public Page' => 'Publieke pagina', 'Public Page Background' => 'Openbare pagina achtergrond', 'Public Pages' => 'Publieke pagina\'s', 'Publish to "Yellow Pages" Directories' => 'Publiceren naar "Yellow Pages" gids', 'Queue' => 'Wachtrij', 'Queue the selected media to play next' => 'Voeg de geselecteerde media toe aan de wachtrij om hierna af te spelen', 'Ready to start broadcasting? Click to start your station.' => 'Klaar om te beginnen met uitzenden? Klik om uw station te starten.', 'Received' => 'Ontvangen', 'Record Live Broadcasts' => 'Neem Live Uitzendingen op', 'Recover Account' => 'Account herstellen', 'Refresh rows' => 'Ververs rijen', 'Region' => 'Regio', 'Relay Stream URL' => 'Relay stream URL', 'Release Channel' => 'Kanaal vrijgeven', 'Reload' => 'Herladen', 'Reload Configuration' => 'Configuratie Herladen', 'Reload to Apply Changes' => 'Opnieuw laden om wijzigingen toe te passen', 'Remember me' => 'Mijn gegevens onthouden', 'Remote' => 'Extern', 'Remote Playback Buffer (Seconds)' => 'Externe afspeelbuffer (seconden)', 'Remote Relays' => 'Externe relays', 'Remote relays let you work with broadcasting software outside this server. Any relay you include here will be included in your station\'s statistics. You can also broadcast from this server to remote relays.' => 'Externe relays laten u werken met uitzendsoftware buiten deze server. Elk relay die u hier toevoegt zal worden opgenomen in de statistieken van uw station. U kunt ook vanuit deze server naar externe relays uitzenden.', 'Remote Station Administrator Password' => 'Wachtwoord van extern station', 'Remote Station Listening Mountpoint/SID' => 'Mountpoint/SID van extern station', 'Remote Station Listening URL' => 'Luister URL van extern station', 'Remote Station Source Mountpoint/SID' => 'Externe station bron mountpoint/SID', 'Remote Station Source Password' => 'Bronwachtwoord van extern station', 'Remote Station Source Port' => 'Externe Station bron poort', 'Remote Station Source Username' => 'Bron gebruikersnaam van extern station', 'Remote Station Type' => 'Extern station type', 'Remote URL' => 'Externe URL', 'Remote URL Playlist' => 'Afspeellijst vanaf externe URL', 'Remote URL Type' => 'Externe URL type', 'Remote: Dropbox' => 'Extern: Dropbox', 'Remote: S3 Compatible' => 'Extern: S3 Compatibel', 'Remote: SFTP' => 'Afstandsbediening: SFTP', 'Remove' => 'Verwijderen', 'Remove Key' => 'Sleutel verwijderen', 'Rename' => 'Hernoemen', 'Rename File/Directory' => 'Wijzig bestand/map', 'Reorder' => 'Herschikken', 'Reorder Playlist' => 'Afspeellijst herschikken', 'Repeat' => 'Hehaal', 'Replace Album Cover Art' => 'Vervang albumhoes', 'Reports' => 'Rapportages', 'Reprocess' => 'Opnieuw verwerken', 'Request' => 'Aanvragen', 'Request a Song' => 'Nummer aanvragen', 'Request History' => 'Verzoek geschiedenis', 'Request Last Played Threshold (Minutes)' => 'Tijdsverschil ter verzoeken met afgespeelde nummers (in minuten)', 'Request Minimum Delay (Minutes)' => 'Minimale vertraging van verzoeknummers (minuten)', 'Request Song' => 'Nummer aanvragen', 'Requester IP' => 'IP van aanvrager', 'Requests' => 'Verzoek', 'Required' => 'Vereist', 'Reshuffle' => 'Opnieuw shufflen', 'Restart' => 'Herstart', 'Restart Broadcasting' => 'Uitzending herstarten', 'Restarting broadcasting will briefly disconnect your listeners.' => 'Herstarten van uitzendingen zal uw luisteraars kort ontkoppelen.', 'Restarting broadcasting will rewrite all configuration files and restart all services.' => 'Herstarten van uitzending zal alle configuratiebestanden herschrijven en alle diensten herstarten.', 'Restoring Backups' => 'Herstellen van back-ups', 'Role Name' => 'Rol naam', 'Roles' => 'Rollen', 'Roles & Permissions' => 'Rollen & Permissies', 'Rolling Release' => 'Rolling Release', 'RSS' => 'RSS', 'RSS Feed' => 'RSS-Feed', 'Run Automatic Nightly Backups' => 'Automatisch nachtelijks back-ups uitvoeren', 'Run Manual Backup' => 'Handmatige back-up uitvoeren', 'Run Task' => 'Taak uitvoeren', 'Saturday' => 'Zaterdag', 'Save' => 'Opslaan', 'Save and Continue' => 'Opslaan en doorgaan', 'Save Changes' => 'Instellingen Opslaan', 'Save Changes first' => 'Wijzigingen eerst opslaan', 'Schedule' => 'Schema planning', 'Schedule View' => 'Schema Bekijken', 'Scheduled' => 'Gepland', 'Scheduled Backup Time' => 'Geplande back-up tijd', 'Scheduled Play Days of Week' => 'Schema voor afspelen dagelijks en wekelijks', 'Scheduled playlists and other timed items will be controlled by this time zone.' => 'Onder andere geplande afspeellijsten zijn afhankelijk van de ingestelde tijdzone.', 'Scheduled Time #%{num}' => 'Geplande Tijd #%{num}', 'Search' => 'Zoeken', 'Seconds from the start of the song that the AutoDJ should start playing.' => 'Aantal seconden vanaf de start van het nummer waarop de AutoDJ moet beginnen met spelen.', 'Seconds from the start of the song that the AutoDJ should stop playing.' => 'Aantal seconden vanaf de start van het nummer waarop de AutoDJ moet stoppen met spelen.', 'Secret Key' => 'Geheime sleutel', 'Security' => 'Veiligheid', 'Security & Privacy' => 'Beveiliging & Privacy', 'See the Telegram documentation for more details.' => 'Zie de Telegram-documentatie voor meer informatie.', 'See the Telegram Documentation for more details.' => 'Zie de Telegram-documentatie voor meer informatie.', 'Seek' => 'Zoeken', 'Select' => 'Selecteer', 'Select a theme to use as a base for station public pages and the login page.' => 'Selecteer een thema dat als basis moet worden gebruikt voor openbare stations en de inlogpagina.', 'Select Configuration File' => 'Selecteer Configuratie Bestand', 'Select CSV File' => 'Selecteer CSV Bestand', 'Select Custom Fallback File' => 'Selecteer aangepast terugval bestand', 'Select File' => 'Selecteer bestand', 'Select Intro File' => 'Selecteer Intro Bestand', 'Select Media File' => 'Selecteer een bestand', 'Select PLS/M3U File to Import' => 'Selecteer PLS/M3U bestand om te importeren', 'Select PNG/JPG artwork file' => 'Selecteer PNG/JPG illustratie bestand', 'Select the category/categories that best reflects the content of your podcast.' => 'Selecteer de categorie/categorien die het beste bij de inhoud van uw podcast past.', 'Select the countries that are not allowed to connect to the streams.' => 'Selecteer de landen die geen verbinding met de streams mogen maken.', 'Send Test Message' => 'Testbericht verzenden', 'Sender E-mail Address' => 'E-mailadres afzender', 'Sender Name' => 'Naam afzender', 'Sequential' => 'Opeenvolgend', 'Server Status' => 'Server status', 'Services' => 'Diensten', 'Set a maximum disk space that this storage location can use. Specify the size with unit, i.e. "8 GB". Units are measured in 1024 bytes. Leave blank to default to the available space on the disk.' => 'Stel de maximale schijfruimte in die deze opslaglocatie mag gebruiken. Geef een grootte op met eenheid, d.w.z. "8 GB". Eenheden worden gemeten per 1024 bytes. Laat leeg om de standaard beschikbare ruimte op de schijf te gebruiken.', 'Set as Default Mount Point' => 'Instellen als standaard mount point', 'Set cue and fade points using the visual editor. The timestamps will be saved to the corresponding fields in the advanced playback settings.' => 'Stel cue en fade-punten in met behulp van de visuele editor. De tijdstempels worden opgeslagen in de overeenkomstige velden in de geavanceerde instellingen voor afspelen.', 'Set Cue In' => 'Cue In instellen', 'Set Cue Out' => 'Cue Out instellen', 'Set Fade In' => 'Fade In instellen', 'Set Fade Out' => 'Fade Out instellen', 'Set longer to preserve more playback history and listener metadata for stations. Set shorter to save disk space.' => 'Stel langer in om meer afspeel geschiedenis van stations te bewaren. Stel korter in om schijfruimte te besparen.', 'Set the length of time (seconds) a listener will stay connected to the stream. If set to 0, listeners can stay connected infinitely.' => 'Stel maximaal aantal seconden in hoe lang een luisteraar mag luisteren naar de stream, zet op 0 voor oneindig.', 'Set to * to allow all sources, or specify a list of origins separated by a comma (,).' => 'Zet op * om alle bronnen toe te staan, of geef een lijst op van oorsprong gescheiden door een komma (,).', 'Settings' => 'Instellingen', 'Setup instructions for broadcasting software are available on the AzuraCast wiki.' => 'Instructies voor het instellen van uitzendingssoftware zijn beschikbaar op de AzuraCast wiki.', 'SFTP Port' => 'SFTP-poort', 'SFTP Users' => 'SFTP gebruikers', 'Show new releases within your update channel on the AzuraCast homepage.' => 'Toon nieuwe releases binnen uw release-kanaal op de AzuraCast homepage.', 'Show on Public Pages' => 'Toon op openbare pagina\'s', 'Show the station in public pages and general API results.' => 'Toon het station in openbare pagina\'s en algemene API-resultaten.', 'Show Update Announcements' => 'Toon update aankondigingen', 'Sign Out' => 'Uitloggen', 'Site Base URL' => 'Website url', 'Skip Song' => 'Nummer overslaan', 'Skip to main content' => 'Ga naar hoofdinhoud', 'SMTP Host' => 'SMTP-Host', 'SMTP Password' => 'SMTP wachtwoord', 'SMTP Port' => 'SMTP-poort', 'SMTP Username' => 'SMTP gebruikersnaam', 'Song' => 'Nummer', 'Song Album' => 'Album', 'Song Artist' => 'Artiest', 'Song Genre' => 'Track Genre', 'Song History' => 'Afspeelgeschiedenis', 'Song Length' => 'Lengte Lied', 'Song Lyrics' => 'Songtekst Lied', 'Song Playback Order' => 'Volgorde van afspelen', 'Song Playback Timeline' => 'Nummer Afspeeltijdlijn', 'Song Requests' => 'Verzoeknummer', 'Song Title' => 'Titel', 'Song-based' => 'Nummergebaseerd', 'Song-Based Playlist' => 'Op lied gebaseerde afspeellijst', 'SoundExchange Report' => 'SoundExchange verslag', 'SoundExchange Royalties' => 'SoundExchange royalty\'s', 'Source' => 'Bron', 'Specify a mountpoint (i.e. "/radio.mp3") or a Shoutcast SID (i.e. "2") to specify a specific stream to use for statistics or broadcasting.' => 'Specificeer een mountpoint (bijv. "/radio.mp3") of een Shoutcast SID (bijv. "2") om een specifieke stream op te geven voor statistieken of uitzendingen.', 'Specify the minute of every hour that this playlist should play.' => 'Specificeer de minuut van elk uur dat deze afspeellijst moet spelen.', 'SSH Public Keys' => 'Openbare SSH sleutels', 'Start Date' => 'Start Datum', 'Start Station' => 'Start station', 'Start Time' => 'Starttijd', 'Station Name' => 'Stations Naam', 'Station Overview' => 'Overzicht van station', 'Station Permissions' => 'Permissies per station', 'Station Time' => 'Station tijd', 'Station Time Zone' => 'Tijdzone', 'Station-Specific Debugging' => 'Station-Specifieke Debugging', 'Steal' => 'Gestolen', 'Steal (St)' => 'Gestolen (st)', 'Step 1: Scan QR Code' => 'Stap 1: Scan QR Code', 'Step 2: Verify Generated Code' => 'Stap 2: Controleer gegenereerde code', 'Stereo Tool' => 'Stereo Tool', 'Stereo Tool documentation.' => 'Stereo Tool documentatie.', 'Stereo Tool Downloads' => 'Stereo Tool Downloads', 'Stereo Tool is a popular, proprietary tool for software audio processing. Using Stereo Tool, you can customize the sound of your stations using preset configuration files.' => 'Stereo Tool is een populair, eigen hulpmiddel voor softwarematige audioverwerking. Met Stereo Tool kunt u het geluid van uw stations aanpassen met behulp van vooraf ingestelde configuratiebestanden.', 'Stereo Tool is an industry standard for software audio processing. For more information on how to configure it, please refer to the' => 'Stereo Tool is een industriestandaard voor softwarematige audioverwerking. Voor meer informatie over hoe u dit kunt configureren, raadpleegt u de', 'Stereo Tool is not currently installed on this installation.' => 'Stereo Tool is momenteel niet genstalleerd.', 'Stereo Tool is not free software, and its restrictive license does not allow AzuraCast to distribute the Stereo Tool binary.' => 'Stereo Tool is geen gratis software en de beperkende licentie staat AzuraCast niet toe het binaire bestand Stereo Tool te verspreiden.', 'Stereo Tool version %{ version } is currently installed.' => 'Stereo Tool versie %{ version } is momenteel genstalleerd.', 'Storage Adapter' => 'Opslag Adapter', 'Storage Location' => 'Opslaglocatie', 'Storage Locations' => 'Opslaglocaties', 'Storage Quota' => 'Opslagruimte', 'Streamer Broadcasts' => 'Streamer uitzendingen', 'Streamer Display Name' => 'Streamer weergavenaam', 'Streamer password' => 'Wachtwoord streamer', 'Streamer Username' => 'Streamer gebruikersnaam', 'Streamer/DJ Accounts' => 'Streamer/DJ accounts', 'Streamers/DJs' => 'Streamers / DJ\'s', 'Submit Code' => 'Code verzenden', 'Sunday' => 'Zondag', 'Supported file formats:' => 'Ondersteunde bestandsindelingen:', 'Switch Theme' => 'Thema veranderen', 'Synchronization Tasks' => 'Synchronisatie taken', 'System Administration' => 'Systeembeheer', 'System Debugger' => 'Systeem Debugger', 'System Logs' => 'Systeemlogs', 'System Maintenance' => 'Systeem Onderhoud', 'System Settings' => 'Systeeminstellingen', 'The amount of memory Linux is using for disk caching.' => 'De hoeveelheid geheugen Linux gebruikt voor schijfcaching.', 'The base URL where this service is located. Use either the external IP address or fully-qualified domain name (if one exists) pointing to this server.' => 'De basis URL waar deze service beschikbaar is gesteld. Gebruik het externe IP-adres of een domeinnaam (als deze bestaat) dat zich richt naar deze server.', 'The body of the POST message is the exact same as the NowPlaying API response for your station.' => 'De inhoud van het POST bericht is exact hetzelfde als de Nu Speelt API reactie voor uw station.', 'The contact person of the podcast. May be required in order to list the podcast on services like Apple Podcasts, Spotify, Google Podcasts, etc.' => 'De contactpersoon van de podcast. Kan vereist zijn om podcast te tonen op diensten zoals Apple Podcasts, Spotify, Google Podcasts, etc.', 'The current CPU usage including I/O Wait and Steal.' => 'Het huidige CPU-gebruik, inclusief I/O Wait en Steal.', 'The current Memory usage excluding cached memory.' => 'Het huidige geheugengebruik exclusief gecached geheugen.', 'The description of the episode. The typical maximum amount of text allowed for this is 4000 characters.' => 'De beschrijving van de aflevering. De gebruikelijke maximale teksthoeveelheid voor dit is 4000 tekens.', 'The description of your podcast. The typical maximum amount of text allowed for this is 4000 characters.' => 'De beschrijving van je podcast. De gebruikelijke maximale teksthoeveelheid is 4000 tekens.', 'The display name assigned to this mount point when viewing it on administrative or public pages. Leave blank to automatically generate one.' => 'De weergave naam die aan dit mountpoint is gekoppeld en wordt weergegeven op administratieve- en publieke pagina\'s. Laat leeg om automatisch te laten genereren.', 'The display name assigned to this relay when viewing it on administrative or public pages. Leave blank to automatically generate one.' => 'De naam die aan dit mountpoint is gekoppeld en wordt weergegeven op administratieve- en publieke pagina\'s. Laat leeg om automatisch te laten genereren.', 'The editable text boxes are areas where you can insert custom configuration code. The non-editable sections are automatically generated by AzuraCast.' => 'De bewerkbare tekstvakken zijn gebieden waar u aangepaste configuratiecode kunt invoegen. De niet-bewerkbare secties worden automatisch gegenereerd door AzuraCast.', 'The email of the podcast contact. May be required in order to list the podcast on services like Apple Podcasts, Spotify, Google Podcasts, etc.' => 'De contactpersoon van de podcast. Kan vereist zijn om podcast te tonen binnen diensten als Apple Podcasts, Spotify, Google Podcasts, etc.', 'The file name should look like:' => 'De bestandsnaam moet er als volgt uitzien:', 'The full base URL of your Matomo installation.' => 'De volledige basis-URL van uw Matomo installatie.', 'The I/O Wait is the percentage of time that the CPU is waiting for disk access before it can continue the work that depends on the result of this.' => 'De I/O Wait is het percentage tijd dat de CPU wacht op toegang tot de schijf voordat het kan doorgaan met het werk dat afhankelijk is van het resultaat hiervan.', 'The language spoken on the podcast.' => 'De taal die wordt gesproken in de podcast.', 'The length of playback time that Liquidsoap should buffer when playing this remote playlist. Shorter times may lead to intermittent playback on unstable connections.' => 'De lengte van afspeeltijd dat Liquidsoap moet bufferen wanneer deze externe playlist wordt afgespeeld. Te korte buffers kunnen lijden tot onderbrekingen en instabiele verbindingen. ', 'The number of seconds to wait for a response from the remote server before cancelling the request.' => 'Het aantal seconden dat moet worden gewacht op een antwoord van de server voordat het verzoek wordt geannuleerd.', 'The numeric site ID for this site.' => 'Het numerieke site-ID voor deze site.', 'The parent directory where station playlist and configuration files are stored. Leave blank to use default directory.' => 'De bovenliggende map waar de afspeellijst en configuratiebestanden worden opgeslagen. Laat leeg om de standaard map te gebruiken.', 'The relative path of the file in the station\'s media directory.' => 'Het relatieve pad naar het bestand in de media map van het station.', 'The station ID will be a numeric string that starts with the letter S.' => 'Het station ID zal een numerieke reeks zijn die begint met de letter S.', 'The streamer will use this password to connect to the radio server.' => 'De streamer zal dit wachtwoord gebruiken om verbinding te maken met de radioserver.', 'The streamer will use this username to connect to the radio server.' => 'De streamer dient de gebruikersnaam te gebruiken om met de radio server te verbinden.', 'The time period that the song should fade in. Leave blank to use the system default.' => 'De periode waarin het liedje moet infaden. Leeg laten om de systeemstandaard te gebruiken.', 'The time period that the song should fade out. Leave blank to use the system default.' => 'De periode waarin het nummer moet uitfaden. Leeg laten om de systeemstandaard te gebruiken.', 'The URL that will receive the POST messages any time an event is triggered.' => 'De URL dat POST berichten zal ontvangen telkens wanneer er een Event wordt aangeroepen.', 'The volume in decibels to amplify the track with. Leave blank to use the system default.' => 'Het volume in decibels om het nummer mee te versterken. Laat leeg om de systeemstandaard te gebruiken.', 'Theme' => 'Thema', 'There is no existing custom fallback file associated with this station.' => 'Er is geen bestaand aangepaste terugvalbestand gekoppeld aan dit station.', 'There is no existing intro file associated with this mount point.' => 'Er is geen bestaand intro bestand gekoppeld aan dit mount punt.', 'There is no existing media associated with this episode.' => 'Er is geen bestaand intro bestand gekoppeld aan dit mount punt.', 'There is no Stereo Tool configuration file present.' => 'Er is geen Stereo Tool-configuratiebestand aanwezig.', 'This account will have full access to the system, and you\'ll automatically be logged in to it for the rest of setup.' => 'Dit account heeft volledige toegang tot het systeem. U wordt automatisch ingelogd voor de rest van de setup.', 'This can make it look like your memory is low while it actually is not. Some monitoring solutions/panels include cached memory in their used memory statistics without indicating this.' => 'Hierdoor kan het lijken alsof uw geheugen laag is, terwijl dat in werkelijkheid niet zo is. Sommige monitoring oplossingen/panels nemen caching geheugen mee in hun gebruikte geheugenstatistieken zonder dit aan te geven.', 'This code will be included in the frontend configuration. Allowed formats are:' => 'Deze code zal worden opgenomen in de frontend configuratie. Toegestane formaten zijn:', 'This configuration file should be a valid .sts file exported from Stereo Tool.' => 'Dit configuratiebestand moet een geldig .sts-bestand zijn dat is gexporteerd vanuit Stereo Tool.', 'This CSS will be applied to the main management pages, like this one.' => 'Deze CSS zal worden toegevoegd aan alle pagina\'s binnen de beheeromgeving, zoals deze pagina.', 'This CSS will be applied to the station public pages and login page.' => 'Deze CSS zal worden toegepast op de inlogpagina en openbare pagina\'s van het station.', 'This file will be played on your radio station any time no media is scheduled to play or a critical error occurs that interrupts regular broadcasting.' => 'Dit bestand zal op je radiostation worden afgespeeld wanneer er geen media gepland staan om af te spelen of wanneer er een kritieke fout optreedt die de reguliere uitzending onderbreekt.', 'This image will be used as the default album art when this streamer is live.' => 'Deze afbeelding wordt gebruikt als de standaard albumhoes wanneer deze streamer live is.', 'This introduction file should exactly match the bitrate and format of the mount point itself.' => 'Dit introductiebestand moet precies overeenkomen met de bitrate en het formaat van het mount point zelf.', 'This is an advanced feature and custom code is not officially supported by AzuraCast. You may break your station by adding custom code, but removing it should fix any issues.' => 'Dit is een geavanceerde functie en aangepaste code wordt niet officieel ondersteund door AzuraCast. U kunt uw station kapot maken door een aangepaste code toe te voegen, maar het verwijderen kan problemen oplossen.', 'This is the informal display name that will be shown in API responses if the streamer/DJ is live.' => 'Dit is de informele weergavenaam die zal worden weergegeven in API-antwoorden als de streamer/DJ live is.', 'This javascript code will be applied to the station public pages and login page.' => 'Deze javascript code zal worden toegepast op de openbare pagina\'s van het station en de inlogpagina.', 'This name should always begin with a slash (/), and must be a valid URL, such as /autodj.mp3' => 'De naam dient te beginnen met een schuine streep (/), en een geldige URL te bevatten. Bijv: /autodj.mp3', 'This name will appear as a sub-header next to the AzuraCast logo, to help identify this server.' => 'Deze naam wordt weergegeven als subtitel naast het AzuraCast logo, ter herkenning van deze server.', 'This playlist currently has no scheduled times. It will play at all times. To add a new scheduled time, click the button below.' => 'De afspeellijst heeft momenteel geen geplande tijden. Hij zal te allen tijde afspelen. Klik op de knop hieronder om een nieuwe geplande tijd toe te voegen.', 'This playlist will play every $x minutes, where $x is specified here.' => 'Deze afspeellijst zal elke $x minuten afspelen, waar $x hier is gespecificeerd.', 'This playlist will play every $x songs, where $x is specified here.' => 'Deze afspeellijst zal elke $x nummers afspelen, waar $x hier is gespecificeerd.', 'This queue contains the remaining tracks in the order they will be queued by the AzuraCast AutoDJ (if the tracks are eligible to be played).' => 'Deze wachtrij bevat de resterende nummers in de volgorde waarin ze in de wachtrij staan door de AzuraCast AutoDJ (als de nummers in aanmerking komen om af te spelen).', 'This service can provide album art for tracks where none is available locally.' => 'Deze service kan albumhoes voorzien voor nummers waarvan er geen lokaal beschikbaar is.', 'This station\'s time zone is currently %{tz}.' => 'De tijdzone van dit station is momenteel %{tz}.', 'This streamer is not scheduled to play at any times.' => 'Deze streamer is nog niet opgenomen in de planning.', 'This URL is provided within the Discord application.' => 'Deze URL is verstrekt binnen de Discord-applicatie.', 'This web hook will only run when the selected event(s) occur on this specific station.' => 'Deze webhook wordt alleen uitgevoerd als de geselecteerde gebeurtenis(en) op dit specifieke station voorkomen.', 'This will be used as the label when editing individual songs, and will show in API results.' => 'Dit wordt gebruikt als label bij het bewerken van individuele nummers, en zal worden weergegeven in API resultaten.', 'This will clear any pending unprocessed messages in all message queues.' => 'Dit verwijdert alle wachtende en onverwerkte berichten in alle berichtenwachtrijen.', 'This will produce a significantly smaller backup, but you should make sure to back up your media elsewhere. Note that only locally stored media will be backed up.' => 'Dit levert een aanzienlijk kleinere back-up op, maar u moet ervoor zorgen dat u ergens anders een back-up van uw media maakt. Merk op dat er alleen een back-up wordt gemaakt van lokaal opgeslagen media.', 'Thumbnail Image URL' => 'Thumbnail afbeelding URL', 'Thursday' => 'Donderdag', 'Time' => 'Tijd', 'Time spent waiting for disk I/O to be completed.' => 'Tijd besteed aan het wachten op schijf I/O om te worden voltooid.', 'Time stolen by other virtual machines on the same physical server.' => 'Tijd gestolen door andere virtuele machines op dezelfde fysieke server.', 'Time Zone' => 'Tijdzone', 'Title' => 'Titel', 'To alleviate this potential problem with shared CPU resources, hosts assign "credits" to a VPS which are used up according to an algorithm based on the CPU load as well as the time over which the CPU load is generated. If your VM\'s assigned credit is used up, they will take CPU time from your VM and assign it to other VMs on the machine. This is seen as the "Steal" or "St" value.' => 'Om dit potentile probleem te verlichten met gedeelde CPU-middelen, hosts wijzen "credits" toe aan een VPS die worden gebruikt volgens een algoritme gebaseerd op de CPU-belasting en de tijd waarop de CPU-belasting wordt gegenereerd. Als uw VM\'s toegewezen krediet wordt gebruikt, zullen ze de CPU-tijd van uw VM gebruiken en aan andere VM\'s op de machine toewijzen. Dit wordt gezien als de "Steal" of "St" waarde.', 'To download the GeoLite database:' => 'Om de GeoLite database te downloaden:', 'To play once per day, set the start and end times to the same value.' => 'Stel de start- en eindtijd in op dezelfde waarde om n keer per dag te spelen.', 'To restore a backup from your host computer, run:' => 'Om een back-up te herstellen vanaf uw computer, voer het volgende commando uit:', 'To retrieve detailed unique listeners and client details, an administrator password is often required.' => 'Om gedetailleerde unieke luisteraar- en clientgegevens op te halen, is een beheerders wachtwoord vaak vereist.', 'To set this schedule to run only within a certain date range, specify a start and end date.' => 'Om dit schema alleen binnen een bepaald datumbereik uit te voeren, geef je een start- en einddatum op.', 'To verify that the code was set up correctly, enter the 6-digit code the app shows you.' => 'Om te controleren of de code correct is ingesteld, voert u de 6-cijferige code in die binnen de app wordt getoond.', 'Toggle Menu' => 'Menu aan/uit', 'Toggle Sidebar' => 'Sidebar aan/uit', 'Total Disk Space' => 'Totale schijfruimte', 'Total Listener Hours' => 'Totaal aantal luisteruren', 'Total RAM' => 'Totale RAM', 'Transmitted' => 'Verzonden', 'Tuesday' => 'Dinsdag', 'TuneIn Partner ID' => 'TuneIn partner-ID', 'TuneIn Partner Key' => 'TuneIn partner sleutel', 'Two-Factor Authentication' => 'Tweestapsverificatie', 'Two-factor authentication improves the security of your account by requiring a second one-time access code in addition to your password when you log in.' => 'Tweestapsverificatie verbetert de veiligheid van uw account door een tweede eenmalige toegangscode te eisen naast uw wachtwoord wanneer u inlogt.', 'Typically a website with content about the episode.' => 'Meestal een website met inhoud over de aflevering.', 'Typically the home page of a podcast.' => 'Meestal de startpagina van een podcast.', 'Unassigned Files' => 'Niet toegewezen Bestanden', 'Uninstall' => 'Denstalleren', 'Unique' => 'Uniek', 'Unique identifier for the target chat or username of the target channel (in the format @channelusername).' => 'Unieke id voor de doelchat of gebruikersnaam van het doelkanaal (in het formaat @channelgebruikersnaam).', 'Unique Listeners' => 'Unieke luisteraars', 'Unknown' => 'Onbekend', 'Unknown Artist' => 'Onbekende artiest', 'Unknown Title' => 'Onbekende titel', 'Unprocessable Files' => 'Niet verwerkte bestanden', 'Upcoming Song Queue' => 'Aankomende nummers in wachtrij', 'Update Instructions' => 'Update instructies', 'Update Metadata' => 'Metadata bijwerken', 'Updated' => 'Bijgewerkt', 'Upload a Stereo Tool configuration file from the "Broadcasting" submenu in the station profile.' => 'Upload een Stereo Tool configuratiebestand vanuit het submenu "Uitzenden" in het zenderprofiel.', 'Upload Custom Assets' => 'Aangepaste content uploaden', 'Upload Stereo Tool Configuration' => 'Upload Stereo Tool Configuratie', 'Upload the file on this page to automatically extract it into the proper directory.' => 'Upload het bestand op deze pagina om het automatisch in de juiste map te vinden.', 'URL Stub' => 'URL-vriendelijke naam', 'Use' => 'Gebruik', 'Use (Us)' => 'Gebruik (ons)', 'Use API keys to authenticate with the AzuraCast API using the same permissions as your user account.' => 'Gebruik API-sleutels om te verifiren met de AzuraCast API met dezelfde rechten als uw gebruikersaccount.', 'Use Secure (TLS) SMTP Connection' => 'Gebruik beveiligde (TLS) SMTP verbinding', 'Use Web Proxy for Radio' => 'Web proxy gebruiken', 'Used' => 'Gebruikt', 'Used for "Forgot Password" functionality, web hooks and other functions.' => 'Wordt gebruikt voor de "Wachtwoord vergeten" functionaliteit, webhooks en andere functies.', 'User Accounts' => 'Gebruikers account', 'User Agent' => 'Browser', 'Username' => 'Gebruikersnaam', 'Username:' => 'Gebruikersnaam:', 'Users' => 'Gebruikers', 'Users with this role will have these permissions across the entire installation.' => 'Gebruikers met deze rol zullen deze rechten hebben binnen de hele installatie.', 'Users with this role will have these permissions for this single station.' => 'Gebruikers met deze rol hebben deze rechten enkel voor dit station.', 'Using this page, you can customize several sections of the Liquidsoap configuration. This allows you to add advanced functionality to your station\'s AutoDJ.' => 'Met behulp van deze pagina kunt u meerdere secties van de Liquidsoap configuratie aanpassen. Dit stelt u in staat om geavanceerde functionaliteit toe te voegen aan de AutoDJ van uw station.', 'Usually enabled for port 465, disabled for ports 587 or 25.' => 'Meestal ingeschakeld voor poort 465, uitgeschakelde havens 587 of 25.', 'View' => 'Bekijk', 'View Profile' => 'Bekijk profiel', 'View tracks in playlist' => 'Bekijk nummers in afspeellijst', 'Visual Cue Editor' => 'Visuele Cue Editor', 'Wait' => 'Wacht', 'Wait (Wa)' => 'Wacht (Wa)', 'Web DJ' => 'Web DJ', 'Web Hook Details' => 'Webhook details', 'Web Hook Name' => 'Webhook naam', 'Web Hook Triggers' => 'Webhook Triggers', 'Web Hook URL' => 'Webhook URL', 'Web Hooks' => 'Webhooks', 'Web hooks automatically send a HTTP POST request to the URL you specify to notify it any time one of the triggers you specify occurs on your station.' => 'Webhooks sturen automatisch een HTTP-POST-verzoek naar de door u opgegeven URL om het te informeren wanneer een van de door u opgegeven triggers op uw station plaatsvindt.', 'Web hooks let you connect to external web services and broadcast changes to your station to them.' => 'Webhooks laat u verbinding maken met externe webdiensten om informatie door te sturen bij veranderingen binnen uw station.', 'Web Site URL' => 'Website URL', 'Wednesday' => 'Woensdag', 'Welcome to AzuraCast!' => 'Welkom bij AzuraCast!', 'Welcome!' => 'Welkom!', 'When making API calls, you can pass this value in the "X-API-Key" header to authenticate as yourself.' => 'Bij het starten van API-oproepen kun je deze waarde doorgeven in de "X-API-Key"-header om je aan te melden als jij.', 'Whether the AutoDJ should attempt to avoid duplicate artists and track titles when playing media from this playlist.' => 'Of de AutoDJ moet proberen dubbele artiesten en titels te vermijden gedurende het afspelen van media uit deze afspeellijst.', 'Widget Type' => 'Widget type', 'Worst Performing Songs' => 'Slecht presterende nummers', 'Yes' => 'Ja', 'You' => 'Jij', 'You can also upload files in bulk via SFTP.' => 'U kunt ook bestanden in bulk uploaden via SFTP.', 'You can only perform the actions your user account is allowed to perform.' => 'Je kunt alleen de acties uitvoeren die je gebruikersaccount mag uitvoeren.', 'You may need to connect directly to your IP address:' => 'Mogelijk moet u direct verbinding maken met uw IP-adres:', 'You may need to connect directly via your IP address:' => 'Mogelijk moet u direct verbinding maken met uw IP-adres:', 'You will not be able to retrieve it again.' => 'Je kunt deze niet opnieuw ophalen.', 'Your full API key is below:' => 'Uw volledige API-sleutel wordt hieronder weergegeven:', 'YP Directory Authorization Hash' => 'YP Directory Autorisatie Hash', 'Select...' => 'Selecteer...', 'Too many forgot password attempts' => 'Te veel wachtwoord vergeten pogingen', 'You have attempted to reset your password too many times. Please wait 30 seconds and try again.' => 'U heeft te vaak geprobeerd uw wachtwoord opnieuw in te stellen. Wacht 30 seconden en probeer het opnieuw.', 'Account Recovery' => 'Accountherstel', 'Account recovery e-mail sent.' => 'E-mailbericht verzonden om account te herstellen.', 'If the e-mail address you provided is in the system, check your inbox for a password reset message.' => 'Als het e-mailadres dat u heeft opgegeven in het systeem staat, check dan uw inbox voor een wachtwoord reset bericht.', 'Too many login attempts' => 'Te veel inlogpogingen', 'You have attempted to log in too many times. Please wait 30 seconds and try again.' => 'Je hebt te vaak geprobeerd om in te loggen. Gelieve 30 seconden te wachten en probeer opnieuw.', 'Logged in successfully.' => 'U bent succesvol ingelogd.', 'Complete the setup process to get started.' => 'Voltooi het installatieproces om aan de slag te gaan.', 'Login unsuccessful' => 'Fout tijdens inloggen', 'Your credentials could not be verified.' => 'Je logingegevens zijn incorrect.', 'User not found.' => 'Gebruiker niet gevonden.', 'Invalid token specified.' => 'Ongeldige token gespecificeerd.', 'Logged in using account recovery token' => 'Ingelogd met behulp van het account-herstel-token', 'Your password has been updated.' => 'Uw wachtwoord is bijgewerkt.', 'Set Up AzuraCast' => 'AzuraCast instellen', 'Setup has already been completed!' => 'De installatie is al voltooid!', 'All Stations' => 'Alle stations', 'AzuraCast Application Log' => 'AzuraCast applicatielog', 'Nginx Access Log' => 'Nginx toegangslogboek', 'Nginx Error Log' => 'Nginx foutlog', 'PHP Application Log' => 'PHP applicatielog', 'Supervisord Log' => 'Supervisord log', 'Create a new storage location based on the base directory.' => 'Maak een nieuwe opslaglocatie gebaseerd op de basismap.', 'You cannot modify yourself.' => 'U kunt uzelf niet wijzigen.', 'You cannot remove yourself.' => 'Je kunt jezelf niet verwijderen.', 'Test Message' => 'Test Bericht', 'This is a test message from AzuraCast. If you are receiving this message, it means your e-mail settings are configured correctly.' => 'Dit is een testbericht van AzuraCast. Als u dit bericht ontvangt, betekent dit dat uw e-mailinstellingen correct zijn geconfigureerd.', 'Test message sent successfully.' => 'Test Bericht succesvol verzonden.', 'Mobile Device' => 'Mobiel apparaat', 'File Not Processed: %s' => 'Bestand niet verwerkt: %s', 'File Processing' => 'Bestand verwerken', 'No directory specified' => 'Geen map opgegeven', 'File not specified.' => 'Bestand niet gespecificeerd.', 'New path not specified.' => 'Nieuw pad niet gespecificeerd.', 'This station is out of available storage space.' => 'Dit station gebruikt teveel opslagruimte.', 'Web hook enabled.' => 'Webhook ingeschakeld.', 'Web hook disabled.' => 'Web hook uitgeschakeld.', 'Station reloaded.' => 'Station is opnieuw geladen.', 'Station restarted.' => 'Station is opnieuw gestart.', 'Service stopped.' => 'Service gestopt.', 'Service started.' => 'Service gestart.', 'Service reloaded.' => 'Service opnieuw geladen.', 'Service restarted.' => 'Station is opnieuw gestart.', 'Song skipped.' => 'Nummer overgeslagen.', 'Streamer disconnected.' => 'Streamer ontkoppeld.', 'Liquidsoap Log' => 'Liquidsoap log', 'Liquidsoap Configuration' => 'Liquidsoap configuratie', 'Icecast Access Log' => 'Icecast toegangslogboek', 'Icecast Error Log' => 'Icecast foutenlogboek', 'Icecast Configuration' => 'Icecast configuratie', 'Search engine crawlers are not permitted to use this feature.' => 'Zoekmachine crawlers zijn niet toegestaan om deze functie te gebruiken.', 'You are not permitted to submit requests.' => 'Je hebt geen toestemming om aanvragen in te dienen.', 'This song or artist has been played too recently. Wait a while before requesting it again.' => 'Dit nummer of deze artiest werd onlangs afgespeeld. Wacht even voordat u het opnieuw aanvraagt.', 'You have submitted a request too recently! Please wait before submitting another one.' => 'U heeft kortgeleden al een verzoekplaat ingediend! Wacht aub 15 minuten voordat u een volgende indient.', 'This playlist is not a sequential playlist.' => 'Deze afspeellijst is geen opeenvolgende afspeellijst.', 'Playlist reshuffled.' => 'Afspeellijst geshuffeld.', 'Playlist enabled.' => 'Afspeellijst ingeschakeld.', 'Playlist disabled.' => 'Afspeellijst uitgeschakeld.', 'Playlist successfully imported; %d of %d files were successfully matched.' => 'Afspeellijst succesvol gemporteerd; %d van de %d bestanden zijn succesvol gematcht.', 'No recording available.' => 'Geen opname beschikbaar.', 'Record not found' => 'Record niet gevonden', 'The uploaded file exceeds the upload_max_filesize directive in php.ini.' => 'Het geploade bestand overschrijdt de upload_max_filesize waarde uit php.ini.', 'The uploaded file exceeds the MAX_FILE_SIZE directive from the HTML form.' => 'Het geploade bestand is groter dan de MAX_FILE_SIZE richtlijn uit het HTML-formulier.', 'The uploaded file was only partially uploaded.' => 'Het geploade bestand is slechts gedeeltelijk gepload.', 'No file was uploaded.' => 'Er is geen bestand gepload.', 'No temporary directory is available.' => 'Geen tijdelijke map beschikbaar.', 'Could not write to filesystem.' => 'Kan niet naar het bestandssysteem schrijven.', 'Upload halted by a PHP extension.' => 'Upload gestopt door een PHP-extensie.', 'Unspecified error.' => 'Onbekende fout.', 'Changes saved successfully.' => 'Wijzigingen succesvol opgeslagen.', 'Record created successfully.' => 'Veld is met succes aangemaakt.', 'Record updated successfully.' => 'Veld is met succes gewijzigd.', 'Record deleted successfully.' => 'Record succesvol verwijderd.', 'Playlist: %s' => 'Afspeellijst: %s', 'Streamer: %s' => 'Streamer: %s', 'The account associated with e-mail address "%s" has been set as an administrator' => 'Het account dat gekoppeld is aan het e-mailadres "%s" is ingesteld als administrator', 'Account not found.' => 'Account niet gevonden.', 'Running database migrations...' => 'Database migraties worden uitgevoerd...', 'AzuraCast Settings' => 'AzuraCast instellingen', 'Setting Key' => 'Instellingssleutel', 'Setting Value' => 'Instellingswaarde', 'Fixtures loaded.' => 'Fixtures geladen.', 'Attempting to restore that now...' => 'Aan het proberen dat nu te herstellen...', 'Restore failed: %s' => 'Herstel mislukt: %s', 'AzuraCast Backup' => 'AzuraCast back-up', 'Please wait while a backup is generated...' => 'Een ogenblik geduld, een back-up wordt gegenereerd...', 'Creating temporary directories...' => 'Tijdelijke mappen maken...', 'Backing up MariaDB...' => 'MariaDB back-uppen...', 'Creating backup archive...' => 'Backup archief aanmaken...', 'Cleaning up temporary files...' => 'Tijdelijke bestanden opruimen...', 'Backup complete in %.2f seconds.' => 'Back-up voltooid in %.2f seconden.', 'Backup path %s not found!' => 'Back-up pad %s niet gevonden!', 'Imported locale: %s' => 'Taal gemporteerd: %s', 'AzuraCast Initializing...' => 'AzuraCast Initialiseren...', 'AzuraCast Setup' => 'AzuraCast setup', 'Welcome to AzuraCast. Please wait while some key dependencies of AzuraCast are set up...' => 'Welkom bij AzuraCast. Een ogenblik geduld terwijl enkele code afhankelijkheden worden ingesteld...', 'Running Database Migrations' => 'Database migraties worden uitgevoerd', 'Generating Database Proxy Classes' => 'Genereren van database proxy-klassen', 'Reload System Data' => 'Herlaad systeemgegevens', 'Installing Data Fixtures' => 'Data Fixtures installeren', 'Refreshing All Stations' => 'Alle stations verversen', 'AzuraCast is now updated to the latest version!' => 'AzuraCast is bijgewerkt naar de laatste versie!', 'AzuraCast installation complete!' => 'De installatie van AzuraCast is voltooid!', 'Visit %s to complete setup.' => 'Bezoek %s om de setup te voltooien.', '%s is not recognized as a service.' => '%s is niet herkend als een service.', 'It may not be registered with Supervisor yet. Restarting broadcasting may help.' => 'Het is mogelijk nog niet geregistreerd bij Supervisor. Het opnieuw starten van de uitzending kan helpen.', '%s cannot start' => '%s kan niet worden gestart', 'It is already running.' => 'Proces is al gestart.', '%s cannot stop' => '%s kan niet stoppen', 'It is not running.' => 'Het loopt niet.', 'Check the log for details.' => 'Controleer het logboek voor details.', 'You do not have permission to access this portion of the site.' => 'U heeft geen toestemming om dit deel van de website te bezoeken.', 'Cannot submit request: %s' => 'Kan aanvraag niet indienen: %s', 'You must be logged in to access this page.' => 'U moet ingelogd zijn om toegang te krijgen tot deze pagina.', 'This value is already used.' => 'Deze waarde wordt al gebruikt.', 'Storage location %s could not be validated: %s' => 'Opslaglocatie %s kon niet worden gevalideerd: %s', 'Storage location %s already exists.' => 'Opslaglocatie %s bestaat al.', 'All Permissions' => 'Alle rollen', 'View Station Page' => 'Bekijk stationspagina', 'View Station Reports' => 'Bekijk station rapportages', 'View Station Logs' => 'Bekijk station logs', 'Manage Station Profile' => 'Beheer stationsprofiel', 'Manage Station Broadcasting' => 'Beheer uitzending van station', 'Manage Station Streamers' => 'Beheer streamers van station', 'Manage Station Mount Points' => 'Beheer mount points van station', 'Manage Station Remote Relays' => 'Beheer externe relays van station', 'Manage Station Media' => 'Beheer media van station', 'Manage Station Automation' => 'Beheer automatie van station', 'Manage Station Web Hooks' => 'Beheer webhooks van station', 'Manage Station Podcasts' => 'Beheer podcasts van station', 'View Administration Page' => 'Bekijk beheerders pagina', 'View System Logs' => 'Bekijk systeemlogs', 'Administer Settings' => 'Instellingen beheren', 'Administer API Keys' => 'API-sleutels beheren', 'Administer Stations' => 'Stations beheren', 'Administer Custom Fields' => 'Aangepaste velden beheren', 'Administer Backups' => 'Back-ups beheren', 'Administer Storage Locations' => 'Beheer opslag locaties', 'Cache' => 'Cache', 'This product includes GeoLite2 data created by MaxMind, available from %s.' => 'Deze functionaliteit bevat gegevens uit de GeoLite2 database van MaxMind, welke beschikbaar is via %s.', 'IP Geolocation by DB-IP' => 'IP Geolocatie door DB-IP', 'GeoLite database not configured for this installation. See System Administration for instructions.' => 'De GeoLite database is niet geconfigureerd voor deze installatie. Zie Systeembeheer voor instructies.', 'Installation Not Recently Backed Up' => 'Deze installatie heeft nog geen recente back-up.', 'This installation has not been backed up in the last two weeks.' => 'Er is geen back-up van deze installatie gemaakt in de afgelopen twee weken.', 'Service Not Running: %s' => 'Service wordt niet uitgevoerd: %s', 'One of the essential services on this installation is not currently running. Visit the system administration and check the system logs to find the cause of this issue.' => 'Een van de essentile diensten voor deze installatie is op dit moment niet actief. Bezoek het systeembeheer en controleer de systeemlogboeken om de oorzaak van dit probleem te vinden.', 'New AzuraCast Stable Release Available' => 'Nieuwe AzuraCast Stable Release Beschikbaar', 'Version %s is now available. You are currently running version %s. Updating is recommended.' => 'Versie %s is nu beschikbaar. Je gebruikt momenteel versie %s. Bijwerken wordt aanbevolen.', 'New AzuraCast Rolling Release Available' => 'Nieuwe AzuraCast Rolling Release Beschikbaar', 'Your installation is currently %d update(s) behind the latest version. Updating is recommended.' => 'Uw installatie is momenteel %d update(s) achter de laatste versie.', 'Switch to Stable Channel Available' => 'Schakel over naar stabiel kanaal beschikbaar', 'Your Rolling Release installation is currently older than the latest Stable release. This means you can switch releases to the "Stable" release channel if desired.' => 'Uw Rolling Release-installatie is momenteel ouder dan de nieuwste Stable versie. Dit betekent dat u kunt overschakelen naar het "Stable" release kanaal indien gewenst.', 'Synchronization Disabled' => 'Synchronisatie Uitgeschakeld', 'Routine synchronization is currently disabled. Make sure to re-enable it to resume routine maintenance tasks.' => 'Routinesynchronisatie is momenteel uitgeschakeld. Zorg ervoor dat u deze weer inschakelt om routinematige onderhoudstaken te hervatten.', 'Synchronization Not Recently Run' => 'Synchronisatie niet recent uitgevoerd', 'The routine synchronization task has not run recently. This may indicate an error with your installation.' => 'De routine synchronisatie taak is onlangs niet uitgevoerd. Dit kan duiden op een fout met uw installatie.', 'The performance profiling extension is currently enabled on this installation.' => 'De extensie voor het prestatie profiel is momenteel ingeschakeld op deze installatie.', 'You can track the execution time and memory usage of any AzuraCast page or application from the profiler page.' => 'U kunt de uitvoeringstijd en het geheugengebruik van elke AzuraCast-pagina of -toepassing volgen vanaf de profielpagina.', 'Profiler Control Panel' => 'Profiel Configuratiescherm', 'Performance profiling is currently enabled for all requests.' => 'Prestatieprofiel is momenteel ingeschakeld voor alle verzoeken.', 'This can have an adverse impact on system performance. You should disable this when possible.' => 'Dit kan een negatieve invloed hebben op de systeemprestaties. U kunt dit het beste uitschakelen als dit mogelijk is.', 'You may want to update your base URL to ensure it is correct.' => 'Misschien wilt u uw basis URL bijwerken om er zeker van te zijn dat deze correct is.', 'If you regularly use different URLs to access AzuraCast, you should enable the "Prefer Browser URL" setting.' => 'Als u regelmatig verschillende URL\'s gebruikt om toegang te krijgen tot AzuraCast, moet u de "Voorkeur Browser URL" instelling aanzetten.', 'Your "Base URL" setting (%s) does not match the URL you are currently using (%s).' => 'Uw "Basis URL" instelling (%s) komt niet overeen met de URL die u momenteel gebruikt (%s).', 'AzuraCast is free and open-source software.' => 'AzuraCast is gratis en open-source software.', 'If you are enjoying AzuraCast, please consider donating to support our work. We depend on donations to build new features, fix bugs, and keep AzuraCast modern, accessible and free.' => 'Als u tevreden bent met AzuraCast, overweeg dan om te doneren om ons werk te ondersteunen. We zijn afhankelijk van donaties voor het bouwen van nieuwe functies, het oplossen van bugs en ervoor te zorgen dat AzuraCast modern, toegankelijk en gratis blijft.', 'Donate to AzuraCast' => 'Doneer aan AzuraCast', 'AzuraCast Installer' => 'AzuraCast installatieprogramma', 'Welcome to AzuraCast! Complete the initial server setup by answering a few questions.' => 'Welkom bij AzuraCast! Voltooi de initile server installatie door enkele vragen te beantwoorden.', 'AzuraCast Updater' => 'AzuraCast Updater', 'Change installation settings?' => 'Installatie instellingen wijzigen?', 'AzuraCast is currently configured to listen on the following ports:' => 'AzuraCast is momenteel geconfigureerd om te luisteren op de volgende poorten:', 'HTTP Port: %d' => 'HTTP poort: %d', 'HTTPS Port: %d' => 'HTTPS poort: %d', 'SFTP Port: %d' => 'SFTP poort: %d', 'Radio Ports: %s' => 'Radio poorten: %s', 'Customize ports used for AzuraCast?' => 'Poorten aanpassen die worden gebruikt door AzureCast?', 'Writing configuration files...' => 'Configuratiebestanden genereren...', 'Server configuration complete!' => 'Serverconfiguratie voltooid!', 'This file was automatically generated by AzuraCast.' => 'Dit bestand is automatisch gegenereerd door AzuraCast.', 'You can modify it as necessary. To apply changes, restart the Docker containers.' => 'U kunt dit wijzigen indien nodig. Herstart de Docker containers om de wijzigingen toe te passen.', 'Remove the leading "#" symbol from lines to uncomment them.' => 'Verwijder het leidende "#"-symbool van regels om ze te activeren.', 'Valid options: %s' => 'Geldige opties: %s', 'Default: %s' => 'Standaard: %s', 'Additional Environment Variables' => 'Extra omgevingsvariabelen', '(Docker Compose) All Docker containers are prefixed by this name. Do not change this after installation.' => '(Docker Compose) Alle Docker containers beginnen met deze naam. Verander dit niet na installatie.', '(Docker Compose) The amount of time to wait before a Docker Compose operation fails. Increase this on lower performance computers.' => '(Docker Compose) De hoeveelheid tijd die moet worden gewacht voordat een Docker Compose-bewerking mislukt. Verhoog dit op computers / servers met lagere prestaties.', 'HTTP Port' => 'HTTP-poort', 'The main port AzuraCast listens to for insecure HTTP connections.' => 'De hoofdpoort waar AzuraCast naar luistert voor onveilige HTTP-verbindingen.', 'HTTPS Port' => 'HTTPS-poort', 'The main port AzuraCast listens to for secure HTTPS connections.' => 'De hoofdpoort waar AzuraCast naar luistert voor veilige HTTPS-verbindingen.', 'The port AzuraCast listens to for SFTP file management connections.' => 'De poort waar AzuraCast naar luistert voor SFTP-bestandsbeheerverbindingen.', 'Station Ports' => 'Station poorten', 'The ports AzuraCast should listen to for station broadcasts and incoming DJ connections.' => 'De poorten waarnaar AzuraCast moet luisteren voor zenderuitzendingen en inkomende DJ-verbindingen.', 'Docker User UID' => 'Docker gebruiker UID', 'Set the UID of the user running inside the Docker containers. Matching this with your host UID can fix permission issues.' => 'Stel de UID in van de gebruiker die in de Docker-containers wordt uitgevoerd. Als u dit koppelt aan uw host-UID, kunnen problemen met machtigingen worden opgelost.', 'Docker User GID' => 'Docker Gebruiker GID', 'Set the GID of the user running inside the Docker containers. Matching this with your host GID can fix permission issues.' => 'Stel de GID in van de gebruiker die in de Docker-containers wordt uitgevoerd. Als u dit koppelt aan uw host-GID, kunnen problemen met machtigingen worden opgelost.', 'Use Podman instead of Docker.' => 'Gebruik Podman in plaats van Docker.', 'Advanced: Use Privileged Docker Settings' => 'Geavanceerd: Rechten Docker-instellingen gebruiken', 'The locale to use for CLI commands.' => 'De lokalisatie om te gebruiken voor CLI-commando\'s.', 'The application environment.' => 'De applicatieomgeving.', 'Manually modify the logging level.' => 'Logboek niveau handmatig wijzigen.', 'This allows you to log debug-level errors temporarily (for problem-solving) or reduce the volume of logs that are produced by your installation, without needing to modify whether your installation is a production or development instance.' => 'Hiermee kunt u tijdelijk fouten op foutenniveau loggen (voor probleem-oplossing) of het volume van de logs verminderen die door uw installatie worden geproduceerd, zonder dat je hoeft te wijzigen of je installatie een productie- of ontwikkelingsinstantie is.', 'Enable Custom Code Plugins' => 'Plugins met aangepaste code inschakelen', 'Enable the composer "merge" functionality to combine the main application\'s composer.json file with any plugin composer files. This can have performance implications, so you should only use it if you use one or more plugins with their own Composer dependencies.' => 'Schakel de composer "samenvoegen" functionaliteit in om het composer.json bestand van de hoofdapplicatie te combineren met eventuele plugin composer bestanden. Dit kan implicaties hebben voor de prestaties, dus u dient het alleen te gebruiken als u een of meer plugins gebruikt met hun eigen Composer afhankelijkheden.', 'Minimum Port for Station Port Assignment' => 'Minimale poort voor station instellen', 'Modify this if your stations are listening on nonstandard ports.' => 'Pas dit aan als uw station een andere poort gebruikt dan de standaard poort', 'Maximum Port for Station Port Assignment' => 'Maximale poorten instellen voor station', 'Show Detailed Slim Application Errors' => 'Toon gedetailleerde Slim Applicatiefouten', 'This allows you to debug Slim Application Errors you may encounter. Please report any Slim Application Error logs to the development team on GitHub.' => 'Dit stelt je in staat om de Slim Applicatie Fouten die je mogelijk tegenkomt te debuggen. Meld alle Slim Applicatie fouten aan het ontwikkelingsteam op GitHub.', 'MariaDB Host' => 'MariaDB host', 'Do not modify this after installation.' => 'Wijzig dit niet na de installatie.', 'MariaDB Port' => 'MariaDB poort', 'MariaDB Username' => 'MariaDB gebruikersnaam', 'MariaDB Password' => 'MariaDB wachtwoord', 'MariaDB Database Name' => 'MariaDB databasenaam', 'Auto-generate Random MariaDB Root Password' => 'Genereer een willekeurig MariaDB Root-wachtwoord', 'MariaDB Root Password' => 'MariaDB Root wachtwoord', 'Enable MariaDB Slow Query Log' => 'MariaDB vertraagde logboeken inschakelen', 'Log slower queries to diagnose possible database issues. Only turn this on if needed.' => 'Logboeken voor langzame query\'s inschakelen om mogelijke database problemen te diagnosticeren. Schakel dit alleen in als het nodig is.', 'MariaDB Maximum Connections' => 'MariaDB maximum aantal verbindingen', 'Set the amount of allowed connections to the database. This value should be increased if you are seeing the "Too many connections" error in the logs.' => 'Stel het aantal toegestane verbindingen naar de database toe in. Deze waarde moet worden verhoogd als u de "Te veel verbindingen" fout ziet in de logboeken.', 'MariaDB InnoDB Buffer Pool Size' => 'MariaDB InnoDB Buffer Pool Grootte', 'The InnoDB buffer pool size controls how much data & indexes are kept in memory. Making sure that this value is as large as possible reduces the amount of disk IO.' => 'De InnoDB buffer pool grootte bepaalt hoeveel gegevens en indexen in het geheugen worden gehouden. Zorg ervoor dat deze waarde zo groot mogelijk is vermindert de hoeveelheid schijf IO.', 'MariaDB InnoDB Log File Size' => 'MariaDB InnoDB Log Bestandsgrootte', 'The InnoDB log file is used to achieve data durability in case of crashes or unexpected shutoffs and to allow the DB to better optimize IO for write operations.' => 'Het InnoDB logbestand wordt gebruikt om data duurzaamheid te bereiken in geval van crashes of onverwachte shutoffs en om de database toe te staan om de IO beter te optimaliseren voor schrijfoperaties.', 'Enable Redis' => 'Redis inschakelen', 'Disable to use a flatfile cache instead of Redis.' => 'Uitschakelen om een flatfile cache te gebruiken in plaats van Redis.', 'Redis Host' => 'Redis Host', 'Redis Port' => 'Redis Poort', 'PHP Maximum POST File Size' => 'PHP maximale POST bestandsgrootte', 'PHP Memory Limit' => 'PHP Geheugenlimiet', 'PHP Script Maximum Execution Time (Seconds)' => 'PHP Script Maximale uitvoeringstijd (seconden)', 'Short Sync Task Execution Time (Seconds)' => 'Korte Sync Taak Uitvoeringstijd (seconden)', 'The maximum execution time (and lock timeout) for the 15-second, 1-minute and 5-minute synchronization tasks.' => 'De maximale uitvoeringstijd (en lock timeout) voor de 15-seconden, 1-minuut en 5-minuut synchronisatietaken.', 'Long Sync Task Execution Time (Seconds)' => 'Lange Sync Taak Uitvoertijd (seconden)', 'The maximum execution time (and lock timeout) for the 1-hour synchronization task.' => 'De maximale uitvoeringstijd (en lock timeout) voor de 1-uurs synchronisatie-taak.', 'Now Playing Delay Time (Seconds)' => 'Nu Afspelen Vertragingstijd (seconden)', 'The delay between Now Playing checks for every station. Decrease for more frequent checks at the expense of performance; increase for less frequent checks but better performance (for large installations).' => 'De vertraging tussen Now Playing-controles voor elk station. Verlagen voor frequentere controles, wat ten koste gaat van de prestaties; verhogen voor minder frequente controles maar betere prestaties (voor grote installaties).', 'Maximum PHP-FPM Worker Processes' => 'Maximale PHP-FPM Worker Processen', 'Enable Performance Profiling Extension' => 'Prestatie van Profiling Uitbreiden Inschakelen', 'Profiling data can be viewed by visiting %s.' => 'Profielgegevens kunnen worden bekeken door een bezoek aan %s.', 'Profile Performance on All Requests' => 'Profiel prestaties op alle verzoeken', 'This will have a significant performance impact on your installation.' => 'Dit zal een aanzienlijke invloed hebben op de prestaties van uw installatie.', 'Profiling Extension HTTP Key' => 'HTTP-sleutel voor profileringsextensie', 'The value for the "SPX_KEY" parameter for viewing profiling pages.' => 'De waarde voor de parameter "SPX_KEY" voor het bekijken van profielpagina\'s.', 'Profiling Extension IP Allow List' => 'Lijst met toegestane IP-extensies voor profilering', 'Enable web-based Docker image updates' => 'Schakel web-based Docker afbeelding updates in', 'Extra Ubuntu packages to install upon startup' => 'Extra Ubuntu-pakketten te installeren bij opstarten', 'Separate package names with a space. Packages will be installed during container startup.' => 'Scheid de pakketnamen met een spatie. Pakketten zullen worden genstalleerd tijdens het opstarten van de container.', 'Album Artist' => 'Album Artiesten', 'Comment' => 'Reactie', 'Composer' => 'Artiest', 'Encoded By' => 'Gecodeerd door', 'Year' => 'Jaar', 'An account recovery link has been requested for your account on "%s".' => 'Er is een link om uw account te herstellen aangevraagd op "%s".', 'Click the link below to log in to your account.' => 'Klik op de link hieronder om in te loggen op uw account.', 'Footer' => 'Voettekst', 'Powered by %s' => 'Mogelijk gemaakt door %s', 'Forgot Password' => 'Wachtwoord vergeten', 'Sign in' => 'Inloggen', 'Send Recovery E-mail' => 'Verstuur herstel-e-mail', 'Enter Two-Factor Code' => 'Voer twee factor code in', 'Your account uses a two-factor security code. Enter the code your device is currently showing below.' => 'Uw account gebruikt tweestapsverificatie. Voer de code in die op uw apparaat wordt weergegeven.', 'Security Code' => 'Beveiligingscode', 'This installation\'s administrator has not configured this functionality.' => 'De beheerder van deze installatie heeft deze functionaliteit niet geconfigureerd.', 'Contact an administrator to reset your password following the instructions in our documentation:' => 'Neem contact op met een beheerder om uw wachtwoord te resetten volgens de instructies in onze documentatie:', 'Password Reset Instructions' => 'Wachtwoord herstel instructies', ), ), ); ```
/content/code_sandbox/translations/nl_NL.UTF-8/LC_MESSAGES/default.php
php
2016-04-30T21:41:23
2024-08-16T18:27:26
AzuraCast
AzuraCast/AzuraCast
2,978
35,149
```php <?php return array ( 'domain' => 'default', 'plural-forms' => 'nplurals=2; plural=(n != 1);', 'messages' => array ( '' => array ( '# Episodes' => '# Episoden', '# Songs' => '# Titel', '%{ dj } is now live on %{ station }! Tune in now: %{ url }' => '%{ dj } ist jetzt live auf %{ station }! Schalten Sie jetzt ein: %{ url }', '%{ hours } hours' => '%{ hours } Stunden', '%{ minutes } minutes' => '%{ minutes } Minuten', '%{ seconds } seconds' => '%{ seconds } Sekunden', '%{ station } is back online! Tune in now: %{ url }' => '%{ station } ist wieder online! Schalten Sie jetzt ein: %{ url }', '%{ station } is going offline for now.' => '%{ station } ist vorerst offline.', '%{filesCount} File' => array ( 0 => '%{filesCount} Datei', 1 => '%{filesCount} Dateien', ), '%{listeners} Listener' => array ( 0 => '%{listeners} Hrer', 1 => '%{listeners} Zuhrer', ), '%{messages} queued messages' => '%{messages} Nachrichten in der Warteschlange', '%{name} - Copy' => '%{name} - Kopieren', '%{numPlaylists} playlist' => array ( 0 => '%{numPlaylists} Playliste', 1 => '%{numPlaylists} Wiedergabelisten', ), '%{numSongs} uploaded song' => array ( 0 => '%{numSongs} hochgeladener Song', 1 => '%{numSongs} hochgeladene Lieder', ), '%{spaceUsed} of %{spaceTotal} Used' => '%{spaceUsed} von %{spaceTotal} verwendet', '%{spaceUsed} Used' => '%{spaceUsed} Verwendet', '%{station} - Copy' => '%{station} - Kopieren', '12 Hour' => '12 Stunden', '24 Hour' => '24 Stunden', 'A completely random track is picked for playback every time the queue is populated.' => 'Jedes Mal, wenn die Warteschlange aufgefllt wird, wird ein vllig zuflliger Titel fr die Wiedergabe ausgewhlt.', 'A name for this stream that will be used internally in code. Should only contain letters, numbers, and underscores (i.e. "stream_lofi").' => 'Ein Name fr diesen Stream, der intern im Code verwendet werden soll. Er sollte nur Buchstaben, Zahlen und Unterstriche enthalten (z.B. "stream_lofi").', 'A passkey has been selected. Submit this form to add it to your account.' => 'Ein Passwort wurde ausgewhlt. Senden Sie dieses Formular, um es Ihrem Konto hinzuzufgen.', 'A playlist containing media files hosted on this server.' => 'Eine Wiedergabeliste mit Mediendateien auf diesem Server.', 'A playlist that instructs the station to play from a remote URL.' => 'Eine Playlist, die die Station dazu anweist, von einer Remote URL zu spielen.', 'A unique identifier (i.e. "G-A1B2C3D4") for this measurement stream.' => 'Ein eindeutiger Bezeichner (z. B. "G-A1B2C3D4") fr diesen Messdatenstrom.', 'About AzuraRelay' => 'ber AzuraRelay', 'About Master_me' => 'ber Master_me', 'About Release Channels' => 'ber Freigabekanle', 'Access Code' => 'Zugangscode', 'Access Key ID' => 'Zugangs-ID', 'Access Token' => 'Zugriffstoken', 'Account Details' => 'Konto-Details', 'Account is Active' => 'Account ist Aktiviert', 'Account List' => 'Kontenliste', 'Actions' => 'Aktionen', 'Adapter' => 'Adapter', 'Add API Key' => 'API-Schlssel hinzufgen', 'Add Custom Field' => 'Benutzerdefiniertes Feld hinzufgen', 'Add Episode' => 'Episode hinzufgen', 'Add Files to Playlist' => 'Dateien zur Wiedergabeliste hinzufgen', 'Add HLS Stream' => 'HLS-Stream hinzufgen', 'Add Mount Point' => 'Einhngepunkt anlegen', 'Add New GitHub Issue' => 'GitHub-Ticket erstellen', 'Add New Passkey' => 'Neues Passwort hinzufgen', 'Add Playlist' => 'Playlist hinzufgen', 'Add Podcast' => 'Podcast hinzufgen', 'Add Remote Relay' => 'Remote-Relay hinzufgen', 'Add Role' => 'Rolle hinzufgen', 'Add Schedule Item' => 'Geplantes Element hinzufgen', 'Add SFTP User' => 'SFTP Benutzer hinzufgen', 'Add Station' => 'Sender hinzufgen', 'Add Storage Location' => 'Fge Speicherort hinzu', 'Add Streamer' => 'Streamer hinzufgen', 'Add User' => 'Benutzer hinzufgen', 'Add Web Hook' => 'WebHook hinzufgen', 'Administration' => 'Administration', 'Advanced' => 'Erweitert', 'Advanced Configuration' => 'Erweiterte Einstellungen', 'Advanced Manual AutoDJ Scheduling Options' => 'Erweiterte manuelle AutoDJ-Planungsoptionen', 'Aggregate listener statistics are used to show station reports across the system. IP-based listener statistics are used to view live listener tracking and may be required for royalty reports.' => 'Aggregierte Zuhrer Statistiken dienen dazu Station Berichte Systemweit anzuzeigen. IP-basierte Zuhrer Statistiken dienen dazu, um eventuelle Lizenzgebhren und Berichte zu erstellen.', 'Album' => 'Album', 'Album Art' => 'Albumcover', 'Alert' => 'Warnung', 'All Days' => 'Ganztgig', 'All listed domain names should point to this AzuraCast installation. Separate multiple domain names with commas.' => 'Alle aufgefhrten Domainnamen sollten auf diese AzuraCast-Installation verweisen. Trennen Sie mehrere Domainnamen mit Kommas.', 'All Playlists' => 'Alle Wiedergabelisten', 'All Podcasts' => 'Alle Podcasts', 'All Types' => 'Alle Typen', 'All values in the NowPlaying API response are available for use. Any empty fields are ignored.' => 'Alle Werte in der NowPlaying API-Antwort stehen zur Verwendung zur Verfgung. Alle leeren Felder werden ignoriert.', 'Allow Requests from This Playlist' => 'Anfragen aus dieser Wiedergabeliste zulassen', 'Allow Song Requests' => 'Musikwnsche erlauben', 'Allow Streamers / DJs' => 'Zustzliche Stream-Benutzer erlauben', 'Allowed IP Addresses' => 'Erlaubte IP-Adressen', 'Always Use HTTPS' => 'Immer HTTPS verwenden', 'Amplify: Amplification (dB)' => 'Verstrkung (dB)', 'An error occurred and your request could not be completed.' => 'Ein Fehler ist aufgetreten und Ihre Anfrage konnte nicht ausgefhrt werden.', 'An error occurred while loading the station profile:' => 'Beim Laden des Stationsprofils ist ein Fehler aufgetreten:', 'An error occurred with the WebDJ socket.' => 'Beim WebDJ-Socket ist ein Fehler aufgetreten.', 'Analytics' => 'Statistiken', 'Analyze and reprocess the selected media' => 'Ausgewhlte Medien analysieren und neu verarbeiten', 'Any of the following file types are accepted:' => 'Alle folgenden Dateitypen werden akzeptiert:', 'Any time a live streamer/DJ connects to the stream' => 'Jedes Mal, wenn ein Live-Streamer/DJ sich mit dem Stream verbindet', 'Any time a live streamer/DJ disconnects from the stream' => 'Jedes Mal, wenn sich ein Live-Streamer/DJ vom Stream trennt', 'Any time the currently playing song changes' => 'Jedes Mal, wenn sich der gerade gespielte Song ndert', 'Any time the listener count decreases' => 'Jedes Mal, wenn die Zuhrerzahl sinkt', 'Any time the listener count increases' => 'Jedes Mal, wenn die Zuhrerzahl steigt', 'API "Access-Control-Allow-Origin" Header' => 'API "Access-Control-Allow-Origin"-Header', 'API Documentation' => 'API-Dokumentation', 'API Key Description/Comments' => 'API Key Beschreibung/Kommentare', 'API Keys' => 'API-Schlssel', 'API Token' => 'API-Token', 'API Version' => 'API-Version', 'App Key' => 'App-Schlssel', 'App Secret' => 'App-Secret', 'Apple Podcasts' => 'Alle Podcasts', 'Apply for an API key at Last.fm' => 'API-Schlssel bei Last.fm beantragen', 'Apply Playlist to Folders' => 'Wiedergabeliste auf Ordner anwenden', 'Apply Post-processing to Live Streams' => 'Post-Processing auf Live-Stream anwenden', 'Apply to Folders' => 'Auf Ordner anwenden', 'Are you sure?' => 'Bist du dir sicher?', 'Art' => 'Grafiken', 'Artist' => 'Interpret', 'Artwork' => 'Albumcover', 'Artwork must be a minimum size of 1400 x 1400 pixels and a maximum size of 3000 x 3000 pixels for Apple Podcasts.' => 'Das Artwork muss eine Mindestgre von 1400 x 1400 Pixel und eine Maximalgre von 3000 x 3000 Pixel fr Apple Podcasts haben.', 'Attempt to Automatically Retrieve ISRC When Missing' => 'Versuche ISRC automatisch abzurufen, wenn nicht vorhanden', 'Audio Bitrate (kbps)' => 'Audio-Bitrate (kbps)', 'Audio Format' => 'Audioformat', 'Audio Post-processing Method' => 'Audio-Nachbearbeitungsmethode', 'Audio transcoding applications like Liquidsoap use a consistent amount of CPU over time, which gradually drains this available credit. If you regularly see stolen CPU time, you should consider migrating to a VM that has CPU resources dedicated to your instance.' => 'Audio-Transcoding-Anwendungen wie Liquidsoap verwenden kontinuierlich eine bestimmte Menge an CPU-Zeit, wodurch das verfgbare Guthaben kontinuierlich abnimmt. Wenn regelmig gestohlene CPU-Zeit zu sehen ist, sollte in Erwgung gezogen werden, zu einer VM zu wechseln, die fr die Instanz dedizierte CPU-Ressourcen bereitstellt.', 'Audit Log' => 'Audit-Log', 'Author' => 'Autor', 'Auto-Assign Value' => 'Wert automatisch zuweisen', 'AutoDJ' => 'AutoDJ', 'AutoDJ Bitrate (kbps)' => 'AutoDJ Bitrate (kbps)', 'AutoDJ Disabled' => 'AutoDJ deaktiviert', 'AutoDJ Format' => 'AutoDJ Format', 'AutoDJ has been disabled for this station. No music will automatically be played when a source is not live.' => 'Der AutoDJ wurde fr diesen Sender deaktiviert. Es wird keine Musik automatisch wiedergegeben, wenn keine Quelle live ist.', 'AutoDJ Queue' => 'AutoDJ Warteschlange', 'AutoDJ Queue Length' => 'AutoDJ Warteschlangen Lnge', 'AutoDJ Service' => 'AutoDJ Dienst', 'Automatic Backups' => 'Automatische Backups', 'Automatically create new podcast episodes when media is added to a specified playlist.' => 'Erstellen Sie automatisch neue Podcast-Episoden, wenn Medien zu einer bestimmten Playliste hinzugefgt werden.', 'Automatically Publish New Episodes' => 'Automatisch neue Episoden verffentlichen', 'Automatically publish to a Mastodon instance.' => 'Automatisch in einer Mastodon-Instanz verffentlichen.', 'Automatically Scroll to Bottom' => 'Automatisch nach unten scrollen', 'Automatically send a customized message to your Discord server.' => 'Automatisch eine individuelle Nachricht an deinen Discord Server schicken.', 'Automatically send a message to any URL when your station data changes.' => 'Automatisch eine Nachricht an eine URL schicken, wenn Sender Daten gendert werden.', 'Automatically Set from ID3v2 Value' => 'Automatisch aus ID3v2 Wert setzen', 'Available Logs' => 'Verfgbare Logs', 'Avatar Service' => 'Avatar-Dienst', 'Avatars are retrieved based on your e-mail address from the %{ service } service. Click to manage your %{ service } settings.' => 'Avatare werden basierend auf deiner E-Mail-Adresse vom %{service} -Dienst abgerufen. Klicke hier, um deine %{service} Einstellungen zu verwalten.', 'Average Listeners' => 'Durchschnittliche Zuhrer', 'Avoid Duplicate Artists/Titles' => 'Vermeide doppelte Interpreten/Titel', 'AzuraCast First-Time Setup' => 'AzuraCast Erstinstallation', 'AzuraCast Instance Name' => 'AzuraCast Instanz Name', 'AzuraCast ships with a built-in free IP geolocation database. You may prefer to use the MaxMind GeoLite service instead to achieve more accurate results. Using MaxMind GeoLite requires a license key, but once the key is provided, we will automatically keep the database updated.' => 'AzuraCast wird mit einer eingebauten kostenlosen IP-Geolokalisierungsdatenbank geliefert. Du kannst stattdessen auch den MaxMind GeoLite Service nutzen, um genauere Ergebnisse zu erzielen. Die Verwendung von MaxMind GeoLite erfordert einen Lizenzschlssel, aber sobald der Schlssel zur Verfgung gestellt wird, halten wir die Datenbank automatisch aktualisiert.', 'AzuraCast Update Checks' => 'AzureCast Update-berprfungen', 'AzuraCast User' => 'AzuraCast Benutzer', 'AzuraCast uses a role-based access control system. Roles are given permissions to certain sections of the site, then users are assigned into those roles.' => 'AzuraCast verwendet ein rollenbasiertes Zugriffskontrollsystem. Rollen werden Berechtigungen fr bestimmte Bereiche der Website zugewiesen, dann werden Benutzer diesen Rollen zugewiesen.', 'AzuraCast Wiki' => 'AzuraCast Wiki', 'AzuraCast will scan the uploaded file for matches in this station\'s music library. Media should already be uploaded before running this step. You can re-run this tool as many times as needed.' => 'AzuraCast wird die hochgeladene Datei nach bereinstimmungen in der Musikbibliothek des Senders durchsuchen. Die Medien sollten bereits hochgeladen sein, bevor dieser Schritt ausgefhrt wird. Dieses Tool kann so oft wie ntig erneut ausgefhrt werden.', 'AzuraRelay is a standalone service that connects to your AzuraCast instance, automatically relays your stations via its own server, then reports the listener details back to your main instance. This page shows all currently connected instances.' => 'AzuraRelay ist ein Standalone-Service, der sich mit Ihrer AzuraCast Instanz verbindet bertrgt automatisch Ihre Stationen ber einen eigenen Server und meldet dann die Listendetails an Ihre Hauptinstanz. Diese Seite zeigt alle aktuell verbundenen Instanzen.', 'Back' => 'Zurck', 'Backing up your installation is strongly recommended before any update.' => 'Es wird dringend empfohlen, vor jeder Aktualisierung eine Sicherungskopie Ihrer Installation zu erstellen.', 'Backup' => 'Backup', 'Backup Format' => 'Backupformat', 'Backups' => 'Backups', 'Balanced' => 'Ausgeglichen', 'Banned Countries' => 'Gesperrte Lnder', 'Banned IP Addresses' => 'Gesperrte IP-Adressen', 'Banned User Agents' => 'Gesperrte User-Agents', 'Base Station Directory' => 'Sender Basis Verzeichnis', 'Base Theme for Public Pages' => 'Basisdesign fr ffentliche Seiten', 'Basic Info' => 'Allgemeine Daten', 'Basic Information' => 'Allgemeine Informationen', 'Basic Normalization and Compression' => 'Einfache Normalisierung und Komprimierung', 'Best & Worst' => 'Das Beste & Schlechteste', 'Best Performing Songs' => 'Die beliebtesten Lieder', 'Bit Rate' => 'Bitrate', 'Bitrate' => 'Bitrate', 'Bot Token' => 'Bot Token', 'Bot/Crawler' => 'Bot / Crawler', 'Branding' => 'Branding', 'Branding Settings' => 'Branding Einstellungen', 'Broadcast AutoDJ to Remote Station' => 'AutoDJ auf Remote Sender bertragen', 'Broadcasting' => 'bertragen', 'Broadcasting Service' => 'Broadcasting-Service', 'Broadcasts' => 'bertragungen', 'Browser' => 'Browser', 'Browser Default' => 'Browser-Standard', 'Browser Icon' => 'Browser Icon', 'Browsers' => 'Browser', 'Bucket Name' => 'Bucket Name', 'Bulk Media Import/Export' => 'Massenimport / Export von Medien', 'By default, radio stations broadcast on their own ports (i.e. 8000). If you\'re using a service like CloudFlare or accessing your radio station by SSL, you should enable this feature, which routes all radio through the web ports (80 and 443).' => 'Standardmig nutzt jeder Sender seinen eigenen Port (z.B. 8000). Solltest du einen Service wie CloudFlare nutzen oder deinen Sender ber SSL abrufen, so aktiviere bitte dieses Feature, welches alle Sender zu den Web-Ports (80 und 443) routet.', 'Cached' => 'Fr Caches', 'Cancel' => 'Abbrechen', 'Categories' => 'Kategorien', 'Change' => 'ndern', 'Change Password' => 'Passwort ndern', 'Changes' => 'nderungen', 'Changes saved.' => 'nderungen gespeichert.', 'Character Set Encoding' => 'Zeichenkodierung', 'Chat ID' => 'Chat ID', 'Check for Updates' => 'Auf Updates prfen', 'Check this box to apply post-processing to all audio, including live streams. Uncheck this box to only apply post-processing to the AutoDJ.' => 'Aktivieren Sie dieses Ankreuzfeld, um die Nachbearbeitung auf alle Audiodateien anzuwenden, einschlielich Live-Streams. Deaktivieren Sie dieses Feld, um nur die Nachbearbeitung auf die AutoDJ anzuwenden.', 'Check Web Services for Album Art for "Now Playing" Tracks' => 'Suche in Webdiensten nach Albumcover fr "Now Playing" Tracks', 'Check Web Services for Album Art When Uploading Media' => 'Suche in Webdiensten nach Albumcover beim Hochladen von Medien', 'Choose a method to use when transitioning from one song to another. Smart Mode considers the volume of the two tracks when fading for a smoother effect, but requires more CPU resources.' => 'Whlen Sie eine Methode fr den bergang von einem Titel zum anderen. Der Smart-Modus bercksichtigt beim berblenden die Lautstrke der beiden Tracks, um einen sanfteren Effekt zu erzielen, erfordert aber mehr CPU-Ressourcen.', 'Choose a name for this webhook that will help you distinguish it from others. This will only be shown on the administration page.' => 'Whle einen Namen fr diesen WebHook, der hilft, ihn von anderen zu unterscheiden. Dieser wird nur auf der Administrationsseite angezeigt.', 'Choose a new password for your account.' => 'Whle ein neues Passwort fr deinen Account.', 'City' => 'Stadt', 'Clear' => 'Leeren', 'Clear all media from playlist?' => 'Alle Medien von der Wiedergabeliste lschen?', 'Clear All Message Queues' => 'Alle Nachrichtenwarteschlangen leeren', 'Clear All Pending Requests?' => 'Alle ausstehenden Anfragen lschen?', 'Clear Artwork' => 'Albumcover lschen', 'Clear Cache' => 'Cache leeren', 'Clear Field' => 'Feld leeren', 'Clear File' => 'Datei lschen', 'Clear Image' => 'Bild lschen', 'Clear List' => 'Liste leeren', 'Clear Media' => 'Datei entfernen', 'Clear Pending Requests' => 'Ausstehende Wnsche lschen', 'Clear Queue' => 'Warteschlange leeren', 'Clear Upcoming Song Queue' => 'Warteschlange fr bevorstehende Songs lschen', 'Clearing the application cache may log you out of your session.' => 'Das Lschen des Anwendungs-Caches kann dich aus deiner Sitzung abmelden.', 'Click "Generate new license key".' => 'Klicke auf "Generate new license key".', 'Click "New Application"' => 'Klicken Sie auf "Neue Anwendung"', 'Click the "Preferences" link, then "Development" on the left side menu.' => 'Klicken Sie auf den Link "Einstellungen" und dann auf "Entwicklung" im Men auf der linken Seite.', 'Click the button below to generate a CSV file with all of this station\'s media. You can make any necessary changes, and then import the file using the file picker on the right.' => 'Klicken Sie auf die Schaltflche unten, um eine CSV-Datei mit allen Medien dieses Senders zu erstellen. Sie knnen alle notwendigen nderungen vornehmen und die Datei dann ber die Dateiauswahl rechts erneut importieren.', 'Click the button below to retry loading the page.' => 'Klicken Sie auf die Schaltflche unten, um das Laden der Seite zu wiederholen.', 'Client' => 'Nutzer', 'Clients' => 'Nutzer', 'Clients by Connected Time' => 'Nutzer nach verbundener Zeit', 'Clients by Listeners' => 'Nutzer nach Zuhrer', 'Clone' => 'Duplizieren', 'Clone Station' => 'Sender duplizieren', 'Close' => 'Schlieen', 'Code from Authenticator App' => 'Code von Authenticator App', 'Comments' => 'Kommentare', 'Complete the setup process by providing some information about your broadcast environment. These settings can be changed later from the administration panel.' => 'Schliee den Installations-Prozess durch Angabe einiger Informationen ber deine Broadcast-Umgebung ab. Diese Einstellungen knnen spter im Administrationspanel gendert werden.', 'Configure' => 'Konfigurieren', 'Configure Backups' => 'Backups konfigurieren', 'Confirm New Password' => 'Neues Passwort besttigen', 'Connected AzuraRelays' => 'Verbundene AzuraRelays', 'Connection Information' => 'Verbindungsinformationen', 'Contains explicit content' => 'Enthlt expliziten Inhalt', 'Continue the setup process by creating your first radio station below. You can edit any of these details later.' => 'Setze den Einrichtungsprozess fort, indem du deinen ersten Radiosender unten erstellst. Du kannst deine Eingaben spter bearbeiten.', 'Continuous Play' => 'Kontinuierliche Wiedergabe', 'Control how this playlist is handled by the AutoDJ software.' => 'Legen Sie fest, wie AutoDJ die Wiedergabeliste behandeln soll.', 'Copies older than the specified number of days will automatically be deleted. Set to zero to disable automatic deletion.' => 'Backups, die lter als die angegebene Anzahl der Tage sind, werden automatisch gelscht. Auf Null setzen, um die automatische Lschung zu deaktivieren.', 'Copy to Clipboard' => 'In Zwischenablage kopieren', 'Copy to New Station' => 'In neuen Sender kopieren', 'Countries' => 'Lnder', 'Country' => 'Land', 'CPU Stats Help' => 'CPU Statistik Hilfe', 'Create a New Radio Station' => 'Neuen Radiosender erstellen', 'Create Account' => 'Benutzer erstellen', 'Create an account on the MaxMind developer site.' => 'Erstelle ein Konto auf der MaxMind Entwicklerseite.', 'Create and Continue' => 'Erstellen und fortsetzen', 'Create custom fields to store extra metadata about each media file uploaded to your station libraries.' => 'Erstelle benutzerdefinierte Felder, um zustzliche Metadaten ber jede Mediendatei zu speichern, die auf deine Sender hochgeladen wird.', 'Create Directory' => 'Verzeichnis erstellen', 'Create New Key' => 'Neuen Schlssel erstellen', 'Crossfade Duration (Seconds)' => 'berblendungszeit (Sekunden)', 'Crossfade Method' => 'Art der berblendung', 'Cue' => 'Warteschlange', 'Current Configuration File' => 'Aktuelle Konfigurationsdatei', 'Current Custom Fallback File' => 'Aktuelle benutzerdefinierte Fallback-Datei', 'Current Installed Version' => 'Aktuell installierte Version', 'Current Intro File' => 'Aktuelle Intro-Datei', 'Current Password' => 'Aktuelles Passwort', 'Current Podcast Media' => 'Aktuelle Podcast-Medien', 'Custom API Base URL' => 'Individuelle API Basis URL', 'Custom Branding' => 'Benutzerdefiniertes Branding', 'Custom Configuration' => 'Benutzerdefinierte Konfiguration', 'Custom CSS for Internal Pages' => 'Custom CSS fr interne Seiten', 'Custom CSS for Public Pages' => 'Custom CSS fr ffentliche Seiten', 'Custom Cues: Cue-In Point (seconds)' => 'Benutzerdefinierter Cue: Cue-In-Punkt (in Sekunden)', 'Custom Cues: Cue-Out Point (seconds)' => 'Benutzerdefinierte Cues: Cue-Out-Punkt (in Sekunden)', 'Custom Fading: Fade-In Time (seconds)' => 'Benutzerdefiniertes Ein-/Ausblenden: Einblende-Zeit (Sekunden)', 'Custom Fading: Fade-Out Time (seconds)' => 'Benutzerdefiniertes Ein-/Ausblenden: Ausblendezeit (Sekunden)', 'Custom Fallback File' => 'Benutzerdefinierte Fallback-Datei', 'Custom Fields' => 'Benutzerdefinierte Felder', 'Custom Frontend Configuration' => 'Benutzerdefinierte Frontend Konfiguration', 'Custom JS for Public Pages' => 'Benutzerdefinierte JS fr ffentliche Seiten', 'Customize' => 'Anpassen', 'Customize Administrator Password' => 'Anpassen des Administrator Passwort', 'Customize AzuraCast Settings' => 'AzuraCast Einstellungen anpassen', 'Customize Broadcasting Port' => 'Anpassen des bertragungs-Ports', 'Customize Copy' => 'Kopie anpassen', 'Customize DJ/Streamer Mount Point' => 'DJ/Streamer Einhngepunkt anpassen', 'Customize DJ/Streamer Port' => 'DJ/Streamer-Port anpassen', 'Customize Internal Request Processing Port' => 'Port fr interne Request-Verarbeitung anpassen', 'Customize Source Password' => 'Anpassen des source passwort', 'Customize the number of songs that will appear in the "Song History" section for this station and in all public APIs.' => 'Passt die Anzahl der Songs an, die im Abschnitt "Song Verlauf" fr diesen Sender und in allen ffentlichen APIs angezeigt werden.', 'Dashboard' => 'Dashboard', 'Days of Playback History to Keep' => 'Zu speichernde Tage des Song Verlaufs', 'Deactivate Streamer on Disconnect (Seconds)' => 'DJ/Streamer bei Verbindungsabbruch deaktivieren (Sekunden)', 'Default Album Art' => 'Standard Albumcover', 'Default Album Art URL' => 'Standard-Album-Cover URL', 'Default Avatar URL' => 'Standard Avatar-URL', 'Default Mount' => 'Standard Einhngepunkt', 'Delete' => 'Lschen', 'Delete Album Art' => 'Albumcover lschen', 'Delete Passkey?' => 'Passkey lschen?', 'Delete Playlist?' => 'Playliste lschen?', 'Delete Podcast?' => 'Podcast lschen?', 'Delete Queue Item?' => 'Warteschlangeneintrag lschen?', 'Delete Record?' => 'Aufzeichnung lschen?', 'Delete Request?' => 'Anfrage lschen?', 'Delete Role?' => 'Rolle lschen?', 'Delete SFTP User?' => 'SFTP-Benutzer lschen?', 'Delete Station?' => 'Station lschen?', 'Delete Storage Location?' => 'Speicherort lschen?', 'Delete Streamer?' => 'Streamer lschen?', 'Description' => 'Beschreibung', 'Details' => 'Details', 'Directory' => 'Verzeichnis', 'Directory Name' => 'Verzeichnisname', 'Disable' => 'Deaktivieren', 'Disable Crossfading' => 'Crossfading deaktivieren', 'Disable Optimizations' => 'Optimierungen deaktivieren', 'Disable Two-Factor' => 'Zwei-Faktor deaktivieren', 'Disable two-factor authentication?' => 'Zwei-Faktor-Authentifizierung deaktivieren?', 'Disable?' => 'Deaktivieren?', 'Disabled' => 'Deaktiviert', 'Disconnect Streamer' => 'Live-Streamer trennen', 'Discord Web Hook URL' => 'Discord WebHook URL', 'Discord Webhook' => 'Discord WebHook', 'Disk caching makes a system much faster and more responsive in general. It does not take memory away from applications in any way since it will automatically be released by the operating system when needed.' => 'Die Zwischenspeicherung auf der Festplatte macht ein System im Allgemeinen viel schneller und reaktionsschneller. Es nimmt den Anwendungen keinen Speicherplatz weg, da er bei Bedarf automatisch vom Betriebssystem freigegeben wird.', 'Disk Space' => 'Festplattenspeicher', 'Display fields' => 'Felder anzeigen', 'Display Name' => 'Anzeigename', 'DJ/Streamer Buffer Time (Seconds)' => 'DJ/Streamer Pufferzeit (Sekunden)', 'Do not collect any listener analytics' => 'Erfasse keine Analyse-Daten fr Zuhrer', 'Do not use a local broadcasting service.' => 'Verwenden Sie keinen lokalen Rundfunkdienst.', 'Do not use an AutoDJ service.' => 'Keinen AutoDJ Dienst verwenden.', 'Documentation' => 'Dokumentation', 'Domain Name(s)' => 'Domnenname(n)', 'Donate to support AzuraCast!' => 'Spenden Sie, um AzuraCast zu untersttzen!', 'Download' => 'Download', 'Download CSV' => 'CSV herunterladen', 'Download M3U' => 'M3U herunterladen', 'Download PLS' => 'PLS herunterladen', 'Download the appropriate binary from the Stereo Tool downloads page:' => 'Laden Sie die entsprechende Binrdatei von der Stereo Tool Download Seite herunter:', 'Download the Linux x64 binary from the Shoutcast Radio Manager:' => 'Laden Sie die Linux x64-Binrdatei im Shoutcast Radio Manager herunter:', 'Drag file(s) here to upload or' => 'Datei(en) hierhin ziehen, um sie hochzuladen oder', 'Dropbox App Console' => 'Dropbox App-Konsole', 'Dropbox Setup Instructions' => 'Anweisungen zur Dropbox-Einrichtung', 'Duplicate' => 'Duplizieren', 'Duplicate Playlist' => 'Playlist duplizieren', 'Duplicate Prevention Time Range (Minutes)' => 'Zeitraum zur Wiederholungs-Vermeidung (Minuten)', 'Duplicate Songs' => 'Doppelte Songs', 'E-Mail' => 'E-Mail', 'E-mail Address' => 'E-Mail Adresse', 'E-mail Address (Optional)' => 'E-Mail-Adresse (Optional)', 'E-mail addresses can be separated by commas.' => 'Mehrere E-Mail-Adressen knnen durch Kommas getrennt werden.', 'E-mail Delivery Service' => 'E-Mail Zustelldienst', 'EBU R128' => 'EBU R128', 'Edit' => 'Bearbeiten', 'Edit Branding' => 'Branding bearbeiten', 'Edit Custom Field' => 'Benutzerdefiniertes Feld bearbeiten', 'Edit Episode' => 'Episode bearbeiten', 'Edit HLS Stream' => 'HLS Stream bearbeiten', 'Edit Liquidsoap Configuration' => 'Liquidsoap Konfiguration bearbeiten', 'Edit Media' => 'Medien bearbeiten', 'Edit Mount Point' => 'Einhngepunkt bearbeiten', 'Edit Playlist' => 'Wiedergabeliste bearbeiten', 'Edit Podcast' => 'Podcast bearbeiten', 'Edit Profile' => 'Profil bearbeiten', 'Edit Remote Relay' => 'Remote-Relay bearbeiten', 'Edit Role' => 'Rolle bearbeiten', 'Edit SFTP User' => 'SFTP Benutzer bearbeiten', 'Edit Station' => 'Sender bearbeiten', 'Edit Station Profile' => 'Senderprofil bearbeiten', 'Edit Storage Location' => 'Speicherort bearbeiten', 'Edit Streamer' => 'Streamer bearbeiten', 'Edit User' => 'Benutzer bearbeiten', 'Edit Web Hook' => 'WebHook bearbeiten', 'Embed Code' => 'Einbettungscode', 'Embed Widgets' => 'Einbettungs-Widgets', 'Emergency' => 'Notfall', 'Empty' => 'Leer', 'Enable' => 'Aktivieren', 'Enable Advanced Features' => 'Erweiterte Funktionen aktivieren', 'Enable AutoDJ' => 'AutoDJ einschalten', 'Enable Broadcasting' => 'bertragung aktivieren', 'Enable certain advanced features in the web interface, including advanced playlist configuration, station port assignment, changing base media directories and other functionality that should only be used by users who are comfortable with advanced functionality.' => 'Aktiviere bestimmte erweiterte Funktionen im Webinterface, einschlielich der erweiterten Wiedergabelisten-Konfiguration, der Sendeport Zuweisung, nderungen der Basis-Medienverzeichnisse und anderer Funktionalitten, die nur von Benutzern genutzt werden sollten, die mit fortgeschrittener Funktionalitt vertraut sind.', 'Enable Downloads on On-Demand Page' => 'Downloads auf On-Demand Seite aktivieren', 'Enable HTTP Live Streaming (HLS)' => 'Aktivieren Sie HTTP-Live-Streaming (HLS)', 'Enable listeners to request a song for play on your station. Only songs that are already in your playlists are requestable.' => 'Ermglichen Sie es Hrern, einen Titel fr die Wiedergabe auf Ihrem Sender anzufordern. Es knnen nur Titel angefordert werden, die sich bereits in Ihren Wiedergabelisten befinden.', 'Enable Mail Delivery' => 'E-Mail-Zustellung aktivieren', 'Enable On-Demand Streaming' => 'On-Demand-Streaming aktivieren', 'Enable Public Pages' => 'ffentliche Seiten aktivieren', 'Enable this option if your S3 provider is using paths instead of sub-domains for their S3 endpoint; for example, when using MinIO or with other self-hosted S3 storage solutions that are accessible via a path on a domain/IP instead of a subdomain.' => 'Aktivieren Sie diese Option, wenn Ihr S3-Provider Pfade anstelle von Sub-Domains fr ihren S3-Endpunkt verwendet; zum Beispiel bei der Verwendung von MinIO oder mit anderen selbst gehosteten S3-Speicherlsungen, die ber einen Pfad auf einer Domain/IP statt einer Subdomain erreichbar sind.', 'Enable this setting to prevent metadata from being sent to the AutoDJ for files in this playlist. This is useful if the playlist contains jingles or bumpers.' => 'Aktiviere diese Einstellung, um zu verhindern, dass Metadaten fr Dateien in dieser Wiedergabeliste an den AutoDJ gesendet werden. Dies ist ntzlich, wenn die Playlist Jingles oder Bumpers enthlt.', 'Enable to advertise this mount point on "Yellow Pages" public radio directories.' => 'Aktivieren, um diesen Mountpoint auf "Yellow Pages" ffentlichen Radioverzeichnis zu bewerben.', 'Enable to advertise this relay on "Yellow Pages" public radio directories.' => 'Aktivieren, um dieses Relay auf "Yellow Pages" ffentlichen Radioverzeichnis zu bewerben.', 'Enable to allow listeners to select this relay on this station\'s public pages.' => 'Aktivieren, um den Zuhrern die Mglichkeit zu geben, diesen Relay auf den ffentlichen Seiten dieses Senders auszuwhlen.', 'Enable to allow this account to log in and stream.' => 'Aktivieren, um diesem Account das Einloggen und Streamen zu erlauben.', 'Enable to have AzuraCast automatically run nightly backups at the time specified.' => 'Aktivieren, um AzuraCast automatisch Nachtbackups zu der angegebenen Zeit ausfhren zu lassen.', 'Enable Two-Factor' => 'Zwei-Faktor aktivieren', 'Enable Two-Factor Authentication' => 'Zwei-Faktor-Authentifizierung aktivieren', 'Enable?' => 'Aktivieren?', 'Enabled' => 'Aktiviert', 'End Date' => 'Enddatum', 'End Time' => 'Endzeit', 'Endpoint' => 'Endpunkt', 'Enforce Schedule Times' => 'Zeitplne erzwingen', 'Enlarge Album Art' => 'Albumcover vergrern', 'Ensure the library matches your system architecture' => 'Stellen Sie sicher, dass die Bibliothek mit Ihrer Systemarchitektur bereinstimmt', 'Enter "AzuraCast" as the application name. You can leave the URL fields unchanged. For "Scopes", only "write:media" and "write:statuses" are required.' => 'Geben Sie "AzuraCast" als Anwendungsname ein. Sie knnen die URL-Felder unverndert lassen. Fr Scopes sind nur "write:media" und "write:statuses" erforderlich.', 'Enter the access code you receive below.' => 'Geben Sie unten den Zugangscode ein, den Sie erhalten haben.', 'Enter the current code provided by your authenticator app to verify that it\'s working correctly.' => 'Gib den aktuellen Code aus deiner Authenticator App ein um zu berprfen ob alles funktioniert.', 'Enter the full URL of another stream to relay its broadcast through this mount point.' => 'Bitte gib die vollsndige URL deines gewnschten Relay Streams ein.', 'Enter your e-mail address to receive updates about your certificate.' => 'Geben Sie Ihre E-Mail-Adresse ein, um Updates ber Ihr Zertifikat zu erhalten.', 'Enter your password' => 'Passwort eingeben', 'Episodes' => 'Episoden', 'Example: if the remote radio URL is path_to_url enter "path_to_url".' => 'Beispiel: Wenn die Remote Radio-URL path_to_url ist, gib "path_to_url" ein.', 'Exclude Media from Backup' => 'Medien aus Backup ausschlieen', 'Excluding media from automated backups will save space, but you should make sure to back up your media elsewhere. Note that only locally stored media will be backed up.' => 'Das Ausschlieen von Medien bei automatisierten Backups spart Speicherplatz, aber du solltest sicherstellen, dass deine Medien an anderer Stelle gesichert werden. Beachte bitte, dass nur lokal gespeicherte Medien gesichert werden.', 'Explicit' => 'Explizit', 'Export %{format}' => 'Exportformat', 'Export Media to CSV' => 'Medien in CSV-Datei exportieren', 'Field Name' => 'Name des Feldes', 'File Name' => 'Dateiname', 'Footer Text' => 'Fuzeile', 'For local filesystems, this is the base path of the directory. For remote filesystems, this is the folder prefix.' => 'Fr lokale Dateisysteme ist dies der Basispfad des Verzeichnisses. Fr entfernte Dateisysteme ist dies das Ordnerprfix.', 'For most cases, use the default UTF-8 encoding. The older ISO-8859-1 encoding can be used if accepting connections from Shoutcast 1 DJs or using other legacy software.' => 'In den meisten Fllen sollten Sie die Standardkodierung UTF-8 verwenden. Die ltere Kodierung ISO-8859-1 kann verwendet werden, wenn Sie Verbindungen von Shoutcast 1 DJs akzeptieren oder andere Legacy-Software verwenden.', 'for selected period' => 'fr ausgewhlten Zeitraum', 'For simple updates where you want to keep your current configuration, you can update directly via your web browser. You will be disconnected from the web interface and listeners will be disconnected from all stations.' => 'Fr einfache Aktualisierungen, bei denen Sie Ihre aktuelle Konfiguration beibehalten mchten, knnen Sie direkt ber Ihren Webbrowser aktualisieren. Sie werden von der Weboberflche getrennt und die Hrer werden von allen Stationen getrennt.', 'For some clients, use port:' => 'Fr einige Clients, verwende Port:', 'Forgot your password?' => 'Passwort vergessen?', 'Friday' => 'Freitag', 'From your smartphone, scan the code to the right using an authentication app of your choice (FreeOTP, Authy, etc).' => 'Scanne den Code rechts mit deinem Smartphone mit einer Authentication App deiner Wahl (FreeOTP, Authy, etc.).', 'Full Volume' => 'Volle Lautstrke', 'General Rotation' => 'Allgemeine Rotation', 'Generate Report' => 'Bericht erstellen', 'Generate/Renew Certificate' => 'Zertifikat generieren / erneuern', 'Genre' => 'Genre', 'GeoLite is not currently installed on this installation.' => 'GeoLite ist auf diesem System derzeit nicht installiert.', 'Get Next Song' => 'Nchsten Song abrufen', 'Get Now Playing' => '"Jetzt luft"-Daten holen', 'Global Permissions' => 'Globale Berechtigungen', 'Help' => 'Hilfe', 'Hide Album Art on Public Pages' => 'Album Art auf den ffentlichen Seiten ausblenden', 'Hide AzuraCast Branding on Public Pages' => 'Blenden Sie AzuraCast Branding auf ffentlichen Seiten aus', 'Hide Metadata from Listeners ("Jingle Mode")' => 'Metadaten vor Zuhrern verstecken ("Jingle Modus")', 'High I/O Wait can indicate a bottleneck with the server\'s hard disk, a potentially failing hard disk, or heavy load on the hard disk.' => 'Hohe I/O-Wartezeiten knnen auf einen Engpass bei der Festplatte des Servers hinweisen. Mglicherweise eine defekte Festplatte oder eine zu hohe Belastung der Festplatte.', 'Higher weight playlists are played more frequently compared to other lower-weight playlists.' => 'Wiedergabelisten mit hherem Gewicht werden im Vergleich zu anderen Playlisten, mit geringerem Gewicht, hufiger abgespielt.', 'History' => 'Verlauf', 'HLS Streams' => 'HLS-Streams', 'Home' => 'Startseite', 'Homepage Redirect URL' => 'Homepage-Umleitungs-URL', 'HTTP Live Streaming (HLS)' => 'HTTP-Live-Streaming (HLS)', 'HTTP Live Streaming (HLS) is a new adaptive-bitrate streaming technology. From this page, you can configure the individual bitrates and formats that are included in the combined HLS stream.' => 'HTTP-Live-Streaming (HLS) ist eine neue Streaming-Technologie mit adaptiver Bitrate. Auf dieser Seite knnen Sie die einzelnen Bitraten und Formate konfigurieren, die in dem kombinierten HLS-Stream enthalten sind.', 'HTTP Live Streaming (HLS) is a new adaptive-bitrate technology supported by some clients. It does not use the standard broadcasting frontends.' => 'HTTP-Live-Streaming (HLS) ist eine neue Technologie mit adaptiver Bitrate, die von einigen Clients untersttzt wird. Es verwendet nicht die Standard-Oberflche fr die bertragung.', 'If a song has no album art, this URL will be listed instead. Leave blank to use the standard placeholder art.' => 'Wenn ein Song ber kein Albumcover verfgt, wird diese URL stattdessen aufgelistet. Freilassen um den Standard Platzhalter zu verwenden.', 'If a visitor is not signed in and visits the AzuraCast homepage, you can automatically redirect them to the URL specified here. Leave blank to redirect them to the login screen by default.' => 'Wenn ein Besucher nicht eingeloggt und die AzuraCast Homepage besucht, knnen Sie sie automatisch mit der hier angegebenen URL umleiten. Freilassen Sie, um sie zum Login-Bildschirm standardmig umzuleiten.', 'If disabled, the playlist will not be included in radio playback, but can still be managed.' => 'Wenn deaktiviert, wird die Wiedergabeliste nicht vom AutoDJ abgespielt, kann aber trotzdem verwaltet werden.', 'If disabled, the station will not broadcast or shuffle its AutoDJ.' => 'Wenn deaktiviert, wird der Sender nichts bertragen oder den AutoDJ nutzen.', 'If enabled, a download button will also be present on the public "On-Demand" page.' => 'Wenn aktiviert, ist auch ein Download-Button auf der ffentlichen "On-Demand"-Seite vorhanden.', 'If enabled, AzuraCast will automatically record any live broadcasts made to this station to per-broadcast recordings.' => 'Wenn diese Option aktiviert ist, nimmt AzuraCast automatisch alle Live-bertragungen dieses Senders auf und speichert sie.', 'If enabled, AzuraCast will connect to the MusicBrainz database to attempt to find an ISRC for any files where one is missing. Disabling this may improve performance.' => 'Wenn aktiviert, wird sich AzuraCast mit der MusicBrainz Datenbank verbinden, um zu versuchen, einen ISRC fr alle Dateien zu finden, in denen dieser fehlt. Deaktivieren kann die Leistung verbessern.', 'If enabled, music from playlists with on-demand streaming enabled will be available to stream via a specialized public page.' => 'Wenn aktiviert, steht Musik aus Wiedergabelisten mit aktiviertem On-Demand-Streaming zum Streamen ber eine eigene ffentliche Seite zur Verfgung.', 'If enabled, streamers (or DJs) will be able to connect directly to your stream and broadcast live music that interrupts the AutoDJ stream.' => 'Wenn diese Funktion aktiviert ist, knnen sich Streamer (oder DJs) direkt mit Ihrem Stream verbinden und Live-Musik senden, die den AutoDJ-Stream unterbricht.', 'If enabled, the AutoDJ on this installation will automatically play music to this mount point.' => 'Wenn aktiviert, wird der AutoDJ dieser Installation automatisch Musik auf diesem Mountpoint spielen.', 'If enabled, the AutoDJ will automatically play music to this mount point.' => 'Wenn aktiviert, wird der AutoDJ automatisch Musik abspielen.', 'If enabled, this streamer will only be able to connect during their scheduled broadcast times.' => 'Wenn aktiviert, kann sich dieser Streamer nur whrend der geplanten Sendezeit verbinden.', 'If requests are enabled for your station, users will be able to request media that is on this playlist.' => 'Wenn Musikwnsche fr den Sender aktiviert sind, knnen sich Zuhrer Songs aus dieser Wiedergabeliste wnschen.', 'If requests are enabled, this specifies the minimum delay (in minutes) between a request being submitted and being played. If set to zero, a minor delay of 15 seconds is applied to prevent request floods.' => 'Wenn Musikwnsche aktiviert sind, gibt dies die Mindestverzgerung (in Minuten) zwischen der bermittlung einer Anforderung und ihrer Wiedergabe an. Bei einem Wert von null wird eine geringe Verzgerung von 15 Sekunden angewendet, um eine berflutung mit Anfragen zu verhindern.', 'If selected, album art will not display on public-facing radio pages.' => 'Wenn ausgewhlt, wird das Albumcover nicht auf ffentlichen Radio Seiten angezeigt.', 'If selected, this will remove the AzuraCast branding from public-facing pages.' => 'Wenn ausgewhlt, wird dadurch das AzuraCast branding auf ffentlich zugnglichen Seiten nicht angezeigt.', 'If the end time is before the start time, the playlist will play overnight.' => 'Wenn die Endzeit vor der Startzeit ist, wird die Playlist ber Nacht spielen.', 'If the end time is before the start time, the schedule entry will continue overnight.' => 'Wenn die Endzeit vor der Startzeit ist, wird die Playlist ber Nacht spielen.', 'If this mount is the default, it will be played on the radio preview and the public radio page in this system.' => 'Der Standard Mount wird auf der ffentlichen Radioseite automatisch abgespielt.', 'If this mount point is not playing audio, listeners will automatically be redirected to this mount point. The default is /error.mp3, a repeating error message.' => 'Wenn der Einhngepunkt kein Audio abspielt, werden die Zuhrer automatisch zu diesem Einhngepunkt umgeleitet. Der Standard ist /error.mp3, eine sich wiederholende Fehlermeldung.', 'If this setting is set to "Yes", the browser URL will be used instead of the base URL when it\'s available. Set to "No" to always use the base URL.' => 'Wenn diese Einstellung auf "Ja" gesetzt ist, wird die Browser-URL anstelle der System-URL verwendet, wenn sie verfgbar ist. Setze die Einstellung auf "Nein", um immer die System-URL zu verwenden.', 'If this station has on-demand streaming and downloading enabled, only songs that are in playlists with this setting enabled will be visible.' => 'Wenn dieser Sender On-Demand-Streaming und Download aktiviert hat, werden nur Lieder angezeigt, die sich in Wiedergabelisten befinden bei denen diese Einstellung aktiviert ist.', 'If you are broadcasting using AutoDJ, enter the source password here.' => 'Wenn Sie mit AutoDJ senden, geben Sie hier das Source Passwort ein.', 'If you are broadcasting using AutoDJ, enter the source username here. This may be blank.' => 'Wenn Sie AutoDJ verwenden, geben Sie hier den Quell-Benutzernamen hier ein. Dies kann leer bleiben.', 'If you\'re experiencing a bug or error, you can submit a GitHub issue using the link below.' => 'Wenn du auf einen Fehler stt, kannst du uns auf unserem GitHub Repository unter dem Link unten einreichen.', 'If your installation is constrained by CPU or memory, you can change this setting to tune the resources used by Liquidsoap.' => 'Wenn Ihre Installation durch CPU oder Arbeitsspeicher eingeschrnkt ist, knnen Sie diese Einstellung ndern, um die von Liquidsoap verwendeten Ressourcen zu optimieren.', 'If your Mastodon username is "@test@example.com", enter "example.com".' => 'Wenn Ihr Mastodon-Benutzername "@test@example.com" lautet, geben Sie "example.com" ein.', 'If your streaming software requires a specific mount point path, specify it here. Otherwise, use the default.' => 'Wenn Ihre Streaming-Software einen bestimmten Einhngepunktpfad erfordert, geben Sie ihn hier an. Andernfalls verwenden Sie den Standard.', 'If your web hook requires HTTP basic authentication, provide the password here.' => 'Wenn dein WebHook eine HTTP basic authentication bentigt, gib hier das Passwort ein.', 'If your web hook requires HTTP basic authentication, provide the username here.' => 'Wenn dein Web Hook eine HTTP basic authentication erfordert, gib hier den Benutzernamen ein.', 'Import Changes from CSV' => 'nderungen aus CSV-Datei importieren', 'Import from PLS/M3U' => 'Import von PLS/M3U', 'Import Results' => 'Importiere Ergebnisse', 'Important: copy the key below before continuing!' => 'Wichtig: Kopiere den untenstehenden Schlssel, bevor du weiter machst!', 'In order to install Shoutcast:' => 'Um Shoutcast zu installieren:', 'In order to install Stereo Tool:' => 'Um Stereo Tool zu installieren:', 'In order to process quickly, web hooks have a short timeout, so the responding service should be optimized to handle the request in under 2 seconds.' => 'Um eine schnelle Verarbeitung zu gewhrleisten, haben WebHooks eine kurze Timeout-Zeit, so dass der antwortende Dienst so optimiert sein sollte, dass er die Anfrage in weniger als 2 Sekunden bearbeitet.', 'Include in On-Demand Player' => 'In On-Demand-Player einbeziehen', 'Information about the current playing track will appear here once your station has started.' => 'Sobald Ihr Sender gestartet ist, werden hier Informationen ber den aktuell gespielten Titel angezeigt.', 'Insert' => 'Einfgen', 'Install GeoLite IP Database' => 'GeoLite IP-Datenbank installieren', 'Install Shoutcast' => 'Shoutcast installieren', 'Install Shoutcast 2 DNAS' => 'Shoutcast 2 DNAS installieren', 'Install Stereo Tool' => 'Stereo Tool installieren', 'Instructions' => 'Anleitung', 'Internal notes or comments about the user, visible only on this control panel.' => 'Interne Notizen oder Kommentare ber den Benutzer, die nur auf diesem Bedienfeld sichtbar sind.', 'International Standard Recording Code, used for licensing reports.' => 'International standardisierte Aufnahme-Kodierung, welche fr Lizenz Berichte genutzt wird.', 'IP Geolocation is used to guess the approximate location of your listeners based on the IP address they connect with. Use the free built-in IP Geolocation library or enter a license key on this page to use MaxMind GeoLite.' => 'IP-Geolocation wird verwendet, um die ungefhre Position deiner Zuhrer basierend auf der IP-Adresse, mit der sie sich verbinden, zu erraten. Verwende die mitgelieferte kostenlose IP-Geolocation Bibliothek oder gib einen Lizenzschlssel auf dieser Seite ein, um MaxMind GeoLite zu verwenden.', 'ISRC' => 'ISRC', 'Jingle Mode' => 'Jingle Modus', 'Language' => 'Sprache', 'Last run:' => 'Letzte Ausfhrung:', 'Last.fm API Key' => 'Last.fm API-Schlssel', 'Learn about Advanced Playlists' => 'Erfahren Sie mehr ber erweiterte Playlists', 'Learn more about release channels in the AzuraCast docs.' => 'Mehr Informationen ber Release Kanle findest du in den AzuraCast Docs.', 'Learn more about this header.' => 'Mehr Informationen ber diesen Header.', 'Leave blank to automatically generate a new password.' => 'Leer lassen um automatisch ein Kennwort erstellen zu lassen.', 'Leave blank to play on every day of the week.' => 'Frei lassen, um an jedem Tag der Woche zu spielen.', 'Leave blank to use the current password.' => 'Lass dieses Feld leer, um dein aktuelles Passwort beizubehalten.', 'Leave blank to use the default Telegram API URL (recommended).' => 'Leer lassen, um die Standard-URL der Telegram-API zu verwenden (empfohlen).', 'Length' => 'Lnge', 'Let\'s get started by creating your Super Administrator account.' => 'Lass uns mit dem erstellen deines Super Administrator Accounts anfangen.', 'LetsEncrypt provides simple, free SSL certificates allowing you to secure traffic through your control panel and radio streams.' => 'LetsEncrypt bietet einfache, kostenlose SSL-Zertifikate, mit denen Sie den Datenverkehr ber Ihr Control Panel und Ihre Radiostreams sichern knnen.', 'LiquidSoap is currently shuffling from %{songs} and %{playlists}.' => 'LiquidSoap mischt derzeit aus %{songs} und %{playlists}.', 'Liquidsoap Performance Tuning' => 'Liquidsoap Leistungs-Optimierung', 'List one IP address or group (in CIDR format) per line.' => 'Eine IP-Adresse oder Gruppe (im CIDR-Format) pro Zeile auflisten.', 'List one user agent per line. Wildcards (*) are allowed.' => 'Geben Sie einen Benutzeragenten pro Zeile an. Wildcards (*) sind erlaubt.', 'Listener Analytics Collection' => 'Zuhrer Statistiken sammeln', 'Listener History' => 'Zuhrer History', 'Listener Report' => 'Hrerbericht', 'Listener Request' => 'Zuhrerwunsch', 'Listeners' => 'Zuhrer', 'Listeners by Day' => 'Zuhrer nach Tag', 'Listeners by Day of Week' => 'Zuhrer nach Wochentag', 'Listeners by Hour' => 'Zuhrer nach Stunde', 'Listeners by Listening Time' => 'Zuhrer nach Hrdauer', 'Listeners By Time Period' => 'Zuhrer nach Zeitabschnitt', 'Listeners Per Station' => 'Zuhrer pro Sender', 'Listening Time' => 'Hrdauer', 'Live Broadcast Recording Bitrate (kbps)' => 'Bitrate fr Live-bertragung Aufnahmen (kbps)', 'Live Broadcast Recording Format' => 'Live-bertragung Aufnahmeformat', 'Live Listeners' => 'Live Zuhrer', 'Live Recordings Storage Location' => 'Speicherort fr Live-Aufnahmen', 'Live Streamer:' => 'Live-Streamer:', 'Live Streaming' => 'Live-Streaming', 'Load Average' => 'Load Durchschnitt', 'Local' => 'Lokal', 'Local Streams' => 'Lokale Streams', 'Log In' => 'Anmelden', 'Logs by Station' => 'Logs nach Sender', 'Loop Once' => 'Einmal durchlaufen', 'Main Message Content' => 'Inhalt der Nachricht', 'Make HLS Stream Default in Public Player' => 'HLS-Stream zum Standard im ffentlichen Player machen', 'Make the selected media play immediately, interrupting existing media' => 'Den gewhlten Song sofort abspielen lassen, wobei der aktuelle Song unterbrochen wird', 'Manage' => 'Verwalten', 'Manage SFTP Accounts' => 'SFTP Zugnge verwalten', 'Manage Stations' => 'Sender verwalten', 'Manual AutoDJ Mode' => 'Manueller AutoDJ-Modus', 'Manual Updates' => 'Manuelle Updates', 'Mastodon Account Details' => 'Mastodon Accountdetails', 'Mastodon Instance URL' => 'Mastodon Instanz-URL', 'Matomo Installation Base URL' => 'Matomo Installation System-URL', 'Max Listener Duration' => 'Maximale Zuhrdauer', 'Maximum Listeners' => 'Maximale Zuhrer', 'Maximum number of total listeners across all streams. Leave blank to use the default.' => 'Maximale Zuhreranzahl ber alle Streams verteilt. Leer lassen, um den Standardwert zu verwenden.', 'MaxMind Developer Site' => 'MaxMind Entwickler Website', 'Measurement ID' => 'Messwert-ID', 'Measurement Protocol API Secret' => 'Messprotokoll API Geheimnis', 'Media' => 'Medien', 'Media File' => 'Mediendatei', 'Media Storage Location' => 'Medien Speicherort bearbeiten', 'Memory' => 'RAM', 'Memory Stats Help' => 'Speicher Statistik Hilfe', 'Message Body' => 'Nachrichtentext', 'Message Body on Song Change' => 'Nachrichtentext beim Songwechsel', 'Message Body on Station Offline' => 'Nachrichtentext wenn der Sender Offline geht', 'Message Body on Station Online' => 'Nachrichtentext wenn der Sender Online geht', 'Message Body on Streamer/DJ Connect' => 'Nachrichtentext wenn Streamer / DJ verbunden', 'Message Body on Streamer/DJ Disconnect' => 'Nachrichtentext wenn Streamer / DJ getrennt', 'Message Customization Tips' => 'Tipps zur Nachrichtenanpassung', 'Message parsing mode' => 'Nachrichten Verarbeitungsmodus', 'Message Queues' => 'Nachrichtenwarteschlangen', 'Message Recipient(s)' => 'Empfnger der Nachricht', 'Message Subject' => 'Betreff', 'Message Visibility' => 'Nachrichten-Sichtbarkeit', 'Microphone' => 'Mikrofon', 'Microphone Source' => 'Mikrofon Quelle', 'Minute of Hour to Play' => 'Minute der Stunde zu der gespielt werden soll', 'Monday' => 'Montag', 'More' => 'Mehr', 'Most hosting providers will put more Virtual Machines (VPSes) on a server than the hardware can handle when each VM is running at full CPU load. This is called over-provisioning, which can lead to other VMs on the server "stealing" CPU time from your VM and vice-versa.' => 'Die meisten Hosting-Anbieter stellen mehr virtuelle Maschinen (VPS) auf einem Server bereit, als die Hardware bewltigen kann. Wenn jede VM mit voller CPU-Last luft, wird dies als berprovisionierung bezeichnet, was dazu fhren kann, dass andere VMs auf dem Server Ihre CPU-Zeit "stehlen" und umgekehrt.', 'Most Played Songs' => 'Meistgespielte Lieder', 'Most Recent Backup Log' => 'Letztes Backup-Log', 'Mount Name:' => 'Mount-Name:', 'Mount Point URL' => 'Einhngepunkt URL', 'Mount Points' => 'Einhngepunkte', 'Mount points are how listeners connect and listen to your station. Each mount point can be a different audio format or quality. Using mount points, you can set up a high-quality stream for broadband listeners and a mobile stream for phone users.' => 'Einhngepunkte sind die Zugangspunkte fr Zuhrer deines Senders. Jeder Einhngepunkt kann ein anderes Audioformat oder eine andere Qualitt haben. Mit Einhngepunkten kannst du einen hochwertigen Stream fr Festnetz Verbindungen und einen mobilen Stream fr Mobile Zuhrer einrichten.', 'Move' => 'Bewegen', 'Move to Directory' => 'In Verzeichnis verschieben', 'Music Files' => 'Musik Dateien', 'Mute' => 'Stummschalten', 'My Account' => 'Mein Account', 'N/A' => '-', 'name@example.com' => 'name@example.com', 'Need Help?' => 'Brauchst du Hilfe?', 'Network Interfaces' => 'Netzwerkschnittstellen', 'Never run' => 'Niemals ausgefhrt', 'New Directory' => 'Neues Verzeichnis', 'New File Name' => 'Neuer Dateiname', 'New Folder' => 'Neues Verzeichnis', 'New Key Generated' => 'Neuer Schlssel generiert', 'New Password' => 'Neues Passwort', 'New Playlist' => 'Neue Wiedergabeliste', 'New Playlist Name' => 'Neuer Wiedergabelisten-Name', 'New Station Description' => 'Neue Senderbeschreibung', 'New Station Name' => 'Neuer Sendername', 'No' => 'Nein', 'No AutoDJ Enabled' => 'Kein AutoDJ aktiviert', 'No Match' => 'Keine bereinstimmung', 'No other program can be using this port. Leave blank to automatically assign a port.' => 'Kein anderes Programm kann diesen Port verwenden. Lass das Feld leer, um automatisch einen Port zuzuweisen.', 'No records to display.' => 'Nichts anzuzeigen.', 'None' => 'Nicht vorhanden', 'Not Played' => 'Nicht gespielt', 'Not Scheduled' => 'Nicht geplant', 'Note that restoring a backup will clear your existing database. Never restore backup files from untrusted users.' => 'Beachten Sie, dass die Wiederherstellung eines Backups Ihre bestehende Datenbank lscht. Stellen Sie niemals Sicherungsdateien von nicht vertrauenswrdigen Benutzern wieder her.', 'Note: If your media metadata has UTF-8 characters, you should use a spreadsheet editor that supports UTF-8 encoding, like OpenOffice.' => 'Hinweis: Wenn Ihre Medien-Metadaten UTF-8-Zeichen enthalten, sollten Sie einen Tabellenkalkulationseditor verwenden, der die UTF-8-Kodierung untersttzt. z.B. OpenOffice.', 'Note: This should be the public-facing homepage of the radio station, not the AzuraCast URL. It will be included in broadcast details.' => 'Hinweis: Dies sollte die ffentlich zugnglichen Homepage des Radiosenders sein, nicht die AzuraCast URL. Sie wird in die bertragungs-Details aufgenommen.', 'Now' => 'Jetzt', 'Now Playing' => 'Jetzt luft', 'NowPlaying API Response' => 'NowPlaying API Antwort', 'Number of Backup Copies to Keep' => 'Anzahl der zu behaltenden Backups', 'Number of Minutes Between Plays' => 'Anzahl an Minuten zwischen den Wiedergaben', 'Number of seconds to overlap songs.' => 'Anzahl der Sekunden, die Lieder berschneiden sollen.', 'Number of Songs Between Plays' => 'Anzahl an Lieder zwischen den Wiedergaben', 'Number of Visible Recent Songs' => 'Anzahl der angezeigten zuletzt gespielten Songs', 'On the Air' => 'Auf Sendung', 'On-Demand Media' => 'On-Demand-Medien', 'Once per Hour' => 'Einmal pro Stunde', 'Once per x Minutes' => 'Einmal pro x Minuten', 'Once per x Songs' => 'Einmal alle x Lieder', 'Once these steps are completed, enter the "Access Token" from the application\'s page into the field below.' => 'Sobald diese Schritte abgeschlossen sind, geben Sie das "Access Token" von der Seite der Anwendung in das unten stehende Feld ein.', 'One important note on I/O Wait is that it can indicate a bottleneck or problem but also may be completely meaningless, depending on the workload and general available resources. A constantly high I/O Wait should prompt further investigation with more sophisticated tools.' => 'Ein wichtiger Hinweis zu I/O-Wartezeit ist, dass er auf einen Engpass oder ein Problem hinweisen kann, aber auch vllig bedeutungslos sein kann. Abhngig von der Arbeitslast und den allgemein verfgbaren Ressourcen. Eine konstant hohe I/O-Wartezeit sollte Anlass fr weitere Untersuchungen mit anspruchsvolleren Tools sein.', 'Only loop through playlist once.' => 'Wiedergabeliste nur einmal abspielen.', 'Only Post Once Every...' => 'Nur einmal posten pro...', 'Optional: HTTP Basic Authentication Password' => 'Optional: HTTP Basic Authentication Passwort', 'Optional: HTTP Basic Authentication Username' => 'Optional: HTTP Basic Authentication Benutzername', 'Optional: Request Timeout (Seconds)' => 'Optional: Zeitberschreitung der Anfrage (Sekunden)', 'Optionally select an ID3v2 metadata field that, if present, will be used to set this field\'s value.' => 'Optional kannst du ein ID3v2-Metadatenfeld whlen, das, falls vorhanden, verwendet wird, um den Wert dieses Feldes festzulegen.', 'Optionally specify a short URL-friendly name, such as "my_station_name", that will be used in this station\'s URLs. Leave this field blank to automatically create one based on the station name.' => 'Optional kann ein kurzer, URL-freundlicher Name, wie z. B. "mein_sender_name", angegeben werden, der in den URLs dieses Senders verwendet wird. Lass dieses Feld leer, um automatisch einen Namen auf der Grundlage des Sendernamens zu erstellen.', 'Optionally specify an API-friendly name, such as "field_name". Leave this field blank to automatically create one based on the name.' => 'Optional kann ein API-freundlicher Name angegeben werden, z. B. "feld_name". Lass dieses Feld leer, um automatisch einen Namen auf der Grundlage des Namens zu erstellen.', 'Optionally supply an API token to allow IP address overriding.' => 'Optional kann ein API-Token angegeben werden, um das berschreiben der IP-Adresse zu ermglichen.', 'Optionally supply SSH public keys this user can use to connect instead of a password. Enter one key per line.' => 'Optional kannst du SSH Public Keys angeben die dieser Benutzer statt eines Passworts verwenden kann. Gib einen Schlssel pro Zeile ein.', 'or' => 'oder', 'Original Path' => 'Originalpfad', 'Password' => 'Passwort', 'Password:' => 'Passwort:', 'Paste the generated license key into the field on this page.' => 'Fge den generierten Lizenzschlssel in das Feld auf dieser Seite ein.', 'Path/Suffix' => 'Pfad/Suffix', 'Play' => 'Abspielen', 'Play Now' => 'Jetzt spielen', 'Playback Queue' => 'Wiedergabe-Warteschlange', 'Playing Next' => 'Als Nchstes', 'Playlist' => 'Wiedergabeliste', 'Playlist 1' => 'Wiedergabeliste 1', 'Playlist 2' => 'Wiedergabeliste 2', 'Playlist Name' => 'Playlisten Name', 'Playlist queue cleared.' => 'Playlist-Warteschlange gelscht.', 'Playlist Type' => 'Playlist Typ', 'Playlist Weight' => 'Playlist Prioritt', 'Playlist:' => 'Wiedergabeliste:', 'Playlists' => 'Wiedergabelisten', 'Plays' => 'Wiedergaben', 'Please log in to continue.' => 'Bitte logge dich ein, um fortzufahren.', 'Podcast media should be in the MP3 or M4A (AAC) format for the greatest compatibility.' => 'Podcast-Medien sollten im MP3- oder M4A (AAC)-Format vorliegen, um eine grtmgliche Kompatibilitt zu gewhrleisten.', 'Podcast Title' => 'Podcast Titel', 'Podcasts Storage Location' => 'Podcasts-Speicherort', 'Prefer Browser URL (If Available)' => 'Bevorzuge Browser URL (falls vorhanden)', 'Previous' => 'Vorher', 'Privacy' => 'Datenschutz', 'Profile' => 'Profil', 'Programmatic Name' => 'Name fr das System', 'Provide a valid license key from Thimeo. Functionality is limited without a license key.' => 'Legen Sie einen gltigen Lizenzschlssel von Thimeo vor. Ohne Lizenzschlssel ist der Funktionsumfang eingeschrnkt.', 'Public Page' => 'ffentliche Seite', 'Public Page Background' => 'Hintergrund der ffentlichen Seite', 'Public Pages' => 'ffentliche Seiten', 'Publish to "Yellow Pages" Directories' => 'In "Yellow Pages" Verzeichnis verffentlichen', 'Queue' => 'Einreihen', 'Queue the selected media to play next' => 'Ausgewhlte Medien einreihen', 'Ready to start broadcasting? Click to start your station.' => 'Bereit zum Starten der bertragung? Dann klick hier, um deinen Sender zu starten.', 'Received' => 'Empfangen', 'Record Live Broadcasts' => 'Live-Sendung aufnehmen', 'Recover Account' => 'Account wiederherstellen', 'Refresh rows' => 'Zeilen aktualisieren', 'Release Channel' => 'Release-Kanal', 'Reload' => 'Neu laden', 'Reload Configuration' => 'Konfiguration neu laden', 'Reload to Apply Changes' => 'Neu laden, um nderungen zu bernehmen', 'Remember me' => 'Angemeldet bleiben', 'Remote Playback Buffer (Seconds)' => 'Remote Wiedergabe-Puffer (Sekunden)', 'Remote Relays' => 'Remote-Relays', 'Remote relays let you work with broadcasting software outside this server. Any relay you include here will be included in your station\'s statistics. You can also broadcast from this server to remote relays.' => 'Remote Relays ermglichen es dir, mit einer Sendesoftware auerhalb dieses Servers zu arbeiten. Jeder Server, den du hier einfgst, wird in die Statistiken deines Senders aufgenommen. Du kannst auch von diesem Server zu entfernten Relays senden.', 'Remote Station Administrator Password' => 'Remote Sender Administrator Passwort', 'Remote Station Source Password' => 'Remote Station Source Passwort', 'Remote Station Source Username' => 'Remote Station Source Benutzername', 'Remote Station Type' => 'Remote-Stationstyp', 'Remote URL' => 'Remote-URL', 'Remote URL Playlist' => 'Remote URL Wiedergabeliste', 'Remote URL Type' => 'Remote-URL-Typ', 'Remote: S3 Compatible' => 'Remote: S3 kompatibel', 'Remove' => 'Lschen', 'Remove Key' => 'Schlssel entfernen', 'Rename' => 'Umbenennen', 'Rename File/Directory' => 'Benennen Sie die Datei oder das Verzeichnis um', 'Reorder' => 'Neu anordnen', 'Reorder Playlist' => 'Wiedergabeliste neu ordnen', 'Repeat' => 'Wiederholen', 'Replace Album Cover Art' => 'Ersetzen der Album Artwork', 'Reports' => 'Berichte', 'Reprocess' => 'Erneut verarbeiten', 'Request' => 'Wunsch', 'Request a Song' => 'Lied wnschen', 'Request Last Played Threshold (Minutes)' => 'Abstand zwischen Musikwnschen gespielter Songs (Minuten)', 'Request Minimum Delay (Minutes)' => 'Musikwunsch Mindestverzgerung (in Minuten)', 'Request Song' => 'Lied wnschen', 'Requests' => 'Musikwnsche', 'Reshuffle' => 'Neu mischen', 'Restart' => 'Neustarten', 'Restart Broadcasting' => 'Streaming neustart', 'Restoring Backups' => 'Backups wiederherstellen', 'Role Name' => 'Rollenname', 'Roles' => 'Rollen', 'Roles & Permissions' => 'Rollen & Berechtigungen', 'RSS Feed' => 'RSS-Feed', 'Run Automatic Nightly Backups' => 'Automatische nchtliche Backups ausfhren', 'Run Manual Backup' => 'Manuelles Backup ausfhren', 'Run Task' => 'Aufgabe ausfhren', 'Sample Rate' => 'Samplerate', 'Saturday' => 'Samstag', 'Save' => 'Speichern', 'Save and Continue' => 'Speichern und fortfahren', 'Save Changes' => 'nderungen speichern', 'Save Changes first' => 'nderungen zuerst speichern', 'Schedule' => 'Zeitplan', 'Schedule View' => 'Planungsansicht', 'Scheduled' => 'Geplant', 'Scheduled Backup Time' => 'Geplanter Zeitpunkt fr Backups', 'Scheduled Play Days of Week' => 'Geplante Wiedergabetage der Woche', 'Scheduled playlists and other timed items will be controlled by this time zone.' => 'Geplante Wiedergabelisten und andere zeitgesteuerte Elemente werden von dieser Zeitzone kontrolliert.', 'Scheduled Time #%{num}' => 'Geplante Zeit #%{num}', 'Search' => 'Suchen', 'Seconds from the start of the song that the AutoDJ should start playing.' => 'Sekunden ab dem Start des Songs ab dem der Titel gespielt werden soll.', 'Seconds from the start of the song that the AutoDJ should stop playing.' => 'Sekunden ab dem Start des Songs ab dem der Titel gestoppt werden soll.', 'Secret Key' => 'Geheimer Schlssel', 'Security' => 'Sicherheit', 'Security & Privacy' => 'Sicherheit & Datenschutz', 'See the Telegram documentation for more details.' => 'Weitere Details sind in der Telegramm-Dokumentation zu finden.', 'See the Telegram Documentation for more details.' => 'Weitere Details sind in der Telegramm-Dokumentation zu finden.', 'Seek' => 'Suche', 'Segment Length (Seconds)' => 'Segmentlnge (Sekunden)', 'Segments in Playlist' => 'Segmente in der Playliste', 'Segments Overhead' => 'Segmente Overhead', 'Select' => 'Auswhlen', 'Select a theme to use as a base for station public pages and the login page.' => 'Whlen Sie ein Theme, als Basis fr ffentliche Stationsseiten und der Login-Seite.', 'Select Configuration File' => 'Konfigurationsdatei auswhlen', 'Select CSV File' => 'CSV-Datei auswhlen', 'Select Custom Fallback File' => 'Whlen Sie eine Benutzerdefinierte Fallback-Datei', 'Select File' => 'Datei auswhlen', 'Select Intro File' => 'Intro-Datei auswhlen', 'Select Media File' => 'Medien-Datei auswhlen', 'Select PLS/M3U File to Import' => 'PLS/M3U-Datei zum Importieren auswhlen', 'Select PNG/JPG artwork file' => 'PNG/JPG-Datei fr Artwork auswhlen', 'Select the category/categories that best reflects the content of your podcast.' => 'Whle die Kategorie(n), die den Inhalt deines Podcasts am besten widerspiegeln.', 'Select the countries that are not allowed to connect to the streams.' => 'Whle die Lnder aus, die keine Verbindung zu den Streams herstellen drfen.', 'Send Test Message' => 'Testnachricht senden', 'Sender E-mail Address' => 'E-Mail-Adresse des Absenders', 'Sender Name' => 'Absendername', 'Sequential' => 'Fortlaufend', 'Services' => 'Dienste', 'Set a maximum disk space that this storage location can use. Specify the size with unit, i.e. "8 GB". Units are measured in 1024 bytes. Leave blank to default to the available space on the disk.' => 'Lege einen maximalen Speicherplatz fest, den diese Station verwenden kann. Gib die Gre mit Einheit an, z.B. "8 GB". Einheiten werden in 1024 Bytes gemessen. Leer lassen, um den ganzen verfgbaren Speicherplatz auf der Festplatte zu verwenden.', 'Set as Default Mount Point' => 'Als Standard-Mount-Punkt festlegen', 'Set cue and fade points using the visual editor. The timestamps will be saved to the corresponding fields in the advanced playback settings.' => 'Setze Einsprung- und Ausblendungs-Punkte mit Hilfe des visuellen Editors. Die Zeitstempel werden in den entsprechenden Feldern in den erweiterten Wiedergabeeinstellungen gespeichert.', 'Set Cue In' => 'Einsprungspunkt setzen', 'Set Cue Out' => 'Aussprungspunkt setzen', 'Set Fade In' => 'Einblendungspunkt setzen', 'Set Fade Out' => 'Ausblendungspunkt setzen', 'Set longer to preserve more playback history and listener metadata for stations. Set shorter to save disk space.' => 'Stelle den Wert lnger ein, um mehr Song Verlauf und Hrer-Metadaten fr Sender zu speichern. Stelle den Wert krzer ein, um Speicherplatz zu sparen.', 'Set the length of time (seconds) a listener will stay connected to the stream. If set to 0, listeners can stay connected infinitely.' => 'Legt die Dauer (in Sekunden) fest, die ein Hrer mit dem Stream verbunden bleibt. Bei einem Wert von 0 knnen die Hrer unendlich lange verbunden bleiben.', 'Set to * to allow all sources, or specify a list of origins separated by a comma (,).' => 'Auf * setzen, um alle Quellen zuzulassen, oder eine durch ein Komma (,) getrennte Liste von Quellen angeben.', 'Settings' => 'Einstellungen', 'Setup instructions for broadcasting software are available on the AzuraCast wiki.' => 'Anleitungen fr die Einrichtung der Broadcasting-Software sind im AzuraCast Wiki zu finden.', 'SFTP Host' => 'SFTP: Host', 'SFTP Password' => 'SFTP: Passwort', 'SFTP Port' => 'SFTP Port', 'SFTP Private Key' => 'SFTP: Privater Schlssel', 'SFTP Private Key Pass Phrase' => 'SFTP: Passwort fr den Privaten Schlssel', 'SFTP Username' => 'SFTP: Benutzername', 'SFTP Users' => 'SFTP Benutzer', 'Shoutcast 2 DNAS is not currently installed on this installation.' => 'Shoutcast 2 DNAS ist derzeit nicht auf dieser Installation installiert.', 'Shoutcast 2 DNAS is not free software, and its restrictive license does not allow AzuraCast to distribute the Shoutcast binary.' => 'Shoutcast 2 DNAS ist keine freie Software, und die restriktive Lizenz erlaubt es AzuraCast nicht, die Shoutcast-Binrdatei zu vertreiben.', 'Shoutcast Clients' => 'Shoutcast Nutzer', 'Shoutcast User ID' => 'Shoutcast Benutzer-ID', 'Show HLS Stream on Public Player' => 'HLS-Stream in ffentlichem Player anzeigen', 'Show new releases within your update channel on the AzuraCast homepage.' => 'Neue Releases in deinem Update-Kanal auf der AzuraCast Homepage anzeigen.', 'Show on Public Pages' => 'Auf ffentlichen Seiten anzeigen', 'Show the station in public pages and general API results.' => 'Diesen Sender auf ffentlichen Seiten und allgemeinen API Ergebnissen anzeigen.', 'Show Update Announcements' => 'Zeige Update Ankndigungen', 'Sign Out' => 'Logout', 'Site Base URL' => 'System-URL', 'Skip Song' => 'Song berspringen', 'Skip to main content' => 'Zum Hauptinhalt springen', 'SMTP Password' => 'SMTP-Passwort', 'SMTP Port' => 'SMTP-Port', 'SMTP Username' => 'SMTP-Benutzername', 'Some stream licensing providers may have specific rules regarding song requests. Check your local regulations for more information.' => 'Einige Anbieter von Streaming-Lizenzen haben mglicherweise spezielle Regeln fr Musikwnsche. Informiere dich ber deine rtlichen Vorschriften fr weitere Informationen.', 'Song Album' => 'Album des Liedes', 'Song Artist' => 'Interpret', 'Song Genre' => 'Song-Genre', 'Song History' => 'Songverlauf', 'Song Length' => 'Songlnge', 'Song Lyrics' => 'Song Text', 'Song Playback Order' => 'Reihenfolge der Song-Wiedergabe', 'Song Playback Timeline' => 'Song Verlauf', 'Song Requests' => 'Musikwnsche', 'Song Title' => 'Song-Titel', 'Song-based' => 'Lieder basiert', 'Song-Based Playlist' => 'Song-basierte Playlist', 'SoundExchange Report' => 'SoundExchange Bericht', 'SoundExchange Royalties' => 'SoundExchange Lizenzgebhren', 'Source' => 'Quelle', 'Specify a mountpoint (i.e. "/radio.mp3") or a Shoutcast SID (i.e. "2") to specify a specific stream to use for statistics or broadcasting.' => 'Gib einen Einhngepunkt (z.B. "/radio.mp3") oder eine Shoutcast SID (z.B. "2") an, um einen bestimmten Stream fr die Statistik oder das Broadcasting zu verwenden.', 'Specify the minute of every hour that this playlist should play.' => 'Gib die Minute jeder Stunde an, die diese Wiedergabeliste spielen soll.', 'Start' => 'Starten', 'Start Date' => 'Startdatum', 'Start Station' => 'Station starten', 'Start Time' => 'Startzeit', 'Station Name' => 'Sendername', 'Station Offline' => 'Station offline', 'Station Overview' => 'Sender bersicht', 'Station Permissions' => 'Sender Berechtigungen', 'Station Statistics' => 'Station Statistik', 'Station Time' => 'Stationszeit', 'Station Time Zone' => 'Zeitzone einstellen', 'Station-Specific Debugging' => 'Stations-spezifisches Debugging', 'Stations' => 'Sender', 'Steal' => 'Stehlen', 'Steal (St)' => 'Stehlen (St)', 'Step 1: Scan QR Code' => 'Schritt 1: QR-Code scannen', 'Step 2: Verify Generated Code' => 'Schritt 2: Generierten Code verifizieren', 'Steps for configuring a Mastodon application:' => 'Schritte zum Konfigurieren einer Mastodon-Anwendung:', 'Stereo Tool documentation.' => 'Stereo Tool Dokumentation.', 'Stereo Tool Downloads' => 'Stereo Tool-Downloads', 'Stereo Tool is an industry standard for software audio processing. For more information on how to configure it, please refer to the' => 'Stereo Tool ist ein Industriestandard fr die Software-Audioverarbeitung. Weitere Informationen zur Konfiguration finden Sie in der', 'Stereo Tool is not currently installed on this installation.' => 'Stereo Tool ist derzeit nicht auf dieser Installation installiert.', 'Stereo Tool is not free software, and its restrictive license does not allow AzuraCast to distribute the Stereo Tool binary.' => 'Stereo Tool ist keine freie Software und die restriktive Lizenz erlaubt es AzuraCast nicht, das Stereo Tool Binary zu vertreiben.', 'Stop' => 'Stoppen', 'Storage Adapter' => 'Speicheradapter', 'Storage Location' => 'Speicherort', 'Storage Locations' => 'Speicherorte', 'Storage Quota' => 'Speicherkontingent', 'Streamer Broadcasts' => 'Streamer Sendungen', 'Streamer Display Name' => 'Name des Streamers', 'Streamer password' => 'Streamer Passwort', 'Streamer Username' => 'Streamer nutzername', 'Streamer/DJ' => 'Live-Streamer/DJ', 'Streamer/DJ Accounts' => 'Live-Streamer/DJ Accounts', 'Streamers/DJs' => 'Live-Streamer/DJs', 'Submit Code' => 'Code absenden', 'Sunday' => 'Sonntag', 'Support Documents' => 'Support Dokumente', 'Supported file formats:' => 'Untersttzte Dateiformate:', 'Switch Theme' => 'Design ndern', 'Synchronization Tasks' => 'Synchronisierungsaufgaben', 'System Debugger' => 'System-Debugger', 'System Logs' => 'System-Logs', 'System Maintenance' => 'System & Wartung', 'System Settings' => 'System Einstellungen', 'The amount of memory Linux is using for disk caching.' => 'Die Menge an Speicher, die Linux fr das Festplatten-Caching verwendet.', 'The base URL where this service is located. Use either the external IP address or fully-qualified domain name (if one exists) pointing to this server.' => 'Die System-URL, unter der dieser Dienst erreichbar ist. Benutze entweder die externe IP oder eine Domne (wenn eine existiert) die auf den Server zeigt.', 'The body of the POST message is the exact same as the NowPlaying API response for your station.' => 'Der Inhalt der POST-Nachricht entspricht exakt der NowPlaying API-Antwort deines Senders.', 'The contact person of the podcast. May be required in order to list the podcast on services like Apple Podcasts, Spotify, Google Podcasts, etc.' => 'Die Kontaktperson des Podcasts. Kann bentigt werden, um den Podcast bei Diensten wie Apple Podcasts, Spotify, Google Podcasts usw. zu verffentlichen.', 'The current CPU usage including I/O Wait and Steal.' => 'Die aktuelle CPU-Auslastung einschlielich I/O-Wait und I/O-Steal.', 'The current Memory usage excluding cached memory.' => 'Die aktuelle Speichernutzung ohne Cache-Speicher.', 'The description of the episode. The typical maximum amount of text allowed for this is 4000 characters.' => 'Die Beschreibung der Episode. Die maximal zulssige Textlnge betrgt 4000 Zeichen.', 'The description of your podcast. The typical maximum amount of text allowed for this is 4000 characters.' => 'Die Beschreibung des Podcast. Die maximal zulssige Textlnge betrgt 4000 Zeichen.', 'The display name assigned to this mount point when viewing it on administrative or public pages. Leave blank to automatically generate one.' => 'Der Anzeigename dieses Einhngepunktes der auf administrations oder ffentlichen Seiten angezeigt wird. Leer lassen, um automatisch einen zu erzeugen.', 'The display name assigned to this relay when viewing it on administrative or public pages. Leave blank to automatically generate one.' => 'Der Anzeigename dieses Relays der auf administrations oder ffentlichen Seiten angezeigt wird. Leer lassen, um automatisch einen zu erzeugen.', 'The editable text boxes are areas where you can insert custom configuration code. The non-editable sections are automatically generated by AzuraCast.' => 'Die editierbaren Textfelder sind Bereiche, in die eigener Konfigurationscode einfgt werden kann. Die nicht editierbaren Bereiche werden automatisch von AzuraCast generiert.', 'The email of the podcast contact. May be required in order to list the podcast on services like Apple Podcasts, Spotify, Google Podcasts, etc.' => 'Die E-Mail Adresse der Kontaktperson des Podcasts. Kann bentigt werden, um den Podcast bei Diensten wie Apple Podcasts, Spotify, Google Podcasts usw. zu verffentlichen.', 'The file name should look like:' => 'Der Dateiname sollte wie folgt aussehen:', 'The format and headers of this CSV should match the format generated by the export function on this page.' => 'Das Format und die Kopfzeilen dieser CSV-Datei sollten dem Format entsprechen, dass von der Exportfunktion auf dieser Seite erzeugt wird.', 'The full base URL of your Matomo installation.' => 'Die komplette System-URL Ihrer Matomo-Installation.', 'The I/O Wait is the percentage of time that the CPU is waiting for disk access before it can continue the work that depends on the result of this.' => 'Der I/O-Wait ist der Prozentsatz der Zeit, die die CPU auf einen Festplattenzugriff wartet, bevor sie die Arbeit fortsetzen kann, die vom Ergebnis dieses Zugriffs abhngt.', 'The language spoken on the podcast.' => 'Die im Podcast gesprochene Sprache.', 'The length of playback time that Liquidsoap should buffer when playing this remote playlist. Shorter times may lead to intermittent playback on unstable connections.' => 'Die Lnge der Wiedergabezeit, die Liquidsoap beim Abspielen dieser Wiedergabeliste puffern soll. Kurze Zeiten knnen zu Unterbrechungen bei der Wiedergabe bei instabilen Verbindungen fhren.', 'The number of seconds of signal to store in case of interruption. Set to the lowest value that your DJs can use without stream interruptions.' => 'Die Anzahl der Sekunden des Signals, die im Falle einer Unterbrechung gespeichert werden. Stellen Sie den niedrigsten Wert ein, den Ihre DJs ohne Stream-Unterbrechungen verwenden knnen.', 'The number of seconds to wait for a response from the remote server before cancelling the request.' => 'Die Anzahl der Sekunden, die auf eine Antwort des entfernten Servers gewartet wird, bevor die Anfrage abgebrochen wird.', 'The numeric site ID for this site.' => 'Die numerische Site-ID fr diese Website.', 'The parent directory where station playlist and configuration files are stored. Leave blank to use default directory.' => 'Das bergeordnete Verzeichnis, in dem die Wiedergabelisten und Konfigurationsdateien gespeichert werden. Leer lassen, um das Standardverzeichnis zu verwenden.', 'The relative path of the file in the station\'s media directory.' => 'Der relative Dateipfad zu der Datei im Sender Medien Ordner.', 'The station ID will be a numeric string that starts with the letter S.' => 'Die Station ID wird ein numerischer String sein, der mit dem Buchstaben S beginnt.', 'The streamer will use this password to connect to the radio server.' => 'Der Streamer muss dieses Passwort verwenden, um sich mit dem Radioserver zu verbinden.', 'The streamer will use this username to connect to the radio server.' => 'Der Streamer wird diesen Benutzernamen verwenden, um sich mit dem Radioserver zu verbinden.', 'The time period that the song should fade in. Leave blank to use the system default.' => 'Der Zeitpunkt an dem der Song einblenden soll. Frei lassen um den System Standardwert zu nutzen.', 'The time period that the song should fade out. Leave blank to use the system default.' => 'Der Zeitpunkt an dem der Song ausblenden soll. Frei lassen um den System Standardwert zu nutzen.', 'The URL that will receive the POST messages any time an event is triggered.' => 'Die URL, die die POST-Nachrichten nach Auslsen eines Ereignisses erhalten soll.', 'The volume in decibels to amplify the track with. Leave blank to use the system default.' => 'Die Lautstrke in Dezibel um die der Track verstrkt werden soll. Leer lassen um die systemweiten Standardeinstellung zu verwenden.', 'The WebDJ lets you broadcast live to your station using just your web browser.' => 'Mit dem WebDJ knnen Sie ber Ihren Webbrowser live auf Ihrem Sender senden.', 'There is no existing custom fallback file associated with this station.' => 'Es gibt keine benutzerdefinierte Fallback-Datei, die mit dieser Station verknpft ist.', 'There is no existing intro file associated with this mount point.' => 'Es existiert keine Intro-Datei, die mit diesem Einhngepunkt verknpft ist.', 'There is no existing media associated with this episode.' => 'Fr diese Episode sind keine Medien vorhanden.', 'There is no Stereo Tool configuration file present.' => 'Es ist keine Stereo Tool Konfigurationsdatei vorhanden.', 'This account will have full access to the system, and you\'ll automatically be logged in to it for the rest of setup.' => 'Dieser Account hat vollen Zugriff auf das System und du wirst automatisch fr den Rest der Installation mit diesem angemeldet.', 'This can be generated in the "Events" section for a measurement.' => 'Diese kann im Abschnitt "Ereignisse" fr eine Messung erstellt werden.', 'This can make it look like your memory is low while it actually is not. Some monitoring solutions/panels include cached memory in their used memory statistics without indicating this.' => 'Dies kann den Anschein erwecken, dass Ihr Arbeitsspeicher knapp ist, obwohl dies in Wirklichkeit nicht der Fall ist. Einige berwachungslsungen / Panels beziehen den zwischengespeicherten Speicher in ihre Statistiken ber den verwendeten Speicher ein, ohne dies anzuzeigen.', 'This code will be included in the frontend configuration. Allowed formats are:' => 'Dieser Code wird in die Frontend-Konfiguration aufgenommen. Erlaubte Formate sind:', 'This configuration file should be a valid .sts file exported from Stereo Tool.' => 'Diese Konfigurationsdatei sollte eine gltige .sts-Datei sein, die von Stereo Tool exportiert wurde.', 'This CSS will be applied to the main management pages, like this one.' => 'Dieses CSS wird auf den Haupt-Seiten angwendet, wie auf dieser Seite z.b.', 'This CSS will be applied to the station public pages and login page.' => 'Dieses CSS wird auf den ffentlichen Seiten Bahnhof und Login-Seite angewendet werden.', 'This CSS will be applied to the station public pages.' => 'Dieses CSS wird auf die ffentlichen Seiten des Senders angewendet.', 'This determines how many songs in advance the AutoDJ will automatically fill the queue.' => 'Damit wird festgelegt, wie viele Titel im Voraus der AutoDJ automatisch in die Warteschlange einfgt.', 'This feature requires the AutoDJ feature to be enabled.' => 'Fr diese Funktion muss die AutoDJ-Funktion aktiviert sein.', 'This file will be played on your radio station any time no media is scheduled to play or a critical error occurs that interrupts regular broadcasting.' => 'Diese Datei wird auf Ihrem Radiosender immer dann abgespielt, wenn keine Medien geplant sind oder ein kritischer Fehler auftritt, der den regulren Sendebetrieb unterbricht.', 'This image will be used as the default album art when this streamer is live.' => 'Dieses Bild wird als Standard-Albumbild verwendet, wenn dieser Streamer live ist.', 'This introduction file should exactly match the bitrate and format of the mount point itself.' => 'Diese Intro-Datei sollte genau der Bitrate und dem Format des Einhngepunkts entsprechen.', 'This is an advanced feature and custom code is not officially supported by AzuraCast. You may break your station by adding custom code, but removing it should fix any issues.' => 'Dies ist eine erweiterte Funktion und benutzerdefinierter Code wird nicht offiziell von AzuraCast supported. Es kann sein, dass dein Sender durch das Hinzufgen von benutzerdefiniertem Code gestrt wird, aber das Entfernen des Codes sollte alle Probleme beheben.', 'This is the informal display name that will be shown in API responses if the streamer/DJ is live.' => 'Dies ist der informelle Anzeigename, der in den API-Antworten angezeigt wird, wenn der Streamer/DJ aktiv ist.', 'This is the number of seconds until a streamer who has been manually disconnected can reconnect to the stream. Set to 0 to allow the streamer to immediately reconnect.' => 'Dies ist die Anzahl der Sekunden, bis ein Streamer, dessen Verbindung manuell unterbrochen wurde, sich wieder mit dem Stream verbinden kann. Setzen Sie den Wert auf 0, damit der Streamer sofort wieder verbunden werden kann.', 'This javascript code will be applied to the station public pages and login page.' => 'Dieser Javascript-Code wird auf den ffentlichen Seiten und Login-Seite angewendet werden.', 'This javascript code will be applied to the station public pages.' => 'Dieser Javascript-Code wird auf die ffentlichen Seiten des Senders angewendet.', 'This name should always begin with a slash (/), and must be a valid URL, such as /autodj.mp3' => 'Dieser Name sollte immer mit einem Schrgstrich (/) beginnen und muss eine gltige URL sein, z. B. /autodj.mp3', 'This name will appear as a sub-header next to the AzuraCast logo, to help identify this server.' => 'Dieser Name erscheint als Sub-Header neben dem AzuraCast-Logo, um diesen Server zu identifizieren.', 'This playlist currently has no scheduled times. It will play at all times. To add a new scheduled time, click the button below.' => 'Diese Wiedergabeliste hat derzeit keine geplanten Wiedergabezeiten. Sie wird jederzeit abgespielt. Um eine neue geplante Zeit hinzuzufgen, klicken Sie auf den Button unten.', 'This playlist will play every $x minutes, where $x is specified here.' => 'Diese Wiedergabeliste wird alle $x Minuten abgespielt, wobei $x hier festgelegt wird.', 'This playlist will play every $x songs, where $x is specified here.' => 'Diese Wiedergabeliste wird alle $x Lieder abspielen, wobei $x hier festgelegt wird.', 'This port is not used by any external process. Only modify this port if the assigned port is in use. Leave blank to automatically assign a port.' => 'Dieser Port wird nicht von einem externen Prozess verwendet. ndern Sie diesen Port nur, wenn der zugewiesene Port in Gebrauch ist. Lassen Sie ihn leer, um automatisch einen Port zuzuweisen.', 'This queue contains the remaining tracks in the order they will be queued by the AzuraCast AutoDJ (if the tracks are eligible to be played).' => 'Diese Warteschlange enthlt die verbleibenden Tracks in der Reihenfolge, in der sie vom AzuraCast AutoDJ in die Warteschlange gestellt werden (wenn die Tracks fr die Wiedergabe geeignet sind).', 'This service can provide album art for tracks where none is available locally.' => 'Dieser Dienst kann Albumcover fr Songs bereitstellen, fr die es lokal keine gibt.', 'This software shuffles from playlists of music constantly and plays when no other radio source is available.' => 'Diese Software mischt stndig Musik aus Wiedergabelisten und spielt, wenn keine andere Radioquelle verfgbar ist.', 'This specifies the minimum time (in minutes) between a song playing on the radio and being available to request again. Set to 0 for no threshold.' => 'Legt die Mindestzeit (in Minuten) fest, die zwischen der Wiedergabe eines Titels im Radio und der erneuten Abrufbarkeit vergeht. Setzen Sie den Wert auf 0, um keinen Schwellenwert festzulegen.', 'This specifies the time range (in minutes) of the song history that the duplicate song prevention algorithm should take into account.' => 'Hier wird der Zeitbereich (in Minuten) der Song-Historie angegeben, den der Algorithmus zur Vermeidung doppelter Songs bercksichtigen soll.', 'This station\'s time zone is currently %{tz}.' => 'Die Zeitzone dieses Senders ist %{tz}.', 'This streamer is not scheduled to play at any times.' => 'Dieser Streamer ist nicht geplant, zu jeder Zeit zu spielen.', 'This URL is provided within the Discord application.' => 'Diese URL wird in Discord bereitgestellt.', 'This web hook will only run when the selected event(s) occur on this specific station.' => 'Dieser WebHook wird nur ausgefhrt, wenn die ausgewhlten Ereignisse auf diesem Sender eintreten.', 'This will be used as the label when editing individual songs, and will show in API results.' => 'Dieses Label wird zum Editieren individueller Songs benutzt und wird in den API Resultaten Angezeigt.', 'This will clear any pending unprocessed messages in all message queues.' => 'Dies lscht ausstehende und unbearbeitete Nachrichten in der Nachrichtenwarteschlange.', 'This will produce a significantly smaller backup, but you should make sure to back up your media elsewhere. Note that only locally stored media will be backed up.' => 'Das Ausschlieen von Medien bei automatisierten Backups spart Speicherplatz, aber du solltest sicherstellen, dass deine Medien an anderer Stelle gesichert werden. Beachte bitte, dass nur lokal gespeicherte Medien gesichert werden.', 'Thumbnail Image URL' => 'Vorschaubild URL', 'Thursday' => 'Donnerstag', 'Time' => 'Zeit', 'Time Display' => 'Uhrzeit Anzeige', 'Time spent waiting for disk I/O to be completed.' => 'Zeit, die fr das Warten auf die Fertigstellung der Festplatten-I/O aufgewendet wird.', 'Time stolen by other virtual machines on the same physical server.' => 'Zeit, die von anderen virtuellen Maschinen auf demselben physischen Server gestohlen wurde.', 'Time Zone' => 'Zeitzone', 'Title' => 'Titel', 'To alleviate this potential problem with shared CPU resources, hosts assign "credits" to a VPS which are used up according to an algorithm based on the CPU load as well as the time over which the CPU load is generated. If your VM\'s assigned credit is used up, they will take CPU time from your VM and assign it to other VMs on the machine. This is seen as the "Steal" or "St" value.' => 'Um dieses potenzielle Problem mit gemeinsam genutzten CPU-Ressourcen zu entschrfen, weisen Hosts einem VPS "Guthaben" zu, die nach einem Algorithmus verbraucht werden, der auf der CPU-Last sowie der Zeit, ber die die CPU-Last erzeugt wird, basiert. Wenn das Ihrer VM zugewiesene Guthaben aufgebraucht ist, wird die CPU-Zeit von Ihrer VM genommen und anderen VMs auf dem Rechner zugewiesen. Dies wird als der Wert "Steal" oder "St" bezeichnet.', 'To customize installation settings, or if automatic updates are disabled, you can follow our standard update instructions to update via your SSH console.' => 'Wenn Sie die Installationseinstellungen anpassen mchten oder wenn automatische Updates deaktiviert sind, knnen Sie unsere Standard-Update-Anweisungen befolgen, um ber Ihre SSH-Konsole zu aktualisieren.', 'To download the GeoLite database:' => 'Die GeoLite Datenbank herunterladen:', 'To play once per day, set the start and end times to the same value.' => 'Um einmal pro Tag zu spielen, Start- und Endzeiten auf den gleichen Wert setzen.', 'To restore a backup from your host computer, run:' => 'Um ein Backup des Host-Computers wiederherzustellen, folgenden Befehl ausfhren:', 'To retrieve detailed unique listeners and client details, an administrator password is often required.' => 'Um detaillierte eindeutige Zuhrer und Verbindungsdaten abzurufen, wird meistens ein Administrator Passwort bentigt.', 'To set this schedule to run only within a certain date range, specify a start and end date.' => 'Um diesen Zeitplan nur innerhalb eines bestimmten Datumsbereichs auszufhren, geben Sie ein Start- und Enddatum an.', 'To use this feature, a secure (HTTPS) connection is required. Firefox is recommended to avoid static when broadcasting.' => 'Zur Nutzung dieser Funktion ist eine sichere (HTTPS) Verbindung erforderlich. Es wird empfohlen, Firefox zu verwenden, um statische Daten bei der bertragung zu vermeiden.', 'To verify that the code was set up correctly, enter the 6-digit code the app shows you.' => 'Um zu berprfen, ob der Code korrekt eingerichtet wurde, gib den 6-stelligen Code ein, den die App dir anzeigt.', 'Toggle Menu' => 'Men umschalten', 'Toggle Sidebar' => 'Seitenleiste umschalten', 'Top Browsers by Connected Time' => 'Top Browser nach verbundener Zeit', 'Top Browsers by Listeners' => 'Top Browser nach Zuhrer', 'Top Countries by Connected Time' => 'Top Lnder nach verbundener Zeit', 'Top Countries by Listeners' => 'Top Lnder nach Zuhrer', 'Top Streams by Connected Time' => 'Top Streams nach verbundener Zeit', 'Top Streams by Listeners' => 'Top Streams nach Zuhrer', 'Total Disk Space' => 'Gesamter Festplattenspeicher', 'Total Listener Hours' => 'Gesamte Zuhrstunden', 'Total RAM' => 'Gesamter Ramspeicher', 'Transmitted' => 'bertragen', 'Tuesday' => 'Dienstag', 'Two-Factor Authentication' => 'Zwei-Faktor-Authentifizierung', 'Two-factor authentication improves the security of your account by requiring a second one-time access code in addition to your password when you log in.' => 'Zwei-Faktor-Authentifizierung verbessert die Sicherheit deines Accounts, indem zustzlich zu deinem Passwort ein zweiter einmaliger Zugangscode bentigt wird.', 'Typically a website with content about the episode.' => 'blicherweise eine Website mit Inhalten ber die Episode.', 'Typically the home page of a podcast.' => 'blicherweise die Website eines Podcasts.', 'Unable to update.' => 'Die Aktualisierung ist nicht mglich.', 'Unassigned Files' => 'Nicht zugewiesene Dateien', 'Unique' => 'Einzigartig', 'Unique identifier for the target chat or username of the target channel (in the format @channelusername).' => 'Eindeutiger Identifikator fr den Zielchat oder Benutzernamen des Zielkanals (im Format @channelusername).', 'Unique Listeners' => 'Eindeutige Zuhrer', 'Unknown' => 'Unbekannt', 'Unknown Artist' => 'Unbekannter Knstler', 'Unknown Title' => 'Unbekannter Titel', 'Unprocessable Files' => 'Unverarbeitbare Dateien', 'Upcoming Song Queue' => 'Warteschlange', 'Update' => 'nderung', 'Update AzuraCast' => 'AzuraCast aktualisieren', 'Update AzuraCast via Web' => 'AzuraCast via Web aktualisieren', 'Update Details' => 'Update-Details', 'Update Instructions' => 'Update-Anleitung', 'Update Metadata' => 'Metadaten aktualisieren', 'Update via Web' => 'Per Web aktualisieren', 'Updated' => 'Gendert', 'Updated successfully.' => 'Erfolgreich aktualisiert.', 'Upload a Stereo Tool configuration file from the "Broadcasting" submenu in the station profile.' => 'Laden Sie eine Stereo Tool Konfigurationsdatei aus dem Untermen "Broadcasting" im Senderprofil hoch.', 'Upload Custom Assets' => 'Eigene Assets hochladen', 'Upload Stereo Tool Configuration' => 'Stereo Tool Konfiguration hochladen', 'Upload the file on this page to automatically extract it into the proper directory.' => 'Lade die Datei auf dieser Seite hoch, damit sie automatisch in das richtige Verzeichnis entpackt wird.', 'URL Stub' => 'URL-Stub', 'Use' => 'Benutzen', 'Use (Us)' => 'in benutzung', 'Use API keys to authenticate with the AzuraCast API using the same permissions as your user account.' => 'Verwende API-Schlssel, um dich bei der AzuraCast API mit den Berechtigungen deines Benutzerkonto zu authentifizieren.', 'Use High-Performance Now Playing Updates' => 'Verwenden Sie leistungsstarke Now-Playing-Updates', 'Use Secure (TLS) SMTP Connection' => 'Sichere (TLS) SMTP Verbindung verwenden', 'Use Web Proxy for Radio' => 'Nutze Webproxy fr das Radio', 'Used' => 'Verwendet', 'Used for "Forgot Password" functionality, web hooks and other functions.' => 'Verwendet fr "Passwort vergessen", WebHooks und andere Funktionen.', 'User Accounts' => 'Benutzerkonten', 'Username' => 'Benutzername', 'Username:' => 'Benutzername:', 'Users' => 'Benutzer', 'Users with this role will have these permissions across the entire installation.' => 'Benutzer mit dieser Rolle haben diese Berechtigungen fr die gesamte Installation.', 'Users with this role will have these permissions for this single station.' => 'Benutzer mit dieser Rolle werden diese Berechtigungen fr diese einzelne Station haben.', 'Uses either Websockets, Server-Sent Events (SSE) or static JSON files to serve Now Playing data on public pages. This improves performance, especially with large listener volume. Disable this if you are encountering problems with the service or use multiple URLs to serve your public pages.' => 'Verwendet entweder Websockets, Server-Sent Events (SSE) oder statische JSON-Dateien, um Now Playing-Daten auf ffentlichen Seiten bereitzustellen. Dies verbessert die Leistung, insbesondere bei einer groen Anzahl von Zuhrern. Deaktivieren Sie dies, wenn Sie Probleme mit dem Dienst haben oder mehrere URLs fr die Bereitstellung Ihrer ffentlichen Seiten verwenden.', 'Using this page, you can customize several sections of the Liquidsoap configuration. This allows you to add advanced functionality to your station\'s AutoDJ.' => 'Auf dieser Seite knnen Sie verschiedene Bereiche der Liquidsoap-Konfiguration anpassen. Damit kann dem AutoDJ deines Senders erweiterte Funktionen hinzufgen.', 'Usually enabled for port 465, disabled for ports 587 or 25.' => 'Normalerweise aktiviert fr Port 465, deaktiviert fr Ports 587 oder 25.', 'Variables are in the form of: ' => 'Die Variablen haben die folgende Form: ', 'View' => 'Ansicht', 'View Profile' => 'Profil ansehen', 'View tracks in playlist' => 'Titel in Playlist anzeigen', 'Visit your Mastodon instance.' => 'Besuchen Sie Ihre Mastodon-Instanz.', 'Visual Cue Editor' => 'Visueller Cue Editor', 'Volume' => 'Lautstrke', 'Wait' => 'Warten', 'Wait (Wa)' => 'Warten (Wa)', 'Waveform Zoom' => 'Waveform-Zoom', 'Web DJ' => 'Web DJ', 'Web Hook Details' => 'WebHook Details', 'Web Hook Name' => 'WebHook Name', 'Web Hook Triggers' => 'WebHook Auslser', 'Web Hook URL' => 'WebHook URL', 'Web Hooks' => 'WebHooks', 'Web hooks automatically send a HTTP POST request to the URL you specify to notify it any time one of the triggers you specify occurs on your station.' => 'WebHooks senden automatisch einen HTTP POST Request an die angegebene URL, um diese zu informieren, sobald eines der angegebenen Ereignisse auf dem Sender eintritt.', 'Web hooks let you connect to external web services and broadcast changes to your station to them.' => 'WebHooks ermglichen eine Verbindung zu externen Web-Diensten und bertragen nderungen an deinem Sender an sie.', 'Web Site URL' => 'Website-URL', 'Web updates are not available for your installation. To update your installation, perform the manual update process instead.' => 'Web-Updates sind fr Ihre Installation nicht verfgbar. Um Ihre Installation zu aktualisieren, fhren Sie stattdessen den manuellen Aktualisierungsprozess durch.', 'Wednesday' => 'Mittwoch', 'Welcome to AzuraCast!' => 'Willkommen bei AzuraCast!', 'Welcome!' => 'Willkommen!', 'When making API calls, you can pass this value in the "X-API-Key" header to authenticate as yourself.' => 'Bei API-Aufrufen kann dieser Wert im "X-API-Key" Header bergeben werden, um sich zu authentifizieren.', 'Whether the AutoDJ should attempt to avoid duplicate artists and track titles when playing media from this playlist.' => 'Ob der AutoDJ bei der Wiedergabe von Medien aus dieser Wiedergabeliste versuchen soll, Wiederholungen von Interpreten und Titeln zu vermeiden.', 'Widget Type' => 'Widget-Typ', 'Worst Performing Songs' => 'Schlecht laufendste Lieder', 'Yes' => 'Ja', 'You' => 'Du', 'You can also upload files in bulk via SFTP.' => 'Du kannst Dateien auch per Massen-Upload ber SFTP hochladen.', 'You can find answers for many common questions in our support documents.' => 'In unseren Support Dokumenten finden Sie Antworten auf viele hufig gestellten Fragen.', 'You can include any special mount point settings here, in either JSON { key: \'value\' } format or XML <key>value</key>' => 'Sie knnen hier spezielle Einstellungen fr den Einhngepunkt angeben, entweder im Format JSON { key: \'value\' } oder XML <key>value</key>', 'You can only perform the actions your user account is allowed to perform.' => 'Du kannst nur die Aktionen ausfhren, fr die dein Benutzerkonto berechtigt ist.', 'You may need to connect directly to your IP address:' => 'Mglicherweise musst du dich direkt mit der IP-Adresse verbinden:', 'You may need to connect directly via your IP address:' => 'Mglicherweise musst du dich direkt mit der IP-Adresse verbinden:', 'You will not be able to retrieve it again.' => 'Du wirst sie nicht wieder abrufen knnen.', 'Your full API key is below:' => 'Dein vollstndiger API-Schlssel steht unten:', 'Your installation is currently on this release channel:' => 'Ihre Installation befindet sich derzeit in diesem Verffentlichungskanal:', 'Your installation is up to date! No update is required.' => 'Ihre Installation ist auf dem neuesten Stand! Es ist kein Update erforderlich.', 'Your installation needs to be updated. Updating is recommended for performance and security improvements.' => 'Ihre Installation muss aktualisiert werden. Die Aktualisierung wird empfohlen, um die Leistung und Sicherheit zu verbessern.', 'YP Directory Authorization Hash' => 'YP Directory Berechtigung Hash', 'Select...' => 'Auswhlen...', 'Too many forgot password attempts' => 'Zu viele Versuche das Passwort zurckzusetzen', 'You have attempted to reset your password too many times. Please wait 30 seconds and try again.' => 'Du hast zu oft versucht, dein Passwort zurckzusetzen. Bitte warte 30 Sekunden und versuche es erneut.', 'Account Recovery' => 'Accountwiederherstellung', 'Account recovery e-mail sent.' => 'Account-Wiederherstellungsemail gesendet.', 'If the e-mail address you provided is in the system, check your inbox for a password reset message.' => 'Wenn die E-Mail, die du angegeben hast im System ist, berprfe deinen Posteingang fr die Zurcksetzung deines Passworts.', 'Too many login attempts' => 'Zu viele Anmeldeversuche', 'You have attempted to log in too many times. Please wait 30 seconds and try again.' => 'Sie haben sich zu oft Angemeldet. Bitte warten Sie 30 Sekunden und wiederholen Sie den Vorgang.', 'Logged in successfully.' => 'Erfolgreich eingeloggt.', 'Complete the setup process to get started.' => 'Schlieen Sie den Setup-Prozess ab, um loszulegen.', 'Login unsuccessful' => 'Anmeldung fehlgeschlagen', 'Your credentials could not be verified.' => 'Ihre Anmeldeinformationen konnten nicht besttigt werden.', 'User not found.' => 'Benutzer nicht gefunden.', 'Invalid token specified.' => 'Ungltiges Token angegeben.', 'Logged in using account recovery token' => 'Eingeloggt mit Account-Wiederherstellungstoken', 'Your password has been updated.' => 'Dein Passwort wurde aktualisiert.', 'Set Up AzuraCast' => 'AzuraCast einrichten', 'Setup has already been completed!' => 'Setup wurde bereits abgeschlossen!', 'All Stations' => 'Alle Sender', 'AzuraCast Application Log' => 'AzuraCast-Anwendungsprotokoll', 'Service Log: %s (%s)' => 'Dienstprotokoll: %s (%s)', 'Nginx Access Log' => 'Nginx Zugriffsprotokoll', 'Nginx Error Log' => 'Nginx Fehlerprotokoll', 'PHP Application Log' => 'PHP Application Log', 'Supervisord Log' => 'Supervisord Log', 'Create a new storage location based on the base directory.' => 'Erstelle einen neuen Speicherort basierend auf dem Basisverzeichnis.', 'You cannot modify yourself.' => 'Du kannst dich nicht selbst ndern.', 'You cannot remove yourself.' => 'Du kannst dich nicht selbst lschen.', 'Test Message' => 'Test Nachricht', 'This is a test message from AzuraCast. If you are receiving this message, it means your e-mail settings are configured correctly.' => 'Dies ist eine Testnachricht von AzuraCast. Wenn Sie diese Nachricht erhalten, bedeutet dies, dass Ihre E-Mail-Einstellungen korrekt konfiguriert sind.', 'Test message sent successfully.' => 'Testnachricht erfolgreich gesendet.', 'Less than Thirty Seconds' => 'Weniger als dreiig Sekunden', 'Thirty Seconds to One Minute' => 'Dreiig Sekunden bis eine Minute', 'One Minute to Five Minutes' => 'Eine Minute bis fnf Minuten', 'Five Minutes to Ten Minutes' => 'Fnf Minuten bis zehn Minuten', 'Ten Minutes to Thirty Minutes' => 'Zehn Minuten bis dreiig Minuten', 'Thirty Minutes to One Hour' => 'Dreiig Minuten bis eine Stunde', 'One Hour to Two Hours' => 'Eine Stunde bis zwei Stunden', 'More than Two Hours' => 'Mehr als zwei Stunden', 'Mobile Device' => 'Mobilgert', 'Desktop Browser' => 'Desktopbrowser', 'Non-Browser' => 'Kein-Browser', 'Connected Seconds' => 'Verbundene Sekunden', 'File Not Processed: %s' => 'Datei nicht verarbeitet: %s', 'Cover Art' => 'Cover-Bild', 'File Processing' => 'Datei wird verarbeitet', 'No directory specified' => 'Kein Verzeichnis angegeben', 'File not specified.' => 'Keine Datei gewhlt.', 'New path not specified.' => 'Neuer Pfad nicht angegeben.', 'This station is out of available storage space.' => 'Diese Station hat keinen Speicherplatz mehr.', 'Web hook enabled.' => 'WebHook aktiviert.', 'Web hook disabled.' => 'WebHook deaktiviert.', 'Station reloaded.' => 'Station wurde neu geladen.', 'Station restarted.' => 'Station neu gestartet.', 'Service stopped.' => 'Dienst gestoppt.', 'Service started.' => 'Dienst gestartet.', 'Service reloaded.' => 'Dienst neu geladen.', 'Service restarted.' => 'Dienst neu gestartet.', 'Song skipped.' => 'Lied bersprungen.', 'Streamer disconnected.' => 'Streamer getrennt.', 'Station Nginx Configuration' => 'Station Nginx-Konfiguration', 'Liquidsoap Log' => 'Liquidsoap Log', 'Liquidsoap Configuration' => 'Liquidsoap Konfiguration', 'Icecast Access Log' => 'Icecast Zugriffsprotokoll', 'Icecast Error Log' => 'Icecast Fehlerprotokoll', 'Icecast Configuration' => 'Icecast-Konfiguration', 'Shoutcast Log' => 'Shoutcast Protokoll', 'Shoutcast Configuration' => 'Shoutcast Konfiguration', 'Search engine crawlers are not permitted to use this feature.' => 'Suchmaschinen-Crawler drfen diese Funktion nicht verwenden.', 'You are not permitted to submit requests.' => 'Du bist nicht berechtigt, Anfragen einzureichen.', 'This song or artist has been played too recently. Wait a while before requesting it again.' => 'Dieser Song oder Interpret wurde zu krzlich abgespielt. Warte eine Weile, bevor du ihn erneut wnscht.', 'You have submitted a request too recently! Please wait before submitting another one.' => 'Du hast in letzter Zeit zu oft einen Wunsch eingereicht! Bitte warte, bevor du einen weiteren einreichst.', 'This playlist is not a sequential playlist.' => 'Diese Playlist ist keine sequentielle Playlist.', 'Playlist reshuffled.' => 'Wiedergabeliste neu gemischt.', 'Playlist enabled.' => 'Playlist aktiviert.', 'Playlist disabled.' => 'Playlist deaktiviert.', 'Playlist successfully imported; %d of %d files were successfully matched.' => 'Playlist erfolgreich importiert; %d von %d Dateien wurden erfolgreich zugeordnet.', '%d files processed.' => '%d verarbeitete Dateien.', 'No recording available.' => 'Keine Aufnahme verfgbar.', 'Record not found' => 'Eintrag nicht gefunden', 'The uploaded file exceeds the upload_max_filesize directive in php.ini.' => 'Die hochgeladene Datei berschreitet die Direktive upload_max_filesize in der php.ini.', 'The uploaded file exceeds the MAX_FILE_SIZE directive from the HTML form.' => 'Die hochgeladene Datei berschreitet die MAX_FILE_SIZE-Direktive aus dem HTML-Formular.', 'The uploaded file was only partially uploaded.' => 'Die Datei wurde unvollstndig hochgeladen.', 'No file was uploaded.' => 'Es wurde keine Datei hochgeladen.', 'No temporary directory is available.' => 'Es ist kein temporres Verzeichnis vorhanden.', 'Could not write to filesystem.' => 'Konnte nicht in das Dateisystem schreiben.', 'Upload halted by a PHP extension.' => 'Upload durch eine PHP-Erweiterung gestoppt.', 'Unspecified error.' => 'Unbekannter Fehler.', 'Changes saved successfully.' => 'nderungen gespeichert.', 'Record created successfully.' => 'Eintrag erfolgreich erstellt.', 'Record updated successfully.' => 'Eintrag erfolgreich aktualisiert.', 'Record deleted successfully.' => 'Eintrag gelscht.', 'Playlist: %s' => 'Playliste: %s', 'Streamer: %s' => 'Streamer: %s', 'The account associated with e-mail address "%s" has been set as an administrator' => 'Das Konto mit der E-Mail-Adresse "%s" wurde als Administrator gesetzt', 'Account not found.' => 'Konto nicht gefunden.', 'Running database migrations...' => 'Datenbankmigrationen durchfhren...', 'Database migration failed: %s' => 'Datenbankmigration fehlgeschlagen: %s', 'AzuraCast Settings' => 'AzuraCast-Einstellungen', 'Setting Key' => 'Einstellungsschlssel', 'Setting Value' => 'Einstellungswert', 'Fixtures loaded.' => 'Fixtures geladen.', 'Backing up initial database state...' => 'Sichern des ursprnglichen Datenbankstatuses', 'We detected a database restore file from a previous (possibly failed) migration.' => 'Wir haben eine Datenbank-Wiederherstellungsdatei von einer frheren (mglicherweise fehlgeschlagenen) Migration entdeckt.', 'Attempting to restore that now...' => 'Wir versuchen jetzt, diese wiederherzustellen...', 'Attempting to roll back to previous database state...' => 'Wir versuchen, den vorherigen Zustand der Datenbank wiederherzustellen...', 'Your database was restored due to a failed migration.' => 'Ihre Datenbank wurde aufgrund einer fehlgeschlagenen Migration wiederhergestellt.', 'Please report this bug to our developers.' => 'Bitte melden Sie diesen Fehler an unsere Entwickler.', 'Restore failed: %s' => 'Wiederherstellung fehlgeschlagen: %s', 'AzuraCast Backup' => 'AzuraCast Backup', 'Please wait while a backup is generated...' => 'Bitte warten, whrend ein Backup erstellt wird...', 'Creating temporary directories...' => 'Erstelle temporre Verzeichnisse...', 'Backing up MariaDB...' => 'Sichern von MariaDB...', 'Creating backup archive...' => 'Backup-Archiv wird erstellt...', 'Cleaning up temporary files...' => 'Bereinige temporre Dateien...', 'Backup complete in %.2f seconds.' => 'Backup in %.2f Sekunden abgeschlossen.', 'Backup path %s not found!' => 'Backup-Pfad %s nicht gefunden!', 'Imported locale: %s' => 'Importierte Sprache: %s', 'Database Migrations' => 'Datenbank-Migrationen', 'Database is already up to date!' => 'Die Datenbank ist bereits auf dem neuesten Stand!', 'Database migration completed!' => 'Migration der Datenbank abgeschlossen!', 'AzuraCast Initializing...' => 'AzuraCast Initialisierung...', 'AzuraCast Setup' => 'AzuraCast Setup', 'Welcome to AzuraCast. Please wait while some key dependencies of AzuraCast are set up...' => 'Willkommen bei AzuraCast. Bitte warten, whrend einige Schlsselabhngigkeiten von AzuraCast eingerichtet werden...', 'Running Database Migrations' => 'Datenbank-Migrationen werden ausgefhrt', 'Generating Database Proxy Classes' => 'Generiere Datenbank Proxy Klassen', 'Reload System Data' => 'Systemdaten neu laden', 'Installing Data Fixtures' => 'Installiere Daten-Fixtures', 'Refreshing All Stations' => 'Alle Sender aktualisieren', 'AzuraCast is now updated to the latest version!' => 'AzuraCast ist aktuell!', 'AzuraCast installation complete!' => 'AzuraCast-Installation abgeschlossen!', 'Visit %s to complete setup.' => 'Einrichtung unter %s abschlieen.', '%s is not recognized as a service.' => '%s wird nicht als Dienst erkannt.', 'It may not be registered with Supervisor yet. Restarting broadcasting may help.' => 'Evtl. ist es noch nicht beim Supervisor registriert. Ein Neustart der bertragung knnte helfen.', '%s cannot start' => '%s kann nicht gestartet werden', 'It is already running.' => 'Es luft bereits.', '%s cannot stop' => '%s kann nicht gestoppt werden', 'It is not running.' => 'Das luft nicht.', '%s encountered an error: %s' => '%s ist auf einen Fehler gestoen: %s', 'Check the log for details.' => 'berprfen Sie die Logs fr Details.', 'You do not have permission to access this portion of the site.' => 'Sie haben keine Zugriffsberechtigung fr diesen Teil der Website.', 'You must be logged in to access this page.' => 'Sie mssen angemeldet sein, um auf diese Seite zuzugreifen.', 'This value is already used.' => 'Dieser Wert wird bereits verwendet.', 'Storage location %s could not be validated: %s' => 'Speicherort %s konnte nicht validiert werden: %s', 'Storage location %s already exists.' => 'Speicherort %s existiert bereits.', 'All Permissions' => 'Alle Berechtigungen', 'View Station Page' => 'Station-Seite anzeigen', 'View Station Reports' => 'Station-Berichte anzeigen', 'View Station Logs' => 'Station-Protokolle anzeigen', 'Manage Station Profile' => 'Sender-Profil verwalten', 'Manage Station Broadcasting' => 'Sender-bertragungen verwalten', 'Manage Station Streamers' => 'Sender-Streamer verwalten', 'Manage Station Mount Points' => 'Sender-Einhngepunkte verwalten', 'Manage Station Remote Relays' => 'Sender-Remote-Relays verwalten', 'Manage Station Media' => 'Sender-Medien und Playlisten verwalten', 'Manage Station Automation' => 'Sender-Automatisierung verwalten', 'Manage Station Web Hooks' => 'Sender-WebHooks verwalten', 'Manage Station Podcasts' => 'Sender-Podcasts verwalten', 'View Administration Page' => 'Verwaltungsbereich', 'View System Logs' => 'System-Logs anzeigen', 'Administer Settings' => 'Einstellungen verwalten', 'Administer API Keys' => 'API-Schlssel verwalten', 'Administer Stations' => 'Sender verwalten', 'Administer Custom Fields' => 'Benutzerdefinierte Fehler verwalten', 'Administer Backups' => 'Backups verwalten', 'Administer Storage Locations' => 'Verwalten von Speicherorten', 'Runs routine synchronized tasks' => 'Fhrt synchronisierte Routineaufgaben aus', 'Database' => 'Datenbank', 'Web server' => 'Webserver', 'Now Playing manager service' => 'Now Playing Manager-Dienst', 'PHP queue processing worker' => 'PHP-Warteschlangenverarbeiter', 'Cache' => 'Cache', 'SFTP service' => 'SFTP-Dienst', 'This product includes GeoLite2 data created by MaxMind, available from %s.' => 'Dieses Produkt enthlt GeoLite2 Daten, die von MaxMind erstellt wurden, erhltlich auf %s.', 'IP Geolocation by DB-IP' => 'IP-Geolokation durch DB-IP', 'GeoLite database not configured for this installation. See System Administration for instructions.' => 'GeoLite-Datenbank ist fr diese Installation nicht konfiguriert. Siehe System-Administration fr Anweisungen.', 'Installation Not Recently Backed Up' => 'Es wurde seit einiger Zeit kein Backup durchgefhrt', 'This installation has not been backed up in the last two weeks.' => 'Diese Installation wurde in den letzten zwei Wochen nicht gesichert.', 'Service Not Running: %s' => 'Dienst luft nicht: %s', 'One of the essential services on this installation is not currently running. Visit the system administration and check the system logs to find the cause of this issue.' => 'Einer der wesentlichen Dienste auf dieser Installation luft derzeit nicht. Besuchen Sie die Systemverwaltung und berprfen Sie die Systemprotokolle, um die Ursache fr dieses Problem zu finden.', 'New AzuraCast Stable Release Available' => 'Neues AzuraCast Stable Release verfgbar', 'Version %s is now available. You are currently running version %s. Updating is recommended.' => 'Version %s ist jetzt verfgbar. Sie verwenden derzeit Version %s. Eine Aktualisierung wird empfohlen.', 'New AzuraCast Rolling Release Available' => 'Neues AzuraCast Rolling Release verfgbar', 'Your installation is currently %d update(s) behind the latest version. Updating is recommended.' => 'Ihre Installation ist derzeit %d Update(s) hinter der neuesten Version zurck. Eine Aktualisierung wird empfohlen.', 'Synchronization Disabled' => 'Synchronisierung deaktiviert', 'Routine synchronization is currently disabled. Make sure to re-enable it to resume routine maintenance tasks.' => 'Die Routine-Synchronisation ist derzeit deaktiviert. Stelle sicher, dass sie erneut aktiviert wird, um die Routine-Wartungsaufgaben fortzusetzen.', 'Synchronization Not Recently Run' => 'Synchronisierung wurde in letzter Zeit nicht ausgefhrt', 'The routine synchronization task has not run recently. This may indicate an error with your installation.' => 'Die routinemige Synchronisation wurde in letzter Zeit nicht ausgefhrt. Dies kann auf einen Fehler bei der Installation hinweisen.', 'The performance profiling extension is currently enabled on this installation.' => 'Die Performance-Profiling Erweiterung ist derzeit bei dieser Installation aktiviert.', 'You can track the execution time and memory usage of any AzuraCast page or application from the profiler page.' => 'Die Ausfhrungszeiten und die Speichernutzung jeder AzuraCast-Seite oder -Anwendung kann auf der Profiler-Seite verfolgt werden.', 'Profiler Control Panel' => 'Profiler-Systemsteuerung', 'Performance profiling is currently enabled for all requests.' => 'Performance-Profiling is derzeit fr alle Anfragen aktiviert.', 'This can have an adverse impact on system performance. You should disable this when possible.' => 'Dies kann sich negativ auf die Systemleistung auswirken. Wenn mglich sollte dies deaktiviert werden.', 'You may want to update your base URL to ensure it is correct.' => 'Mglicherweise sollte die System-URL aktualisiert werden, um sicherzustellen, dass sie korrekt ist.', 'If you regularly use different URLs to access AzuraCast, you should enable the "Prefer Browser URL" setting.' => 'Wenn regelmig verschiedene URLs fr den Zugriff auf AzuraCast verwendet werden, sollte die Einstellung " Bevorzuge Browser URL" aktiviert werden.', 'Your "Base URL" setting (%s) does not match the URL you are currently using (%s).' => 'Die "System-URL" Einstellung (%s) stimmt nicht mit der URL berein, die gerade verwendet wird (%s).', 'AzuraCast Installer' => 'AzuraCast Installer', 'Welcome to AzuraCast! Complete the initial server setup by answering a few questions.' => 'Willkommen bei AzuraCast! Vervollstndigen Sie die anfngliche Servereinrichtung, indem Sie einige Fragen beantworten.', 'AzuraCast Updater' => 'AzuraCast Updater', 'Change installation settings?' => 'Installationseinstellungen ndern?', 'AzuraCast is currently configured to listen on the following ports:' => 'AzuraCast ist derzeit so konfiguriert, dass es die folgenden Ports benutzt:', 'HTTP Port: %d' => 'HTTP Port: %d', 'HTTPS Port: %d' => 'HTTPS Port: %d', 'SFTP Port: %d' => 'SFTP Port: %d', 'Radio Ports: %s' => 'Radio Ports: %s', 'Customize ports used for AzuraCast?' => 'Ports fr AzuraCast anpassen?', 'Writing configuration files...' => 'Konfigurationsdateien werden erstellt...', 'Server configuration complete!' => 'Serverkonfiguration abgeschlossen!', 'This file was automatically generated by AzuraCast.' => 'Diese Datei wurde automatisch von AzuraCast generiert.', 'You can modify it as necessary. To apply changes, restart the Docker containers.' => 'Bei Bedarf knnen diese angepasst werden. Um die nderungen anzuwenden, starten Sie die Docker Container neu.', 'Remove the leading "#" symbol from lines to uncomment them.' => 'Entfernen Sie das fhrende "#" Symbol von Zeilen, um diese einzukommentieren.', 'Valid options: %s' => 'Gltige Optionen: %s', 'Default: %s' => 'Standard: %s', 'Additional Environment Variables' => 'Zustzliche Umgebungsvariablen', '(Docker Compose) All Docker containers are prefixed by this name. Do not change this after installation.' => '(Docker Compose) Allen Docker Containern wird dieser Name vorangestellt. ndere dies nicht nach der Installation.', '(Docker Compose) The amount of time to wait before a Docker Compose operation fails. Increase this on lower performance computers.' => '(Docker Compose) Die Zeitspanne, die gewartet wird, bevor eine Docker Compose Operation fehlschlgt. Erhhen Sie diesen Wert auf Computern mit geringerer Leistung.', 'HTTP Port' => 'HTTP Port', 'The main port AzuraCast listens to for insecure HTTP connections.' => 'Der Hauptport, den AzuraCast fr unsichere HTTP-Verbindungen nutzt.', 'HTTPS Port' => 'HTTPS Port', 'The main port AzuraCast listens to for secure HTTPS connections.' => 'Der Haupt-Port, den AzuraCast bei sicheren HTTPS-Verbindungen nutzt.', 'The port AzuraCast listens to for SFTP file management connections.' => 'Der Port, den AzuraCast bei SFTP-Dateimanagement-Verbindungen nutzt.', 'Station Ports' => 'Sender Ports', 'The ports AzuraCast should listen to for station broadcasts and incoming DJ connections.' => 'Die Ports, die AzuraCast fr Sender-bertragungen und eingehende DJ-Verbindungen benutzen soll.', 'Docker User UID' => 'Docker Benutzer UID', 'Set the UID of the user running inside the Docker containers. Matching this with your host UID can fix permission issues.' => 'Setze die UID des Benutzers, der innerhalb der Docker Container verwendet wird. Wenn dieser mit der UID Ihres Host Benutzers bereinstimmt, knnen Berechtigungsprobleme behoben werden.', 'Docker User GID' => 'Docker Benutzer GID', 'Set the GID of the user running inside the Docker containers. Matching this with your host GID can fix permission issues.' => 'Setze die GID des Benutzers, der innerhalb der Docker Container verwendet wird. Wenn dieser mit der GID Ihres Host Benutzers bereinstimmt, knnen Berechtigungsprobleme behoben werden.', 'Use Podman instead of Docker.' => 'Verwenden Sie Podman anstelle von Docker.', 'Advanced: Use Privileged Docker Settings' => 'Erweitert: Privilegierte Docker Einstellungen verwenden', 'The locale to use for CLI commands.' => 'Die Sprache, die fr CLI-Befehle verwendet werden soll.', 'The application environment.' => 'Die Anwendungsumgebung.', 'Manually modify the logging level.' => 'ndere manuell das Logging-Level.', 'This allows you to log debug-level errors temporarily (for problem-solving) or reduce the volume of logs that are produced by your installation, without needing to modify whether your installation is a production or development instance.' => 'Dadurch ist es mglich, Fehler auf Debug-Level vorbergehend zu loggen (zur Problemlsung) oder die Menge der von Ihrer Installation produzierten Logs zu reduzieren, ohne dass es notwendig ist, die Installation in eine Produktions- oder Entwicklungsinstanz zu ndern.', 'Enable Custom Code Plugins' => 'Benutzerdefinierte Plug-ins aktivieren', 'Enable the composer "merge" functionality to combine the main application\'s composer.json file with any plugin composer files. This can have performance implications, so you should only use it if you use one or more plugins with their own Composer dependencies.' => 'Aktiviert die Composer-"Merge"-Funktionalitt, um die composer.json-Datei der Hauptanwendung mit beliebigen Plugin Composer Dateien zu kombinieren. Dies kann Auswirkungen auf die Leistung haben, daher sollte dies nur verwendet werden, wenn Sie ein oder mehrere Plugins mit ihren eigenen Composer-Abhngigkeiten benutzen.', 'Minimum Port for Station Port Assignment' => 'Minimaler Port fr Sender Port-Zuweisung', 'Modify this if your stations are listening on nonstandard ports.' => 'ndere dies, wenn deine Sender nicht auf den standard Ports laufen.', 'Maximum Port for Station Port Assignment' => 'Maximaler Port fr Sender Port-Zuweisung', 'Show Detailed Slim Application Errors' => 'Detaillierte Slim-Anwendungsfehler anzeigen', 'This allows you to debug Slim Application Errors you may encounter. Please report any Slim Application Error logs to the development team on GitHub.' => 'So knnen Sie eventuell auftretende Slim-Anwendungsfehler debuggen. Bitte melden Sie alle Slim-Anwendungsfehlerprotokolle an das Entwicklerteam auf GitHub.', 'MariaDB Host' => 'MariaDB Host', 'Do not modify this after installation.' => 'ndere dies nicht nach der Installation.', 'MariaDB Port' => 'MariaDB Port', 'MariaDB Username' => 'MariaDB Benutzername', 'MariaDB Password' => 'MariaDB Passwort', 'MariaDB Database Name' => 'MariaDB Datenbankname', 'Auto-generate Random MariaDB Root Password' => 'Zuflliges MariaDB Root-Passwort generieren', 'MariaDB Root Password' => 'MariaDB Root-Passwort', 'Enable MariaDB Slow Query Log' => 'MariaDB Slow Query Log aktivieren', 'Log slower queries to diagnose possible database issues. Only turn this on if needed.' => 'Langsamere Abfragen loggen, um mgliche Datenbankprobleme zu diagnostizieren. Diese Option sollte nur bei Bedarf aktiviert werden.', 'MariaDB Maximum Connections' => 'MariaDB Maximale Verbindungen', 'Set the amount of allowed connections to the database. This value should be increased if you are seeing the "Too many connections" error in the logs.' => 'Legt die Anzahl der zulssigen Verbindungen zur Datenbank fest. Dieser Wert sollte erhht werden, wenn in den Logs der Fehler "Too many connections" angezeigt wird.', 'MariaDB InnoDB Buffer Pool Size' => 'MariaDB InnoDB Pufferpool-Gre', 'The InnoDB buffer pool size controls how much data & indexes are kept in memory. Making sure that this value is as large as possible reduces the amount of disk IO.' => 'Die Gre des InnoDB-Pufferpools steuert, wie viele Daten und Indizes im Speicher gehalten werden. Wenn Sie sicherstellen, dass dieser Wert so gro wie mglich ist, verringert sich die Anzahl der Festplattenzugriffe.', 'MariaDB InnoDB Log File Size' => 'MariaDB InnoDB Protokolldateigre', 'The InnoDB log file is used to achieve data durability in case of crashes or unexpected shutoffs and to allow the DB to better optimize IO for write operations.' => 'Die InnoDB-Protokolldatei wird verwendet, um die Haltbarkeit der Daten bei Abstrzen oder unerwarteten Abschaltungen zu gewhrleisten und es der DB zu ermglichen, die IO fr Schreibvorgnge besser zu optimieren.', 'Enable Redis' => 'Redis aktivieren', 'Disable to use a flatfile cache instead of Redis.' => 'Deaktivieren, um einen Flatfile-Cache anstelle von Redis zu verwenden.', 'Redis Host' => 'Redis-Host', 'Redis Port' => 'Redis-Port', 'PHP Maximum POST File Size' => 'PHP maximale POST-Dateigre', 'PHP Memory Limit' => 'PHP Speicherlimit', 'PHP Script Maximum Execution Time (Seconds)' => 'Maximale Ausfhrungszeit eines PHP-Skripts (Sekunden)', 'Short Sync Task Execution Time (Seconds)' => 'Kurze Ausfhrungszeit der Synchronisierungsaufgabe (Sekunden)', 'The maximum execution time (and lock timeout) for the 15-second, 1-minute and 5-minute synchronization tasks.' => 'Die maximale Ausfhrungszeit (und Sperrzeit) fr die 15-Sekunden-, 1-Minuten- und 5-Minuten-Synchronisationsaufgaben.', 'Long Sync Task Execution Time (Seconds)' => 'Lange Sync-Task-Ausfhrungszeit (Sekunden)', 'The maximum execution time (and lock timeout) for the 1-hour synchronization task.' => 'Die maximale Ausfhrungszeit (und Sperrzeit) fr die 1-Stunden-Synchronisationsaufgabe.', 'Now Playing Delay Time (Seconds)' => 'Jetzt spielen Verzgerungszeit (Sekunden)', 'The delay between Now Playing checks for every station. Decrease for more frequent checks at the expense of performance; increase for less frequent checks but better performance (for large installations).' => 'Die Verzgerung zwischen den berprfungen von Now Playing fr jeden Sender. Verringern Sie sie fr hufigere berprfungen auf Kosten der Leistung; erhhen Sie sie fr weniger hufige berprfungen, aber bessere Leistung (fr groe Installationen).', 'Maximum PHP-FPM Worker Processes' => 'Maximale Anzahl an PHP-FPM Worker Prozessen', 'Enable Performance Profiling Extension' => 'Performance-Profiling Erweiterung aktivieren', 'Profiling data can be viewed by visiting %s.' => 'Profiling Leistungsdaten knnen durch den Besuch von %s eingesehen werden.', 'Profile Performance on All Requests' => 'Erfasse Profiling Leistungsdaten bei allen Anfragen', 'This will have a significant performance impact on your installation.' => 'Dies hat einen erheblichen Einfluss auf die Leistung der Installation.', 'Profiling Extension HTTP Key' => 'HTTP-Schlssel zur Profiling-Erweiterung', 'The value for the "SPX_KEY" parameter for viewing profiling pages.' => 'Der Wert fr den Parameter "SPX_KEY" zum Anzeigen der Profiling-Seiten.', 'Profiling Extension IP Allow List' => 'IP-Zulassungsliste der Profiling-Erweiterung', 'Enable web-based Docker image updates' => 'Aktivieren Sie webbasierte Docker-Image-Updates', 'Extra Ubuntu packages to install upon startup' => 'Zustzliche Ubuntu-Pakete, die beim Starten installiert werden', 'Separate package names with a space. Packages will be installed during container startup.' => 'Trennen Sie die Paketnamen mit einem Leerzeichen. Die Pakete werden beim Start des Containers installiert.', 'Album Artist' => 'Album Knstler', 'Album Artist Sort Order' => 'Album Knstler Sortierreihenfolge', 'Album Sort Order' => 'Album Sortierreihenfolge', 'Band' => 'Band', 'BPM' => 'BPM', 'Comment' => 'Kommentar', 'Commercial Information' => 'Kommerzielle Informationen', 'Composer' => 'Komponist', 'Composer Sort Order' => 'Komponist Sortierreihenfolge', 'Conductor' => 'Dirigent', 'Content Group Description' => 'Inhalt Gruppe Beschreibung', 'Encoded By' => 'Kodiert von', 'Encoder Settings' => 'Encoder Einstellungen', 'Encoding Time' => 'Kodierungszeit', 'File Owner' => 'Dateibesitzer', 'File Type' => 'Dateityp', 'Initial Key' => 'Initialschlssel', 'Internet Radio Station Name' => 'Name des Internet-Radiosenders', 'Internet Radio Station Owner' => 'Inhaber eines Internet-Radiosenders', 'Involved People List' => 'Liste der involvierten Personen', 'Linked Information' => 'Verknpfte Informationen', 'Lyricist' => 'Textdichter', 'Media Type' => 'Medientyp', 'Mood' => 'Stimmung', 'Music CD Identifier' => 'Musik CD Identifier', 'Musician Credits List' => 'Musiker Credits Liste', 'Original Album' => 'Original Album', 'Original Artist' => 'Original Knstler', 'Original Filename' => 'Original Dateiname', 'Original Lyricist' => 'Original-Textdichter', 'Original Release Time' => 'Original Verffentlichungszeit', 'Original Year' => 'Original Jahr', 'Part of a Compilation' => 'Teil einer Kompilation', 'Part of a Set' => 'Teil eines Sets', 'Performer Sort Order' => 'Darsteller Sortierreihenfolge', 'Playlist Delay' => 'Playlist Verzgerung', 'Produced Notice' => 'Produziert Hinweis', 'Publisher' => 'Herausgeber', 'Recording Time' => 'Aufnahmezeit', 'Release Time' => 'Erscheinungszeit', 'Remixer' => 'Remixer', 'Set Subtitle' => 'Untertitel setzen', 'Subtitle' => 'Untertitel', 'Tagging Time' => 'Zeit markieren', 'Terms of Use' => 'Nutzungsbedingungen', 'Title Sort Order' => 'Titel Sortierreihenfolge', 'Track Number' => 'Titel Nummer', 'Unsynchronised Lyrics' => 'Unsynchronisierte Songtexte', 'URL Artist' => 'URL Knstler', 'URL File' => 'URL Datei', 'URL Payment' => 'URL Zahlung', 'URL Publisher' => 'URL Herausgeber', 'URL Source' => 'URL Quelle', 'URL Station' => 'URL-Station', 'URL User' => 'URL Benutzer', 'Year' => 'Jahr', 'An account recovery link has been requested for your account on "%s".' => 'Ein Link zur Accountwiederherstellung wurde fr dein Konto unter "%s " angefordert.', 'Click the link below to log in to your account.' => 'Klicke auf den unten stehenden Link, um dein Konto zu entsperren.', 'Powered by %s' => 'Powered by %s', 'Forgot Password' => 'Passwort vergessen', 'Sign in' => 'Anmelden', 'Send Recovery E-mail' => 'Wiederherstellungs-E-Mail senden', 'Enter Two-Factor Code' => 'Zwei-Faktor-Code eingeben', 'Your account uses a two-factor security code. Enter the code your device is currently showing below.' => 'Dein Account verwendet einen Zwei-Faktor-Sicherheitscode. Gib unten den Code ein, den dein Gert gerade anzeigt.', 'Security Code' => 'Sicherheitscode', 'This installation\'s administrator has not configured this functionality.' => 'Der Administrator dieser Installation hat diese Funktion nicht konfiguriert.', 'Contact an administrator to reset your password following the instructions in our documentation:' => 'Kontaktiere einen Administrator, um dein Passwort nach den Anweisungen in unserer Dokumentation zurckzusetzen:', 'Password Reset Instructions' => 'Anweisungen zum Zurcksetzen des Passworts', ), ), ); ```
/content/code_sandbox/translations/de_DE.UTF-8/LC_MESSAGES/default.php
php
2016-04-30T21:41:23
2024-08-16T18:27:26
AzuraCast
AzuraCast/AzuraCast
2,978
35,161
```powershell # This script lists outs Azure Function apps that are running on the v3 version of the host so they can be upgraded # Review path_to_url for details on how to upgrade to ~4 of the runtime $Subscription = '<YOUR SUBSCRIPTION ID>' Set-AzContext -Subscription $Subscription | Out-Null $FunctionApps = Get-AzFunctionApp $AppInfo = @{} foreach ($App in $FunctionApps) { if ($App.ApplicationSettings["FUNCTIONS_EXTENSION_VERSION"] -like '*3*') { $AppInfo.Add($App.Name, $App.ApplicationSettings["FUNCTIONS_EXTENSION_VERSION"]) } } $AppInfo $AppInfo.Count $AppInfo | Export-Csv -Path "$PSScriptRoot\YourEOLApps.csv" -NoTypeInformation ```
/content/code_sandbox/EOLHostMigration/CheckEOLAppsPerAzSub.ps1
powershell
2016-04-05T22:38:54
2024-08-15T12:30:26
Azure-Functions
Azure/Azure-Functions
1,109
168
```c++ /* BlinkM.cpp - Library for controlling a BlinkM over i2c Created by Tim Koster, August 21 2013. */ #include "Marlin.h" #ifdef BLINKM #if (ARDUINO >= 100) # include "Arduino.h" #else # include "WProgram.h" #endif #include "BlinkM.h" void SendColors(byte red, byte grn, byte blu) { Wire.begin(); Wire.beginTransmission(0x09); Wire.write('o'); //to disable ongoing script, only needs to be used once Wire.write('n'); Wire.write(red); Wire.write(grn); Wire.write(blu); Wire.endTransmission(); } #endif //BLINKM ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/BlinkM.cpp
c++
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
163
```objective-c /** * Basque-Euskera * * LCD Menu Messages * Please note these are limited to 17 characters! * */ #ifndef LANGUAGE_EU_H #define LANGUAGE_EU_H #define WELCOME_MSG MACHINE_NAME " prest." #define MSG_SD_INSERTED "Txartela sartuta" #define MSG_SD_REMOVED "Txartela kenduta" #define MSG_MAIN "Menu nagusia" #define MSG_AUTOSTART "Auto hasiera" #define MSG_DISABLE_STEPPERS "Itzali motoreak" #define MSG_AUTO_HOME "Hasierara joan" #define MSG_SET_HOME_OFFSETS "Set home offsets" #define MSG_SET_ORIGIN "Hasiera ipini" #define MSG_PREHEAT_PLA "Aurreberotu PLA" #define MSG_PREHEAT_PLA0 "Aurreberotu PLA1" #define MSG_PREHEAT_PLA1 "Aurreberotu PLA2" #define MSG_PREHEAT_PLA2 "Aurreberotu PLA3" #define MSG_PREHEAT_PLA012 "Berotu PLA Guztia" #define MSG_PREHEAT_PLA_BEDONLY "Berotu PLA Ohea" #define MSG_PREHEAT_PLA_SETTINGS "Berotu PLA Konfig" #define MSG_PREHEAT_ABS "Aurreberotu ABS" #define MSG_PREHEAT_ABS0 "Aurreberotu ABS 1" #define MSG_PREHEAT_ABS1 "Aurreberotu ABS 2" #define MSG_PREHEAT_ABS2 "Aurreberotu ABS 3" #define MSG_PREHEAT_ABS012 "Berotu ABS Guztia" #define MSG_PREHEAT_ABS_BEDONLY "Berotu ABS Ohea" #define MSG_PREHEAT_ABS_SETTINGS "Berotu ABS Konfig" #define MSG_COOLDOWN "Hoztu" #define MSG_SWITCH_PS_ON "Energia piztu" #define MSG_SWITCH_PS_OFF "Energia itzali" #define MSG_EXTRUDE "Estruitu" #define MSG_RETRACT "Atzera eragin" #define MSG_MOVE_AXIS "Ardatzak mugitu" #define MSG_MOVE_X "Mugitu X" #define MSG_MOVE_Y "Mugitu Y" #define MSG_MOVE_Z "Mugitu Z" #define MSG_MOVE_E "Estrusorea" #define MSG_MOVE_E1 "Estrusorea2" #define MSG_MOVE_E2 "Estrusorea3" #define MSG_MOVE_01MM "Mugitu 0.1mm" #define MSG_MOVE_1MM "Mugitu 1mm" #define MSG_MOVE_10MM "Mugitu 10mm" #define MSG_SPEED "Abiadura" #define MSG_NOZZLE "Pita" #define MSG_NOZZLE1 "Pita2" #define MSG_NOZZLE2 "Pita3" #define MSG_BED "Ohea" #define MSG_FAN_SPEED "Haizagailua" #define MSG_FLOW "Fluxua" #define MSG_FLOW0 "Fluxua 0" #define MSG_FLOW1 "Fluxua 1" #define MSG_FLOW2 "Fluxua 2" #define MSG_CONTROL "Kontrola" #define MSG_MIN " \002 Min" #define MSG_MAX " \002 Max" #define MSG_FACTOR " \002 Faktorea" #define MSG_AUTOTEMP "Auto tenperatura" #define MSG_ON "On " #define MSG_OFF "Off" #define MSG_PID_P "PID-P" #define MSG_PID_I "PID-I" #define MSG_PID_D "PID-D" #define MSG_PID_C "PID-C" #define MSG_ACC "Azelerazioa" #define MSG_VXY_JERK "Vxy-astindua" #define MSG_VZ_JERK "Vz-astindua" #define MSG_VE_JERK "Ve-astindua" #define MSG_VMAX "Vmax " #define MSG_X "x" #define MSG_Y "y" #define MSG_Z "z" #define MSG_E "e" #define MSG_VMIN "Vmin" #define MSG_VTRAV_MIN "VTrav min" #define MSG_AMAX "Amax " #define MSG_A_RETRACT "A-retrakt" #define MSG_XSTEPS "X pausoak/mm" #define MSG_YSTEPS "Y pausoak/mm" #define MSG_ZSTEPS "Z pausoak/mm" #define MSG_ESTEPS "E pausoak/mm" #define MSG_TEMPERATURE "Tenperatura" #define MSG_MOTION "Mugimendua" #define MSG_VOLUMETRIC "Filament" #define MSG_VOLUMETRIC_ENABLED "E in mm3" #define MSG_FILAMENT_SIZE_EXTRUDER_0 "Fil. Dia. 1" #define MSG_FILAMENT_SIZE_EXTRUDER_1 "Fil. Dia. 2" #define MSG_FILAMENT_SIZE_EXTRUDER_2 "Fil. Dia. 3" #define MSG_CONTRAST "LCD kontrastea" #define MSG_STORE_EPROM "Gorde memoria" #define MSG_LOAD_EPROM "Kargatu memoria" #define MSG_RESTORE_FAILSAFE "Larri. berriz." #define MSG_REFRESH "Berriz kargatu" #define MSG_WATCH "Pantaila info" #define MSG_PREPARE "Prestatu" #define MSG_TUNE "Doitu" #define MSG_PAUSE_PRINT "Pausatu inprimak." #define MSG_RESUME_PRINT "Jarraitu inprima." #define MSG_STOP_PRINT "Gelditu inprima." #define MSG_CARD_MENU "SD-tik inprimatu" #define MSG_NO_CARD "Ez dago txartelik" #define MSG_DWELL "Lo egin..." #define MSG_USERWAIT "Aginduak zain..." #define MSG_RESUMING "Jarraitzen inpri." #define MSG_PRINT_ABORTED "Print aborted" #define MSG_NO_MOVE "Mugimendu gabe" #define MSG_KILLED "LARRIALDI GELDIA" #define MSG_STOPPED "GELDITUTA. " #define MSG_CONTROL_RETRACT "Atzera egin mm" #define MSG_CONTROL_RETRACT_SWAP "Swap Atzera egin mm" #define MSG_CONTROL_RETRACTF "Atzera egin V" #define MSG_CONTROL_RETRACT_ZLIFT "Igo mm" #define MSG_CONTROL_RETRACT_RECOVER "Atzera egin +mm" #define MSG_CONTROL_RETRACT_RECOVER_SWAP "Swap Atzera egin +mm" #define MSG_CONTROL_RETRACT_RECOVERF "Atzera egin V" #define MSG_AUTORETRACT "Atzera egin" #define MSG_FILAMENTCHANGE "Aldatu filament." #define MSG_INIT_SDCARD "Hasieratu txartela" #define MSG_CNG_SDCARD "Aldatu txartela" #define MSG_ZPROBE_OUT "Z ohe hasiera" #define MSG_POSITION_UNKNOWN "Posizio ezezaguna" #define MSG_ZPROBE_ZOFFSET "Z konpentsatu" #define MSG_BABYSTEP_X "Babystep X" #define MSG_BABYSTEP_Y "Babystep Y" #define MSG_BABYSTEP_Z "Babystep Z" #define MSG_ENDSTOP_ABORT "Endstop deuseztat" #define MSG_RECTRACT "Atzera eragin" #ifdef DELTA_CALIBRATION_MENU #define MSG_DELTA_CALIBRATE "Delta Calibration" #define MSG_DELTA_CALIBRATE_X "Calibrate X" #define MSG_DELTA_CALIBRATE_Y "Calibrate Y" #define MSG_DELTA_CALIBRATE_Z "Calibrate Z" #define MSG_DELTA_CALIBRATE_CENTER "Calibrate Center" #endif // DELTA_CALIBRATION_MENU #endif // LANGUAGE_EU_H ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/language_eu.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
1,713
```objective-c /* Arduino SdFat Library * * This file is part of the Arduino SdFat Library * * This Library is free software: you can redistribute it and/or modify * (at your option) any later version. * * This Library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * along with the Arduino SdFat Library. If not, see * <path_to_url */ // Warning this file was generated by a program. #include "Marlin.h" #ifdef SDSUPPORT #ifndef Sd2PinMap_h #define Sd2PinMap_h #include <avr/io.h> //your_sha256_hash-------------- /** struct for mapping digital pins */ struct pin_map_t { volatile uint8_t* ddr; volatile uint8_t* pin; volatile uint8_t* port; uint8_t bit; }; //your_sha256_hash-------------- #if defined(__AVR_ATmega1280__)\ || defined(__AVR_ATmega2560__) // Mega // Two Wire (aka I2C) ports uint8_t const SDA_PIN = 20; // D1 uint8_t const SCL_PIN = 21; // D0 #undef MOSI_PIN #undef MISO_PIN // SPI port uint8_t const SS_PIN = 53; // B0 uint8_t const MOSI_PIN = 51; // B2 uint8_t const MISO_PIN = 50; // B3 uint8_t const SCK_PIN = 52; // B1 static const pin_map_t digitalPinMap[] = { {&DDRE, &PINE, &PORTE, 0}, // E0 0 {&DDRE, &PINE, &PORTE, 1}, // E1 1 {&DDRE, &PINE, &PORTE, 4}, // E4 2 {&DDRE, &PINE, &PORTE, 5}, // E5 3 {&DDRG, &PING, &PORTG, 5}, // G5 4 {&DDRE, &PINE, &PORTE, 3}, // E3 5 {&DDRH, &PINH, &PORTH, 3}, // H3 6 {&DDRH, &PINH, &PORTH, 4}, // H4 7 {&DDRH, &PINH, &PORTH, 5}, // H5 8 {&DDRH, &PINH, &PORTH, 6}, // H6 9 {&DDRB, &PINB, &PORTB, 4}, // B4 10 {&DDRB, &PINB, &PORTB, 5}, // B5 11 {&DDRB, &PINB, &PORTB, 6}, // B6 12 {&DDRB, &PINB, &PORTB, 7}, // B7 13 {&DDRJ, &PINJ, &PORTJ, 1}, // J1 14 {&DDRJ, &PINJ, &PORTJ, 0}, // J0 15 {&DDRH, &PINH, &PORTH, 1}, // H1 16 {&DDRH, &PINH, &PORTH, 0}, // H0 17 {&DDRD, &PIND, &PORTD, 3}, // D3 18 {&DDRD, &PIND, &PORTD, 2}, // D2 19 {&DDRD, &PIND, &PORTD, 1}, // D1 20 {&DDRD, &PIND, &PORTD, 0}, // D0 21 {&DDRA, &PINA, &PORTA, 0}, // A0 22 {&DDRA, &PINA, &PORTA, 1}, // A1 23 {&DDRA, &PINA, &PORTA, 2}, // A2 24 {&DDRA, &PINA, &PORTA, 3}, // A3 25 {&DDRA, &PINA, &PORTA, 4}, // A4 26 {&DDRA, &PINA, &PORTA, 5}, // A5 27 {&DDRA, &PINA, &PORTA, 6}, // A6 28 {&DDRA, &PINA, &PORTA, 7}, // A7 29 {&DDRC, &PINC, &PORTC, 7}, // C7 30 {&DDRC, &PINC, &PORTC, 6}, // C6 31 {&DDRC, &PINC, &PORTC, 5}, // C5 32 {&DDRC, &PINC, &PORTC, 4}, // C4 33 {&DDRC, &PINC, &PORTC, 3}, // C3 34 {&DDRC, &PINC, &PORTC, 2}, // C2 35 {&DDRC, &PINC, &PORTC, 1}, // C1 36 {&DDRC, &PINC, &PORTC, 0}, // C0 37 {&DDRD, &PIND, &PORTD, 7}, // D7 38 {&DDRG, &PING, &PORTG, 2}, // G2 39 {&DDRG, &PING, &PORTG, 1}, // G1 40 {&DDRG, &PING, &PORTG, 0}, // G0 41 {&DDRL, &PINL, &PORTL, 7}, // L7 42 {&DDRL, &PINL, &PORTL, 6}, // L6 43 {&DDRL, &PINL, &PORTL, 5}, // L5 44 {&DDRL, &PINL, &PORTL, 4}, // L4 45 {&DDRL, &PINL, &PORTL, 3}, // L3 46 {&DDRL, &PINL, &PORTL, 2}, // L2 47 {&DDRL, &PINL, &PORTL, 1}, // L1 48 {&DDRL, &PINL, &PORTL, 0}, // L0 49 {&DDRB, &PINB, &PORTB, 3}, // B3 50 {&DDRB, &PINB, &PORTB, 2}, // B2 51 {&DDRB, &PINB, &PORTB, 1}, // B1 52 {&DDRB, &PINB, &PORTB, 0}, // B0 53 {&DDRF, &PINF, &PORTF, 0}, // F0 54 {&DDRF, &PINF, &PORTF, 1}, // F1 55 {&DDRF, &PINF, &PORTF, 2}, // F2 56 {&DDRF, &PINF, &PORTF, 3}, // F3 57 {&DDRF, &PINF, &PORTF, 4}, // F4 58 {&DDRF, &PINF, &PORTF, 5}, // F5 59 {&DDRF, &PINF, &PORTF, 6}, // F6 60 {&DDRF, &PINF, &PORTF, 7}, // F7 61 {&DDRK, &PINK, &PORTK, 0}, // K0 62 {&DDRK, &PINK, &PORTK, 1}, // K1 63 {&DDRK, &PINK, &PORTK, 2}, // K2 64 {&DDRK, &PINK, &PORTK, 3}, // K3 65 {&DDRK, &PINK, &PORTK, 4}, // K4 66 {&DDRK, &PINK, &PORTK, 5}, // K5 67 {&DDRK, &PINK, &PORTK, 6}, // K6 68 {&DDRK, &PINK, &PORTK, 7} // K7 69 }; //your_sha256_hash-------------- #elif defined(__AVR_ATmega644P__)\ || defined(__AVR_ATmega644__)\ || defined(__AVR_ATmega1284P__) // Sanguino // Two Wire (aka I2C) ports uint8_t const SDA_PIN = 17; // C1 uint8_t const SCL_PIN = 18; // C2 // SPI port uint8_t const SS_PIN = 4; // B4 uint8_t const MOSI_PIN = 5; // B5 uint8_t const MISO_PIN = 6; // B6 uint8_t const SCK_PIN = 7; // B7 static const pin_map_t digitalPinMap[] = { {&DDRB, &PINB, &PORTB, 0}, // B0 0 {&DDRB, &PINB, &PORTB, 1}, // B1 1 {&DDRB, &PINB, &PORTB, 2}, // B2 2 {&DDRB, &PINB, &PORTB, 3}, // B3 3 {&DDRB, &PINB, &PORTB, 4}, // B4 4 {&DDRB, &PINB, &PORTB, 5}, // B5 5 {&DDRB, &PINB, &PORTB, 6}, // B6 6 {&DDRB, &PINB, &PORTB, 7}, // B7 7 {&DDRD, &PIND, &PORTD, 0}, // D0 8 {&DDRD, &PIND, &PORTD, 1}, // D1 9 {&DDRD, &PIND, &PORTD, 2}, // D2 10 {&DDRD, &PIND, &PORTD, 3}, // D3 11 {&DDRD, &PIND, &PORTD, 4}, // D4 12 {&DDRD, &PIND, &PORTD, 5}, // D5 13 {&DDRD, &PIND, &PORTD, 6}, // D6 14 {&DDRD, &PIND, &PORTD, 7}, // D7 15 {&DDRC, &PINC, &PORTC, 0}, // C0 16 {&DDRC, &PINC, &PORTC, 1}, // C1 17 {&DDRC, &PINC, &PORTC, 2}, // C2 18 {&DDRC, &PINC, &PORTC, 3}, // C3 19 {&DDRC, &PINC, &PORTC, 4}, // C4 20 {&DDRC, &PINC, &PORTC, 5}, // C5 21 {&DDRC, &PINC, &PORTC, 6}, // C6 22 {&DDRC, &PINC, &PORTC, 7}, // C7 23 {&DDRA, &PINA, &PORTA, 7}, // A7 24 {&DDRA, &PINA, &PORTA, 6}, // A6 25 {&DDRA, &PINA, &PORTA, 5}, // A5 26 {&DDRA, &PINA, &PORTA, 4}, // A4 27 {&DDRA, &PINA, &PORTA, 3}, // A3 28 {&DDRA, &PINA, &PORTA, 2}, // A2 29 {&DDRA, &PINA, &PORTA, 1}, // A1 30 {&DDRA, &PINA, &PORTA, 0} // A0 31 }; //your_sha256_hash-------------- #elif defined(__AVR_ATmega32U4__) // Teensy 2.0 // Two Wire (aka I2C) ports uint8_t const SDA_PIN = 6; // D1 uint8_t const SCL_PIN = 5; // D0 // SPI port uint8_t const SS_PIN = 0; // B0 uint8_t const MOSI_PIN = 2; // B2 uint8_t const MISO_PIN = 3; // B3 uint8_t const SCK_PIN = 1; // B1 static const pin_map_t digitalPinMap[] = { {&DDRB, &PINB, &PORTB, 0}, // B0 0 {&DDRB, &PINB, &PORTB, 1}, // B1 1 {&DDRB, &PINB, &PORTB, 2}, // B2 2 {&DDRB, &PINB, &PORTB, 3}, // B3 3 {&DDRB, &PINB, &PORTB, 7}, // B7 4 {&DDRD, &PIND, &PORTD, 0}, // D0 5 {&DDRD, &PIND, &PORTD, 1}, // D1 6 {&DDRD, &PIND, &PORTD, 2}, // D2 7 {&DDRD, &PIND, &PORTD, 3}, // D3 8 {&DDRC, &PINC, &PORTC, 6}, // C6 9 {&DDRC, &PINC, &PORTC, 7}, // C7 10 {&DDRD, &PIND, &PORTD, 6}, // D6 11 {&DDRD, &PIND, &PORTD, 7}, // D7 12 {&DDRB, &PINB, &PORTB, 4}, // B4 13 {&DDRB, &PINB, &PORTB, 5}, // B5 14 {&DDRB, &PINB, &PORTB, 6}, // B6 15 {&DDRF, &PINF, &PORTF, 7}, // F7 16 {&DDRF, &PINF, &PORTF, 6}, // F6 17 {&DDRF, &PINF, &PORTF, 5}, // F5 18 {&DDRF, &PINF, &PORTF, 4}, // F4 19 {&DDRF, &PINF, &PORTF, 1}, // F1 20 {&DDRF, &PINF, &PORTF, 0}, // F0 21 {&DDRD, &PIND, &PORTD, 4}, // D4 22 {&DDRD, &PIND, &PORTD, 5}, // D5 23 {&DDRE, &PINE, &PORTE, 6} // E6 24 }; //your_sha256_hash-------------- #elif defined(__AVR_AT90USB646__)\ || defined(__AVR_AT90USB1286__) // Teensy++ 1.0 & 2.0 // Two Wire (aka I2C) ports uint8_t const SDA_PIN = 1; // D1 uint8_t const SCL_PIN = 0; // D0 // SPI port uint8_t const SS_PIN = 20; // B0 uint8_t const MOSI_PIN = 22; // B2 uint8_t const MISO_PIN = 23; // B3 uint8_t const SCK_PIN = 21; // B1 static const pin_map_t digitalPinMap[] = { {&DDRD, &PIND, &PORTD, 0}, // D0 0 {&DDRD, &PIND, &PORTD, 1}, // D1 1 {&DDRD, &PIND, &PORTD, 2}, // D2 2 {&DDRD, &PIND, &PORTD, 3}, // D3 3 {&DDRD, &PIND, &PORTD, 4}, // D4 4 {&DDRD, &PIND, &PORTD, 5}, // D5 5 {&DDRD, &PIND, &PORTD, 6}, // D6 6 {&DDRD, &PIND, &PORTD, 7}, // D7 7 {&DDRE, &PINE, &PORTE, 0}, // E0 8 {&DDRE, &PINE, &PORTE, 1}, // E1 9 {&DDRC, &PINC, &PORTC, 0}, // C0 10 {&DDRC, &PINC, &PORTC, 1}, // C1 11 {&DDRC, &PINC, &PORTC, 2}, // C2 12 {&DDRC, &PINC, &PORTC, 3}, // C3 13 {&DDRC, &PINC, &PORTC, 4}, // C4 14 {&DDRC, &PINC, &PORTC, 5}, // C5 15 {&DDRC, &PINC, &PORTC, 6}, // C6 16 {&DDRC, &PINC, &PORTC, 7}, // C7 17 {&DDRE, &PINE, &PORTE, 6}, // E6 18 {&DDRE, &PINE, &PORTE, 7}, // E7 19 {&DDRB, &PINB, &PORTB, 0}, // B0 20 {&DDRB, &PINB, &PORTB, 1}, // B1 21 {&DDRB, &PINB, &PORTB, 2}, // B2 22 {&DDRB, &PINB, &PORTB, 3}, // B3 23 {&DDRB, &PINB, &PORTB, 4}, // B4 24 {&DDRB, &PINB, &PORTB, 5}, // B5 25 {&DDRB, &PINB, &PORTB, 6}, // B6 26 {&DDRB, &PINB, &PORTB, 7}, // B7 27 {&DDRA, &PINA, &PORTA, 0}, // A0 28 {&DDRA, &PINA, &PORTA, 1}, // A1 29 {&DDRA, &PINA, &PORTA, 2}, // A2 30 {&DDRA, &PINA, &PORTA, 3}, // A3 31 {&DDRA, &PINA, &PORTA, 4}, // A4 32 {&DDRA, &PINA, &PORTA, 5}, // A5 33 {&DDRA, &PINA, &PORTA, 6}, // A6 34 {&DDRA, &PINA, &PORTA, 7}, // A7 35 {&DDRE, &PINE, &PORTE, 4}, // E4 36 {&DDRE, &PINE, &PORTE, 5}, // E5 37 {&DDRF, &PINF, &PORTF, 0}, // F0 38 {&DDRF, &PINF, &PORTF, 1}, // F1 39 {&DDRF, &PINF, &PORTF, 2}, // F2 40 {&DDRF, &PINF, &PORTF, 3}, // F3 41 {&DDRF, &PINF, &PORTF, 4}, // F4 42 {&DDRF, &PINF, &PORTF, 5}, // F5 43 {&DDRF, &PINF, &PORTF, 6}, // F6 44 {&DDRF, &PINF, &PORTF, 7} // F7 45 }; //your_sha256_hash-------------- #elif defined(__AVR_ATmega168__)\ ||defined(__AVR_ATmega168P__)\ ||defined(__AVR_ATmega328P__) // 168 and 328 Arduinos // Two Wire (aka I2C) ports uint8_t const SDA_PIN = 18; // C4 uint8_t const SCL_PIN = 19; // C5 // SPI port uint8_t const SS_PIN = 10; // B2 uint8_t const MOSI_PIN = 11; // B3 uint8_t const MISO_PIN = 12; // B4 uint8_t const SCK_PIN = 13; // B5 static const pin_map_t digitalPinMap[] = { {&DDRD, &PIND, &PORTD, 0}, // D0 0 {&DDRD, &PIND, &PORTD, 1}, // D1 1 {&DDRD, &PIND, &PORTD, 2}, // D2 2 {&DDRD, &PIND, &PORTD, 3}, // D3 3 {&DDRD, &PIND, &PORTD, 4}, // D4 4 {&DDRD, &PIND, &PORTD, 5}, // D5 5 {&DDRD, &PIND, &PORTD, 6}, // D6 6 {&DDRD, &PIND, &PORTD, 7}, // D7 7 {&DDRB, &PINB, &PORTB, 0}, // B0 8 {&DDRB, &PINB, &PORTB, 1}, // B1 9 {&DDRB, &PINB, &PORTB, 2}, // B2 10 {&DDRB, &PINB, &PORTB, 3}, // B3 11 {&DDRB, &PINB, &PORTB, 4}, // B4 12 {&DDRB, &PINB, &PORTB, 5}, // B5 13 {&DDRC, &PINC, &PORTC, 0}, // C0 14 {&DDRC, &PINC, &PORTC, 1}, // C1 15 {&DDRC, &PINC, &PORTC, 2}, // C2 16 {&DDRC, &PINC, &PORTC, 3}, // C3 17 {&DDRC, &PINC, &PORTC, 4}, // C4 18 {&DDRC, &PINC, &PORTC, 5} // C5 19 }; #else // defined(__AVR_ATmega1280__) #error unknown chip #endif // defined(__AVR_ATmega1280__) //your_sha256_hash-------------- static const uint8_t digitalPinCount = sizeof(digitalPinMap)/sizeof(pin_map_t); uint8_t badPinNumber(void) __attribute__((error("Pin number is too large or not a constant"))); static inline __attribute__((always_inline)) bool getPinMode(uint8_t pin) { if (__builtin_constant_p(pin) && pin < digitalPinCount) { return (*digitalPinMap[pin].ddr >> digitalPinMap[pin].bit) & 1; } else { return badPinNumber(); } } static inline __attribute__((always_inline)) void setPinMode(uint8_t pin, uint8_t mode) { if (__builtin_constant_p(pin) && pin < digitalPinCount) { if (mode) { *digitalPinMap[pin].ddr |= 1 << digitalPinMap[pin].bit; } else { *digitalPinMap[pin].ddr &= ~(1 << digitalPinMap[pin].bit); } } else { badPinNumber(); } } static inline __attribute__((always_inline)) bool fastDigitalRead(uint8_t pin) { if (__builtin_constant_p(pin) && pin < digitalPinCount) { return (*digitalPinMap[pin].pin >> digitalPinMap[pin].bit) & 1; } else { return badPinNumber(); } } static inline __attribute__((always_inline)) void fastDigitalWrite(uint8_t pin, uint8_t value) { if (__builtin_constant_p(pin) && pin < digitalPinCount) { if (value) { *digitalPinMap[pin].port |= 1 << digitalPinMap[pin].bit; } else { *digitalPinMap[pin].port &= ~(1 << digitalPinMap[pin].bit); } } else { badPinNumber(); } } #endif // Sd2PinMap_h #endif ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/Sd2PinMap.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
6,141
```objective-c // // based on LiquidCrystal library from ArduinoIDE, see path_to_url // modified 27 Jul 2011 // by Ilya V. Danilov path_to_url // #ifndef LiquidCrystalRus_h #define LiquidCrystalRus_h #include <inttypes.h> #include "Print.h" // commands #define LCD_CLEARDISPLAY 0x01 #define LCD_RETURNHOME 0x02 #define LCD_ENTRYMODESET 0x04 #define LCD_DISPLAYCONTROL 0x08 #define LCD_CURSORSHIFT 0x10 #define LCD_FUNCTIONSET 0x20 #define LCD_SETCGRAMADDR 0x40 #define LCD_SETDDRAMADDR 0x80 // flags for display entry mode #define LCD_ENTRYRIGHT 0x00 #define LCD_ENTRYLEFT 0x02 #define LCD_ENTRYSHIFTINCREMENT 0x01 #define LCD_ENTRYSHIFTDECREMENT 0x00 // flags for display on/off control #define LCD_DISPLAYON 0x04 #define LCD_DISPLAYOFF 0x00 #define LCD_CURSORON 0x02 #define LCD_CURSOROFF 0x00 #define LCD_BLINKON 0x01 #define LCD_BLINKOFF 0x00 // flags for display/cursor shift #define LCD_DISPLAYMOVE 0x08 #define LCD_CURSORMOVE 0x00 #define LCD_MOVERIGHT 0x04 #define LCD_MOVELEFT 0x00 // flags for function set #define LCD_8BITMODE 0x10 #define LCD_4BITMODE 0x00 #define LCD_2LINE 0x08 #define LCD_1LINE 0x00 #define LCD_5x10DOTS 0x04 #define LCD_5x8DOTS 0x00 // enum for #define LCD_DRAM_Normal 0x00 #define LCD_DRAM_WH1601 0x01 class LiquidCrystalRus : public Print { public: LiquidCrystalRus(uint8_t rs, uint8_t enable, uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7); LiquidCrystalRus(uint8_t rs, uint8_t rw, uint8_t enable, uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7); LiquidCrystalRus(uint8_t rs, uint8_t rw, uint8_t enable, uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3); LiquidCrystalRus(uint8_t rs, uint8_t enable, uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3); void init(uint8_t fourbitmode, uint8_t rs, uint8_t rw, uint8_t enable, uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7); void begin(uint8_t cols, uint8_t rows, uint8_t charsize = LCD_5x8DOTS); void clear(); void home(); void noDisplay(); void display(); void noBlink(); void blink(); void noCursor(); void cursor(); void scrollDisplayLeft(); void scrollDisplayRight(); void leftToRight(); void rightToLeft(); void autoscroll(); void noAutoscroll(); void createChar(uint8_t, uint8_t[]); void setCursor(uint8_t, uint8_t); #if defined(ARDUINO) && ARDUINO >= 100 virtual size_t write(uint8_t); using Print::write; #else virtual void write(uint8_t); #endif void command(uint8_t); void setDRAMModel(uint8_t); private: void send(uint8_t, uint8_t); void writeNbits(uint8_t, uint8_t); uint8_t recv(uint8_t); uint8_t readNbits(uint8_t); void pulseEnable(); uint8_t _rs_pin; // LOW: command. HIGH: character. uint8_t _rw_pin; // LOW: write to LCD. HIGH: read from LCD. uint8_t _enable_pin; // activated by a HIGH pulse. uint8_t _data_pins[8]; uint8_t _displayfunction; uint8_t _displaycontrol; uint8_t _displaymode; uint8_t _initialized; uint8_t _numlines,_currline; uint8_t _dram_model; uint8_t utf_hi_char; // UTF-8 high part }; #endif ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/LiquidCrystalRus.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
1,074
```objective-c /* Arduino SdFat Library * * This file is part of the Arduino SdFat Library * * This Library is free software: you can redistribute it and/or modify * (at your option) any later version. * * This Library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * along with the Arduino SdFat Library. If not, see * <path_to_url */ #include "Marlin.h" #ifdef SDSUPPORT #ifndef SdFatStructs_h #define SdFatStructs_h #define PACKED __attribute__((__packed__)) /** * \file * \brief FAT file structures */ /* * mostly from Microsoft document fatgen103.doc * path_to_url */ //your_sha256_hash-------------- /** Value for byte 510 of boot block or MBR */ uint8_t const BOOTSIG0 = 0X55; /** Value for byte 511 of boot block or MBR */ uint8_t const BOOTSIG1 = 0XAA; /** Value for bootSignature field int FAT/FAT32 boot sector */ uint8_t const EXTENDED_BOOT_SIG = 0X29; //your_sha256_hash-------------- /** * \struct partitionTable * \brief MBR partition table entry * * A partition table entry for a MBR formatted storage device. * The MBR partition table has four entries. */ struct partitionTable { /** * Boot Indicator . Indicates whether the volume is the active * partition. Legal values include: 0X00. Do not use for booting. * 0X80 Active partition. */ uint8_t boot; /** * Head part of Cylinder-head-sector address of the first block in * the partition. Legal values are 0-255. Only used in old PC BIOS. */ uint8_t beginHead; /** * Sector part of Cylinder-head-sector address of the first block in * the partition. Legal values are 1-63. Only used in old PC BIOS. */ unsigned beginSector : 6; /** High bits cylinder for first block in partition. */ unsigned beginCylinderHigh : 2; /** * Combine beginCylinderLow with beginCylinderHigh. Legal values * are 0-1023. Only used in old PC BIOS. */ uint8_t beginCylinderLow; /** * Partition type. See defines that begin with PART_TYPE_ for * some Microsoft partition types. */ uint8_t type; /** * head part of cylinder-head-sector address of the last sector in the * partition. Legal values are 0-255. Only used in old PC BIOS. */ uint8_t endHead; /** * Sector part of cylinder-head-sector address of the last sector in * the partition. Legal values are 1-63. Only used in old PC BIOS. */ unsigned endSector : 6; /** High bits of end cylinder */ unsigned endCylinderHigh : 2; /** * Combine endCylinderLow with endCylinderHigh. Legal values * are 0-1023. Only used in old PC BIOS. */ uint8_t endCylinderLow; /** Logical block address of the first block in the partition. */ uint32_t firstSector; /** Length of the partition, in blocks. */ uint32_t totalSectors; } PACKED; /** Type name for partitionTable */ typedef struct partitionTable part_t; //your_sha256_hash-------------- /** * \struct masterBootRecord * * \brief Master Boot Record * * The first block of a storage device that is formatted with a MBR. */ struct masterBootRecord { /** Code Area for master boot program. */ uint8_t codeArea[440]; /** Optional Windows NT disk signature. May contain boot code. */ uint32_t diskSignature; /** Usually zero but may be more boot code. */ uint16_t usuallyZero; /** Partition tables. */ part_t part[4]; /** First MBR signature byte. Must be 0X55 */ uint8_t mbrSig0; /** Second MBR signature byte. Must be 0XAA */ uint8_t mbrSig1; } PACKED; /** Type name for masterBootRecord */ typedef struct masterBootRecord mbr_t; //your_sha256_hash-------------- /** * \struct fat_boot * * \brief Boot sector for a FAT12/FAT16 volume. * */ struct fat_boot { /** * The first three bytes of the boot sector must be valid, * executable x 86-based CPU instructions. This includes a * jump instruction that skips the next nonexecutable bytes. */ uint8_t jump[3]; /** * This is typically a string of characters that identifies * the operating system that formatted the volume. */ char oemId[8]; /** * The size of a hardware sector. Valid decimal values for this * field are 512, 1024, 2048, and 4096. For most disks used in * the United States, the value of this field is 512. */ uint16_t bytesPerSector; /** * Number of sectors per allocation unit. This value must be a * power of 2 that is greater than 0. The legal values are * 1, 2, 4, 8, 16, 32, 64, and 128. 128 should be avoided. */ uint8_t sectorsPerCluster; /** * The number of sectors preceding the start of the first FAT, * including the boot sector. The value of this field is always 1. */ uint16_t reservedSectorCount; /** * The number of copies of the FAT on the volume. * The value of this field is always 2. */ uint8_t fatCount; /** * For FAT12 and FAT16 volumes, this field contains the count of * 32-byte directory entries in the root directory. For FAT32 volumes, * this field must be set to 0. For FAT12 and FAT16 volumes, this * value should always specify a count that when multiplied by 32 * results in a multiple of bytesPerSector. FAT16 volumes should * use the value 512. */ uint16_t rootDirEntryCount; /** * This field is the old 16-bit total count of sectors on the volume. * This count includes the count of all sectors in all four regions * of the volume. This field can be 0; if it is 0, then totalSectors32 * must be nonzero. For FAT32 volumes, this field must be 0. For * FAT12 and FAT16 volumes, this field contains the sector count, and * totalSectors32 is 0 if the total sector count fits * (is less than 0x10000). */ uint16_t totalSectors16; /** * This dates back to the old MS-DOS 1.x media determination and is * no longer usually used for anything. 0xF8 is the standard value * for fixed (nonremovable) media. For removable media, 0xF0 is * frequently used. Legal values are 0xF0 or 0xF8-0xFF. */ uint8_t mediaType; /** * Count of sectors occupied by one FAT on FAT12/FAT16 volumes. * On FAT32 volumes this field must be 0, and sectorsPerFat32 * contains the FAT size count. */ uint16_t sectorsPerFat16; /** Sectors per track for interrupt 0x13. Not used otherwise. */ uint16_t sectorsPerTrack; /** Number of heads for interrupt 0x13. Not used otherwise. */ uint16_t headCount; /** * Count of hidden sectors preceding the partition that contains this * FAT volume. This field is generally only relevant for media * visible on interrupt 0x13. */ uint32_t hidddenSectors; /** * This field is the new 32-bit total count of sectors on the volume. * This count includes the count of all sectors in all four regions * of the volume. This field can be 0; if it is 0, then * totalSectors16 must be nonzero. */ uint32_t totalSectors32; /** * Related to the BIOS physical drive number. Floppy drives are * identified as 0x00 and physical hard disks are identified as * 0x80, regardless of the number of physical disk drives. * Typically, this value is set prior to issuing an INT 13h BIOS * call to specify the device to access. The value is only * relevant if the device is a boot device. */ uint8_t driveNumber; /** used by Windows NT - should be zero for FAT */ uint8_t reserved1; /** 0X29 if next three fields are valid */ uint8_t bootSignature; /** * A random serial number created when formatting a disk, * which helps to distinguish between disks. * Usually generated by combining date and time. */ uint32_t volumeSerialNumber; /** * A field once used to store the volume label. The volume label * is now stored as a special file in the root directory. */ char volumeLabel[11]; /** * A field with a value of either FAT, FAT12 or FAT16, * depending on the disk format. */ char fileSystemType[8]; /** X86 boot code */ uint8_t bootCode[448]; /** must be 0X55 */ uint8_t bootSectorSig0; /** must be 0XAA */ uint8_t bootSectorSig1; } PACKED; /** Type name for FAT Boot Sector */ typedef struct fat_boot fat_boot_t; //your_sha256_hash-------------- /** * \struct fat32_boot * * \brief Boot sector for a FAT32 volume. * */ struct fat32_boot { /** * The first three bytes of the boot sector must be valid, * executable x 86-based CPU instructions. This includes a * jump instruction that skips the next nonexecutable bytes. */ uint8_t jump[3]; /** * This is typically a string of characters that identifies * the operating system that formatted the volume. */ char oemId[8]; /** * The size of a hardware sector. Valid decimal values for this * field are 512, 1024, 2048, and 4096. For most disks used in * the United States, the value of this field is 512. */ uint16_t bytesPerSector; /** * Number of sectors per allocation unit. This value must be a * power of 2 that is greater than 0. The legal values are * 1, 2, 4, 8, 16, 32, 64, and 128. 128 should be avoided. */ uint8_t sectorsPerCluster; /** * The number of sectors preceding the start of the first FAT, * including the boot sector. Must not be zero */ uint16_t reservedSectorCount; /** * The number of copies of the FAT on the volume. * The value of this field is always 2. */ uint8_t fatCount; /** * FAT12/FAT16 only. For FAT32 volumes, this field must be set to 0. */ uint16_t rootDirEntryCount; /** * For FAT32 volumes, this field must be 0. */ uint16_t totalSectors16; /** * This dates back to the old MS-DOS 1.x media determination and is * no longer usually used for anything. 0xF8 is the standard value * for fixed (nonremovable) media. For removable media, 0xF0 is * frequently used. Legal values are 0xF0 or 0xF8-0xFF. */ uint8_t mediaType; /** * On FAT32 volumes this field must be 0, and sectorsPerFat32 * contains the FAT size count. */ uint16_t sectorsPerFat16; /** Sectors per track for interrupt 0x13. Not used otherwise. */ uint16_t sectorsPerTrack; /** Number of heads for interrupt 0x13. Not used otherwise. */ uint16_t headCount; /** * Count of hidden sectors preceding the partition that contains this * FAT volume. This field is generally only relevant for media * visible on interrupt 0x13. */ uint32_t hidddenSectors; /** * Contains the total number of sectors in the FAT32 volume. */ uint32_t totalSectors32; /** * Count of sectors occupied by one FAT on FAT32 volumes. */ uint32_t sectorsPerFat32; /** * This field is only defined for FAT32 media and does not exist on * FAT12 and FAT16 media. * Bits 0-3 -- Zero-based number of active FAT. * Only valid if mirroring is disabled. * Bits 4-6 -- Reserved. * Bit 7 -- 0 means the FAT is mirrored at runtime into all FATs. * -- 1 means only one FAT is active; it is the one referenced * in bits 0-3. * Bits 8-15 -- Reserved. */ uint16_t fat32Flags; /** * FAT32 version. High byte is major revision number. * Low byte is minor revision number. Only 0.0 define. */ uint16_t fat32Version; /** * Cluster number of the first cluster of the root directory for FAT32. * This usually 2 but not required to be 2. */ uint32_t fat32RootCluster; /** * Sector number of FSINFO structure in the reserved area of the * FAT32 volume. Usually 1. */ uint16_t fat32FSInfo; /** * If nonzero, indicates the sector number in the reserved area * of the volume of a copy of the boot record. Usually 6. * No value other than 6 is recommended. */ uint16_t fat32BackBootBlock; /** * Reserved for future expansion. Code that formats FAT32 volumes * should always set all of the bytes of this field to 0. */ uint8_t fat32Reserved[12]; /** * Related to the BIOS physical drive number. Floppy drives are * identified as 0x00 and physical hard disks are identified as * 0x80, regardless of the number of physical disk drives. * Typically, this value is set prior to issuing an INT 13h BIOS * call to specify the device to access. The value is only * relevant if the device is a boot device. */ uint8_t driveNumber; /** used by Windows NT - should be zero for FAT */ uint8_t reserved1; /** 0X29 if next three fields are valid */ uint8_t bootSignature; /** * A random serial number created when formatting a disk, * which helps to distinguish between disks. * Usually generated by combining date and time. */ uint32_t volumeSerialNumber; /** * A field once used to store the volume label. The volume label * is now stored as a special file in the root directory. */ char volumeLabel[11]; /** * A text field with a value of FAT32. */ char fileSystemType[8]; /** X86 boot code */ uint8_t bootCode[420]; /** must be 0X55 */ uint8_t bootSectorSig0; /** must be 0XAA */ uint8_t bootSectorSig1; } PACKED; /** Type name for FAT32 Boot Sector */ typedef struct fat32_boot fat32_boot_t; //your_sha256_hash-------------- /** Lead signature for a FSINFO sector */ uint32_t const FSINFO_LEAD_SIG = 0x41615252; /** Struct signature for a FSINFO sector */ uint32_t const FSINFO_STRUCT_SIG = 0x61417272; /** * \struct fat32_fsinfo * * \brief FSINFO sector for a FAT32 volume. * */ struct fat32_fsinfo { /** must be 0X52, 0X52, 0X61, 0X41 */ uint32_t leadSignature; /** must be zero */ uint8_t reserved1[480]; /** must be 0X72, 0X72, 0X41, 0X61 */ uint32_t structSignature; /** * Contains the last known free cluster count on the volume. * If the value is 0xFFFFFFFF, then the free count is unknown * and must be computed. Any other value can be used, but is * not necessarily correct. It should be range checked at least * to make sure it is <= volume cluster count. */ uint32_t freeCount; /** * This is a hint for the FAT driver. It indicates the cluster * number at which the driver should start looking for free clusters. * If the value is 0xFFFFFFFF, then there is no hint and the driver * should start looking at cluster 2. */ uint32_t nextFree; /** must be zero */ uint8_t reserved2[12]; /** must be 0X00, 0X00, 0X55, 0XAA */ uint8_t tailSignature[4]; } PACKED; /** Type name for FAT32 FSINFO Sector */ typedef struct fat32_fsinfo fat32_fsinfo_t; //your_sha256_hash-------------- // End Of Chain values for FAT entries /** FAT12 end of chain value used by Microsoft. */ uint16_t const FAT12EOC = 0XFFF; /** Minimum value for FAT12 EOC. Use to test for EOC. */ uint16_t const FAT12EOC_MIN = 0XFF8; /** FAT16 end of chain value used by Microsoft. */ uint16_t const FAT16EOC = 0XFFFF; /** Minimum value for FAT16 EOC. Use to test for EOC. */ uint16_t const FAT16EOC_MIN = 0XFFF8; /** FAT32 end of chain value used by Microsoft. */ uint32_t const FAT32EOC = 0X0FFFFFFF; /** Minimum value for FAT32 EOC. Use to test for EOC. */ uint32_t const FAT32EOC_MIN = 0X0FFFFFF8; /** Mask a for FAT32 entry. Entries are 28 bits. */ uint32_t const FAT32MASK = 0X0FFFFFFF; //your_sha256_hash-------------- /** * \struct directoryEntry * \brief FAT short directory entry * * Short means short 8.3 name, not the entry size. * * Date Format. A FAT directory entry date stamp is a 16-bit field that is * basically a date relative to the MS-DOS epoch of 01/01/1980. Here is the * format (bit 0 is the LSB of the 16-bit word, bit 15 is the MSB of the * 16-bit word): * * Bits 9-15: Count of years from 1980, valid value range 0-127 * inclusive (1980-2107). * * Bits 5-8: Month of year, 1 = January, valid value range 1-12 inclusive. * * Bits 0-4: Day of month, valid value range 1-31 inclusive. * * Time Format. A FAT directory entry time stamp is a 16-bit field that has * a granularity of 2 seconds. Here is the format (bit 0 is the LSB of the * 16-bit word, bit 15 is the MSB of the 16-bit word). * * Bits 11-15: Hours, valid value range 0-23 inclusive. * * Bits 5-10: Minutes, valid value range 0-59 inclusive. * * Bits 0-4: 2-second count, valid value range 0-29 inclusive (0 - 58 seconds). * * The valid time range is from Midnight 00:00:00 to 23:59:58. */ struct directoryEntry { /** Short 8.3 name. * * The first eight bytes contain the file name with blank fill. * The last three bytes contain the file extension with blank fill. */ uint8_t name[11]; /** Entry attributes. * * The upper two bits of the attribute byte are reserved and should * always be set to 0 when a file is created and never modified or * looked at after that. See defines that begin with DIR_ATT_. */ uint8_t attributes; /** * Reserved for use by Windows NT. Set value to 0 when a file is * created and never modify or look at it after that. */ uint8_t reservedNT; /** * The granularity of the seconds part of creationTime is 2 seconds * so this field is a count of tenths of a second and its valid * value range is 0-199 inclusive. (WHG note - seems to be hundredths) */ uint8_t creationTimeTenths; /** Time file was created. */ uint16_t creationTime; /** Date file was created. */ uint16_t creationDate; /** * Last access date. Note that there is no last access time, only * a date. This is the date of last read or write. In the case of * a write, this should be set to the same date as lastWriteDate. */ uint16_t lastAccessDate; /** * High word of this entry's first cluster number (always 0 for a * FAT12 or FAT16 volume). */ uint16_t firstClusterHigh; /** Time of last write. File creation is considered a write. */ uint16_t lastWriteTime; /** Date of last write. File creation is considered a write. */ uint16_t lastWriteDate; /** Low word of this entry's first cluster number. */ uint16_t firstClusterLow; /** 32-bit unsigned holding this file's size in bytes. */ uint32_t fileSize; } PACKED; /** * \struct directoryVFATEntry * \brief VFAT long filename directory entry * * directoryVFATEntries are found in the same list as normal directoryEntry. * But have the attribute field set to DIR_ATT_LONG_NAME. * * Long filenames are saved in multiple directoryVFATEntries. * Each entry containing 13 UTF-16 characters. */ struct directoryVFATEntry { /** * Sequence number. Consists of 2 parts: * bit 6: indicates first long filename block for the next file * bit 0-4: the position of this long filename block (first block is 1) */ uint8_t sequenceNumber; /** First set of UTF-16 characters */ uint16_t name1[5];//UTF-16 /** attributes (at the same location as in directoryEntry), always 0x0F */ uint8_t attributes; /** Reserved for use by Windows NT. Always 0. */ uint8_t reservedNT; /** Checksum of the short 8.3 filename, can be used to checked if the file system as modified by a not-long-filename aware implementation. */ uint8_t checksum; /** Second set of UTF-16 characters */ uint16_t name2[6];//UTF-16 /** firstClusterLow is always zero for longFilenames */ uint16_t firstClusterLow; /** Third set of UTF-16 characters */ uint16_t name3[2];//UTF-16 } PACKED; //your_sha256_hash-------------- // Definitions for directory entries // /** Type name for directoryEntry */ typedef struct directoryEntry dir_t; /** Type name for directoryVFATEntry */ typedef struct directoryVFATEntry vfat_t; /** escape for name[0] = 0XE5 */ uint8_t const DIR_NAME_0XE5 = 0X05; /** name[0] value for entry that is free after being "deleted" */ uint8_t const DIR_NAME_DELETED = 0XE5; /** name[0] value for entry that is free and no allocated entries follow */ uint8_t const DIR_NAME_FREE = 0X00; /** file is read-only */ uint8_t const DIR_ATT_READ_ONLY = 0X01; /** File should hidden in directory listings */ uint8_t const DIR_ATT_HIDDEN = 0X02; /** Entry is for a system file */ uint8_t const DIR_ATT_SYSTEM = 0X04; /** Directory entry contains the volume label */ uint8_t const DIR_ATT_VOLUME_ID = 0X08; /** Entry is for a directory */ uint8_t const DIR_ATT_DIRECTORY = 0X10; /** Old DOS archive bit for backup support */ uint8_t const DIR_ATT_ARCHIVE = 0X20; /** Test value for long name entry. Test is (d->attributes & DIR_ATT_LONG_NAME_MASK) == DIR_ATT_LONG_NAME. */ uint8_t const DIR_ATT_LONG_NAME = 0X0F; /** Test mask for long name entry */ uint8_t const DIR_ATT_LONG_NAME_MASK = 0X3F; /** defined attribute bits */ uint8_t const DIR_ATT_DEFINED_BITS = 0X3F; /** Directory entry is part of a long name * \param[in] dir Pointer to a directory entry. * * \return true if the entry is for part of a long name else false. */ static inline uint8_t DIR_IS_LONG_NAME(const dir_t* dir) { return (dir->attributes & DIR_ATT_LONG_NAME_MASK) == DIR_ATT_LONG_NAME; } /** Mask for file/subdirectory tests */ uint8_t const DIR_ATT_FILE_TYPE_MASK = (DIR_ATT_VOLUME_ID | DIR_ATT_DIRECTORY); /** Directory entry is for a file * \param[in] dir Pointer to a directory entry. * * \return true if the entry is for a normal file else false. */ static inline uint8_t DIR_IS_FILE(const dir_t* dir) { return (dir->attributes & DIR_ATT_FILE_TYPE_MASK) == 0; } /** Directory entry is for a subdirectory * \param[in] dir Pointer to a directory entry. * * \return true if the entry is for a subdirectory else false. */ static inline uint8_t DIR_IS_SUBDIR(const dir_t* dir) { return (dir->attributes & DIR_ATT_FILE_TYPE_MASK) == DIR_ATT_DIRECTORY; } /** Directory entry is for a file or subdirectory * \param[in] dir Pointer to a directory entry. * * \return true if the entry is for a normal file or subdirectory else false. */ static inline uint8_t DIR_IS_FILE_OR_SUBDIR(const dir_t* dir) { return (dir->attributes & DIR_ATT_VOLUME_ID) == 0; } #endif // SdFatStructs_h #endif ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/SdFatStructs.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
6,087
```objective-c #ifndef LANGUAGE_H #define LANGUAGE_H #define LANGUAGE_CONCAT(M) #M #define GENERATE_LANGUAGE_INCLUDE(M) LANGUAGE_CONCAT(language_##M.h) // NOTE: IF YOU CHANGE LANGUAGE FILES OR MERGE A FILE WITH CHANGES // // ==> ALWAYS TRY TO COMPILE MARLIN WITH/WITHOUT "ULTIPANEL" / "ULTRALCD" / "SDSUPPORT" #define IN "Configuration.h" // ==> ALSO TRY ALL AVAILABLE LANGUAGE OPTIONS // Languages // en English // pl Polish // fr French // de German // es Spanish // ru Russian // it Italian // pt Portuguese // fi Finnish // an Aragonese // nl Dutch // ca Catalan // eu Basque-Euskera #ifndef LANGUAGE_INCLUDE // pick your language from the list above #define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en) #endif #define PROTOCOL_VERSION "1.0" #if MB(ULTIMAKER)|| MB(ULTIMAKER_OLD)|| MB(ULTIMAIN_2) #define MACHINE_NAME "Ultimaker" #define FIRMWARE_URL "path_to_url" #elif MB(RUMBA) #define MACHINE_NAME "Rumba" #define FIRMWARE_URL "path_to_url" #elif MB(3DRAG) #define MACHINE_NAME "3Drag" #define FIRMWARE_URL "path_to_url" #elif MB(5DPRINT) #define MACHINE_NAME "Makibox" #define FIRMWARE_URL "path_to_url" #elif MB(SAV_MKI) #define MACHINE_NAME "SAV MkI" #define FIRMWARE_URL "path_to_url" #else #ifdef CUSTOM_MENDEL_NAME #define MACHINE_NAME CUSTOM_MENDEL_NAME #else #define MACHINE_NAME "Mendel" #endif // Default firmware set to Mendel #define FIRMWARE_URL "path_to_url" #endif #ifndef MACHINE_UUID #define MACHINE_UUID "00000000-0000-0000-0000-000000000000" #endif #define STRINGIFY_(n) #n #define STRINGIFY(n) STRINGIFY_(n) // Common LCD messages /* nothing here yet */ // Common serial messages #define MSG_MARLIN "Marlin" // Serial Console Messages (do not translate those!) #define MSG_Enqueing "enqueing \"" #define MSG_POWERUP "PowerUp" #define MSG_EXTERNAL_RESET " External Reset" #define MSG_BROWNOUT_RESET " Brown out Reset" #define MSG_WATCHDOG_RESET " Watchdog Reset" #define MSG_SOFTWARE_RESET " Software Reset" #define MSG_AUTHOR " | Author: " #define MSG_CONFIGURATION_VER " Last Updated: " #define MSG_FREE_MEMORY " Free Memory: " #define MSG_PLANNER_BUFFER_BYTES " PlannerBufferBytes: " #define MSG_OK "ok" #define MSG_FILE_SAVED "Done saving file." #define MSG_ERR_LINE_NO "Line Number is not Last Line Number+1, Last Line: " #define MSG_ERR_CHECKSUM_MISMATCH "checksum mismatch, Last Line: " #define MSG_ERR_NO_CHECKSUM "No Checksum with line number, Last Line: " #define MSG_ERR_NO_LINENUMBER_WITH_CHECKSUM "No Line Number with checksum, Last Line: " #define MSG_FILE_PRINTED "Done printing file" #define MSG_BEGIN_FILE_LIST "Begin file list" #define MSG_END_FILE_LIST "End file list" #define MSG_M104_INVALID_EXTRUDER "M104 Invalid extruder " #define MSG_M105_INVALID_EXTRUDER "M105 Invalid extruder " #define MSG_M200_INVALID_EXTRUDER "M200 Invalid extruder " #define MSG_M218_INVALID_EXTRUDER "M218 Invalid extruder " #define MSG_M221_INVALID_EXTRUDER "M221 Invalid extruder " #define MSG_ERR_NO_THERMISTORS "No thermistors - no temperature" #define MSG_M109_INVALID_EXTRUDER "M109 Invalid extruder " #define MSG_HEATING "Heating..." #define MSG_HEATING_COMPLETE "Heating done." #define MSG_BED_HEATING "Bed Heating." #define MSG_BED_DONE "Bed done." #define MSG_M115_REPORT "FIRMWARE_NAME:Marlin V1.0.2; Sprinter/grbl mashup for gen6 FIRMWARE_URL:" FIRMWARE_URL " PROTOCOL_VERSION:" PROTOCOL_VERSION " MACHINE_TYPE:" MACHINE_NAME " EXTRUDER_COUNT:" STRINGIFY(EXTRUDERS) " UUID:" MACHINE_UUID "\n" #define MSG_COUNT_X " Count X: " #define MSG_ERR_KILLED "Printer halted. kill() called!" #define MSG_ERR_STOPPED "Printer stopped due to errors. Fix the error and use M999 to restart. (Temperature is reset. Set it after restarting)" #define MSG_RESEND "Resend: " #define MSG_UNKNOWN_COMMAND "Unknown command: \"" #define MSG_ACTIVE_EXTRUDER "Active Extruder: " #define MSG_INVALID_EXTRUDER "Invalid extruder" #define MSG_X_MIN "x_min: " #define MSG_X_MAX "x_max: " #define MSG_Y_MIN "y_min: " #define MSG_Y_MAX "y_max: " #define MSG_Z_MIN "z_min: " #define MSG_Z_MAX "z_max: " #define MSG_M119_REPORT "Reporting endstop status" #define MSG_ENDSTOP_HIT "TRIGGERED" #define MSG_ENDSTOP_OPEN "open" #define MSG_HOTEND_OFFSET "Hotend offsets:" #define MSG_SD_CANT_OPEN_SUBDIR "Cannot open subdir" #define MSG_SD_INIT_FAIL "SD init fail" #define MSG_SD_VOL_INIT_FAIL "volume.init failed" #define MSG_SD_OPENROOT_FAIL "openRoot failed" #define MSG_SD_CARD_OK "SD card ok" #define MSG_SD_WORKDIR_FAIL "workDir open failed" #define MSG_SD_OPEN_FILE_FAIL "open failed, File: " #define MSG_SD_FILE_OPENED "File opened: " #define MSG_SD_SIZE " Size: " #define MSG_SD_FILE_SELECTED "File selected" #define MSG_SD_WRITE_TO_FILE "Writing to file: " #define MSG_SD_PRINTING_BYTE "SD printing byte " #define MSG_SD_NOT_PRINTING "Not SD printing" #define MSG_SD_ERR_WRITE_TO_FILE "error writing to file" #define MSG_SD_CANT_ENTER_SUBDIR "Cannot enter subdir: " #define MSG_STEPPER_TOO_HIGH "Steprate too high: " #define MSG_ENDSTOPS_HIT "endstops hit: " #define MSG_ERR_COLD_EXTRUDE_STOP " cold extrusion prevented" #define MSG_ERR_LONG_EXTRUDE_STOP " too long extrusion prevented" #define MSG_BABYSTEPPING_X "Babystepping X" #define MSG_BABYSTEPPING_Y "Babystepping Y" #define MSG_BABYSTEPPING_Z "Babystepping Z" #define MSG_SERIAL_ERROR_MENU_STRUCTURE "Error in menu structure" // LCD Menu Messages #include LANGUAGE_INCLUDE #endif //__LANGUAGE_H ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/language.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
1,505
```objective-c #ifndef CONFIGURATION_ADV_H #define CONFIGURATION_ADV_H //=========================================================================== //=============================Thermal Settings ============================ //=========================================================================== #ifdef BED_LIMIT_SWITCHING #define BED_HYSTERESIS 2 //only disable heating if T>target+BED_HYSTERESIS and enable heating if T>target-BED_HYSTERESIS #endif #define BED_CHECK_INTERVAL 5000 //ms between checks in bang-bang control //// Heating sanity check: // This waits for the watch period in milliseconds whenever an M104 or M109 increases the target temperature // If the temperature has not increased at the end of that period, the target temperature is set to zero. // It can be reset with another M104/M109. This check is also only triggered if the target temperature and the current temperature // differ by at least 2x WATCH_TEMP_INCREASE //#define WATCH_TEMP_PERIOD 40000 //40 seconds //#define WATCH_TEMP_INCREASE 10 //Heat up at least 10 degree in 20 seconds #ifdef PIDTEMP // this adds an experimental additional term to the heating power, proportional to the extrusion speed. // if Kc is chosen well, the additional required power due to increased melting should be compensated. #define PID_ADD_EXTRUSION_RATE #ifdef PID_ADD_EXTRUSION_RATE #define DEFAULT_Kc (1) //heating power=Kc*(e_speed) #endif #endif //automatic temperature: The hot end target temperature is calculated by all the buffered lines of gcode. //The maximum buffered steps/sec of the extruder motor are called "se". //You enter the autotemp mode by a M109 S<mintemp> B<maxtemp> F<factor> // the target temperature is set to mintemp+factor*se[steps/sec] and limited by mintemp and maxtemp // you exit the value by any M109 without F* // Also, if the temperature is set to a value <mintemp, it is not changed by autotemp. // on an Ultimaker, some initial testing worked with M109 S215 B260 F1 in the start.gcode #define AUTOTEMP #ifdef AUTOTEMP #define AUTOTEMP_OLDWEIGHT 0.98 #endif //Show Temperature ADC value //The M105 command return, besides traditional information, the ADC value read from temperature sensors. //#define SHOW_TEMP_ADC_VALUES // extruder run-out prevention. //if the machine is idle, and the temperature over MINTEMP, every couple of SECONDS some filament is extruded //#define EXTRUDER_RUNOUT_PREVENT #define EXTRUDER_RUNOUT_MINTEMP 190 #define EXTRUDER_RUNOUT_SECONDS 30. #define EXTRUDER_RUNOUT_ESTEPS 14. //mm filament #define EXTRUDER_RUNOUT_SPEED 1500. //extrusion speed #define EXTRUDER_RUNOUT_EXTRUDE 100 //These defines help to calibrate the AD595 sensor in case you get wrong temperature measurements. //The measured temperature is defined as "actualTemp = (measuredTemp * TEMP_SENSOR_AD595_GAIN) + TEMP_SENSOR_AD595_OFFSET" #define TEMP_SENSOR_AD595_OFFSET 0.0 #define TEMP_SENSOR_AD595_GAIN 1.0 //This is for controlling a fan to cool down the stepper drivers //it will turn on when any driver is enabled //and turn off after the set amount of seconds from last driver being disabled again #define CONTROLLERFAN_PIN -1 //Pin used for the fan to cool controller (-1 to disable) #define CONTROLLERFAN_SECS 60 //How many seconds, after all motors were disabled, the fan should run #define CONTROLLERFAN_SPEED 255 // == full speed // When first starting the main fan, run it at full speed for the // given number of milliseconds. This gets the fan spinning reliably // before setting a PWM value. (Does not work with software PWM for fan on Sanguinololu) //#define FAN_KICKSTART_TIME 100 // Extruder cooling fans // Configure fan pin outputs to automatically turn on/off when the associated // extruder temperature is above/below EXTRUDER_AUTO_FAN_TEMPERATURE. // Multiple extruders can be assigned to the same pin in which case // the fan will turn on when any selected extruder is above the threshold. #define EXTRUDER_0_AUTO_FAN_PIN -1 #define EXTRUDER_1_AUTO_FAN_PIN -1 #define EXTRUDER_2_AUTO_FAN_PIN -1 #define EXTRUDER_AUTO_FAN_TEMPERATURE 50 #define EXTRUDER_AUTO_FAN_SPEED 255 // == full speed //=========================================================================== //=============================Mechanical Settings=========================== //=========================================================================== #define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing //// AUTOSET LOCATIONS OF LIMIT SWITCHES //// Added by ZetaPhoenix 09-15-2012 #ifdef MANUAL_HOME_POSITIONS // Use manual limit switch locations #define X_HOME_POS MANUAL_X_HOME_POS #define Y_HOME_POS MANUAL_Y_HOME_POS #define Z_HOME_POS MANUAL_Z_HOME_POS #else //Set min/max homing switch positions based upon homing direction and min/max travel limits //X axis #if X_HOME_DIR == -1 #ifdef BED_CENTER_AT_0_0 #define X_HOME_POS X_MAX_LENGTH * -0.5 #else #define X_HOME_POS X_MIN_POS #endif //BED_CENTER_AT_0_0 #else #ifdef BED_CENTER_AT_0_0 #define X_HOME_POS X_MAX_LENGTH * 0.5 #else #define X_HOME_POS X_MAX_POS #endif //BED_CENTER_AT_0_0 #endif //X_HOME_DIR == -1 //Y axis #if Y_HOME_DIR == -1 #ifdef BED_CENTER_AT_0_0 #define Y_HOME_POS Y_MAX_LENGTH * -0.5 #else #define Y_HOME_POS Y_MIN_POS #endif //BED_CENTER_AT_0_0 #else #ifdef BED_CENTER_AT_0_0 #define Y_HOME_POS Y_MAX_LENGTH * 0.5 #else #define Y_HOME_POS Y_MAX_POS #endif //BED_CENTER_AT_0_0 #endif //Y_HOME_DIR == -1 // Z axis #if Z_HOME_DIR == -1 //BED_CENTER_AT_0_0 not used #define Z_HOME_POS Z_MIN_POS #else #define Z_HOME_POS Z_MAX_POS #endif //Z_HOME_DIR == -1 #endif //End auto min/max positions //END AUTOSET LOCATIONS OF LIMIT SWITCHES -ZP //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats. // A single Z stepper driver is usually used to drive 2 stepper motors. // Uncomment this define to utilize a separate stepper driver for each Z axis motor. // Only a few motherboards support this, like RAMPS, which have dual extruder support (the 2nd, often unused, extruder driver is used // to control the 2nd Z axis stepper motor). The pins are currently only defined for a RAMPS motherboards. // On a RAMPS (or other 5 driver) motherboard, using this feature will limit you to using 1 extruder. //#define Z_DUAL_STEPPER_DRIVERS #ifdef Z_DUAL_STEPPER_DRIVERS #undef EXTRUDERS #define EXTRUDERS 1 #endif // Same again but for Y Axis. //#define Y_DUAL_STEPPER_DRIVERS // Define if the two Y drives need to rotate in opposite directions #define INVERT_Y2_VS_Y_DIR true #ifdef Y_DUAL_STEPPER_DRIVERS #undef EXTRUDERS #define EXTRUDERS 1 #endif #if defined (Z_DUAL_STEPPER_DRIVERS) && defined (Y_DUAL_STEPPER_DRIVERS) #error "You cannot have dual drivers for both Y and Z" #endif // Enable this for dual x-carriage printers. // A dual x-carriage design has the advantage that the inactive extruder can be parked which // prevents hot-end ooze contaminating the print. It also reduces the weight of each x-carriage // allowing faster printing speeds. //#define DUAL_X_CARRIAGE #ifdef DUAL_X_CARRIAGE // Configuration for second X-carriage // Note: the first x-carriage is defined as the x-carriage which homes to the minimum endstop; // the second x-carriage always homes to the maximum endstop. #define X2_MIN_POS 80 // set minimum to ensure second x-carriage doesn't hit the parked first X-carriage #define X2_MAX_POS 353 // set maximum to the distance between toolheads when both heads are homed #define X2_HOME_DIR 1 // the second X-carriage always homes to the maximum endstop position #define X2_HOME_POS X2_MAX_POS // default home position is the maximum carriage position // However: In this mode the EXTRUDER_OFFSET_X value for the second extruder provides a software // override for X2_HOME_POS. This also allow recalibration of the distance between the two endstops // without modifying the firmware (through the "M218 T1 X???" command). // Remember: you should set the second extruder x-offset to 0 in your slicer. // Pins for second x-carriage stepper driver (defined here to avoid further complicating pins.h) #define X2_ENABLE_PIN 29 #define X2_STEP_PIN 25 #define X2_DIR_PIN 23 // There are a few selectable movement modes for dual x-carriages using M605 S<mode> // Mode 0: Full control. The slicer has full control over both x-carriages and can achieve optimal travel results // as long as it supports dual x-carriages. (M605 S0) // Mode 1: Auto-park mode. The firmware will automatically park and unpark the x-carriages on tool changes so // that additional slicer support is not required. (M605 S1) // Mode 2: Duplication mode. The firmware will transparently make the second x-carriage and extruder copy all // actions of the first x-carriage. This allows the printer to print 2 arbitrary items at // once. (2nd extruder x offset and temp offset are set using: M605 S2 [Xnnn] [Rmmm]) // This is the default power-up mode which can be later using M605. #define DEFAULT_DUAL_X_CARRIAGE_MODE 0 // As the x-carriages are independent we can now account for any relative Z offset #define EXTRUDER1_Z_OFFSET 0.0 // z offset relative to extruder 0 // Default settings in "Auto-park Mode" #define TOOLCHANGE_PARK_ZLIFT 0.2 // the distance to raise Z axis when parking an extruder #define TOOLCHANGE_UNPARK_ZLIFT 1 // the distance to raise Z axis when unparking an extruder // Default x offset in duplication mode (typically set to half print bed width) #define DEFAULT_DUPLICATION_X_OFFSET 100 #endif //DUAL_X_CARRIAGE //homing hits the endstop, then retracts by this distance, before it tries to slowly bump again: #define X_HOME_RETRACT_MM 5 #define Y_HOME_RETRACT_MM 5 #define Z_HOME_RETRACT_MM 2 //#define QUICK_HOME //if this is defined, if both x and y are to be homed, a diagonal move will be performed initially. #define AXIS_RELATIVE_MODES {false, false, false, false} #ifdef CONFIG_STEPPERS_TOSHIBA #define MAX_STEP_FREQUENCY 10000 // Max step frequency for Toshiba Stepper Controllers #else #define MAX_STEP_FREQUENCY 40000 // Max step frequency for Ultimaker (5000 pps / half step) #endif //By default pololu step drivers require an active high signal. However, some high power drivers require an active low signal as step. #define INVERT_X_STEP_PIN false #define INVERT_Y_STEP_PIN false #define INVERT_Z_STEP_PIN false #define INVERT_E_STEP_PIN false //default stepper release if idle #define DEFAULT_STEPPER_DEACTIVE_TIME 0 #define DEFAULT_MINIMUMFEEDRATE 0.0 // minimum feedrate #define DEFAULT_MINTRAVELFEEDRATE 0.0 // Feedrates for manual moves along X, Y, Z, E from panel #ifdef ULTIPANEL #define MANUAL_FEEDRATE {50*60, 50*60, 4*60, 60} // set the speeds for manual moves (mm/min) #endif //Comment to disable setting feedrate multiplier via encoder #ifdef ULTIPANEL #define ULTIPANEL_FEEDMULTIPLY #endif // minimum time in microseconds that a movement needs to take if the buffer is emptied. #define DEFAULT_MINSEGMENTTIME 20000 // If defined the movements slow down when the look ahead buffer is only half full #define SLOWDOWN // Frequency limit // See nophead's blog for more info // Not working O //#define XY_FREQUENCY_LIMIT 15 // Minimum planner junction speed. Sets the default minimum speed the planner plans for at the end // of the buffer and all stops. This should not be much greater than zero and should only be changed // if unwanted behavior is observed on a user's machine when running at very slow speeds. #define MINIMUM_PLANNER_SPEED 0.05// (mm/sec) // MS1 MS2 Stepper Driver Microstepping mode table #define MICROSTEP1 LOW,LOW #define MICROSTEP2 HIGH,LOW #define MICROSTEP4 LOW,HIGH #define MICROSTEP8 HIGH,HIGH #define MICROSTEP16 HIGH,HIGH // Microstep setting (Only functional when stepper driver microstep pins are connected to MCU. #define MICROSTEP_MODES {16,16,16,16,16} // [1,2,4,8,16] // Motor Current setting (Only functional when motor driver current ref pins are connected to a digital trimpot on supported boards) #define DIGIPOT_MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A) // uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro //#define DIGIPOT_I2C // Number of channels available for I2C digipot, For Azteeg X3 Pro we have 8 #define DIGIPOT_I2C_NUM_CHANNELS 8 // actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS #define DIGIPOT_I2C_MOTOR_CURRENTS {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0} //=========================================================================== //=============================Additional Features=========================== //=========================================================================== //#define CHDK 4 //Pin for triggering CHDK to take a picture see how to use it here path_to_url #define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again #define SD_FINISHED_STEPPERRELEASE true //if sd support and the file is finished: disable steppers? #define SD_FINISHED_RELEASECOMMAND "M84 X Y Z E" // You might want to keep the z enabled so your bed stays in place. #define SDCARD_RATHERRECENTFIRST //reverse file order of sd card menu display. Its sorted practically after the file system block order. // if a file is deleted, it frees a block. hence, the order is not purely chronological. To still have auto0.g accessible, there is again the option to do that. // using: //#define MENU_ADDAUTOSTART // Show a progress bar on the LCD when printing from SD? //#define LCD_PROGRESS_BAR #ifdef LCD_PROGRESS_BAR // Amount of time (ms) to show the bar #define PROGRESS_BAR_BAR_TIME 2000 // Amount of time (ms) to show the status message #define PROGRESS_BAR_MSG_TIME 3000 // Amount of time (ms) to retain the status message (0=forever) #define PROGRESS_MSG_EXPIRE 0 // Enable this to show messages for MSG_TIME then hide them //#define PROGRESS_MSG_ONCE #endif // The hardware watchdog should reset the microcontroller disabling all outputs, in case the firmware gets stuck and doesn't do temperature regulation. #define USE_WATCHDOG #ifdef USE_WATCHDOG // If you have a watchdog reboot in an ArduinoMega2560 then the device will hang forever, as a watchdog reset will leave the watchdog on. // The "WATCHDOG_RESET_MANUAL" goes around this by not using the hardware reset. // However, THIS FEATURE IS UNSAFE!, as it will only work if interrupts are disabled. And the code could hang in an interrupt routine with interrupts disabled. //#define WATCHDOG_RESET_MANUAL #endif // Enable the option to stop SD printing when hitting and endstops, needs to be enabled from the LCD menu when this option is enabled. //#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED // Babystepping enables the user to control the axis in tiny amounts, independently from the normal printing process // it can e.g. be used to change z-positions in the print startup phase in real-time // does not respect endstops! //#define BABYSTEPPING #ifdef BABYSTEPPING #define BABYSTEP_XY //not only z, but also XY in the menu. more clutter, more functions #define BABYSTEP_INVERT_Z false //true for inverse movements in Z #define BABYSTEP_Z_MULTIPLICATOR 2 //faster z movements #ifdef COREXY #error BABYSTEPPING not implemented for COREXY yet. #endif #ifdef DELTA #ifdef BABYSTEP_XY #error BABYSTEPPING only implemented for Z axis on deltabots. #endif #endif #endif // extruder advance constant (s2/mm3) // // advance (steps) = STEPS_PER_CUBIC_MM_E * EXTRUDER_ADVANCE_K * cubic mm per second ^ 2 // // Hooke's law says: force = k * distance // Bernoulli's principle says: v ^ 2 / 2 + g . h + pressure / density = constant // so: v ^ 2 is proportional to number of steps we advance the extruder //#define ADVANCE #ifdef ADVANCE #define EXTRUDER_ADVANCE_K .0 #define D_FILAMENT 2.85 #define STEPS_MM_E 836 #define EXTRUSION_AREA (0.25 * D_FILAMENT * D_FILAMENT * 3.14159) #define STEPS_PER_CUBIC_MM_E (axis_steps_per_unit[E_AXIS]/ EXTRUSION_AREA) #endif // ADVANCE // Arc interpretation settings: #define MM_PER_ARC_SEGMENT 1 #define N_ARC_CORRECTION 25 const unsigned int dropsegments=5; //everything with less than this number of steps will be ignored as move and joined with the next movement // If you are using a RAMPS board or cheap E-bay purchased boards that do not detect when an SD card is inserted // You can get round this by connecting a push button or single throw switch to the pin defined as SDCARDCARDDETECT // in the pins.h file. When using a push button pulling the pin to ground this will need inverted. This setting should // be commented out otherwise #define SDCARDDETECTINVERTED #ifdef ULTIPANEL #undef SDCARDDETECTINVERTED #endif // Power Signal Control Definitions // By default use ATX definition #ifndef POWER_SUPPLY #define POWER_SUPPLY 1 #endif // 1 = ATX #if (POWER_SUPPLY == 1) #define PS_ON_AWAKE LOW #define PS_ON_ASLEEP HIGH #endif // 2 = X-Box 360 203W #if (POWER_SUPPLY == 2) #define PS_ON_AWAKE HIGH #define PS_ON_ASLEEP LOW #endif // Control heater 0 and heater 1 in parallel. //#define HEATERS_PARALLEL //=========================================================================== //=============================Buffers ============================ //=========================================================================== // The number of linear motions that can be in the plan at any give time. // THE BLOCK_BUFFER_SIZE NEEDS TO BE A POWER OF 2, i.g. 8,16,32 because shifts and ors are used to do the ring-buffering. #if defined SDSUPPORT #define BLOCK_BUFFER_SIZE 16 // SD,LCD,Buttons take more memory, block buffer needs to be smaller #else #define BLOCK_BUFFER_SIZE 16 // maximize block buffer #endif //The ASCII buffer for receiving from the serial: #define MAX_CMD_SIZE 96 #define BUFSIZE 4 // Firmware based and LCD controlled retract // M207 and M208 can be used to define parameters for the retraction. // The retraction can be called by the slicer using G10 and G11 // until then, intended retractions can be detected by moves that only extrude and the direction. // the moves are than replaced by the firmware controlled ones. // #define FWRETRACT //ONLY PARTIALLY TESTED #ifdef FWRETRACT #define MIN_RETRACT 0.1 //minimum extruded mm to accept a automatic gcode retraction attempt #define RETRACT_LENGTH 3 //default retract length (positive mm) #define RETRACT_LENGTH_SWAP 13 //default swap retract length (positive mm), for extruder change #define RETRACT_FEEDRATE 45 //default feedrate for retracting (mm/s) #define RETRACT_ZLIFT 0 //default retract Z-lift #define RETRACT_RECOVER_LENGTH 0 //default additional recover length (mm, added to retract length when recovering) #define RETRACT_RECOVER_LENGTH_SWAP 0 //default additional swap recover length (mm, added to retract length when recovering from extruder change) #define RETRACT_RECOVER_FEEDRATE 8 //default feedrate for recovering from retraction (mm/s) #endif //adds support for experimental filament exchange support M600; requires display #ifdef ULTIPANEL #define FILAMENTCHANGEENABLE #ifdef FILAMENTCHANGEENABLE #define FILAMENTCHANGE_XPOS 3 #define FILAMENTCHANGE_YPOS 3 #define FILAMENTCHANGE_ZADD 10 #define FILAMENTCHANGE_FIRSTRETRACT -2 #define FILAMENTCHANGE_FINALRETRACT -100 #endif #endif #ifdef FILAMENTCHANGEENABLE #ifdef EXTRUDER_RUNOUT_PREVENT #error EXTRUDER_RUNOUT_PREVENT currently incompatible with FILAMENTCHANGE #endif #endif //=========================================================================== //============================= Define Defines ============================ //=========================================================================== #if defined (ENABLE_AUTO_BED_LEVELING) && defined (DELTA) #error "Bed Auto Leveling is still not compatible with Delta Kinematics." #endif #if EXTRUDERS > 1 && defined TEMP_SENSOR_1_AS_REDUNDANT #error "You cannot use TEMP_SENSOR_1_AS_REDUNDANT if EXTRUDERS > 1" #endif #if EXTRUDERS > 1 && defined HEATERS_PARALLEL #error "You cannot use HEATERS_PARALLEL if EXTRUDERS > 1" #endif #if TEMP_SENSOR_0 > 0 #define THERMISTORHEATER_0 TEMP_SENSOR_0 #define HEATER_0_USES_THERMISTOR #endif #if TEMP_SENSOR_1 > 0 #define THERMISTORHEATER_1 TEMP_SENSOR_1 #define HEATER_1_USES_THERMISTOR #endif #if TEMP_SENSOR_2 > 0 #define THERMISTORHEATER_2 TEMP_SENSOR_2 #define HEATER_2_USES_THERMISTOR #endif #if TEMP_SENSOR_BED > 0 #define THERMISTORBED TEMP_SENSOR_BED #define BED_USES_THERMISTOR #endif #if TEMP_SENSOR_0 == -1 #define HEATER_0_USES_AD595 #endif #if TEMP_SENSOR_1 == -1 #define HEATER_1_USES_AD595 #endif #if TEMP_SENSOR_2 == -1 #define HEATER_2_USES_AD595 #endif #if TEMP_SENSOR_BED == -1 #define BED_USES_AD595 #endif #if TEMP_SENSOR_0 == -2 #define HEATER_0_USES_MAX6675 #endif #if TEMP_SENSOR_0 == 0 #undef HEATER_0_MINTEMP #undef HEATER_0_MAXTEMP #endif #if TEMP_SENSOR_1 == 0 #undef HEATER_1_MINTEMP #undef HEATER_1_MAXTEMP #endif #if TEMP_SENSOR_2 == 0 #undef HEATER_2_MINTEMP #undef HEATER_2_MAXTEMP #endif #if TEMP_SENSOR_BED == 0 #undef BED_MINTEMP #undef BED_MAXTEMP #endif #endif //__CONFIGURATION_ADV_H ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/Configuration_adv.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
5,600
```c++ #include "Marlin.h" #include "planner.h" #include "temperature.h" #include "ultralcd.h" #include "ConfigurationStore.h" void _EEPROM_writeData(int &pos, uint8_t* value, uint8_t size) { do { eeprom_write_byte((unsigned char*)pos, *value); pos++; value++; }while(--size); } #define EEPROM_WRITE_VAR(pos, value) _EEPROM_writeData(pos, (uint8_t*)&value, sizeof(value)) void _EEPROM_readData(int &pos, uint8_t* value, uint8_t size) { do { *value = eeprom_read_byte((unsigned char*)pos); pos++; value++; }while(--size); } #define EEPROM_READ_VAR(pos, value) _EEPROM_readData(pos, (uint8_t*)&value, sizeof(value)) //====================================================================================== #define EEPROM_OFFSET 100 // IMPORTANT: Whenever there are changes made to the variables stored in EEPROM // in the functions below, also increment the version number. This makes sure that // the default values are used whenever there is a change to the data, to prevent // wrong data being written to the variables. // ALSO: always make sure the variables in the Store and retrieve sections are in the same order. #define EEPROM_VERSION "V13" #ifdef EEPROM_SETTINGS void Config_StoreSettings() { char ver[4]= "000"; int i=EEPROM_OFFSET; EEPROM_WRITE_VAR(i,ver); // invalidate data first EEPROM_WRITE_VAR(i,axis_steps_per_unit); EEPROM_WRITE_VAR(i,max_feedrate); EEPROM_WRITE_VAR(i,max_acceleration_units_per_sq_second); EEPROM_WRITE_VAR(i,acceleration); EEPROM_WRITE_VAR(i,retract_acceleration); EEPROM_WRITE_VAR(i,minimumfeedrate); EEPROM_WRITE_VAR(i,mintravelfeedrate); EEPROM_WRITE_VAR(i,minsegmenttime); EEPROM_WRITE_VAR(i,max_xy_jerk); EEPROM_WRITE_VAR(i,max_z_jerk); EEPROM_WRITE_VAR(i,max_e_jerk); EEPROM_WRITE_VAR(i,add_homing); #ifdef DELTA EEPROM_WRITE_VAR(i,endstop_adj); EEPROM_WRITE_VAR(i,delta_radius); EEPROM_WRITE_VAR(i,delta_diagonal_rod); EEPROM_WRITE_VAR(i,delta_segments_per_second); #endif #ifndef ULTIPANEL int plaPreheatHotendTemp = PLA_PREHEAT_HOTEND_TEMP, plaPreheatHPBTemp = PLA_PREHEAT_HPB_TEMP, plaPreheatFanSpeed = PLA_PREHEAT_FAN_SPEED; int absPreheatHotendTemp = ABS_PREHEAT_HOTEND_TEMP, absPreheatHPBTemp = ABS_PREHEAT_HPB_TEMP, absPreheatFanSpeed = ABS_PREHEAT_FAN_SPEED; #endif EEPROM_WRITE_VAR(i,plaPreheatHotendTemp); EEPROM_WRITE_VAR(i,plaPreheatHPBTemp); EEPROM_WRITE_VAR(i,plaPreheatFanSpeed); EEPROM_WRITE_VAR(i,absPreheatHotendTemp); EEPROM_WRITE_VAR(i,absPreheatHPBTemp); EEPROM_WRITE_VAR(i,absPreheatFanSpeed); EEPROM_WRITE_VAR(i,zprobe_zoffset); #ifdef PIDTEMP EEPROM_WRITE_VAR(i,Kp); EEPROM_WRITE_VAR(i,Ki); EEPROM_WRITE_VAR(i,Kd); #else float dummy = 3000.0f; EEPROM_WRITE_VAR(i,dummy); dummy = 0.0f; EEPROM_WRITE_VAR(i,dummy); EEPROM_WRITE_VAR(i,dummy); #endif #ifndef DOGLCD int lcd_contrast = 32; #endif EEPROM_WRITE_VAR(i,lcd_contrast); #ifdef SCARA EEPROM_WRITE_VAR(i,axis_scaling); // Add scaling for SCARA #endif #ifdef FWRETRACT EEPROM_WRITE_VAR(i,autoretract_enabled); EEPROM_WRITE_VAR(i,retract_length); #if EXTRUDERS > 1 EEPROM_WRITE_VAR(i,retract_length_swap); #endif EEPROM_WRITE_VAR(i,retract_feedrate); EEPROM_WRITE_VAR(i,retract_zlift); EEPROM_WRITE_VAR(i,retract_recover_length); #if EXTRUDERS > 1 EEPROM_WRITE_VAR(i,retract_recover_length_swap); #endif EEPROM_WRITE_VAR(i,retract_recover_feedrate); #endif // Save filament sizes EEPROM_WRITE_VAR(i, volumetric_enabled); EEPROM_WRITE_VAR(i, filament_size[0]); #if EXTRUDERS > 1 EEPROM_WRITE_VAR(i, filament_size[1]); #if EXTRUDERS > 2 EEPROM_WRITE_VAR(i, filament_size[2]); #endif #endif char ver2[4]=EEPROM_VERSION; i=EEPROM_OFFSET; EEPROM_WRITE_VAR(i,ver2); // validate data SERIAL_ECHO_START; SERIAL_ECHOLNPGM("Settings Stored"); } #endif //EEPROM_SETTINGS #ifndef DISABLE_M503 void Config_PrintSettings() { // Always have this function, even with EEPROM_SETTINGS disabled, the current values will be shown SERIAL_ECHO_START; SERIAL_ECHOLNPGM("Steps per unit:"); SERIAL_ECHO_START; SERIAL_ECHOPAIR(" M92 X",axis_steps_per_unit[X_AXIS]); SERIAL_ECHOPAIR(" Y",axis_steps_per_unit[Y_AXIS]); SERIAL_ECHOPAIR(" Z",axis_steps_per_unit[Z_AXIS]); SERIAL_ECHOPAIR(" E",axis_steps_per_unit[E_AXIS]); SERIAL_ECHOLN(""); SERIAL_ECHO_START; #ifdef SCARA SERIAL_ECHOLNPGM("Scaling factors:"); SERIAL_ECHO_START; SERIAL_ECHOPAIR(" M365 X",axis_scaling[X_AXIS]); SERIAL_ECHOPAIR(" Y",axis_scaling[Y_AXIS]); SERIAL_ECHOPAIR(" Z",axis_scaling[Z_AXIS]); SERIAL_ECHOLN(""); SERIAL_ECHO_START; #endif SERIAL_ECHOLNPGM("Maximum feedrates (mm/s):"); SERIAL_ECHO_START; SERIAL_ECHOPAIR(" M203 X", max_feedrate[X_AXIS]); SERIAL_ECHOPAIR(" Y", max_feedrate[Y_AXIS]); SERIAL_ECHOPAIR(" Z", max_feedrate[Z_AXIS]); SERIAL_ECHOPAIR(" E", max_feedrate[E_AXIS]); SERIAL_ECHOLN(""); SERIAL_ECHO_START; SERIAL_ECHOLNPGM("Maximum Acceleration (mm/s2):"); SERIAL_ECHO_START; SERIAL_ECHOPAIR(" M201 X" ,max_acceleration_units_per_sq_second[X_AXIS] ); SERIAL_ECHOPAIR(" Y" , max_acceleration_units_per_sq_second[Y_AXIS] ); SERIAL_ECHOPAIR(" Z" ,max_acceleration_units_per_sq_second[Z_AXIS] ); SERIAL_ECHOPAIR(" E" ,max_acceleration_units_per_sq_second[E_AXIS]); SERIAL_ECHOLN(""); SERIAL_ECHO_START; SERIAL_ECHOLNPGM("Acceleration: S=acceleration, T=retract acceleration"); SERIAL_ECHO_START; SERIAL_ECHOPAIR(" M204 S",acceleration ); SERIAL_ECHOPAIR(" T" ,retract_acceleration); SERIAL_ECHOLN(""); SERIAL_ECHO_START; SERIAL_ECHOLNPGM("Advanced variables: S=Min feedrate (mm/s), T=Min travel feedrate (mm/s), B=minimum segment time (ms), X=maximum XY jerk (mm/s), Z=maximum Z jerk (mm/s), E=maximum E jerk (mm/s)"); SERIAL_ECHO_START; SERIAL_ECHOPAIR(" M205 S",minimumfeedrate ); SERIAL_ECHOPAIR(" T" ,mintravelfeedrate ); SERIAL_ECHOPAIR(" B" ,minsegmenttime ); SERIAL_ECHOPAIR(" X" ,max_xy_jerk ); SERIAL_ECHOPAIR(" Z" ,max_z_jerk); SERIAL_ECHOPAIR(" E" ,max_e_jerk); SERIAL_ECHOLN(""); SERIAL_ECHO_START; SERIAL_ECHOLNPGM("Home offset (mm):"); SERIAL_ECHO_START; SERIAL_ECHOPAIR(" M206 X",add_homing[X_AXIS] ); SERIAL_ECHOPAIR(" Y" ,add_homing[Y_AXIS] ); SERIAL_ECHOPAIR(" Z" ,add_homing[Z_AXIS] ); SERIAL_ECHOLN(""); #ifdef DELTA SERIAL_ECHO_START; SERIAL_ECHOLNPGM("Endstop adjustement (mm):"); SERIAL_ECHO_START; SERIAL_ECHOPAIR(" M666 X",endstop_adj[X_AXIS] ); SERIAL_ECHOPAIR(" Y" ,endstop_adj[Y_AXIS] ); SERIAL_ECHOPAIR(" Z" ,endstop_adj[Z_AXIS] ); SERIAL_ECHOLN(""); SERIAL_ECHO_START; SERIAL_ECHOLNPGM("Delta settings: L=delta_diagonal_rod, R=delta_radius, S=delta_segments_per_second"); SERIAL_ECHO_START; SERIAL_ECHOPAIR(" M665 L",delta_diagonal_rod ); SERIAL_ECHOPAIR(" R" ,delta_radius ); SERIAL_ECHOPAIR(" S" ,delta_segments_per_second ); SERIAL_ECHOLN(""); #endif #ifdef PIDTEMP SERIAL_ECHO_START; SERIAL_ECHOLNPGM("PID settings:"); SERIAL_ECHO_START; SERIAL_ECHOPAIR(" M301 P",Kp); SERIAL_ECHOPAIR(" I" ,unscalePID_i(Ki)); SERIAL_ECHOPAIR(" D" ,unscalePID_d(Kd)); SERIAL_ECHOLN(""); #endif #ifdef FWRETRACT SERIAL_ECHO_START; SERIAL_ECHOLNPGM("Retract: S=Length (mm) F:Speed (mm/m) Z: ZLift (mm)"); SERIAL_ECHO_START; SERIAL_ECHOPAIR(" M207 S",retract_length); SERIAL_ECHOPAIR(" F" ,retract_feedrate*60); SERIAL_ECHOPAIR(" Z" ,retract_zlift); SERIAL_ECHOLN(""); SERIAL_ECHO_START; SERIAL_ECHOLNPGM("Recover: S=Extra length (mm) F:Speed (mm/m)"); SERIAL_ECHO_START; SERIAL_ECHOPAIR(" M208 S",retract_recover_length); SERIAL_ECHOPAIR(" F", retract_recover_feedrate*60); SERIAL_ECHOLN(""); SERIAL_ECHO_START; SERIAL_ECHOLNPGM("Auto-Retract: S=0 to disable, 1 to interpret extrude-only moves as retracts or recoveries"); SERIAL_ECHO_START; SERIAL_ECHOPAIR(" M209 S", (unsigned long)(autoretract_enabled ? 1 : 0)); SERIAL_ECHOLN(""); #if EXTRUDERS > 1 SERIAL_ECHO_START; SERIAL_ECHOLNPGM("Multi-extruder settings:"); SERIAL_ECHO_START; SERIAL_ECHOPAIR(" Swap retract length (mm): ", retract_length_swap); SERIAL_ECHOLN(""); SERIAL_ECHO_START; SERIAL_ECHOPAIR(" Swap rec. addl. length (mm): ", retract_recover_length_swap); SERIAL_ECHOLN(""); #endif SERIAL_ECHO_START; if (volumetric_enabled) { SERIAL_ECHOLNPGM("Filament settings:"); SERIAL_ECHO_START; SERIAL_ECHOPAIR(" M200 D", filament_size[0]); SERIAL_ECHOLN(""); #if EXTRUDERS > 1 SERIAL_ECHO_START; SERIAL_ECHOPAIR(" M200 T1 D", filament_size[1]); SERIAL_ECHOLN(""); #if EXTRUDERS > 2 SERIAL_ECHO_START; SERIAL_ECHOPAIR(" M200 T2 D", filament_size[2]); SERIAL_ECHOLN(""); #endif #endif } else { SERIAL_ECHOLNPGM("Filament settings: Disabled"); } #endif } #endif #ifdef EEPROM_SETTINGS void Config_RetrieveSettings() { int i=EEPROM_OFFSET; char stored_ver[4]; char ver[4]=EEPROM_VERSION; EEPROM_READ_VAR(i,stored_ver); //read stored version // SERIAL_ECHOLN("Version: [" << ver << "] Stored version: [" << stored_ver << "]"); if (strncmp(ver,stored_ver,3) == 0) { // version number match EEPROM_READ_VAR(i,axis_steps_per_unit); EEPROM_READ_VAR(i,max_feedrate); EEPROM_READ_VAR(i,max_acceleration_units_per_sq_second); // steps per sq second need to be updated to agree with the units per sq second (as they are what is used in the planner) reset_acceleration_rates(); EEPROM_READ_VAR(i,acceleration); EEPROM_READ_VAR(i,retract_acceleration); EEPROM_READ_VAR(i,minimumfeedrate); EEPROM_READ_VAR(i,mintravelfeedrate); EEPROM_READ_VAR(i,minsegmenttime); EEPROM_READ_VAR(i,max_xy_jerk); EEPROM_READ_VAR(i,max_z_jerk); EEPROM_READ_VAR(i,max_e_jerk); EEPROM_READ_VAR(i,add_homing); #ifdef DELTA EEPROM_READ_VAR(i,endstop_adj); EEPROM_READ_VAR(i,delta_radius); EEPROM_READ_VAR(i,delta_diagonal_rod); EEPROM_READ_VAR(i,delta_segments_per_second); #endif #ifndef ULTIPANEL int plaPreheatHotendTemp, plaPreheatHPBTemp, plaPreheatFanSpeed; int absPreheatHotendTemp, absPreheatHPBTemp, absPreheatFanSpeed; #endif EEPROM_READ_VAR(i,plaPreheatHotendTemp); EEPROM_READ_VAR(i,plaPreheatHPBTemp); EEPROM_READ_VAR(i,plaPreheatFanSpeed); EEPROM_READ_VAR(i,absPreheatHotendTemp); EEPROM_READ_VAR(i,absPreheatHPBTemp); EEPROM_READ_VAR(i,absPreheatFanSpeed); EEPROM_READ_VAR(i,zprobe_zoffset); #ifndef PIDTEMP float Kp,Ki,Kd; #endif // do not need to scale PID values as the values in EEPROM are already scaled EEPROM_READ_VAR(i,Kp); EEPROM_READ_VAR(i,Ki); EEPROM_READ_VAR(i,Kd); #ifndef DOGLCD int lcd_contrast; #endif EEPROM_READ_VAR(i,lcd_contrast); #ifdef SCARA EEPROM_READ_VAR(i,axis_scaling); #endif #ifdef FWRETRACT EEPROM_READ_VAR(i,autoretract_enabled); EEPROM_READ_VAR(i,retract_length); #if EXTRUDERS > 1 EEPROM_READ_VAR(i,retract_length_swap); #endif EEPROM_READ_VAR(i,retract_feedrate); EEPROM_READ_VAR(i,retract_zlift); EEPROM_READ_VAR(i,retract_recover_length); #if EXTRUDERS > 1 EEPROM_READ_VAR(i,retract_recover_length_swap); #endif EEPROM_READ_VAR(i,retract_recover_feedrate); #endif EEPROM_READ_VAR(i, volumetric_enabled); EEPROM_READ_VAR(i, filament_size[0]); #if EXTRUDERS > 1 EEPROM_READ_VAR(i, filament_size[1]); #if EXTRUDERS > 2 EEPROM_READ_VAR(i, filament_size[2]); #endif #endif calculate_volumetric_multipliers(); // Call updatePID (similar to when we have processed M301) updatePID(); SERIAL_ECHO_START; SERIAL_ECHOLNPGM("Stored settings retrieved"); } else { Config_ResetDefault(); } #ifdef EEPROM_CHITCHAT Config_PrintSettings(); #endif } #endif void Config_ResetDefault() { float tmp1[]=DEFAULT_AXIS_STEPS_PER_UNIT; float tmp2[]=DEFAULT_MAX_FEEDRATE; long tmp3[]=DEFAULT_MAX_ACCELERATION; for (short i=0;i<4;i++) { axis_steps_per_unit[i]=tmp1[i]; max_feedrate[i]=tmp2[i]; max_acceleration_units_per_sq_second[i]=tmp3[i]; #ifdef SCARA axis_scaling[i]=1; #endif } // steps per sq second need to be updated to agree with the units per sq second reset_acceleration_rates(); acceleration=DEFAULT_ACCELERATION; retract_acceleration=DEFAULT_RETRACT_ACCELERATION; minimumfeedrate=DEFAULT_MINIMUMFEEDRATE; minsegmenttime=DEFAULT_MINSEGMENTTIME; mintravelfeedrate=DEFAULT_MINTRAVELFEEDRATE; max_xy_jerk=DEFAULT_XYJERK; max_z_jerk=DEFAULT_ZJERK; max_e_jerk=DEFAULT_EJERK; add_homing[X_AXIS] = add_homing[Y_AXIS] = add_homing[Z_AXIS] = 0; #ifdef DELTA endstop_adj[X_AXIS] = endstop_adj[Y_AXIS] = endstop_adj[Z_AXIS] = 0; delta_radius= DELTA_RADIUS; delta_diagonal_rod= DELTA_DIAGONAL_ROD; delta_segments_per_second= DELTA_SEGMENTS_PER_SECOND; recalc_delta_settings(delta_radius, delta_diagonal_rod); #endif #ifdef ULTIPANEL plaPreheatHotendTemp = PLA_PREHEAT_HOTEND_TEMP; plaPreheatHPBTemp = PLA_PREHEAT_HPB_TEMP; plaPreheatFanSpeed = PLA_PREHEAT_FAN_SPEED; absPreheatHotendTemp = ABS_PREHEAT_HOTEND_TEMP; absPreheatHPBTemp = ABS_PREHEAT_HPB_TEMP; absPreheatFanSpeed = ABS_PREHEAT_FAN_SPEED; #endif #ifdef ENABLE_AUTO_BED_LEVELING zprobe_zoffset = -Z_PROBE_OFFSET_FROM_EXTRUDER; #endif #ifdef DOGLCD lcd_contrast = DEFAULT_LCD_CONTRAST; #endif #ifdef PIDTEMP Kp = DEFAULT_Kp; Ki = scalePID_i(DEFAULT_Ki); Kd = scalePID_d(DEFAULT_Kd); // call updatePID (similar to when we have processed M301) updatePID(); #ifdef PID_ADD_EXTRUSION_RATE Kc = DEFAULT_Kc; #endif//PID_ADD_EXTRUSION_RATE #endif//PIDTEMP #ifdef FWRETRACT autoretract_enabled = false; retract_length = RETRACT_LENGTH; #if EXTRUDERS > 1 retract_length_swap = RETRACT_LENGTH_SWAP; #endif retract_feedrate = RETRACT_FEEDRATE; retract_zlift = RETRACT_ZLIFT; retract_recover_length = RETRACT_RECOVER_LENGTH; #if EXTRUDERS > 1 retract_recover_length_swap = RETRACT_RECOVER_LENGTH_SWAP; #endif retract_recover_feedrate = RETRACT_RECOVER_FEEDRATE; #endif volumetric_enabled = false; filament_size[0] = DEFAULT_NOMINAL_FILAMENT_DIA; #if EXTRUDERS > 1 filament_size[1] = DEFAULT_NOMINAL_FILAMENT_DIA; #if EXTRUDERS > 2 filament_size[2] = DEFAULT_NOMINAL_FILAMENT_DIA; #endif #endif calculate_volumetric_multipliers(); SERIAL_ECHO_START; SERIAL_ECHOLNPGM("Hardcoded Default Settings Loaded"); } ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/ConfigurationStore.cpp
c++
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
4,378
```objective-c /* stepper.h - stepper motor driver: executes motion plans of planner.c using the stepper motors Part of Grbl Grbl is free software: you can redistribute it and/or modify (at your option) any later version. Grbl is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the along with Grbl. If not, see <path_to_url */ #ifndef stepper_h #define stepper_h #include "planner.h" #if EXTRUDERS > 2 #define WRITE_E_STEP(v) { if(current_block->active_extruder == 2) { WRITE(E2_STEP_PIN, v); } else { if(current_block->active_extruder == 1) { WRITE(E1_STEP_PIN, v); } else { WRITE(E0_STEP_PIN, v); }}} #define NORM_E_DIR() { if(current_block->active_extruder == 2) { WRITE(E2_DIR_PIN, !INVERT_E2_DIR); } else { if(current_block->active_extruder == 1) { WRITE(E1_DIR_PIN, !INVERT_E1_DIR); } else { WRITE(E0_DIR_PIN, !INVERT_E0_DIR); }}} #define REV_E_DIR() { if(current_block->active_extruder == 2) { WRITE(E2_DIR_PIN, INVERT_E2_DIR); } else { if(current_block->active_extruder == 1) { WRITE(E1_DIR_PIN, INVERT_E1_DIR); } else { WRITE(E0_DIR_PIN, INVERT_E0_DIR); }}} #elif EXTRUDERS > 1 #ifndef DUAL_X_CARRIAGE #define WRITE_E_STEP(v) { if(current_block->active_extruder == 1) { WRITE(E1_STEP_PIN, v); } else { WRITE(E0_STEP_PIN, v); }} #define NORM_E_DIR() { if(current_block->active_extruder == 1) { WRITE(E1_DIR_PIN, !INVERT_E1_DIR); } else { WRITE(E0_DIR_PIN, !INVERT_E0_DIR); }} #define REV_E_DIR() { if(current_block->active_extruder == 1) { WRITE(E1_DIR_PIN, INVERT_E1_DIR); } else { WRITE(E0_DIR_PIN, INVERT_E0_DIR); }} #else extern bool extruder_duplication_enabled; #define WRITE_E_STEP(v) { if(extruder_duplication_enabled) { WRITE(E0_STEP_PIN, v); WRITE(E1_STEP_PIN, v); } else if(current_block->active_extruder == 1) { WRITE(E1_STEP_PIN, v); } else { WRITE(E0_STEP_PIN, v); }} #define NORM_E_DIR() { if(extruder_duplication_enabled) { WRITE(E0_DIR_PIN, !INVERT_E0_DIR); WRITE(E1_DIR_PIN, !INVERT_E1_DIR); } else if(current_block->active_extruder == 1) { WRITE(E1_DIR_PIN, !INVERT_E1_DIR); } else { WRITE(E0_DIR_PIN, !INVERT_E0_DIR); }} #define REV_E_DIR() { if(extruder_duplication_enabled) { WRITE(E0_DIR_PIN, INVERT_E0_DIR); WRITE(E1_DIR_PIN, INVERT_E1_DIR); } else if(current_block->active_extruder == 1) { WRITE(E1_DIR_PIN, INVERT_E1_DIR); } else { WRITE(E0_DIR_PIN, INVERT_E0_DIR); }} #endif #else #define WRITE_E_STEP(v) WRITE(E0_STEP_PIN, v) #define NORM_E_DIR() WRITE(E0_DIR_PIN, !INVERT_E0_DIR) #define REV_E_DIR() WRITE(E0_DIR_PIN, INVERT_E0_DIR) #endif #ifdef ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED extern bool abort_on_endstop_hit; #endif // Initialize and start the stepper motor subsystem void st_init(); // Block until all buffered steps are executed void st_synchronize(); // Set current position in steps void st_set_position(const long &x, const long &y, const long &z, const long &e); void st_set_e_position(const long &e); // Get current position in steps long st_get_position(uint8_t axis); #ifdef ENABLE_AUTO_BED_LEVELING // Get current position in mm float st_get_position_mm(uint8_t axis); #endif //ENABLE_AUTO_BED_LEVELING // The stepper subsystem goes to sleep when it runs out of things to execute. Call this // to notify the subsystem that it is time to go to work. void st_wake_up(); void checkHitEndstops(); //call from somewhere to create an serial error message with the locations the endstops where hit, in case they were triggered void endstops_hit_on_purpose(); //avoid creation of the message, i.e. after homing and before a routine call of checkHitEndstops(); void enable_endstops(bool check); // Enable/disable endstop checking void checkStepperErrors(); //Print errors detected by the stepper void finishAndDisableSteppers(); extern block_t *current_block; // A pointer to the block currently being traced void quickStop(); void digitalPotWrite(int address, int value); void microstep_ms(uint8_t driver, int8_t ms1, int8_t ms2); void microstep_mode(uint8_t driver, uint8_t stepping); void digipot_init(); void digipot_current(uint8_t driver, int current); void microstep_init(); void microstep_readings(); #ifdef BABYSTEPPING void babystep(const uint8_t axis,const bool direction); // perform a short step with a single stepper motor, outside of any convention #endif #endif ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/stepper.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
1,258
```arduino /* -*- c++ -*- */ /* Reprap firmware based on Sprinter and grbl. This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the along with this program. If not, see <path_to_url */ /* This firmware is a mashup between Sprinter and grbl. (path_to_url (path_to_url It has preliminary support for Matthew Roberts advance algorithm path_to_url */ /* All the implementation is done in *.cpp files to get better compatibility with avr-gcc without the Arduino IDE */ /* Use this file to help the Arduino IDE find which Arduino libraries are needed and to keep documentation on GCode */ #include "Configuration.h" #include "pins.h" #ifdef ULTRA_LCD #if defined(LCD_I2C_TYPE_PCF8575) #include <Wire.h> #include <LiquidCrystal_I2C.h> #elif defined(LCD_I2C_TYPE_MCP23017) || defined(LCD_I2C_TYPE_MCP23008) #include <Wire.h> #include <LiquidTWI2.h> #elif defined(DOGLCD) #include <U8glib.h> // library for graphics LCD by Oli Kraus (path_to_url #else #include <LiquidCrystal.h> // library for character LCD #endif #endif #if defined(DIGIPOTSS_PIN) && DIGIPOTSS_PIN > -1 #include <SPI.h> #endif #if defined(DIGIPOT_I2C) #include <Wire.h> #endif ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/Marlin_BCN3D_Moveo.ino
arduino
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
382
```c++ /* Servo.cpp - Interrupt driven Servo library for Arduino using 16 bit timers- Version 2 This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU You should have received a copy of the GNU Lesser General Public Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ /* A servo is activated by creating an instance of the Servo class passing the desired pin to the attach() method. The servos are pulsed in the background using the value most recently written using the write() method Note that analogWrite of PWM on pins associated with the timer are disabled when the first servo is attached. Timers are seized as needed in groups of 12 servos - 24 servos use two timers, 48 servos will use four. The methods are: Servo - Class for manipulating servo motors connected to Arduino pins. attach(pin ) - Attaches a servo motor to an i/o pin. attach(pin, min, max ) - Attaches to a pin setting min and max values in microseconds default min is 544, max is 2400 write() - Sets the servo angle in degrees. (invalid angle that is valid as pulse in microseconds is treated as microseconds) writeMicroseconds() - Sets the servo pulse width in microseconds read() - Gets the last written servo pulse width as an angle between 0 and 180. readMicroseconds() - Gets the last written servo pulse width in microseconds. (was read_us() in first release) attached() - Returns true if there is a servo attached. detach() - Stops an attached servos from pulsing its i/o pin. */ #include "Configuration.h" #ifdef NUM_SERVOS #include <avr/interrupt.h> #include <Arduino.h> #include "Servo.h" #define usToTicks(_us) (( clockCyclesPerMicrosecond()* _us) / 8) // converts microseconds to tick (assumes prescale of 8) // 12 Aug 2009 #define ticksToUs(_ticks) (( (unsigned)_ticks * 8)/ clockCyclesPerMicrosecond() ) // converts from ticks back to microseconds #define TRIM_DURATION 2 // compensation ticks to trim adjust for digitalWrite delays // 12 August 2009 //#define NBR_TIMERS (MAX_SERVOS / SERVOS_PER_TIMER) static servo_t servos[MAX_SERVOS]; // static array of servo structures static volatile int8_t Channel[_Nbr_16timers ]; // counter for the servo being pulsed for each timer (or -1 if refresh interval) uint8_t ServoCount = 0; // the total number of attached servos // convenience macros #define SERVO_INDEX_TO_TIMER(_servo_nbr) ((timer16_Sequence_t)(_servo_nbr / SERVOS_PER_TIMER)) // returns the timer controlling this servo #define SERVO_INDEX_TO_CHANNEL(_servo_nbr) (_servo_nbr % SERVOS_PER_TIMER) // returns the index of the servo on this timer #define SERVO_INDEX(_timer,_channel) ((_timer*SERVOS_PER_TIMER) + _channel) // macro to access servo index by timer and channel #define SERVO(_timer,_channel) (servos[SERVO_INDEX(_timer,_channel)]) // macro to access servo class by timer and channel #define SERVO_MIN() (MIN_PULSE_WIDTH - this->min * 4) // minimum value in uS for this servo #define SERVO_MAX() (MAX_PULSE_WIDTH - this->max * 4) // maximum value in uS for this servo /************ static functions common to all instances ***********************/ static inline void handle_interrupts(timer16_Sequence_t timer, volatile uint16_t *TCNTn, volatile uint16_t* OCRnA) { if( Channel[timer] < 0 ) *TCNTn = 0; // channel set to -1 indicated that refresh interval completed so reset the timer else{ if( SERVO_INDEX(timer,Channel[timer]) < ServoCount && SERVO(timer,Channel[timer]).Pin.isActive == true ) digitalWrite( SERVO(timer,Channel[timer]).Pin.nbr,LOW); // pulse this channel low if activated } Channel[timer]++; // increment to the next channel if( SERVO_INDEX(timer,Channel[timer]) < ServoCount && Channel[timer] < SERVOS_PER_TIMER) { *OCRnA = *TCNTn + SERVO(timer,Channel[timer]).ticks; if(SERVO(timer,Channel[timer]).Pin.isActive == true) // check if activated digitalWrite( SERVO(timer,Channel[timer]).Pin.nbr,HIGH); // its an active channel so pulse it high } else { // finished all channels so wait for the refresh period to expire before starting over if( ((unsigned)*TCNTn) + 4 < usToTicks(REFRESH_INTERVAL) ) // allow a few ticks to ensure the next OCR1A not missed *OCRnA = (unsigned int)usToTicks(REFRESH_INTERVAL); else *OCRnA = *TCNTn + 4; // at least REFRESH_INTERVAL has elapsed Channel[timer] = -1; // this will get incremented at the end of the refresh period to start again at the first channel } } #ifndef WIRING // Wiring pre-defines signal handlers so don't define any if compiling for the Wiring platform // Interrupt handlers for Arduino #if defined(_useTimer1) SIGNAL (TIMER1_COMPA_vect) { handle_interrupts(_timer1, &TCNT1, &OCR1A); } #endif #if defined(_useTimer3) SIGNAL (TIMER3_COMPA_vect) { handle_interrupts(_timer3, &TCNT3, &OCR3A); } #endif #if defined(_useTimer4) SIGNAL (TIMER4_COMPA_vect) { handle_interrupts(_timer4, &TCNT4, &OCR4A); } #endif #if defined(_useTimer5) SIGNAL (TIMER5_COMPA_vect) { handle_interrupts(_timer5, &TCNT5, &OCR5A); } #endif #elif defined WIRING // Interrupt handlers for Wiring #if defined(_useTimer1) void Timer1Service() { handle_interrupts(_timer1, &TCNT1, &OCR1A); } #endif #if defined(_useTimer3) void Timer3Service() { handle_interrupts(_timer3, &TCNT3, &OCR3A); } #endif #endif static void initISR(timer16_Sequence_t timer) { #if defined (_useTimer1) if(timer == _timer1) { TCCR1A = 0; // normal counting mode TCCR1B = _BV(CS11); // set prescaler of 8 TCNT1 = 0; // clear the timer count #if defined(__AVR_ATmega8__)|| defined(__AVR_ATmega128__) TIFR |= _BV(OCF1A); // clear any pending interrupts; TIMSK |= _BV(OCIE1A) ; // enable the output compare interrupt #else // here if not ATmega8 or ATmega128 TIFR1 |= _BV(OCF1A); // clear any pending interrupts; TIMSK1 |= _BV(OCIE1A) ; // enable the output compare interrupt #endif #if defined(WIRING) timerAttach(TIMER1OUTCOMPAREA_INT, Timer1Service); #endif } #endif #if defined (_useTimer3) if(timer == _timer3) { TCCR3A = 0; // normal counting mode TCCR3B = _BV(CS31); // set prescaler of 8 TCNT3 = 0; // clear the timer count #if defined(__AVR_ATmega128__) TIFR |= _BV(OCF3A); // clear any pending interrupts; ETIMSK |= _BV(OCIE3A); // enable the output compare interrupt #else TIFR3 = _BV(OCF3A); // clear any pending interrupts; TIMSK3 = _BV(OCIE3A) ; // enable the output compare interrupt #endif #if defined(WIRING) timerAttach(TIMER3OUTCOMPAREA_INT, Timer3Service); // for Wiring platform only #endif } #endif #if defined (_useTimer4) if(timer == _timer4) { TCCR4A = 0; // normal counting mode TCCR4B = _BV(CS41); // set prescaler of 8 TCNT4 = 0; // clear the timer count TIFR4 = _BV(OCF4A); // clear any pending interrupts; TIMSK4 = _BV(OCIE4A) ; // enable the output compare interrupt } #endif #if defined (_useTimer5) if(timer == _timer5) { TCCR5A = 0; // normal counting mode TCCR5B = _BV(CS51); // set prescaler of 8 TCNT5 = 0; // clear the timer count TIFR5 = _BV(OCF5A); // clear any pending interrupts; TIMSK5 = _BV(OCIE5A) ; // enable the output compare interrupt } #endif } static void finISR(timer16_Sequence_t timer) { //disable use of the given timer #if defined WIRING // Wiring if(timer == _timer1) { #if defined(__AVR_ATmega1281__)||defined(__AVR_ATmega2561__) TIMSK1 &= ~_BV(OCIE1A) ; // disable timer 1 output compare interrupt #else TIMSK &= ~_BV(OCIE1A) ; // disable timer 1 output compare interrupt #endif timerDetach(TIMER1OUTCOMPAREA_INT); } else if(timer == _timer3) { #if defined(__AVR_ATmega1281__)||defined(__AVR_ATmega2561__) TIMSK3 &= ~_BV(OCIE3A); // disable the timer3 output compare A interrupt #else ETIMSK &= ~_BV(OCIE3A); // disable the timer3 output compare A interrupt #endif timerDetach(TIMER3OUTCOMPAREA_INT); } #else //For arduino - in future: call here to a currently undefined function to reset the timer #endif } static boolean isTimerActive(timer16_Sequence_t timer) { // returns true if any servo is active on this timer for(uint8_t channel=0; channel < SERVOS_PER_TIMER; channel++) { if(SERVO(timer,channel).Pin.isActive == true) return true; } return false; } /****************** end of static functions ******************************/ Servo::Servo() { if( ServoCount < MAX_SERVOS) { this->servoIndex = ServoCount++; // assign a servo index to this instance servos[this->servoIndex].ticks = usToTicks(DEFAULT_PULSE_WIDTH); // store default values - 12 Aug 2009 } else this->servoIndex = INVALID_SERVO ; // too many servos } uint8_t Servo::attach(int pin) { return this->attach(pin, MIN_PULSE_WIDTH, MAX_PULSE_WIDTH); } uint8_t Servo::attach(int pin, int min, int max) { if(this->servoIndex < MAX_SERVOS ) { #if defined (ENABLE_AUTO_BED_LEVELING) && (PROBE_SERVO_DEACTIVATION_DELAY > 0) if (pin > 0) this->pin = pin; else pin = this->pin; #endif pinMode( pin, OUTPUT) ; // set servo pin to output servos[this->servoIndex].Pin.nbr = pin; // todo min/max check: abs(min - MIN_PULSE_WIDTH) /4 < 128 this->min = (MIN_PULSE_WIDTH - min)/4; //resolution of min/max is 4 uS this->max = (MAX_PULSE_WIDTH - max)/4; // initialize the timer if it has not already been initialized timer16_Sequence_t timer = SERVO_INDEX_TO_TIMER(servoIndex); if(isTimerActive(timer) == false) initISR(timer); servos[this->servoIndex].Pin.isActive = true; // this must be set after the check for isTimerActive } return this->servoIndex ; } void Servo::detach() { servos[this->servoIndex].Pin.isActive = false; timer16_Sequence_t timer = SERVO_INDEX_TO_TIMER(servoIndex); if(isTimerActive(timer) == false) { finISR(timer); } } void Servo::write(int value) { if(value < MIN_PULSE_WIDTH) { // treat values less than 544 as angles in degrees (valid values in microseconds are handled as microseconds) if(value < 0) value = 0; if(value > 180) value = 180; value = map(value, 0, 180, SERVO_MIN(), SERVO_MAX()); } this->writeMicroseconds(value); } void Servo::writeMicroseconds(int value) { // calculate and store the values for the given channel byte channel = this->servoIndex; if( (channel < MAX_SERVOS) ) // ensure channel is valid { if( value < SERVO_MIN() ) // ensure pulse width is valid value = SERVO_MIN(); else if( value > SERVO_MAX() ) value = SERVO_MAX(); value = value - TRIM_DURATION; value = usToTicks(value); // convert to ticks after compensating for interrupt overhead - 12 Aug 2009 uint8_t oldSREG = SREG; cli(); servos[channel].ticks = value; SREG = oldSREG; } } int Servo::read() // return the value as degrees { return map( this->readMicroseconds()+1, SERVO_MIN(), SERVO_MAX(), 0, 180); } int Servo::readMicroseconds() { unsigned int pulsewidth; if( this->servoIndex != INVALID_SERVO ) pulsewidth = ticksToUs(servos[this->servoIndex].ticks) + TRIM_DURATION ; // 12 aug 2009 else pulsewidth = 0; return pulsewidth; } bool Servo::attached() { return servos[this->servoIndex].Pin.isActive ; } #endif ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/Servo.cpp
c++
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
3,325
```objective-c /** * English * * LCD Menu Messages * Please note these are limited to 17 characters! * */ #ifndef LANGUAGE_EN_H #define LANGUAGE_EN_H #define WELCOME_MSG MACHINE_NAME " ready." #define MSG_SD_INSERTED "Card inserted" #define MSG_SD_REMOVED "Card removed" #define MSG_MAIN "Main" #define MSG_AUTOSTART "Autostart" #define MSG_DISABLE_STEPPERS "Disable steppers" #define MSG_AUTO_HOME "Auto home" #define MSG_SET_HOME_OFFSETS "Set home offsets" #define MSG_SET_ORIGIN "Set origin" #define MSG_PREHEAT_PLA "Preheat PLA" #define MSG_PREHEAT_PLA0 "Preheat PLA 1" #define MSG_PREHEAT_PLA1 "Preheat PLA 2" #define MSG_PREHEAT_PLA2 "Preheat PLA 3" #define MSG_PREHEAT_PLA012 "Preheat PLA All" #define MSG_PREHEAT_PLA_BEDONLY "Preheat PLA Bed" #define MSG_PREHEAT_PLA_SETTINGS "Preheat PLA conf" #define MSG_PREHEAT_ABS "Preheat ABS" #define MSG_PREHEAT_ABS0 "Preheat ABS 1" #define MSG_PREHEAT_ABS1 "Preheat ABS 2" #define MSG_PREHEAT_ABS2 "Preheat ABS 3" #define MSG_PREHEAT_ABS012 "Preheat ABS All" #define MSG_PREHEAT_ABS_BEDONLY "Preheat ABS Bed" #define MSG_PREHEAT_ABS_SETTINGS "Preheat ABS conf" #define MSG_COOLDOWN "Cooldown" #define MSG_SWITCH_PS_ON "Switch power on" #define MSG_SWITCH_PS_OFF "Switch power off" #define MSG_EXTRUDE "Extrude" #define MSG_RETRACT "Retract" #define MSG_MOVE_AXIS "Move axis" #define MSG_MOVE_X "Move X" #define MSG_MOVE_Y "Move Y" #define MSG_MOVE_Z "Move Z" #define MSG_MOVE_E "Extruder" #define MSG_MOVE_E1 "Extruder2" #define MSG_MOVE_E2 "Extruder3" #define MSG_MOVE_01MM "Move 0.1mm" #define MSG_MOVE_1MM "Move 1mm" #define MSG_MOVE_10MM "Move 10mm" #define MSG_SPEED "Speed" #define MSG_NOZZLE "Nozzle" #define MSG_NOZZLE1 "Nozzle2" #define MSG_NOZZLE2 "Nozzle3" #define MSG_BED "Bed" #define MSG_FAN_SPEED "Fan speed" #define MSG_FLOW "Flow" #define MSG_FLOW0 "Flow 0" #define MSG_FLOW1 "Flow 1" #define MSG_FLOW2 "Flow 2" #define MSG_CONTROL "Control" #define MSG_MIN " \002 Min" #define MSG_MAX " \002 Max" #define MSG_FACTOR " \002 Fact" #define MSG_AUTOTEMP "Autotemp" #define MSG_ON "On " #define MSG_OFF "Off" #define MSG_PID_P "PID-P" #define MSG_PID_I "PID-I" #define MSG_PID_D "PID-D" #define MSG_PID_C "PID-C" #define MSG_ACC "Accel" #define MSG_VXY_JERK "Vxy-jerk" #define MSG_VZ_JERK "Vz-jerk" #define MSG_VE_JERK "Ve-jerk" #define MSG_VMAX "Vmax " #define MSG_X "x" #define MSG_Y "y" #define MSG_Z "z" #define MSG_E "e" #define MSG_VMIN "Vmin" #define MSG_VTRAV_MIN "VTrav min" #define MSG_AMAX "Amax " #define MSG_A_RETRACT "A-retract" #define MSG_XSTEPS "Xsteps/mm" #define MSG_YSTEPS "Ysteps/mm" #define MSG_ZSTEPS "Zsteps/mm" #define MSG_ESTEPS "Esteps/mm" #define MSG_TEMPERATURE "Temperature" #define MSG_MOTION "Motion" #define MSG_VOLUMETRIC "Filament" #define MSG_VOLUMETRIC_ENABLED "E in mm3" #define MSG_FILAMENT_SIZE_EXTRUDER_0 "Fil. Dia. 1" #define MSG_FILAMENT_SIZE_EXTRUDER_1 "Fil. Dia. 2" #define MSG_FILAMENT_SIZE_EXTRUDER_2 "Fil. Dia. 3" #define MSG_CONTRAST "LCD contrast" #define MSG_STORE_EPROM "Store memory" #define MSG_LOAD_EPROM "Load memory" #define MSG_RESTORE_FAILSAFE "Restore failsafe" #define MSG_REFRESH "Refresh" #define MSG_WATCH "Info screen" #define MSG_PREPARE "Prepare" #define MSG_TUNE "Tune" #define MSG_PAUSE_PRINT "Pause print" #define MSG_RESUME_PRINT "Resume print" #define MSG_STOP_PRINT "Stop print" #define MSG_CARD_MENU "Print from SD" #define MSG_NO_CARD "No SD card" #define MSG_DWELL "Sleep..." #define MSG_USERWAIT "Wait for user..." #define MSG_RESUMING "Resuming print" #define MSG_PRINT_ABORTED "Print aborted" #define MSG_NO_MOVE "No move." #define MSG_KILLED "KILLED. " #define MSG_STOPPED "STOPPED. " #define MSG_CONTROL_RETRACT "Retract mm" #define MSG_CONTROL_RETRACT_SWAP "Swap Re.mm" #define MSG_CONTROL_RETRACTF "Retract V" #define MSG_CONTROL_RETRACT_ZLIFT "Hop mm" #define MSG_CONTROL_RETRACT_RECOVER "UnRet +mm" #define MSG_CONTROL_RETRACT_RECOVER_SWAP "S UnRet+mm" #define MSG_CONTROL_RETRACT_RECOVERF "UnRet V" #define MSG_AUTORETRACT "AutoRetr." #define MSG_FILAMENTCHANGE "Change filament" #define MSG_INIT_SDCARD "Init. SD card" #define MSG_CNG_SDCARD "Change SD card" #define MSG_ZPROBE_OUT "Z probe out. bed" #define MSG_POSITION_UNKNOWN "Home X/Y before Z" #define MSG_ZPROBE_ZOFFSET "Z Offset" #define MSG_BABYSTEP_X "Babystep X" #define MSG_BABYSTEP_Y "Babystep Y" #define MSG_BABYSTEP_Z "Babystep Z" #define MSG_ENDSTOP_ABORT "Endstop abort" #define MSG_RECTRACT "Rectract" #ifdef DELTA_CALIBRATION_MENU #define MSG_DELTA_CALIBRATE "Delta Calibration" #define MSG_DELTA_CALIBRATE_X "Calibrate X" #define MSG_DELTA_CALIBRATE_Y "Calibrate Y" #define MSG_DELTA_CALIBRATE_Z "Calibrate Z" #define MSG_DELTA_CALIBRATE_CENTER "Calibrate Center" #endif // DELTA_CALIBRATION_MENU #endif // LANGUAGE_EN_H ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/language_en.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
1,495
```objective-c /** * Dutch * * LCD Menu Messages * Please note these are limited to 17 characters! * */ #ifndef LANGUAGE_NL_H #define LANGUAGE_NL_H #define WELCOME_MSG MACHINE_NAME " gereed." #define MSG_SD_INSERTED "Kaart ingestoken" #define MSG_SD_REMOVED "Kaart verwijderd" #define MSG_MAIN "Main" #define MSG_AUTOSTART "Autostart" #define MSG_DISABLE_STEPPERS "Motoren uit" #define MSG_AUTO_HOME "Auto home" #define MSG_SET_HOME_OFFSETS "Set home offsets" #define MSG_SET_ORIGIN "Nulpunt instellen" #define MSG_PREHEAT_PLA "PLA voorverwarmen" #define MSG_PREHEAT_PLA0 "PLA voorverw. 0" #define MSG_PREHEAT_PLA1 "PLA voorverw. 1" #define MSG_PREHEAT_PLA2 "PLA voorverw. 2" #define MSG_PREHEAT_PLA012 "PLA voorverw. aan" #define MSG_PREHEAT_PLA_BEDONLY "PLA voorverw. Bed" #define MSG_PREHEAT_PLA_SETTINGS "PLA verw. conf" #define MSG_PREHEAT_ABS "ABS voorverwarmen" #define MSG_PREHEAT_ABS0 "ABS voorverw. 0" #define MSG_PREHEAT_ABS1 "ABS voorverw. 1" #define MSG_PREHEAT_ABS2 "ABS voorverw. 2" #define MSG_PREHEAT_ABS012 "ABS voorverw. aan" #define MSG_PREHEAT_ABS_BEDONLY "ABS voorverw. Bed" #define MSG_PREHEAT_ABS_SETTINGS "ABS verw. conf" #define MSG_COOLDOWN "Afkoelen" #define MSG_SWITCH_PS_ON "Stroom aan" #define MSG_SWITCH_PS_OFF "Stroom uit" #define MSG_EXTRUDE "Extrude" #define MSG_RETRACT "Retract" #define MSG_MOVE_AXIS "As verplaatsen" #define MSG_MOVE_X "Verplaats X" #define MSG_MOVE_Y "Verplaats Y" #define MSG_MOVE_Z "Verplaats Z" #define MSG_MOVE_E "Extruder" #define MSG_MOVE_E1 "Extruder2" #define MSG_MOVE_E2 "Extruder3" #define MSG_MOVE_01MM "Verplaats 0.1mm" #define MSG_MOVE_1MM "Verplaats 1mm" #define MSG_MOVE_10MM "Verplaats 10mm" #define MSG_SPEED "Snelheid" #define MSG_NOZZLE "Nozzle" #define MSG_NOZZLE1 "Nozzle2" #define MSG_NOZZLE2 "Nozzle3" #define MSG_BED "Bed" #define MSG_FAN_SPEED "Fan snelheid" #define MSG_FLOW "Flow" #define MSG_FLOW0 "Flow 0" #define MSG_FLOW1 "Flow 1" #define MSG_FLOW2 "Flow 2" #define MSG_CONTROL "Control" #define MSG_MIN " \002 Min" #define MSG_MAX " \002 Max" #define MSG_FACTOR " \002 Fact" #define MSG_AUTOTEMP "Autotemp" #define MSG_ON "Aan " #define MSG_OFF "Uit" #define MSG_PID_P "PID-P" #define MSG_PID_I "PID-I" #define MSG_PID_D "PID-D" #define MSG_PID_C "PID-C" #define MSG_ACC "Versn" #define MSG_VXY_JERK "Vxy-jerk" #define MSG_VZ_JERK "Vz-jerk" #define MSG_VE_JERK "Ve-jerk" #define MSG_VMAX "Vmax " #define MSG_X "x" #define MSG_Y "y" #define MSG_Z "z" #define MSG_E "e" #define MSG_VMIN "Vmin" #define MSG_VTRAV_MIN "VTrav min" #define MSG_AMAX "Amax " #define MSG_A_RETRACT "A-retract" #define MSG_XSTEPS "Xsteps/mm" #define MSG_YSTEPS "Ysteps/mm" #define MSG_ZSTEPS "Zsteps/mm" #define MSG_ESTEPS "Esteps/mm" #define MSG_TEMPERATURE "Temperatuur" #define MSG_MOTION "Beweging" #define MSG_VOLUMETRIC "Filament" #define MSG_VOLUMETRIC_ENABLED "E in mm3" #define MSG_FILAMENT_SIZE_EXTRUDER_0 "Fil. Dia. 1" #define MSG_FILAMENT_SIZE_EXTRUDER_1 "Fil. Dia. 2" #define MSG_FILAMENT_SIZE_EXTRUDER_2 "Fil. Dia. 3" #define MSG_CONTRAST "LCD contrast" #define MSG_STORE_EPROM "Geheugen opslaan" #define MSG_LOAD_EPROM "Geheugen laden" #define MSG_RESTORE_FAILSAFE "Noodstop reset" #define MSG_REFRESH "Ververs" #define MSG_WATCH "Info scherm" #define MSG_PREPARE "Voorbereiden" #define MSG_TUNE "Afstellen" #define MSG_PAUSE_PRINT "Print pauzeren" #define MSG_RESUME_PRINT "Print hervatten" #define MSG_STOP_PRINT "Print stoppen" #define MSG_CARD_MENU "Print van SD" #define MSG_NO_CARD "Geen SD kaart" #define MSG_DWELL "Slapen..." #define MSG_USERWAIT "Wachten..." #define MSG_RESUMING "Print hervatten" #define MSG_PRINT_ABORTED "Print aborted" #define MSG_NO_MOVE "Geen beweging." #define MSG_KILLED "AFGEBROKEN. " #define MSG_STOPPED "GESTOPT. " #define MSG_CONTROL_RETRACT "Retract mm" #define MSG_CONTROL_RETRACT_SWAP "Ruil Retract mm" #define MSG_CONTROL_RETRACTF "Retract F" #define MSG_CONTROL_RETRACT_ZLIFT "Hop mm" #define MSG_CONTROL_RETRACT_RECOVER "UnRet +mm" #define MSG_CONTROL_RETRACT_RECOVER_SWAP "Ruil UnRet +mm" #define MSG_CONTROL_RETRACT_RECOVERF "UnRet F" #define MSG_AUTORETRACT "AutoRetr." #define MSG_FILAMENTCHANGE "Verv. Filament" #define MSG_INIT_SDCARD "Init. SD kaart" #define MSG_CNG_SDCARD "Verv. SD card" #define MSG_ZPROBE_OUT "Z probe uit. bed" #define MSG_POSITION_UNKNOWN "Home X/Y voor Z" #define MSG_ZPROBE_ZOFFSET "Z Offset" #define MSG_BABYSTEP_X "Babystap X" #define MSG_BABYSTEP_Y "Babystap Y" #define MSG_BABYSTEP_Z "Babystap Z" #define MSG_ENDSTOP_ABORT "Endstop afbr." #define MSG_RECTRACT "Terugtrekken" #ifdef DELTA_CALIBRATION_MENU #define MSG_DELTA_CALIBRATE "Delta Calibration" #define MSG_DELTA_CALIBRATE_X "Calibrate X" #define MSG_DELTA_CALIBRATE_Y "Calibrate Y" #define MSG_DELTA_CALIBRATE_Z "Calibrate Z" #define MSG_DELTA_CALIBRATE_CENTER "Calibrate Center" #endif // DELTA_CALIBRATION_MENU #endif // LANGUAGE_NL_H ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/language_nl.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
1,608
```objective-c #ifndef BOARDS_H #define BOARDS_H #define BOARD_UNKNOWN -1 #define BOARD_GEN7_CUSTOM 10 // Gen7 custom (Alfons3 Version) "path_to_url" #define BOARD_GEN7_12 11 // Gen7 v1.1, v1.2 #define BOARD_GEN7_13 12 // Gen7 v1.3 #define BOARD_GEN7_14 13 // Gen7 v1.4 #define BOARD_CHEAPTRONIC 2 // Cheaptronic v1.0 #define BOARD_SETHI 20 // Sethi 3D_1 #define BOARD_RAMPS_OLD 3 // MEGA/RAMPS up to 1.2 #define BOARD_RAMPS_13_EFB 33 // RAMPS 1.3 / 1.4 (Power outputs: Extruder, Fan, Bed) #define BOARD_RAMPS_13_EEB 34 // RAMPS 1.3 / 1.4 (Power outputs: Extruder0, Extruder1, Bed) #define BOARD_RAMPS_13_EFF 35 // RAMPS 1.3 / 1.4 (Power outputs: Extruder, Fan, Fan) #define BOARD_RAMPS_13_EEF 36 // RAMPS 1.3 / 1.4 (Power outputs: Extruder0, Extruder1, Fan) #define BOARD_DUEMILANOVE_328P 4 // Duemilanove w/ ATMega328P pin assignment #define BOARD_GEN6 5 // Gen6 #define BOARD_GEN6_DELUXE 51 // Gen6 deluxe #define BOARD_SANGUINOLOLU_11 6 // Sanguinololu < 1.2 #define BOARD_SANGUINOLOLU_12 62 // Sanguinololu 1.2 and above #define BOARD_MELZI 63 // Melzi #define BOARD_STB_11 64 // STB V1.1 #define BOARD_AZTEEG_X1 65 // Azteeg X1 #define BOARD_MELZI_1284 66 // Melzi with ATmega1284 (MaKr3d version) #define BOARD_AZTEEG_X3 67 // Azteeg X3 #define BOARD_AZTEEG_X3_PRO 68 // Azteeg X3 Pro #define BOARD_ULTIMAKER 7 // Ultimaker #define BOARD_ULTIMAKER_OLD 71 // Ultimaker (Older electronics. Pre 1.5.4. This is rare) #define BOARD_ULTIMAIN_2 72 // Ultimainboard 2.x (Uses TEMP_SENSOR 20) #define BOARD_3DRAG 77 // 3Drag Controller #define BOARD_TEENSYLU 8 // Teensylu #define BOARD_RUMBA 80 // Rumba #define BOARD_PRINTRBOARD 81 // Printrboard (AT90USB1286) #define BOARD_BRAINWAVE 82 // Brainwave (AT90USB646) #define BOARD_SAV_MKI 83 // SAV Mk-I (AT90USB1286) #define BOARD_TEENSY2 84 // Teensy++2.0 (AT90USB1286) - CLI compile: DEFINES=AT90USBxx_TEENSYPP_ASSIGNMENTS HARDWARE_MOTHERBOARD=84 make #define BOARD_GEN3_PLUS 9 // Gen3+ #define BOARD_GEN3_MONOLITHIC 22 // Gen3 Monolithic Electronics #define BOARD_MEGATRONICS 70 // Megatronics #define BOARD_MEGATRONICS_2 701 // Megatronics v2.0 #define BOARD_MEGATRONICS_1 702 // Minitronics v1.0 #define BOARD_OMCA_A 90 // Alpha OMCA board #define BOARD_OMCA 91 // Final OMCA board #define BOARD_RAMBO 301 // Rambo #define BOARD_ELEFU_3 21 // Elefu Ra Board (v3) #define BOARD_5DPRINT 88 // 5DPrint D8 Driver Board #define BOARD_LEAPFROG 999 // Leapfrog #define BOARD_99 99 // This is in pins.h but...? #define MB(board) (MOTHERBOARD==BOARD_##board) #define IS_RAMPS (MB(RAMPS_OLD) || MB(RAMPS_13_EFB) || MB(RAMPS_13_EEB) || MB(RAMPS_13_EFF) || MB(RAMPS_13_EEF)) #endif //__BOARDS_H ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/boards.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
1,043
```objective-c /* planner.h - buffers movement commands and manages the acceleration profile plan Part of Grbl Grbl is free software: you can redistribute it and/or modify (at your option) any later version. Grbl is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the along with Grbl. If not, see <path_to_url */ // This module is to be considered a sub-module of stepper.c. Please don't include // this file from any other module. #ifndef planner_h #define planner_h #include "Marlin.h" #ifdef ENABLE_AUTO_BED_LEVELING #include "vector_3.h" #endif // ENABLE_AUTO_BED_LEVELING // This struct is used when buffering the setup for each linear movement "nominal" values are as specified in // the source g-code and may never actually be reached if acceleration management is active. typedef struct { // Fields used by the bresenham algorithm for tracing the line long steps_x, steps_y, steps_z, steps_e; // Step count along each axis unsigned long step_event_count; // The number of step events required to complete this block long accelerate_until; // The index of the step event on which to stop acceleration long decelerate_after; // The index of the step event on which to start decelerating long acceleration_rate; // The acceleration rate used for acceleration calculation unsigned char direction_bits; // The direction bit set for this block (refers to *_DIRECTION_BIT in config.h) unsigned char active_extruder; // Selects the active extruder #ifdef ADVANCE long advance_rate; volatile long initial_advance; volatile long final_advance; float advance; #endif // Fields used by the motion planner to manage acceleration // float speed_x, speed_y, speed_z, speed_e; // Nominal mm/sec for each axis float nominal_speed; // The nominal speed for this block in mm/sec float entry_speed; // Entry speed at previous-current junction in mm/sec float max_entry_speed; // Maximum allowable junction entry speed in mm/sec float millimeters; // The total travel of this block in mm float acceleration; // acceleration mm/sec^2 unsigned char recalculate_flag; // Planner flag to recalculate trapezoids on entry junction unsigned char nominal_length_flag; // Planner flag for nominal speed always reached // Settings for the trapezoid generator unsigned long nominal_rate; // The nominal step rate for this block in step_events/sec unsigned long initial_rate; // The jerk-adjusted step rate at start of block unsigned long final_rate; // The minimal rate at exit unsigned long acceleration_st; // acceleration steps/sec^2 unsigned long fan_speed; #ifdef BARICUDA unsigned long valve_pressure; unsigned long e_to_p_pressure; #endif volatile char busy; } block_t; #ifdef ENABLE_AUTO_BED_LEVELING // this holds the required transform to compensate for bed level extern matrix_3x3 plan_bed_level_matrix; #endif // #ifdef ENABLE_AUTO_BED_LEVELING // Initialize the motion plan subsystem void plan_init(); // Add a new linear movement to the buffer. x, y and z is the signed, absolute target position in // millimaters. Feed rate specifies the speed of the motion. #ifdef ENABLE_AUTO_BED_LEVELING void plan_buffer_line(float x, float y, float z, const float &e, float feed_rate, const uint8_t &extruder); // Get the position applying the bed level matrix if enabled vector_3 plan_get_position(); #else void plan_buffer_line(const float &x, const float &y, const float &z, const float &e, float feed_rate, const uint8_t &extruder); #endif // ENABLE_AUTO_BED_LEVELING // Set position. Used for G92 instructions. #ifdef ENABLE_AUTO_BED_LEVELING void plan_set_position(float x, float y, float z, const float &e); #else void plan_set_position(const float &x, const float &y, const float &z, const float &e); #endif // ENABLE_AUTO_BED_LEVELING void plan_set_e_position(const float &e); void check_axes_activity(); uint8_t movesplanned(); //return the nr of buffered moves extern unsigned long minsegmenttime; extern float max_feedrate[NUM_AXIS]; // set the max speeds extern float axis_steps_per_unit[NUM_AXIS]; extern unsigned long max_acceleration_units_per_sq_second[NUM_AXIS]; // Use M201 to override by software extern float minimumfeedrate; extern float acceleration; // Normal acceleration mm/s^2 THIS IS THE DEFAULT ACCELERATION for all moves. M204 SXXXX extern float retract_acceleration; // mm/s^2 filament pull-pack and push-forward while standing still in the other axis M204 TXXXX extern float max_xy_jerk; //speed than can be stopped at once, if i understand correctly. extern float max_z_jerk; extern float max_e_jerk; extern float mintravelfeedrate; extern unsigned long axis_steps_per_sqr_second[NUM_AXIS]; #ifdef AUTOTEMP extern bool autotemp_enabled; extern float autotemp_max; extern float autotemp_min; extern float autotemp_factor; #endif extern block_t block_buffer[BLOCK_BUFFER_SIZE]; // A ring buffer for motion instfructions extern volatile unsigned char block_buffer_head; // Index of the next block to be pushed extern volatile unsigned char block_buffer_tail; // Called when the current block is no longer needed. Discards the block and makes the memory // availible for new blocks. FORCE_INLINE void plan_discard_current_block() { if (block_buffer_head != block_buffer_tail) { block_buffer_tail = (block_buffer_tail + 1) & (BLOCK_BUFFER_SIZE - 1); } } // Gets the current block. Returns NULL if buffer empty FORCE_INLINE block_t *plan_get_current_block() { if (block_buffer_head == block_buffer_tail) { return(NULL); } block_t *block = &block_buffer[block_buffer_tail]; block->busy = true; return(block); } // Returns true if the buffer has a queued block, false otherwise FORCE_INLINE bool blocks_queued() { return (block_buffer_head != block_buffer_tail); } #ifdef PREVENT_DANGEROUS_EXTRUDE void set_extrude_min_temp(float temp); #endif void reset_acceleration_rates(); #endif ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/planner.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
1,446
```objective-c /* Arduino Sd2Card Library * * This file is part of the Arduino Sd2Card Library * * This Library is free software: you can redistribute it and/or modify * (at your option) any later version. * * This Library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * along with the Arduino Sd2Card Library. If not, see * <path_to_url */ #include "Marlin.h" #ifdef SDSUPPORT #ifndef Sd2Card_h #define Sd2Card_h /** * \file * \brief Sd2Card class for V2 SD/SDHC cards */ #include "SdFatConfig.h" #include "Sd2PinMap.h" #include "SdInfo.h" //your_sha256_hash-------------- // SPI speed is F_CPU/2^(1 + index), 0 <= index <= 6 /** Set SCK to max rate of F_CPU/2. See Sd2Card::setSckRate(). */ uint8_t const SPI_FULL_SPEED = 0; /** Set SCK rate to F_CPU/4. See Sd2Card::setSckRate(). */ uint8_t const SPI_HALF_SPEED = 1; /** Set SCK rate to F_CPU/8. See Sd2Card::setSckRate(). */ uint8_t const SPI_QUARTER_SPEED = 2; /** Set SCK rate to F_CPU/16. See Sd2Card::setSckRate(). */ uint8_t const SPI_EIGHTH_SPEED = 3; /** Set SCK rate to F_CPU/32. See Sd2Card::setSckRate(). */ uint8_t const SPI_SIXTEENTH_SPEED = 4; //your_sha256_hash-------------- /** init timeout ms */ uint16_t const SD_INIT_TIMEOUT = 2000; /** erase timeout ms */ uint16_t const SD_ERASE_TIMEOUT = 10000; /** read timeout ms */ uint16_t const SD_READ_TIMEOUT = 300; /** write time out ms */ uint16_t const SD_WRITE_TIMEOUT = 600; //your_sha256_hash-------------- // SD card errors /** timeout error for command CMD0 (initialize card in SPI mode) */ uint8_t const SD_CARD_ERROR_CMD0 = 0X1; /** CMD8 was not accepted - not a valid SD card*/ uint8_t const SD_CARD_ERROR_CMD8 = 0X2; /** card returned an error response for CMD12 (write stop) */ uint8_t const SD_CARD_ERROR_CMD12 = 0X3; /** card returned an error response for CMD17 (read block) */ uint8_t const SD_CARD_ERROR_CMD17 = 0X4; /** card returned an error response for CMD18 (read multiple block) */ uint8_t const SD_CARD_ERROR_CMD18 = 0X5; /** card returned an error response for CMD24 (write block) */ uint8_t const SD_CARD_ERROR_CMD24 = 0X6; /** WRITE_MULTIPLE_BLOCKS command failed */ uint8_t const SD_CARD_ERROR_CMD25 = 0X7; /** card returned an error response for CMD58 (read OCR) */ uint8_t const SD_CARD_ERROR_CMD58 = 0X8; /** SET_WR_BLK_ERASE_COUNT failed */ uint8_t const SD_CARD_ERROR_ACMD23 = 0X9; /** ACMD41 initialization process timeout */ uint8_t const SD_CARD_ERROR_ACMD41 = 0XA; /** card returned a bad CSR version field */ uint8_t const SD_CARD_ERROR_BAD_CSD = 0XB; /** erase block group command failed */ uint8_t const SD_CARD_ERROR_ERASE = 0XC; /** card not capable of single block erase */ uint8_t const SD_CARD_ERROR_ERASE_SINGLE_BLOCK = 0XD; /** Erase sequence timed out */ uint8_t const SD_CARD_ERROR_ERASE_TIMEOUT = 0XE; /** card returned an error token instead of read data */ uint8_t const SD_CARD_ERROR_READ = 0XF; /** read CID or CSD failed */ uint8_t const SD_CARD_ERROR_READ_REG = 0X10; /** timeout while waiting for start of read data */ uint8_t const SD_CARD_ERROR_READ_TIMEOUT = 0X11; /** card did not accept STOP_TRAN_TOKEN */ uint8_t const SD_CARD_ERROR_STOP_TRAN = 0X12; /** card returned an error token as a response to a write operation */ uint8_t const SD_CARD_ERROR_WRITE = 0X13; /** attempt to write protected block zero */ uint8_t const SD_CARD_ERROR_WRITE_BLOCK_ZERO = 0X14; // REMOVE - not used /** card did not go ready for a multiple block write */ uint8_t const SD_CARD_ERROR_WRITE_MULTIPLE = 0X15; /** card returned an error to a CMD13 status check after a write */ uint8_t const SD_CARD_ERROR_WRITE_PROGRAMMING = 0X16; /** timeout occurred during write programming */ uint8_t const SD_CARD_ERROR_WRITE_TIMEOUT = 0X17; /** incorrect rate selected */ uint8_t const SD_CARD_ERROR_SCK_RATE = 0X18; /** init() not called */ uint8_t const SD_CARD_ERROR_INIT_NOT_CALLED = 0X19; /** crc check error */ uint8_t const SD_CARD_ERROR_CRC = 0X20; //your_sha256_hash-------------- // card types /** Standard capacity V1 SD card */ uint8_t const SD_CARD_TYPE_SD1 = 1; /** Standard capacity V2 SD card */ uint8_t const SD_CARD_TYPE_SD2 = 2; /** High Capacity SD card */ uint8_t const SD_CARD_TYPE_SDHC = 3; /** * define SOFTWARE_SPI to use bit-bang SPI */ //your_sha256_hash-------------- #if MEGA_SOFT_SPI && (defined(__AVR_ATmega1280__)||defined(__AVR_ATmega2560__)) #define SOFTWARE_SPI #elif USE_SOFTWARE_SPI #define SOFTWARE_SPI #endif // MEGA_SOFT_SPI //your_sha256_hash-------------- // SPI pin definitions - do not edit here - change in SdFatConfig.h // #ifndef SOFTWARE_SPI // hardware pin defs /** The default chip select pin for the SD card is SS. */ uint8_t const SD_CHIP_SELECT_PIN = SS_PIN; // The following three pins must not be redefined for hardware SPI. /** SPI Master Out Slave In pin */ uint8_t const SPI_MOSI_PIN = MOSI_PIN; /** SPI Master In Slave Out pin */ uint8_t const SPI_MISO_PIN = MISO_PIN; /** SPI Clock pin */ uint8_t const SPI_SCK_PIN = SCK_PIN; #else // SOFTWARE_SPI /** SPI chip select pin */ uint8_t const SD_CHIP_SELECT_PIN = SOFT_SPI_CS_PIN; /** SPI Master Out Slave In pin */ uint8_t const SPI_MOSI_PIN = SOFT_SPI_MOSI_PIN; /** SPI Master In Slave Out pin */ uint8_t const SPI_MISO_PIN = SOFT_SPI_MISO_PIN; /** SPI Clock pin */ uint8_t const SPI_SCK_PIN = SOFT_SPI_SCK_PIN; #endif // SOFTWARE_SPI //your_sha256_hash-------------- /** * \class Sd2Card * \brief Raw access to SD and SDHC flash memory cards. */ class Sd2Card { public: /** Construct an instance of Sd2Card. */ Sd2Card() : errorCode_(SD_CARD_ERROR_INIT_NOT_CALLED), type_(0) {} uint32_t cardSize(); bool erase(uint32_t firstBlock, uint32_t lastBlock); bool eraseSingleBlockEnable(); /** * Set SD error code. * \param[in] code value for error code. */ void error(uint8_t code) {errorCode_ = code;} /** * \return error code for last error. See Sd2Card.h for a list of error codes. */ int errorCode() const {return errorCode_;} /** \return error data for last error. */ int errorData() const {return status_;} /** * Initialize an SD flash memory card with default clock rate and chip * select pin. See sd2Card::init(uint8_t sckRateID, uint8_t chipSelectPin). * * \return true for success or false for failure. */ bool init(uint8_t sckRateID = SPI_FULL_SPEED, uint8_t chipSelectPin = SD_CHIP_SELECT_PIN); bool readBlock(uint32_t block, uint8_t* dst); /** * Read a card's CID register. The CID contains card identification * information such as Manufacturer ID, Product name, Product serial * number and Manufacturing date. * * \param[out] cid pointer to area for returned data. * * \return true for success or false for failure. */ bool readCID(cid_t* cid) { return readRegister(CMD10, cid); } /** * Read a card's CSD register. The CSD contains Card-Specific Data that * provides information regarding access to the card's contents. * * \param[out] csd pointer to area for returned data. * * \return true for success or false for failure. */ bool readCSD(csd_t* csd) { return readRegister(CMD9, csd); } bool readData(uint8_t *dst); bool readStart(uint32_t blockNumber); bool readStop(); bool setSckRate(uint8_t sckRateID); /** Return the card type: SD V1, SD V2 or SDHC * \return 0 - SD V1, 1 - SD V2, or 3 - SDHC. */ int type() const {return type_;} bool writeBlock(uint32_t blockNumber, const uint8_t* src); bool writeData(const uint8_t* src); bool writeStart(uint32_t blockNumber, uint32_t eraseCount); bool writeStop(); private: //your_sha256_hash------------ uint8_t chipSelectPin_; uint8_t errorCode_; uint8_t spiRate_; uint8_t status_; uint8_t type_; // private functions uint8_t cardAcmd(uint8_t cmd, uint32_t arg) { cardCommand(CMD55, 0); return cardCommand(cmd, arg); } uint8_t cardCommand(uint8_t cmd, uint32_t arg); bool readData(uint8_t* dst, uint16_t count); bool readRegister(uint8_t cmd, void* buf); void chipSelectHigh(); void chipSelectLow(); void type(uint8_t value) {type_ = value;} bool waitNotBusy(uint16_t timeoutMillis); bool writeData(uint8_t token, const uint8_t* src); }; #endif // Sd2Card_h #endif ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/Sd2Card.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
2,354
```objective-c /** * Polish * * LCD Menu Messages * Please note these are limited to 17 characters! * */ #ifndef LANGUAGE_PL_H #define LANGUAGE_PL_H #define WELCOME_MSG MACHINE_NAME " gotowy." #define MSG_SD_INSERTED "Karta wlozona" #define MSG_SD_REMOVED "Karta usunieta" #define MSG_MAIN "Menu glowne" #define MSG_AUTOSTART "Autostart" #define MSG_DISABLE_STEPPERS "Wylacz silniki" #define MSG_AUTO_HOME "Auto. poz. zerowa" #define MSG_SET_HOME_OFFSETS "Set home offsets" #define MSG_SET_ORIGIN "Ustaw punkt zero" #define MSG_PREHEAT_PLA "Rozgrzej PLA" #define MSG_PREHEAT_PLA0 "Rozgrzej PLA 1" #define MSG_PREHEAT_PLA1 "Rozgrzej PLA 2" #define MSG_PREHEAT_PLA2 "Rozgrzej PLA 3" #define MSG_PREHEAT_PLA012 "Roz. PLA Wszystko" #define MSG_PREHEAT_PLA_BEDONLY "Rozgrzej PLA Loze" #define MSG_PREHEAT_PLA_SETTINGS "Ustaw. rozg. PLA" #define MSG_PREHEAT_ABS "Rozgrzej ABS" #define MSG_PREHEAT_ABS0 "Rozgrzej ABS 1" #define MSG_PREHEAT_ABS1 "Rozgrzej ABS 2" #define MSG_PREHEAT_ABS2 "Rozgrzej ABS 3" #define MSG_PREHEAT_ABS012 "Roz. ABS Wszystko" #define MSG_PREHEAT_ABS_BEDONLY "Rozgrzej ABS Loze" #define MSG_PREHEAT_ABS_SETTINGS "Ustaw. rozg. ABS" #define MSG_COOLDOWN "Chlodzenie" #define MSG_SWITCH_PS_ON "Wlacz zasilacz" #define MSG_SWITCH_PS_OFF "Wylacz zasilacz" #define MSG_EXTRUDE "Ekstruzja" #define MSG_RETRACT "Cofanie" #define MSG_MOVE_AXIS "Ruch osi" #define MSG_MOVE_X "Przesun w X" #define MSG_MOVE_Y "Przesun w Y" #define MSG_MOVE_Z "Przesun w Z" #define MSG_MOVE_E "Ekstruzja (os E)" #define MSG_MOVE_E1 "Extruder2" #define MSG_MOVE_E2 "Extruder3" #define MSG_MOVE_01MM "Przesuwaj co .1mm" #define MSG_MOVE_1MM "Przesuwaj co 1mm" #define MSG_MOVE_10MM "Przesuwaj co 10mm" #define MSG_SPEED "Predkosc" #define MSG_NOZZLE "Dysza" #define MSG_NOZZLE1 "Dysza 2" #define MSG_NOZZLE2 "Dysza 3" #define MSG_BED "Loze" #define MSG_FAN_SPEED "Obroty wiatraka" #define MSG_FLOW "Przeplyw" #define MSG_FLOW0 "Przeplyw 0" #define MSG_FLOW1 "Przeplyw 1" #define MSG_FLOW2 "Przeplyw 2" #define MSG_CONTROL "Ustawienia" #define MSG_MIN " \002 Min" #define MSG_MAX " \002 Max" #define MSG_FACTOR " \002 Mnoznik" #define MSG_AUTOTEMP "Auto. temperatura" #define MSG_ON "Wl. " #define MSG_OFF "Wyl." #define MSG_PID_P "PID-P" #define MSG_PID_I "PID-I" #define MSG_PID_D "PID-D" #define MSG_PID_C "PID-C" #define MSG_ACC "Przyspieszenie" #define MSG_VXY_JERK "Zryw Vxy" #define MSG_VZ_JERK "Zryw Vz" #define MSG_VE_JERK "Zryw Ve" #define MSG_VMAX "Vmax" #define MSG_X "x" #define MSG_Y "y" #define MSG_Z "z" #define MSG_E "e" #define MSG_VMIN "Vmin" #define MSG_VTRAV_MIN "Vskok min" #define MSG_AMAX "Amax" #define MSG_A_RETRACT "A-wycofanie" #define MSG_XSTEPS "krokiX/mm" #define MSG_YSTEPS "krokiY/mm" #define MSG_ZSTEPS "krokiZ/mm" #define MSG_ESTEPS "krokiE/mm" #define MSG_TEMPERATURE "Temperatura" #define MSG_MOTION "Ruch" #define MSG_VOLUMETRIC "Filament" #define MSG_VOLUMETRIC_ENABLED "E in mm3" #define MSG_FILAMENT_SIZE_EXTRUDER_0 "Fil. Dia. 1" #define MSG_FILAMENT_SIZE_EXTRUDER_1 "Fil. Dia. 2" #define MSG_FILAMENT_SIZE_EXTRUDER_2 "Fil. Dia. 3" #define MSG_CONTRAST "Kontrast LCD" #define MSG_STORE_EPROM "Zapisz w pamieci" #define MSG_LOAD_EPROM "Wczytaj z pamieci" #define MSG_RESTORE_FAILSAFE "Ustaw. fabryczne" #define MSG_REFRESH "\004Odswiez" #define MSG_WATCH "Ekran glowny" #define MSG_PREPARE "Przygotuj" #define MSG_TUNE "Strojenie" #define MSG_PAUSE_PRINT "Pauza" #define MSG_RESUME_PRINT "Wznowienie" #define MSG_STOP_PRINT "Stop" #define MSG_CARD_MENU "Menu karty SD" #define MSG_NO_CARD "Brak karty" #define MSG_DWELL "Uspij..." #define MSG_USERWAIT "Oczekiwanie..." #define MSG_RESUMING "Wznawianie druku" #define MSG_PRINT_ABORTED "Print aborted" #define MSG_NO_MOVE "Brak ruchu" #define MSG_KILLED "Ubity. " #define MSG_STOPPED "Zatrzymany. " #define MSG_CONTROL_RETRACT "Wycofaj mm" #define MSG_CONTROL_RETRACT_SWAP "Z Wycof. mm" #define MSG_CONTROL_RETRACTF "Wycofaj V" #define MSG_CONTROL_RETRACT_ZLIFT "Skok Z mm:" #define MSG_CONTROL_RETRACT_RECOVER "Cof. wycof. +mm" #define MSG_CONTROL_RETRACT_RECOVER_SWAP "Z Cof. wyc. +mm" #define MSG_CONTROL_RETRACT_RECOVERF "Cof. wycof. V" #define MSG_AUTORETRACT "Auto. wycofanie" #define MSG_FILAMENTCHANGE "Zmien filament" #define MSG_INIT_SDCARD "Inicjal. karty SD" #define MSG_CNG_SDCARD "Zmiana karty SD" #define MSG_ZPROBE_OUT "Sonda Z za lozem" #define MSG_POSITION_UNKNOWN "Wroc w XY przed Z" #define MSG_ZPROBE_ZOFFSET "Offset Z" #define MSG_BABYSTEP_X "Babystep X" #define MSG_BABYSTEP_Y "Babystep Y" #define MSG_BABYSTEP_Z "Babystep Z" #define MSG_ENDSTOP_ABORT "Blad wyl. kranc." #define MSG_RECTRACT "Wycofanie" #define MSG_STEPPER_RELEASED "Zwolniony." #ifdef DELTA_CALIBRATION_MENU #define MSG_DELTA_CALIBRATE "Delta Calibration" #define MSG_DELTA_CALIBRATE_X "Calibrate X" #define MSG_DELTA_CALIBRATE_Y "Calibrate Y" #define MSG_DELTA_CALIBRATE_Z "Calibrate Z" #define MSG_DELTA_CALIBRATE_CENTER "Calibrate Center" #endif // DELTA_CALIBRATION_MENU #endif // LANGUAGE_PL_H ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/language_pl.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
1,732
```c++ #include "LiquidCrystalRus.h" #include <stdio.h> #include <string.h> #include <inttypes.h> #include <avr/pgmspace.h> #if defined(ARDUINO) && ARDUINO >= 100 #include "Arduino.h" #else #include "WProgram.h" #endif // it is a Russian alphabet translation // except 0401 --> 0xa2 = , 0451 --> 0xb5 const PROGMEM uint8_t utf_recode[] = { 0x41,0xa0,0x42,0xa1,0xe0,0x45,0xa3,0xa4,0xa5,0xa6,0x4b,0xa7,0x4d,0x48,0x4f, 0xa8,0x50,0x43,0x54,0xa9,0xaa,0x58,0xe1,0xab,0xac,0xe2,0xad,0xae,0x62,0xaf,0xb0,0xb1, 0x61,0xb2,0xb3,0xb4,0xe3,0x65,0xb6,0xb7,0xb8,0xb9,0xba,0xbb,0xbc,0xbd,0x6f, 0xbe,0x70,0x63,0xbf,0x79,0xe4,0x78,0xe5,0xc0,0xc1,0xe6,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7 }; // When the display powers up, it is configured as follows: // // 1. Display clear // 2. Function set: // DL = 1; 8-bit interface data // N = 0; 1-line display // F = 0; 5x8 dot character font // 3. Display on/off control: // D = 0; Display off // C = 0; Cursor off // B = 0; Blinking off // 4. Entry mode set: // I/D = 1; Increment by 1 // S = 0; No shift // // Note, however, that resetting the Arduino doesn't reset the LCD, so we // can't assume that it's in that state when a sketch starts (and the // LiquidCrystal constructor is called). // // modified 27 Jul 2011 // by Ilya V. Danilov path_to_url LiquidCrystalRus::LiquidCrystalRus(uint8_t rs, uint8_t rw, uint8_t enable, uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7) { init(0, rs, rw, enable, d0, d1, d2, d3, d4, d5, d6, d7); } LiquidCrystalRus::LiquidCrystalRus(uint8_t rs, uint8_t enable, uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7) { init(0, rs, 255, enable, d0, d1, d2, d3, d4, d5, d6, d7); } LiquidCrystalRus::LiquidCrystalRus(uint8_t rs, uint8_t rw, uint8_t enable, uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3) { init(1, rs, rw, enable, d0, d1, d2, d3, 0, 0, 0, 0); } LiquidCrystalRus::LiquidCrystalRus(uint8_t rs, uint8_t enable, uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3) { init(1, rs, 255, enable, d0, d1, d2, d3, 0, 0, 0, 0); } void LiquidCrystalRus::init(uint8_t fourbitmode, uint8_t rs, uint8_t rw, uint8_t enable, uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7) { _rs_pin = rs; _rw_pin = rw; _enable_pin = enable; _data_pins[0] = d0; _data_pins[1] = d1; _data_pins[2] = d2; _data_pins[3] = d3; _data_pins[4] = d4; _data_pins[5] = d5; _data_pins[6] = d6; _data_pins[7] = d7; pinMode(_rs_pin, OUTPUT); // we can save 1 pin by not using RW. Indicate by passing 255 instead of pin# if (_rw_pin != 255) { pinMode(_rw_pin, OUTPUT); } pinMode(_enable_pin, OUTPUT); if (fourbitmode) _displayfunction = LCD_4BITMODE | LCD_1LINE | LCD_5x8DOTS; else _displayfunction = LCD_8BITMODE | LCD_1LINE | LCD_5x8DOTS; begin(16, 1); } void LiquidCrystalRus::begin(uint8_t cols, uint8_t lines, uint8_t dotsize) { if (lines > 1) { _displayfunction |= LCD_2LINE; } _numlines = lines; _currline = 0; // for some 1 line displays you can select a 10 pixel high font if ((dotsize != 0) && (lines == 1)) { _displayfunction |= LCD_5x10DOTS; } // SEE PAGE 45/46 FOR INITIALIZATION SPECIFICATION! // according to datasheet, we need at least 40ms after power rises above 2.7V // before sending commands. Arduino can turn on way before 4.5V so we'll wait 50 delayMicroseconds(50000); // Now we pull both RS and R/W low to begin commands digitalWrite(_rs_pin, LOW); digitalWrite(_enable_pin, LOW); if (_rw_pin != 255) { digitalWrite(_rw_pin, LOW); } //put the LCD into 4 bit or 8 bit mode if (! (_displayfunction & LCD_8BITMODE)) { // this is according to the Hitachi HD44780 datasheet // figure 24, pg 46 // we start in 8bit mode, try to set 4 bit mode writeNbits(0x03,4); delayMicroseconds(4500); // wait min 4.1ms // second try writeNbits(0x03,4); delayMicroseconds(4500); // wait min 4.1ms // third go! writeNbits(0x03,4); delayMicroseconds(150); // finally, set to 8-bit interface writeNbits(0x02,4); } else { // this is according to the Hitachi HD44780 datasheet // page 45 figure 23 // Send function set command sequence command(LCD_FUNCTIONSET | _displayfunction); delayMicroseconds(4500); // wait more than 4.1ms // second try command(LCD_FUNCTIONSET | _displayfunction); delayMicroseconds(150); // third go command(LCD_FUNCTIONSET | _displayfunction); } // finally, set # lines, font size, etc. command(LCD_FUNCTIONSET | _displayfunction); // turn the display on with no cursor or blinking default _displaycontrol = LCD_DISPLAYON | LCD_CURSOROFF | LCD_BLINKOFF; display(); // clear it off clear(); // Initialize to default text direction (for romance languages) _displaymode = LCD_ENTRYLEFT | LCD_ENTRYSHIFTDECREMENT; // set the entry mode command(LCD_ENTRYMODESET | _displaymode); } void LiquidCrystalRus::setDRAMModel(uint8_t model) { _dram_model = model; } /********** high level commands, for the user! */ void LiquidCrystalRus::clear() { command(LCD_CLEARDISPLAY); // clear display, set cursor position to zero delayMicroseconds(2000); // this command takes a long time! } void LiquidCrystalRus::home() { command(LCD_RETURNHOME); // set cursor position to zero delayMicroseconds(2000); // this command takes a long time! } void LiquidCrystalRus::setCursor(uint8_t col, uint8_t row) { int row_offsets[] = { 0x00, 0x40, 0x14, 0x54 }; if ( row >= _numlines ) { row = _numlines-1; // we count rows starting w/0 } command(LCD_SETDDRAMADDR | (col + row_offsets[row])); } // Turn the display on/off (quickly) void LiquidCrystalRus::noDisplay() { _displaycontrol &= ~LCD_DISPLAYON; command(LCD_DISPLAYCONTROL | _displaycontrol); } void LiquidCrystalRus::display() { _displaycontrol |= LCD_DISPLAYON; command(LCD_DISPLAYCONTROL | _displaycontrol); } // Turns the underline cursor on/off void LiquidCrystalRus::noCursor() { _displaycontrol &= ~LCD_CURSORON; command(LCD_DISPLAYCONTROL | _displaycontrol); } void LiquidCrystalRus::cursor() { _displaycontrol |= LCD_CURSORON; command(LCD_DISPLAYCONTROL | _displaycontrol); } // Turn on and off the blinking cursor void LiquidCrystalRus::noBlink() { _displaycontrol &= ~LCD_BLINKON; command(LCD_DISPLAYCONTROL | _displaycontrol); } void LiquidCrystalRus::blink() { _displaycontrol |= LCD_BLINKON; command(LCD_DISPLAYCONTROL | _displaycontrol); } // These commands scroll the display without changing the RAM void LiquidCrystalRus::scrollDisplayLeft(void) { command(LCD_CURSORSHIFT | LCD_DISPLAYMOVE | LCD_MOVELEFT); } void LiquidCrystalRus::scrollDisplayRight(void) { command(LCD_CURSORSHIFT | LCD_DISPLAYMOVE | LCD_MOVERIGHT); } // This is for text that flows Left to Right void LiquidCrystalRus::leftToRight(void) { _displaymode |= LCD_ENTRYLEFT; command(LCD_ENTRYMODESET | _displaymode); } // This is for text that flows Right to Left void LiquidCrystalRus::rightToLeft(void) { _displaymode &= ~LCD_ENTRYLEFT; command(LCD_ENTRYMODESET | _displaymode); } // This will 'right justify' text from the cursor void LiquidCrystalRus::autoscroll(void) { _displaymode |= LCD_ENTRYSHIFTINCREMENT; command(LCD_ENTRYMODESET | _displaymode); } // This will 'left justify' text from the cursor void LiquidCrystalRus::noAutoscroll(void) { _displaymode &= ~LCD_ENTRYSHIFTINCREMENT; command(LCD_ENTRYMODESET | _displaymode); } // Allows us to fill the first 8 CGRAM locations // with custom characters void LiquidCrystalRus::createChar(uint8_t location, uint8_t charmap[]) { location &= 0x7; // we only have 8 locations 0-7 command(LCD_SETCGRAMADDR | (location << 3)); for (int i=0; i<8; i++) { write(charmap[i]); } } /*********** mid level commands, for sending data/cmds */ inline void LiquidCrystalRus::command(uint8_t value) { send(value, LOW); } #if defined(ARDUINO) && ARDUINO >= 100 size_t LiquidCrystalRus::write(uint8_t value) #else void LiquidCrystalRus::write(uint8_t value) #endif { uint8_t out_char=value; if (_dram_model == LCD_DRAM_WH1601) { uint8_t ac=recv(LOW) & 0x7f; if (ac>7 && ac<0x14) command(LCD_SETDDRAMADDR | (0x40+ac-8)); } if (value>=0x80) { // UTF-8 handling if (value >= 0xc0) { utf_hi_char = value - 0xd0; } else { value &= 0x3f; if (!utf_hi_char && (value == 1)) send(0xa2,HIGH); // else if ((utf_hi_char == 1) && (value == 0x11)) send(0xb5,HIGH); // else send(pgm_read_byte_near(utf_recode + value + (utf_hi_char<<6) - 0x10), HIGH); } } else send(out_char, HIGH); #if defined(ARDUINO) && ARDUINO >= 100 return 1; // assume success #endif } /************ low level data pushing commands **********/ // write either command or data, with automatic 4/8-bit selection void LiquidCrystalRus::send(uint8_t value, uint8_t mode) { digitalWrite(_rs_pin, mode); // if there is a RW pin indicated, set it low to Write if (_rw_pin != 255) { digitalWrite(_rw_pin, LOW); } if (_displayfunction & LCD_8BITMODE) { writeNbits(value,8); } else { writeNbits(value>>4,4); writeNbits(value,4); } } // read data, with automatic 4/8-bit selection uint8_t LiquidCrystalRus::recv(uint8_t mode) { uint8_t retval; digitalWrite(_rs_pin, mode); // if there is a RW pin indicated, set it low to Write if (_rw_pin != 255) { digitalWrite(_rw_pin, HIGH); } if (_displayfunction & LCD_8BITMODE) { retval = readNbits(8); } else { retval = readNbits(4) << 4; retval |= readNbits(4); } return retval; } void LiquidCrystalRus::pulseEnable() { digitalWrite(_enable_pin, LOW); delayMicroseconds(1); digitalWrite(_enable_pin, HIGH); delayMicroseconds(1); // enable pulse must be >450ns digitalWrite(_enable_pin, LOW); delayMicroseconds(100); // commands need > 37us to settle } void LiquidCrystalRus::writeNbits(uint8_t value, uint8_t n) { for (int i = 0; i < n; i++) { pinMode(_data_pins[i], OUTPUT); digitalWrite(_data_pins[i], (value >> i) & 0x01); } pulseEnable(); } uint8_t LiquidCrystalRus::readNbits(uint8_t n) { uint8_t retval=0; for (int i = 0; i < n; i++) { pinMode(_data_pins[i], INPUT); } digitalWrite(_enable_pin, LOW); delayMicroseconds(1); digitalWrite(_enable_pin, HIGH); delayMicroseconds(1); // enable pulse must be >450ns for (int i = 0; i < n; i++) { retval |= (digitalRead(_data_pins[i]) == HIGH)?(1 << i):0; } digitalWrite(_enable_pin, LOW); return retval; } ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/LiquidCrystalRus.cpp
c++
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
3,573
```objective-c /** * Italian * * LCD Menu Messages * Please note these are limited to 17 characters! * */ #ifndef LANGUAGE_IT_H #define LANGUAGE_IT_H #define WELCOME_MSG MACHINE_NAME " pronto." #define MSG_SD_INSERTED "SD Card inserita" #define MSG_SD_REMOVED "SD Card rimossa" #define MSG_MAIN "Menu principale" #define MSG_AUTOSTART "Autostart" #define MSG_DISABLE_STEPPERS "Disabilita Motori" #define MSG_AUTO_HOME "Auto Home" #define MSG_SET_HOME_OFFSETS "Setta offset home" #define MSG_SET_ORIGIN "Imposta Origine" #define MSG_PREHEAT_PLA "Preriscalda PLA" #define MSG_PREHEAT_PLA0 "Preriscalda PLA 1" #define MSG_PREHEAT_PLA1 "Preriscalda PLA 2" #define MSG_PREHEAT_PLA2 "Preriscalda PLA 3" #define MSG_PREHEAT_PLA012 "Prer. PLA Tutto" #define MSG_PREHEAT_PLA_BEDONLY "Prer. PLA Piatto" #define MSG_PREHEAT_PLA_SETTINGS "Config. prer. PLA" #define MSG_PREHEAT_ABS "Preriscalda ABS" #define MSG_PREHEAT_ABS0 "Preriscalda ABS 1" #define MSG_PREHEAT_ABS1 "Preriscalda ABS 2" #define MSG_PREHEAT_ABS2 "Preriscalda ABS 3" #define MSG_PREHEAT_ABS012 "Prer. ABS Tutto" #define MSG_PREHEAT_ABS_BEDONLY "Prer. ABS Piatto" #define MSG_PREHEAT_ABS_SETTINGS "Config. prer. ABS" #define MSG_COOLDOWN "Raffredda" #define MSG_SWITCH_PS_ON "Accendi aliment." #define MSG_SWITCH_PS_OFF "Spegni aliment." #define MSG_EXTRUDE "Estrudi" #define MSG_RETRACT "Ritrai" #define MSG_MOVE_AXIS "Muovi Asse" #define MSG_MOVE_X "Muovi X" #define MSG_MOVE_Y "Muovi Y" #define MSG_MOVE_Z "Muovi Z" #define MSG_MOVE_E "Estrusore" #define MSG_MOVE_E1 "Estrusore 2" #define MSG_MOVE_E2 "Estrusore 3" #define MSG_MOVE_01MM "Muovi di 0.1mm" #define MSG_MOVE_1MM "Muovi di 1mm" #define MSG_MOVE_10MM "Muovi di 10mm" #define MSG_SPEED "Velcit" #define MSG_NOZZLE "Ugello" #define MSG_NOZZLE1 "Ugello2" #define MSG_NOZZLE2 "Ugello3" #define MSG_BED "Piatto" #define MSG_FAN_SPEED "Ventola" #define MSG_FLOW "Flusso" #define MSG_FLOW0 "Flusso 0" #define MSG_FLOW1 "Flusso 1" #define MSG_FLOW2 "Flusso 2" #define MSG_CONTROL "Controllo" #define MSG_MIN " \002 Min:" #define MSG_MAX " \002 Max:" #define MSG_FACTOR " \002 Fact:" #define MSG_AUTOTEMP "Autotemp" #define MSG_ON "ON " #define MSG_OFF "OFF" #define MSG_PID_P "PID-P" #define MSG_PID_I "PID-I" #define MSG_PID_D "PID-D" #define MSG_PID_C "PID-C" #define MSG_ACC "Accel." #define MSG_VXY_JERK "Vxy-jerk" #define MSG_VZ_JERK "Vz-jerk" #define MSG_VE_JERK "Ve-jerk" #define MSG_VMAX "Vmax" #define MSG_X "x" #define MSG_Y "y" #define MSG_Z "z" #define MSG_E "e" #define MSG_VMIN "Vmin" #define MSG_VTRAV_MIN "VTrav min" #define MSG_AMAX "Amax" #define MSG_A_RETRACT "A-retract" #define MSG_XSTEPS "Xpassi/mm" #define MSG_YSTEPS "Ypassi/mm" #define MSG_ZSTEPS "Zpassi/mm" #define MSG_ESTEPS "Epassi/mm" #define MSG_TEMPERATURE "Temperatura" #define MSG_MOTION "Movimento" #define MSG_VOLUMETRIC "Filament" #define MSG_VOLUMETRIC_ENABLED "E in mm" #define MSG_FILAMENT_SIZE_EXTRUDER_0 "Diam. filo 1" #define MSG_FILAMENT_SIZE_EXTRUDER_1 "Diam. filo 2" #define MSG_FILAMENT_SIZE_EXTRUDER_2 "Diam. filo 3" #define MSG_CONTRAST "Contrasto LCD" #define MSG_STORE_EPROM "Salva in EEPROM" #define MSG_LOAD_EPROM "Carica da EEPROM" #define MSG_RESTORE_FAILSAFE "Impostaz. default" #define MSG_REFRESH "Aggiorna" #define MSG_WATCH "Guarda" #define MSG_PREPARE "Prepara" #define MSG_TUNE "Adatta" #define MSG_PAUSE_PRINT "Pausa" #define MSG_RESUME_PRINT "Riprendi stampa" #define MSG_STOP_PRINT "Arresta stampa" #define MSG_CARD_MENU "SD Card Menu" #define MSG_NO_CARD "No SD Card" #define MSG_DWELL "Sospensione..." #define MSG_USERWAIT "Attendi Utente..." #define MSG_RESUMING "Riprendi Stampa" #define MSG_PRINT_ABORTED "Stampa abortita" #define MSG_NO_MOVE "Nessun Movimento" #define MSG_KILLED "UCCISO " #define MSG_STOPPED "ARRESTATO " #define MSG_CONTROL_RETRACT "Ritrai mm" #define MSG_CONTROL_RETRACT_SWAP "Scamb. Ritrai mm" #define MSG_CONTROL_RETRACTF "Ritrai V" #define MSG_CONTROL_RETRACT_ZLIFT "Salta mm" #define MSG_CONTROL_RETRACT_RECOVER "UnRet +mm" #define MSG_CONTROL_RETRACT_RECOVER_SWAP "Scamb. UnRet +mm" #define MSG_CONTROL_RETRACT_RECOVERF "UnRet V" #define MSG_AUTORETRACT "AutoArretramento" #define MSG_FILAMENTCHANGE "Cambia filamento" #define MSG_INIT_SDCARD "Iniz. SD-Card" #define MSG_CNG_SDCARD "Cambia SD-Card" #define MSG_ZPROBE_OUT "Z probe out. bed" #define MSG_POSITION_UNKNOWN "Home X/Y before Z" #define MSG_ZPROBE_ZOFFSET "Z Offset" #define MSG_BABYSTEP_X "Babystep X" #define MSG_BABYSTEP_Y "Babystep Y" #define MSG_BABYSTEP_Z "Babystep Z" #define MSG_ENDSTOP_ABORT "Finecorsa abort" #define MSG_RECTRACT "Ritrai" #ifdef DELTA_CALIBRATION_MENU #define MSG_DELTA_CALIBRATE "Calibraz. Delta" #define MSG_DELTA_CALIBRATE_X "Calibra X" #define MSG_DELTA_CALIBRATE_Y "Calibra Y" #define MSG_DELTA_CALIBRATE_Z "Calibra Z" #define MSG_DELTA_CALIBRATE_CENTER "Calibra Center" #endif // DELTA_CALIBRATION_MENU #endif // LANGUAGE_IT_H ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/language_it.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
1,637
```objective-c /* motion_control.h - high level interface for issuing motion commands Part of Grbl Grbl is free software: you can redistribute it and/or modify (at your option) any later version. Grbl is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the along with Grbl. If not, see <path_to_url */ #ifndef motion_control_h #define motion_control_h // Execute an arc in offset mode format. position == current xyz, target == target xyz, // offset == offset from current xyz, axis_XXX defines circle plane in tool space, axis_linear is // the direction of helical travel, radius == circle radius, isclockwise boolean. Used // for vector transformation direction. void mc_arc(float *position, float *target, float *offset, unsigned char axis_0, unsigned char axis_1, unsigned char axis_linear, float feed_rate, float radius, unsigned char isclockwise, uint8_t extruder); #endif ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/motion_control.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
237
```objective-c /* HardwareSerial.h - Hardware serial library for Wiring This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU You should have received a copy of the GNU Lesser General Public Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Modified 28 September 2010 by Mark Sproul */ #ifndef MarlinSerial_h #define MarlinSerial_h #include "Marlin.h" #if !defined(SERIAL_PORT) #define SERIAL_PORT 0 #endif // The presence of the UBRRH register is used to detect a UART. #define UART_PRESENT(port) ((port == 0 && (defined(UBRRH) || defined(UBRR0H))) || \ (port == 1 && defined(UBRR1H)) || (port == 2 && defined(UBRR2H)) || \ (port == 3 && defined(UBRR3H))) // These are macros to build serial port register names for the selected SERIAL_PORT (C preprocessor // requires two levels of indirection to expand macro values properly) #define SERIAL_REGNAME(registerbase,number,suffix) SERIAL_REGNAME_INTERNAL(registerbase,number,suffix) #if SERIAL_PORT == 0 && (!defined(UBRR0H) || !defined(UDR0)) // use un-numbered registers if necessary #define SERIAL_REGNAME_INTERNAL(registerbase,number,suffix) registerbase##suffix #else #define SERIAL_REGNAME_INTERNAL(registerbase,number,suffix) registerbase##number##suffix #endif // Registers used by MarlinSerial class (these are expanded // depending on selected serial port #define M_UCSRxA SERIAL_REGNAME(UCSR,SERIAL_PORT,A) // defines M_UCSRxA to be UCSRnA where n is the serial port number #define M_UCSRxB SERIAL_REGNAME(UCSR,SERIAL_PORT,B) #define M_RXENx SERIAL_REGNAME(RXEN,SERIAL_PORT,) #define M_TXENx SERIAL_REGNAME(TXEN,SERIAL_PORT,) #define M_RXCIEx SERIAL_REGNAME(RXCIE,SERIAL_PORT,) #define M_UDREx SERIAL_REGNAME(UDRE,SERIAL_PORT,) #define M_UDRx SERIAL_REGNAME(UDR,SERIAL_PORT,) #define M_UBRRxH SERIAL_REGNAME(UBRR,SERIAL_PORT,H) #define M_UBRRxL SERIAL_REGNAME(UBRR,SERIAL_PORT,L) #define M_RXCx SERIAL_REGNAME(RXC,SERIAL_PORT,) #define M_USARTx_RX_vect SERIAL_REGNAME(USART,SERIAL_PORT,_RX_vect) #define M_U2Xx SERIAL_REGNAME(U2X,SERIAL_PORT,) #define DEC 10 #define HEX 16 #define OCT 8 #define BIN 2 #define BYTE 0 #ifndef AT90USB // Define constants and variables for buffering incoming serial data. We're // using a ring buffer (I think), in which rx_buffer_head is the index of the // location to which to write the next incoming character and rx_buffer_tail // is the index of the location from which to read. #define RX_BUFFER_SIZE 128 struct ring_buffer { unsigned char buffer[RX_BUFFER_SIZE]; int head; int tail; }; #if UART_PRESENT(SERIAL_PORT) extern ring_buffer rx_buffer; #endif class MarlinSerial //: public Stream { public: MarlinSerial(); void begin(long); void end(); int peek(void); int read(void); void flush(void); FORCE_INLINE int available(void) { return (unsigned int)(RX_BUFFER_SIZE + rx_buffer.head - rx_buffer.tail) % RX_BUFFER_SIZE; } FORCE_INLINE void write(uint8_t c) { while (!((M_UCSRxA) & (1 << M_UDREx))) ; M_UDRx = c; } FORCE_INLINE void checkRx(void) { if((M_UCSRxA & (1<<M_RXCx)) != 0) { unsigned char c = M_UDRx; int i = (unsigned int)(rx_buffer.head + 1) % RX_BUFFER_SIZE; // if we should be storing the received character into the location // just before the tail (meaning that the head would advance to the // current location of the tail), we're about to overflow the buffer // and so we don't write the character or advance the head. if (i != rx_buffer.tail) { rx_buffer.buffer[rx_buffer.head] = c; rx_buffer.head = i; } } } private: void printNumber(unsigned long, uint8_t); void printFloat(double, uint8_t); public: FORCE_INLINE void write(const char *str) { while (*str) write(*str++); } FORCE_INLINE void write(const uint8_t *buffer, size_t size) { while (size--) write(*buffer++); } FORCE_INLINE void print(const String &s) { for (int i = 0; i < (int)s.length(); i++) { write(s[i]); } } FORCE_INLINE void print(const char *str) { write(str); } void print(char, int = BYTE); void print(unsigned char, int = BYTE); void print(int, int = DEC); void print(unsigned int, int = DEC); void print(long, int = DEC); void print(unsigned long, int = DEC); void print(double, int = 2); void println(const String &s); void println(const char[]); void println(char, int = BYTE); void println(unsigned char, int = BYTE); void println(int, int = DEC); void println(unsigned int, int = DEC); void println(long, int = DEC); void println(unsigned long, int = DEC); void println(double, int = 2); void println(void); }; extern MarlinSerial MSerial; #endif // !AT90USB // Use the UART for BT in AT90USB configurations #if defined(AT90USB) && defined (BTENABLED) extern HardwareSerial bt; #endif #endif ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/MarlinSerial.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
1,393
```objective-c /* BlinkM.h Library header file for BlinkM library */ #if (ARDUINO >= 100) # include "Arduino.h" #else # include "WProgram.h" #endif #include "Wire.h" void SendColors(byte red, byte grn, byte blu); ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/BlinkM.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
64
```c++ #include "Marlin.h" #include "cardreader.h" #include "ultralcd.h" #include "stepper.h" #include "temperature.h" #include "language.h" #ifdef SDSUPPORT CardReader::CardReader() { filesize = 0; sdpos = 0; sdprinting = false; cardOK = false; saving = false; logging = false; autostart_atmillis=0; workDirDepth = 0; file_subcall_ctr=0; memset(workDirParents, 0, sizeof(workDirParents)); autostart_stilltocheck=true; //the SD start is delayed, because otherwise the serial cannot answer fast enough to make contact with the host software. lastnr=0; //power to SD reader #if SDPOWER > -1 SET_OUTPUT(SDPOWER); WRITE(SDPOWER,HIGH); #endif //SDPOWER autostart_atmillis=millis()+5000; } char *createFilename(char *buffer,const dir_t &p) //buffer>12characters { char *pos=buffer; for (uint8_t i = 0; i < 11; i++) { if (p.name[i] == ' ')continue; if (i == 8) { *pos++='.'; } *pos++=p.name[i]; } *pos++=0; return buffer; } void CardReader::lsDive(const char *prepend, SdFile parent, const char * const match/*=NULL*/) { dir_t p; uint8_t cnt=0; while (parent.readDir(p, longFilename) > 0) { if( DIR_IS_SUBDIR(&p) && lsAction!=LS_Count && lsAction!=LS_GetFilename) // hence LS_SerialPrint { char path[13*2]; char lfilename[13]; createFilename(lfilename,p); path[0]=0; if(strlen(prepend)==0) //avoid leading / if already in prepend { strcat(path,"/"); } strcat(path,prepend); strcat(path,lfilename); strcat(path,"/"); //Serial.print(path); SdFile dir; if(!dir.open(parent,lfilename, O_READ)) { if(lsAction==LS_SerialPrint) { SERIAL_ECHO_START; SERIAL_ECHOLN(MSG_SD_CANT_OPEN_SUBDIR); SERIAL_ECHOLN(lfilename); } } lsDive(path,dir); //close done automatically by destructor of SdFile } else { char pn0 = p.name[0]; if (pn0 == DIR_NAME_FREE) break; if (pn0 == DIR_NAME_DELETED || pn0 == '.' || pn0 == '_') continue; char lf0 = longFilename[0]; if (lf0 == '.' || lf0 == '_') continue; if (!DIR_IS_FILE_OR_SUBDIR(&p)) continue; filenameIsDir=DIR_IS_SUBDIR(&p); if(!filenameIsDir) { if(p.name[8]!='G') continue; if(p.name[9]=='~') continue; } //if(cnt++!=nr) continue; createFilename(filename,p); if(lsAction==LS_SerialPrint) { SERIAL_PROTOCOL(prepend); SERIAL_PROTOCOLLN(filename); } else if(lsAction==LS_Count) { nrFiles++; } else if(lsAction==LS_GetFilename) { if (match != NULL) { if (strcasecmp(match, filename) == 0) return; } else if (cnt == nrFiles) return; cnt++; } } } } void CardReader::ls() { lsAction=LS_SerialPrint; if(lsAction==LS_Count) nrFiles=0; root.rewind(); lsDive("",root); } void CardReader::initsd() { cardOK = false; if(root.isOpen()) root.close(); #ifdef SDSLOW if (!card.init(SPI_HALF_SPEED,SDSS) #if defined(LCD_SDSS) && (LCD_SDSS != SDSS) && !card.init(SPI_HALF_SPEED,LCD_SDSS) #endif ) #else if (!card.init(SPI_FULL_SPEED,SDSS) #if defined(LCD_SDSS) && (LCD_SDSS != SDSS) && !card.init(SPI_FULL_SPEED,LCD_SDSS) #endif ) #endif { //if (!card.init(SPI_HALF_SPEED,SDSS)) SERIAL_ECHO_START; SERIAL_ECHOLNPGM(MSG_SD_INIT_FAIL); } else if (!volume.init(&card)) { SERIAL_ERROR_START; SERIAL_ERRORLNPGM(MSG_SD_VOL_INIT_FAIL); } else if (!root.openRoot(&volume)) { SERIAL_ERROR_START; SERIAL_ERRORLNPGM(MSG_SD_OPENROOT_FAIL); } else { cardOK = true; SERIAL_ECHO_START; SERIAL_ECHOLNPGM(MSG_SD_CARD_OK); } workDir=root; curDir=&root; /* if(!workDir.openRoot(&volume)) { SERIAL_ECHOLNPGM(MSG_SD_WORKDIR_FAIL); } */ } void CardReader::setroot() { /*if(!workDir.openRoot(&volume)) { SERIAL_ECHOLNPGM(MSG_SD_WORKDIR_FAIL); }*/ workDir=root; curDir=&workDir; } void CardReader::release() { sdprinting = false; cardOK = false; } void CardReader::startFileprint() { if(cardOK) { sdprinting = true; } } void CardReader::pauseSDPrint() { if(sdprinting) { sdprinting = false; } } void CardReader::openLogFile(char* name) { logging = true; openFile(name, false); } void CardReader::getAbsFilename(char *t) { uint8_t cnt=0; *t='/';t++;cnt++; for(uint8_t i=0;i<workDirDepth;i++) { workDirParents[i].getFilename(t); //SDBaseFile.getfilename! while(*t!=0 && cnt< MAXPATHNAMELENGTH) {t++;cnt++;} //crawl counter forward. } if(cnt<MAXPATHNAMELENGTH-13) file.getFilename(t); else t[0]=0; } void CardReader::openFile(char* name,bool read, bool replace_current/*=true*/) { if(!cardOK) return; if(file.isOpen()) //replacing current file by new file, or subfile call { if(!replace_current) { if((int)file_subcall_ctr>(int)SD_PROCEDURE_DEPTH-1) { SERIAL_ERROR_START; SERIAL_ERRORPGM("trying to call sub-gcode files with too many levels. MAX level is:"); SERIAL_ERRORLN(SD_PROCEDURE_DEPTH); kill(); return; } SERIAL_ECHO_START; SERIAL_ECHOPGM("SUBROUTINE CALL target:\""); SERIAL_ECHO(name); SERIAL_ECHOPGM("\" parent:\""); //store current filename and position getAbsFilename(filenames[file_subcall_ctr]); SERIAL_ECHO(filenames[file_subcall_ctr]); SERIAL_ECHOPGM("\" pos"); SERIAL_ECHOLN(sdpos); filespos[file_subcall_ctr]=sdpos; file_subcall_ctr++; } else { SERIAL_ECHO_START; SERIAL_ECHOPGM("Now doing file: "); SERIAL_ECHOLN(name); } file.close(); } else //opening fresh file { file_subcall_ctr=0; //resetting procedure depth in case user cancels print while in procedure SERIAL_ECHO_START; SERIAL_ECHOPGM("Now fresh file: "); SERIAL_ECHOLN(name); } sdprinting = false; SdFile myDir; curDir=&root; char *fname=name; char *dirname_start,*dirname_end; if(name[0]=='/') { dirname_start=strchr(name,'/')+1; while(dirname_start>0) { dirname_end=strchr(dirname_start,'/'); //SERIAL_ECHO("start:");SERIAL_ECHOLN((int)(dirname_start-name)); //SERIAL_ECHO("end :");SERIAL_ECHOLN((int)(dirname_end-name)); if(dirname_end>0 && dirname_end>dirname_start) { char subdirname[13]; strncpy(subdirname, dirname_start, dirname_end-dirname_start); subdirname[dirname_end-dirname_start]=0; SERIAL_ECHOLN(subdirname); if(!myDir.open(curDir,subdirname,O_READ)) { SERIAL_PROTOCOLPGM(MSG_SD_OPEN_FILE_FAIL); SERIAL_PROTOCOL(subdirname); SERIAL_PROTOCOLLNPGM("."); return; } else { //SERIAL_ECHOLN("dive ok"); } curDir=&myDir; dirname_start=dirname_end+1; } else // the reminder after all /fsa/fdsa/ is the filename { fname=dirname_start; //SERIAL_ECHOLN("remaider"); //SERIAL_ECHOLN(fname); break; } } } else //relative path { curDir=&workDir; } if(read) { if (file.open(curDir, fname, O_READ)) { filesize = file.fileSize(); SERIAL_PROTOCOLPGM(MSG_SD_FILE_OPENED); SERIAL_PROTOCOL(fname); SERIAL_PROTOCOLPGM(MSG_SD_SIZE); SERIAL_PROTOCOLLN(filesize); sdpos = 0; SERIAL_PROTOCOLLNPGM(MSG_SD_FILE_SELECTED); getfilename(0, fname); lcd_setstatus(longFilename[0] ? longFilename : fname); } else { SERIAL_PROTOCOLPGM(MSG_SD_OPEN_FILE_FAIL); SERIAL_PROTOCOL(fname); SERIAL_PROTOCOLLNPGM("."); } } else { //write if (!file.open(curDir, fname, O_CREAT | O_APPEND | O_WRITE | O_TRUNC)) { SERIAL_PROTOCOLPGM(MSG_SD_OPEN_FILE_FAIL); SERIAL_PROTOCOL(fname); SERIAL_PROTOCOLLNPGM("."); } else { saving = true; SERIAL_PROTOCOLPGM(MSG_SD_WRITE_TO_FILE); SERIAL_PROTOCOLLN(name); lcd_setstatus(fname); } } } void CardReader::removeFile(char* name) { if(!cardOK) return; file.close(); sdprinting = false; SdFile myDir; curDir=&root; char *fname=name; char *dirname_start,*dirname_end; if(name[0]=='/') { dirname_start=strchr(name,'/')+1; while(dirname_start>0) { dirname_end=strchr(dirname_start,'/'); //SERIAL_ECHO("start:");SERIAL_ECHOLN((int)(dirname_start-name)); //SERIAL_ECHO("end :");SERIAL_ECHOLN((int)(dirname_end-name)); if(dirname_end>0 && dirname_end>dirname_start) { char subdirname[13]; strncpy(subdirname, dirname_start, dirname_end-dirname_start); subdirname[dirname_end-dirname_start]=0; SERIAL_ECHOLN(subdirname); if(!myDir.open(curDir,subdirname,O_READ)) { SERIAL_PROTOCOLPGM("open failed, File: "); SERIAL_PROTOCOL(subdirname); SERIAL_PROTOCOLLNPGM("."); return; } else { //SERIAL_ECHOLN("dive ok"); } curDir=&myDir; dirname_start=dirname_end+1; } else // the reminder after all /fsa/fdsa/ is the filename { fname=dirname_start; //SERIAL_ECHOLN("remaider"); //SERIAL_ECHOLN(fname); break; } } } else //relative path { curDir=&workDir; } if (file.remove(curDir, fname)) { SERIAL_PROTOCOLPGM("File deleted:"); SERIAL_PROTOCOLLN(fname); sdpos = 0; } else { SERIAL_PROTOCOLPGM("Deletion failed, File: "); SERIAL_PROTOCOL(fname); SERIAL_PROTOCOLLNPGM("."); } } void CardReader::getStatus() { if(cardOK){ SERIAL_PROTOCOLPGM(MSG_SD_PRINTING_BYTE); SERIAL_PROTOCOL(sdpos); SERIAL_PROTOCOLPGM("/"); SERIAL_PROTOCOLLN(filesize); } else{ SERIAL_PROTOCOLLNPGM(MSG_SD_NOT_PRINTING); } } void CardReader::write_command(char *buf) { char* begin = buf; char* npos = 0; char* end = buf + strlen(buf) - 1; file.writeError = false; if((npos = strchr(buf, 'N')) != NULL) { begin = strchr(npos, ' ') + 1; end = strchr(npos, '*') - 1; } end[1] = '\r'; end[2] = '\n'; end[3] = '\0'; file.write(begin); if (file.writeError) { SERIAL_ERROR_START; SERIAL_ERRORLNPGM(MSG_SD_ERR_WRITE_TO_FILE); } } void CardReader::checkautostart(bool force) { if(!force) { if(!autostart_stilltocheck) return; if(autostart_atmillis<millis()) return; } autostart_stilltocheck=false; if(!cardOK) { initsd(); if(!cardOK) //fail return; } char autoname[30]; sprintf_P(autoname, PSTR("auto%i.g"), lastnr); for(int8_t i=0;i<(int8_t)strlen(autoname);i++) autoname[i]=tolower(autoname[i]); dir_t p; root.rewind(); bool found=false; while (root.readDir(p, NULL) > 0) { for(int8_t i=0;i<(int8_t)strlen((char*)p.name);i++) p.name[i]=tolower(p.name[i]); //Serial.print((char*)p.name); //Serial.print(" "); //Serial.println(autoname); if(p.name[9]!='~') //skip safety copies if(strncmp((char*)p.name,autoname,5)==0) { char cmd[30]; sprintf_P(cmd, PSTR("M23 %s"), autoname); enquecommand(cmd); enquecommand_P(PSTR("M24")); found=true; } } if(!found) lastnr=-1; else lastnr++; } void CardReader::closefile(bool store_location) { file.sync(); file.close(); saving = false; logging = false; if(store_location) { //future: store printer state, filename and position for continuing a stopped print // so one can unplug the printer and continue printing the next day. } } void CardReader::getfilename(uint16_t nr, const char * const match/*=NULL*/) { curDir=&workDir; lsAction=LS_GetFilename; nrFiles=nr; curDir->rewind(); lsDive("",*curDir,match); } uint16_t CardReader::getnrfilenames() { curDir=&workDir; lsAction=LS_Count; nrFiles=0; curDir->rewind(); lsDive("",*curDir); //SERIAL_ECHOLN(nrFiles); return nrFiles; } void CardReader::chdir(const char * relpath) { SdFile newfile; SdFile *parent=&root; if(workDir.isOpen()) parent=&workDir; if(!newfile.open(*parent,relpath, O_READ)) { SERIAL_ECHO_START; SERIAL_ECHOPGM(MSG_SD_CANT_ENTER_SUBDIR); SERIAL_ECHOLN(relpath); } else { if (workDirDepth < MAX_DIR_DEPTH) { for (int d = ++workDirDepth; d--;) workDirParents[d+1] = workDirParents[d]; workDirParents[0]=*parent; } workDir=newfile; } } void CardReader::updir() { if(workDirDepth > 0) { --workDirDepth; workDir = workDirParents[0]; int d; for (int d = 0; d < workDirDepth; d++) workDirParents[d] = workDirParents[d+1]; } } void CardReader::printingHasFinished() { st_synchronize(); if(file_subcall_ctr>0) //heading up to a parent file that called current as a procedure. { file.close(); file_subcall_ctr--; openFile(filenames[file_subcall_ctr],true,true); setIndex(filespos[file_subcall_ctr]); startFileprint(); } else { quickStop(); file.close(); sdprinting = false; if(SD_FINISHED_STEPPERRELEASE) { //finishAndDisableSteppers(); enquecommand_P(PSTR(SD_FINISHED_RELEASECOMMAND)); } autotempShutdown(); } } #endif //SDSUPPORT ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/cardreader.cpp
c++
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
3,924
```objective-c #ifndef CONFIG_STORE_H #define CONFIG_STORE_H #include "Configuration.h" void Config_ResetDefault(); #ifndef DISABLE_M503 void Config_PrintSettings(); #else FORCE_INLINE void Config_PrintSettings() {} #endif #ifdef EEPROM_SETTINGS void Config_StoreSettings(); void Config_RetrieveSettings(); #else FORCE_INLINE void Config_StoreSettings() {} FORCE_INLINE void Config_RetrieveSettings() { Config_ResetDefault(); Config_PrintSettings(); } #endif #endif//CONFIG_STORE_H ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/ConfigurationStore.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
96
```c++ /* -*- c++ -*- */ /* Reprap firmware based on Sprinter and grbl. This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the along with this program. If not, see <path_to_url */ /* This firmware is a mashup between Sprinter and grbl. (path_to_url (path_to_url It has preliminary support for Matthew Roberts advance algorithm path_to_url */ #include "Marlin.h" #ifdef ENABLE_AUTO_BED_LEVELING #include "vector_3.h" #ifdef AUTO_BED_LEVELING_GRID #include "qr_solve.h" #endif #endif // ENABLE_AUTO_BED_LEVELING #include "ultralcd.h" #include "planner.h" #include "stepper.h" #include "temperature.h" #include "motion_control.h" #include "cardreader.h" #include "watchdog.h" #include "ConfigurationStore.h" #include "language.h" #include "pins_arduino.h" #include "math.h" #ifdef BLINKM #include "BlinkM.h" #include "Wire.h" #endif #if NUM_SERVOS > 0 #include "Servo.h" #endif #if defined(DIGIPOTSS_PIN) && DIGIPOTSS_PIN > -1 #include <SPI.h> #endif #define VERSION_STRING "1.0.2" // look here for descriptions of G-codes: path_to_url // path_to_url //Implemented Codes //------------------- // G0 -> G1 // G1 - Coordinated Movement X Y Z E // G2 - CW ARC // G3 - CCW ARC // G4 - Dwell S<seconds> or P<milliseconds> // G10 - retract filament according to settings of M207 // G11 - retract recover filament according to settings of M208 // G28 - Home all Axis // G29 - Detailed Z-Probe, probes the bed at 3 or more points. Will fail if you haven't homed yet. // G30 - Single Z Probe, probes bed at current XY location. // G31 - Dock sled (Z_PROBE_SLED only) // G32 - Undock sled (Z_PROBE_SLED only) // G90 - Use Absolute Coordinates // G91 - Use Relative Coordinates // G92 - Set current position to coordinates given // M Codes // M0 - Unconditional stop - Wait for user to press a button on the LCD (Only if ULTRA_LCD is enabled) // M1 - Same as M0 // M17 - Enable/Power all stepper motors // M18 - Disable all stepper motors; same as M84 // M20 - List SD card // M21 - Init SD card // M22 - Release SD card // M23 - Select SD file (M23 filename.g) // M24 - Start/resume SD print // M25 - Pause SD print // M26 - Set SD position in bytes (M26 S12345) // M27 - Report SD print status // M28 - Start SD write (M28 filename.g) // M29 - Stop SD write // M30 - Delete file from SD (M30 filename.g) // M31 - Output time since last M109 or SD card start to serial // M32 - Select file and start SD print (Can be used _while_ printing from SD card files): // syntax "M32 /path/filename#", or "M32 S<startpos bytes> !filename#" // Call gcode file : "M32 P !filename#" and return to caller file after finishing (similar to #include). // The '#' is necessary when calling from within sd files, as it stops buffer prereading // M42 - Change pin status via gcode Use M42 Px Sy to set pin x to value y, when omitting Px the onboard led will be used. // M80 - Turn on Power Supply // M81 - Turn off Power Supply // M82 - Set E codes absolute (default) // M83 - Set E codes relative while in Absolute Coordinates (G90) mode // M84 - Disable steppers until next move, // or use S<seconds> to specify an inactivity timeout, after which the steppers will be disabled. S0 to disable the timeout. // M85 - Set inactivity shutdown timer with parameter S<seconds>. To disable set zero (default) // M92 - Set axis_steps_per_unit - same syntax as G92 // M104 - Set extruder target temp // M105 - Read current temp // M106 - Fan on // M107 - Fan off // M109 - Sxxx Wait for extruder current temp to reach target temp. Waits only when heating // Rxxx Wait for extruder current temp to reach target temp. Waits when heating and cooling // IF AUTOTEMP is enabled, S<mintemp> B<maxtemp> F<factor>. Exit autotemp by any M109 without F // M112 - Emergency stop // M114 - Output current position to serial port // M115 - Capabilities string // M117 - display message // M119 - Output Endstop status to serial port // M126 - Solenoid Air Valve Open (BariCUDA support by jmil) // M127 - Solenoid Air Valve Closed (BariCUDA vent to atmospheric pressure by jmil) // M128 - EtoP Open (BariCUDA EtoP = electricity to air pressure transducer by jmil) // M129 - EtoP Closed (BariCUDA EtoP = electricity to air pressure transducer by jmil) // M140 - Set bed target temp // M150 - Set BlinkM Color Output R: Red<0-255> U(!): Green<0-255> B: Blue<0-255> over i2c, G for green does not work. // M190 - Sxxx Wait for bed current temp to reach target temp. Waits only when heating // Rxxx Wait for bed current temp to reach target temp. Waits when heating and cooling // M200 D<millimeters>- set filament diameter and set E axis units to cubic millimeters (use S0 to set back to millimeters). // M201 - Set max acceleration in units/s^2 for print moves (M201 X1000 Y1000) // M202 - Set max acceleration in units/s^2 for travel moves (M202 X1000 Y1000) Unused in Marlin!! // M203 - Set maximum feedrate that your machine can sustain (M203 X200 Y200 Z300 E10000) in mm/sec // M204 - Set default acceleration: S normal moves T filament only moves (M204 S3000 T7000) in mm/sec^2 also sets minimum segment time in ms (B20000) to prevent buffer under-runs and M20 minimum feedrate // M205 - advanced settings: minimum travel speed S=while printing T=travel only, B=minimum segment time X= maximum xy jerk, Z=maximum Z jerk, E=maximum E jerk // M206 - set additional homing offset // M207 - set retract length S[positive mm] F[feedrate mm/min] Z[additional zlift/hop], stays in mm regardless of M200 setting // M208 - set recover=unretract length S[positive mm surplus to the M207 S*] F[feedrate mm/sec] // M209 - S<1=true/0=false> enable automatic retract detect if the slicer did not support G10/11: every normal extrude-only move will be classified as retract depending on the direction. // M218 - set hotend offset (in mm): T<extruder_number> X<offset_on_X> Y<offset_on_Y> // M220 S<factor in percent>- set speed factor override percentage // M221 S<factor in percent>- set extrude factor override percentage // M226 P<pin number> S<pin state>- Wait until the specified pin reaches the state required // M240 - Trigger a camera to take a photograph // M250 - Set LCD contrast C<contrast value> (value 0..63) // M280 - set servo position absolute. P: servo index, S: angle or microseconds // M300 - Play beep sound S<frequency Hz> P<duration ms> // M301 - Set PID parameters P I and D // M302 - Allow cold extrudes, or set the minimum extrude S<temperature>. // M303 - PID relay autotune S<temperature> sets the target temperature. (default target temperature = 150C) // M304 - Set bed PID parameters P I and D // M400 - Finish all moves // M401 - Lower z-probe if present // M402 - Raise z-probe if present // M404 - N<dia in mm> Enter the nominal filament width (3mm, 1.75mm ) or will display nominal filament width without parameters // M405 - Turn on Filament Sensor extrusion control. Optional D<delay in cm> to set delay in centimeters between sensor and extruder // M406 - Turn off Filament Sensor extrusion control // M407 - Displays measured filament diameter // M500 - stores parameters in EEPROM // M501 - reads parameters from EEPROM (if you need reset them after you changed them temporarily). // M502 - reverts to the default "factory settings". You still need to store them in EEPROM afterwards if you want to. // M503 - print the current settings (from memory not from EEPROM) // M540 - Use S[0|1] to enable or disable the stop SD card print on endstop hit (requires ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED) // M600 - Pause for filament change X[pos] Y[pos] Z[relative lift] E[initial retract] L[later retract distance for removal] // M665 - set delta configurations // M666 - set delta endstop adjustment // M605 - Set dual x-carriage movement mode: S<mode> [ X<duplication x-offset> R<duplication temp offset> ] // M907 - Set digital trimpot motor current using axis codes. // M908 - Control digital trimpot directly. // M350 - Set microstepping mode. // M351 - Toggle MS1 MS2 pins directly. // ************ SCARA Specific - This can change to suit future G-code regulations // M360 - SCARA calibration: Move to cal-position ThetaA (0 deg calibration) // M361 - SCARA calibration: Move to cal-position ThetaB (90 deg calibration - steps per degree) // M362 - SCARA calibration: Move to cal-position PsiA (0 deg calibration) // M363 - SCARA calibration: Move to cal-position PsiB (90 deg calibration - steps per degree) // M364 - SCARA calibration: Move to cal-position PSIC (90 deg to Theta calibration position) // M365 - SCARA calibration: Scaling factor, X, Y, Z axis //************* SCARA End *************** // M928 - Start SD logging (M928 filename.g) - ended by M29 // M999 - Restart after being stopped by error //Stepper Movement Variables //=========================================================================== //=============================imported variables============================ //=========================================================================== //=========================================================================== //=============================public variables============================= //=========================================================================== #ifdef SDSUPPORT CardReader card; #endif float homing_feedrate[] = HOMING_FEEDRATE; bool axis_relative_modes[] = AXIS_RELATIVE_MODES; int feedmultiply=100; //100->1 200->2 int saved_feedmultiply; int extrudemultiply=100; //100->1 200->2 int extruder_multiply[EXTRUDERS] = {100 #if EXTRUDERS > 1 , 100 #if EXTRUDERS > 2 , 100 #endif #endif }; bool volumetric_enabled = false; float filament_size[EXTRUDERS] = { DEFAULT_NOMINAL_FILAMENT_DIA #if EXTRUDERS > 1 , DEFAULT_NOMINAL_FILAMENT_DIA #if EXTRUDERS > 2 , DEFAULT_NOMINAL_FILAMENT_DIA #endif #endif }; float volumetric_multiplier[EXTRUDERS] = {1.0 #if EXTRUDERS > 1 , 1.0 #if EXTRUDERS > 2 , 1.0 #endif #endif }; float current_position[NUM_AXIS] = { 0.0, 0.0, 0.0, 0.0 }; float add_homing[3]={0,0,0}; #ifdef DELTA float endstop_adj[3]={0,0,0}; #endif float min_pos[3] = { X_MIN_POS, Y_MIN_POS, Z_MIN_POS }; float max_pos[3] = { X_MAX_POS, Y_MAX_POS, Z_MAX_POS }; bool axis_known_position[3] = {false, false, false}; float zprobe_zoffset; // Extruder offset #if EXTRUDERS > 1 #ifndef DUAL_X_CARRIAGE #define NUM_EXTRUDER_OFFSETS 2 // only in XY plane #else #define NUM_EXTRUDER_OFFSETS 3 // supports offsets in XYZ plane #endif float extruder_offset[NUM_EXTRUDER_OFFSETS][EXTRUDERS] = { #if defined(EXTRUDER_OFFSET_X) && defined(EXTRUDER_OFFSET_Y) EXTRUDER_OFFSET_X, EXTRUDER_OFFSET_Y #endif }; #endif uint8_t active_extruder = 0; int fanSpeed=0; #ifdef SERVO_ENDSTOPS int servo_endstops[] = SERVO_ENDSTOPS; int servo_endstop_angles[] = SERVO_ENDSTOP_ANGLES; #endif #ifdef BARICUDA int ValvePressure=0; int EtoPPressure=0; #endif #ifdef FWRETRACT bool autoretract_enabled=false; bool retracted[EXTRUDERS]={false #if EXTRUDERS > 1 , false #if EXTRUDERS > 2 , false #endif #endif }; bool retracted_swap[EXTRUDERS]={false #if EXTRUDERS > 1 , false #if EXTRUDERS > 2 , false #endif #endif }; float retract_length = RETRACT_LENGTH; float retract_length_swap = RETRACT_LENGTH_SWAP; float retract_feedrate = RETRACT_FEEDRATE; float retract_zlift = RETRACT_ZLIFT; float retract_recover_length = RETRACT_RECOVER_LENGTH; float retract_recover_length_swap = RETRACT_RECOVER_LENGTH_SWAP; float retract_recover_feedrate = RETRACT_RECOVER_FEEDRATE; #endif #ifdef ULTIPANEL #ifdef PS_DEFAULT_OFF bool powersupply = false; #else bool powersupply = true; #endif #endif #ifdef DELTA float delta[3] = {0.0, 0.0, 0.0}; #define SIN_60 0.8660254037844386 #define COS_60 0.5 // these are the default values, can be overriden with M665 float delta_radius= DELTA_RADIUS; float delta_tower1_x= -SIN_60*delta_radius; // front left tower float delta_tower1_y= -COS_60*delta_radius; float delta_tower2_x= SIN_60*delta_radius; // front right tower float delta_tower2_y= -COS_60*delta_radius; float delta_tower3_x= 0.0; // back middle tower float delta_tower3_y= delta_radius; float delta_diagonal_rod= DELTA_DIAGONAL_ROD; float delta_diagonal_rod_2= sq(delta_diagonal_rod); float delta_segments_per_second= DELTA_SEGMENTS_PER_SECOND; #endif #ifdef SCARA // Build size scaling float axis_scaling[3]={1,1,1}; // Build size scaling, default to 1 #endif bool cancel_heatup = false ; #ifdef FILAMENT_SENSOR //Variables for Filament Sensor input float filament_width_nominal=DEFAULT_NOMINAL_FILAMENT_DIA; //Set nominal filament width, can be changed with M404 bool filament_sensor=false; //M405 turns on filament_sensor control, M406 turns it off float filament_width_meas=DEFAULT_MEASURED_FILAMENT_DIA; //Stores the measured filament diameter signed char measurement_delay[MAX_MEASUREMENT_DELAY+1]; //ring buffer to delay measurement store extruder factor after subtracting 100 int delay_index1=0; //index into ring buffer int delay_index2=-1; //index into ring buffer - set to -1 on startup to indicate ring buffer needs to be initialized float delay_dist=0; //delay distance counter int meas_delay_cm = MEASUREMENT_DELAY_CM; //distance delay setting #endif const char errormagic[] PROGMEM = "Error:"; const char echomagic[] PROGMEM = "echo:"; //=========================================================================== //=============================Private Variables============================= //=========================================================================== const char axis_codes[NUM_AXIS] = {'X', 'Y', 'Z', 'E'}; static float destination[NUM_AXIS] = { 0.0, 0.0, 0.0, 0.0}; #ifndef DELTA static float delta[3] = {0.0, 0.0, 0.0}; #endif static float offset[3] = {0.0, 0.0, 0.0}; static bool home_all_axis = true; static float feedrate = 1500.0, next_feedrate, saved_feedrate; static long gcode_N, gcode_LastN, Stopped_gcode_LastN = 0; static bool relative_mode = false; //Determines Absolute or Relative Coordinates static char cmdbuffer[BUFSIZE][MAX_CMD_SIZE]; static bool fromsd[BUFSIZE]; static int bufindr = 0; static int bufindw = 0; static int buflen = 0; //static int i = 0; static char serial_char; static int serial_count = 0; static boolean comment_mode = false; static char *strchr_pointer; // just a pointer to find chars in the command string like X, Y, Z, E, etc const int sensitive_pins[] = SENSITIVE_PINS; // Sensitive pin list for M42 //static float tt = 0; //static float bt = 0; //Inactivity shutdown variables static unsigned long previous_millis_cmd = 0; static unsigned long max_inactive_time = 0; static unsigned long stepper_inactive_time = DEFAULT_STEPPER_DEACTIVE_TIME*1000l; unsigned long starttime=0; unsigned long stoptime=0; static uint8_t tmp_extruder; bool Stopped=false; #if NUM_SERVOS > 0 Servo servos[NUM_SERVOS]; #endif bool CooldownNoWait = true; bool target_direction; //Insert variables if CHDK is defined #ifdef CHDK unsigned long chdkHigh = 0; boolean chdkActive = false; #endif //=========================================================================== //=============================Routines====================================== //=========================================================================== void get_arc_coordinates(); bool setTargetedHotend(int code); void serial_echopair_P(const char *s_P, float v) { serialprintPGM(s_P); SERIAL_ECHO(v); } void serial_echopair_P(const char *s_P, double v) { serialprintPGM(s_P); SERIAL_ECHO(v); } void serial_echopair_P(const char *s_P, unsigned long v) { serialprintPGM(s_P); SERIAL_ECHO(v); } #ifdef SDSUPPORT #include "SdFatUtil.h" int freeMemory() { return SdFatUtil::FreeRam(); } #else extern "C" { extern unsigned int __bss_end; extern unsigned int __heap_start; extern void *__brkval; int freeMemory() { int free_memory; if ((int)__brkval == 0) free_memory = ((int)&free_memory) - ((int)&__bss_end); else free_memory = ((int)&free_memory) - ((int)__brkval); return free_memory; } } #endif //!SDSUPPORT //adds an command to the main command buffer //thats really done in a non-safe way. //needs overworking someday void enquecommand(const char *cmd) { if(buflen < BUFSIZE) { //this is dangerous if a mixing of serial and this happens strcpy(&(cmdbuffer[bufindw][0]),cmd); SERIAL_ECHO_START; SERIAL_ECHOPGM(MSG_Enqueing); SERIAL_ECHO(cmdbuffer[bufindw]); SERIAL_ECHOLNPGM("\""); bufindw= (bufindw + 1)%BUFSIZE; buflen += 1; } } void enquecommand_P(const char *cmd) { if(buflen < BUFSIZE) { //this is dangerous if a mixing of serial and this happens strcpy_P(&(cmdbuffer[bufindw][0]),cmd); SERIAL_ECHO_START; SERIAL_ECHOPGM(MSG_Enqueing); SERIAL_ECHO(cmdbuffer[bufindw]); SERIAL_ECHOLNPGM("\""); bufindw= (bufindw + 1)%BUFSIZE; buflen += 1; } } void setup_killpin() { #if defined(KILL_PIN) && KILL_PIN > -1 SET_INPUT(KILL_PIN); WRITE(KILL_PIN,HIGH); #endif } // Set home pin void setup_homepin(void) { #if defined(HOME_PIN) && HOME_PIN > -1 SET_INPUT(HOME_PIN); WRITE(HOME_PIN,HIGH); #endif } void setup_photpin() { #if defined(PHOTOGRAPH_PIN) && PHOTOGRAPH_PIN > -1 SET_OUTPUT(PHOTOGRAPH_PIN); WRITE(PHOTOGRAPH_PIN, LOW); #endif } void setup_powerhold() { #if defined(SUICIDE_PIN) && SUICIDE_PIN > -1 SET_OUTPUT(SUICIDE_PIN); WRITE(SUICIDE_PIN, HIGH); #endif #if defined(PS_ON_PIN) && PS_ON_PIN > -1 SET_OUTPUT(PS_ON_PIN); #if defined(PS_DEFAULT_OFF) WRITE(PS_ON_PIN, PS_ON_ASLEEP); #else WRITE(PS_ON_PIN, PS_ON_AWAKE); #endif #endif } void suicide() { #if defined(SUICIDE_PIN) && SUICIDE_PIN > -1 SET_OUTPUT(SUICIDE_PIN); WRITE(SUICIDE_PIN, LOW); #endif } void servo_init() { #if (NUM_SERVOS >= 1) && defined(SERVO0_PIN) && (SERVO0_PIN > -1) servos[0].attach(SERVO0_PIN); #endif #if (NUM_SERVOS >= 2) && defined(SERVO1_PIN) && (SERVO1_PIN > -1) servos[1].attach(SERVO1_PIN); #endif #if (NUM_SERVOS >= 3) && defined(SERVO2_PIN) && (SERVO2_PIN > -1) servos[2].attach(SERVO2_PIN); #endif #if (NUM_SERVOS >= 4) && defined(SERVO3_PIN) && (SERVO3_PIN > -1) servos[3].attach(SERVO3_PIN); #endif #if (NUM_SERVOS >= 5) #error "TODO: enter initalisation code for more servos" #endif // Set position of Servo Endstops that are defined #ifdef SERVO_ENDSTOPS for(int8_t i = 0; i < 3; i++) { if(servo_endstops[i] > -1) { servos[servo_endstops[i]].write(servo_endstop_angles[i * 2 + 1]); } } #endif #if defined (ENABLE_AUTO_BED_LEVELING) && (PROBE_SERVO_DEACTIVATION_DELAY > 0) delay(PROBE_SERVO_DEACTIVATION_DELAY); servos[servo_endstops[Z_AXIS]].detach(); #endif } void setup() { setup_killpin(); setup_powerhold(); MYSERIAL.begin(BAUDRATE); SERIAL_PROTOCOLLNPGM("start"); SERIAL_ECHO_START; // Check startup - does nothing if bootloader sets MCUSR to 0 byte mcu = MCUSR; if(mcu & 1) SERIAL_ECHOLNPGM(MSG_POWERUP); if(mcu & 2) SERIAL_ECHOLNPGM(MSG_EXTERNAL_RESET); if(mcu & 4) SERIAL_ECHOLNPGM(MSG_BROWNOUT_RESET); if(mcu & 8) SERIAL_ECHOLNPGM(MSG_WATCHDOG_RESET); if(mcu & 32) SERIAL_ECHOLNPGM(MSG_SOFTWARE_RESET); MCUSR=0; SERIAL_ECHOPGM(MSG_MARLIN); SERIAL_ECHOLNPGM(VERSION_STRING); #ifdef STRING_VERSION_CONFIG_H #ifdef STRING_CONFIG_H_AUTHOR SERIAL_ECHO_START; SERIAL_ECHOPGM(MSG_CONFIGURATION_VER); SERIAL_ECHOPGM(STRING_VERSION_CONFIG_H); SERIAL_ECHOPGM(MSG_AUTHOR); SERIAL_ECHOLNPGM(STRING_CONFIG_H_AUTHOR); SERIAL_ECHOPGM("Compiled: "); SERIAL_ECHOLNPGM(__DATE__); #endif #endif SERIAL_ECHO_START; SERIAL_ECHOPGM(MSG_FREE_MEMORY); SERIAL_ECHO(freeMemory()); SERIAL_ECHOPGM(MSG_PLANNER_BUFFER_BYTES); SERIAL_ECHOLN((int)sizeof(block_t)*BLOCK_BUFFER_SIZE); for(int8_t i = 0; i < BUFSIZE; i++) { fromsd[i] = false; } // loads data from EEPROM if available else uses defaults (and resets step acceleration rate) Config_RetrieveSettings(); tp_init(); // Initialize temperature loop plan_init(); // Initialize planner; watchdog_init(); st_init(); // Initialize stepper, this enables interrupts! setup_photpin(); servo_init(); lcd_init(); _delay_ms(1000); // wait 1sec to display the splash screen #if defined(CONTROLLERFAN_PIN) && CONTROLLERFAN_PIN > -1 SET_OUTPUT(CONTROLLERFAN_PIN); //Set pin used for driver cooling fan #endif #ifdef DIGIPOT_I2C digipot_i2c_init(); #endif #ifdef Z_PROBE_SLED pinMode(SERVO0_PIN, OUTPUT); digitalWrite(SERVO0_PIN, LOW); // turn it off #endif // Z_PROBE_SLED setup_homepin(); } void loop() { if(buflen < (BUFSIZE-1)) get_command(); #ifdef SDSUPPORT card.checkautostart(false); #endif if(buflen) { #ifdef SDSUPPORT if(card.saving) { if(strstr_P(cmdbuffer[bufindr], PSTR("M29")) == NULL) { card.write_command(cmdbuffer[bufindr]); if(card.logging) { process_commands(); } else { SERIAL_PROTOCOLLNPGM(MSG_OK); } } else { card.closefile(); SERIAL_PROTOCOLLNPGM(MSG_FILE_SAVED); } } else { process_commands(); } #else process_commands(); #endif //SDSUPPORT buflen = (buflen-1); bufindr = (bufindr + 1)%BUFSIZE; } //check heater every n milliseconds manage_heater(); manage_inactivity(); checkHitEndstops(); lcd_update(); } void get_command() { while( MYSERIAL.available() > 0 && buflen < BUFSIZE) { serial_char = MYSERIAL.read(); if(serial_char == '\n' || serial_char == '\r' || (serial_char == ':' && comment_mode == false) || serial_count >= (MAX_CMD_SIZE - 1) ) { if(!serial_count) { //if empty line comment_mode = false; //for new command return; } cmdbuffer[bufindw][serial_count] = 0; //terminate string if(!comment_mode){ comment_mode = false; //for new command fromsd[bufindw] = false; if(strchr(cmdbuffer[bufindw], 'N') != NULL) { strchr_pointer = strchr(cmdbuffer[bufindw], 'N'); gcode_N = (strtol(&cmdbuffer[bufindw][strchr_pointer - cmdbuffer[bufindw] + 1], NULL, 10)); if(gcode_N != gcode_LastN+1 && (strstr_P(cmdbuffer[bufindw], PSTR("M110")) == NULL) ) { SERIAL_ERROR_START; SERIAL_ERRORPGM(MSG_ERR_LINE_NO); SERIAL_ERRORLN(gcode_LastN); //Serial.println(gcode_N); FlushSerialRequestResend(); serial_count = 0; return; } if(strchr(cmdbuffer[bufindw], '*') != NULL) { byte checksum = 0; byte count = 0; while(cmdbuffer[bufindw][count] != '*') checksum = checksum^cmdbuffer[bufindw][count++]; strchr_pointer = strchr(cmdbuffer[bufindw], '*'); if( (int)(strtod(&cmdbuffer[bufindw][strchr_pointer - cmdbuffer[bufindw] + 1], NULL)) != checksum) { SERIAL_ERROR_START; SERIAL_ERRORPGM(MSG_ERR_CHECKSUM_MISMATCH); SERIAL_ERRORLN(gcode_LastN); FlushSerialRequestResend(); serial_count = 0; return; } //if no errors, continue parsing } else { SERIAL_ERROR_START; SERIAL_ERRORPGM(MSG_ERR_NO_CHECKSUM); SERIAL_ERRORLN(gcode_LastN); FlushSerialRequestResend(); serial_count = 0; return; } gcode_LastN = gcode_N; //if no errors, continue parsing } else // if we don't receive 'N' but still see '*' { if((strchr(cmdbuffer[bufindw], '*') != NULL)) { SERIAL_ERROR_START; SERIAL_ERRORPGM(MSG_ERR_NO_LINENUMBER_WITH_CHECKSUM); SERIAL_ERRORLN(gcode_LastN); serial_count = 0; return; } } if((strchr(cmdbuffer[bufindw], 'G') != NULL)){ strchr_pointer = strchr(cmdbuffer[bufindw], 'G'); switch((int)((strtod(&cmdbuffer[bufindw][strchr_pointer - cmdbuffer[bufindw] + 1], NULL)))){ case 0: case 1: case 2: case 3: if (Stopped == true) { SERIAL_ERRORLNPGM(MSG_ERR_STOPPED); LCD_MESSAGEPGM(MSG_STOPPED); } break; default: break; } } //If command was e-stop process now if(strcmp(cmdbuffer[bufindw], "M112") == 0) kill(); bufindw = (bufindw + 1)%BUFSIZE; buflen += 1; } serial_count = 0; //clear buffer } else { if(serial_char == ';') comment_mode = true; if(!comment_mode) cmdbuffer[bufindw][serial_count++] = serial_char; } } #ifdef SDSUPPORT if(!card.sdprinting || serial_count!=0){ return; } //'#' stops reading from SD to the buffer prematurely, so procedural macro calls are possible // if it occurs, stop_buffering is triggered and the buffer is ran dry. // this character _can_ occur in serial com, due to checksums. however, no checksums are used in SD printing static bool stop_buffering=false; if(buflen==0) stop_buffering=false; while( !card.eof() && buflen < BUFSIZE && !stop_buffering) { int16_t n=card.get(); serial_char = (char)n; if(serial_char == '\n' || serial_char == '\r' || (serial_char == '#' && comment_mode == false) || (serial_char == ':' && comment_mode == false) || serial_count >= (MAX_CMD_SIZE - 1)||n==-1) { if(card.eof()){ SERIAL_PROTOCOLLNPGM(MSG_FILE_PRINTED); stoptime=millis(); char time[30]; unsigned long t=(stoptime-starttime)/1000; int hours, minutes; minutes=(t/60)%60; hours=t/60/60; sprintf_P(time, PSTR("%i hours %i minutes"),hours, minutes); SERIAL_ECHO_START; SERIAL_ECHOLN(time); lcd_setstatus(time); card.printingHasFinished(); card.checkautostart(true); } if(serial_char=='#') stop_buffering=true; if(!serial_count) { comment_mode = false; //for new command return; //if empty line } cmdbuffer[bufindw][serial_count] = 0; //terminate string // if(!comment_mode){ fromsd[bufindw] = true; buflen += 1; bufindw = (bufindw + 1)%BUFSIZE; // } comment_mode = false; //for new command serial_count = 0; //clear buffer } else { if(serial_char == ';') comment_mode = true; if(!comment_mode) cmdbuffer[bufindw][serial_count++] = serial_char; } } #endif //SDSUPPORT } float code_value() { return (strtod(&cmdbuffer[bufindr][strchr_pointer - cmdbuffer[bufindr] + 1], NULL)); } long code_value_long() { return (strtol(&cmdbuffer[bufindr][strchr_pointer - cmdbuffer[bufindr] + 1], NULL, 10)); } bool code_seen(char code) { strchr_pointer = strchr(cmdbuffer[bufindr], code); return (strchr_pointer != NULL); //Return True if a character was found } #define DEFINE_PGM_READ_ANY(type, reader) \ static inline type pgm_read_any(const type *p) \ { return pgm_read_##reader##_near(p); } DEFINE_PGM_READ_ANY(float, float); DEFINE_PGM_READ_ANY(signed char, byte); #define XYZ_CONSTS_FROM_CONFIG(type, array, CONFIG) \ static const PROGMEM type array##_P[3] = \ { X_##CONFIG, Y_##CONFIG, Z_##CONFIG }; \ static inline type array(int axis) \ { return pgm_read_any(&array##_P[axis]); } XYZ_CONSTS_FROM_CONFIG(float, base_min_pos, MIN_POS); XYZ_CONSTS_FROM_CONFIG(float, base_max_pos, MAX_POS); XYZ_CONSTS_FROM_CONFIG(float, base_home_pos, HOME_POS); XYZ_CONSTS_FROM_CONFIG(float, max_length, MAX_LENGTH); XYZ_CONSTS_FROM_CONFIG(float, home_retract_mm, HOME_RETRACT_MM); XYZ_CONSTS_FROM_CONFIG(signed char, home_dir, HOME_DIR); #ifdef DUAL_X_CARRIAGE #if EXTRUDERS == 1 || defined(COREXY) \ || !defined(X2_ENABLE_PIN) || !defined(X2_STEP_PIN) || !defined(X2_DIR_PIN) \ || !defined(X2_HOME_POS) || !defined(X2_MIN_POS) || !defined(X2_MAX_POS) \ || !defined(X_MAX_PIN) || X_MAX_PIN < 0 #error "Missing or invalid definitions for DUAL_X_CARRIAGE mode." #endif #if X_HOME_DIR != -1 || X2_HOME_DIR != 1 #error "Please use canonical x-carriage assignment" // the x-carriages are defined by their homing directions #endif #define DXC_FULL_CONTROL_MODE 0 #define DXC_AUTO_PARK_MODE 1 #define DXC_DUPLICATION_MODE 2 static int dual_x_carriage_mode = DEFAULT_DUAL_X_CARRIAGE_MODE; static float x_home_pos(int extruder) { if (extruder == 0) return base_home_pos(X_AXIS) + add_homing[X_AXIS]; else // In dual carriage mode the extruder offset provides an override of the // second X-carriage offset when homed - otherwise X2_HOME_POS is used. // This allow soft recalibration of the second extruder offset position without firmware reflash // (through the M218 command). return (extruder_offset[X_AXIS][1] > 0) ? extruder_offset[X_AXIS][1] : X2_HOME_POS; } static int x_home_dir(int extruder) { return (extruder == 0) ? X_HOME_DIR : X2_HOME_DIR; } static float inactive_extruder_x_pos = X2_MAX_POS; // used in mode 0 & 1 static bool active_extruder_parked = false; // used in mode 1 & 2 static float raised_parked_position[NUM_AXIS]; // used in mode 1 static unsigned long delayed_move_time = 0; // used in mode 1 static float duplicate_extruder_x_offset = DEFAULT_DUPLICATION_X_OFFSET; // used in mode 2 static float duplicate_extruder_temp_offset = 0; // used in mode 2 bool extruder_duplication_enabled = false; // used in mode 2 #endif //DUAL_X_CARRIAGE static void axis_is_at_home(int axis) { #ifdef DUAL_X_CARRIAGE if (axis == X_AXIS) { if (active_extruder != 0) { current_position[X_AXIS] = x_home_pos(active_extruder); min_pos[X_AXIS] = X2_MIN_POS; max_pos[X_AXIS] = max(extruder_offset[X_AXIS][1], X2_MAX_POS); return; } else if (dual_x_carriage_mode == DXC_DUPLICATION_MODE && active_extruder == 0) { current_position[X_AXIS] = base_home_pos(X_AXIS) + add_homing[X_AXIS]; min_pos[X_AXIS] = base_min_pos(X_AXIS) + add_homing[X_AXIS]; max_pos[X_AXIS] = min(base_max_pos(X_AXIS) + add_homing[X_AXIS], max(extruder_offset[X_AXIS][1], X2_MAX_POS) - duplicate_extruder_x_offset); return; } } #endif #ifdef SCARA float homeposition[3]; char i; if (axis < 2) { for (i=0; i<3; i++) { homeposition[i] = base_home_pos(i); } // SERIAL_ECHOPGM("homeposition[x]= "); SERIAL_ECHO(homeposition[0]); // SERIAL_ECHOPGM("homeposition[y]= "); SERIAL_ECHOLN(homeposition[1]); // Works out real Homeposition angles using inverse kinematics, // and calculates homing offset using forward kinematics calculate_delta(homeposition); // SERIAL_ECHOPGM("base Theta= "); SERIAL_ECHO(delta[X_AXIS]); // SERIAL_ECHOPGM(" base Psi+Theta="); SERIAL_ECHOLN(delta[Y_AXIS]); for (i=0; i<2; i++) { delta[i] -= add_homing[i]; } // SERIAL_ECHOPGM("addhome X="); SERIAL_ECHO(add_homing[X_AXIS]); // SERIAL_ECHOPGM(" addhome Y="); SERIAL_ECHO(add_homing[Y_AXIS]); // SERIAL_ECHOPGM(" addhome Theta="); SERIAL_ECHO(delta[X_AXIS]); // SERIAL_ECHOPGM(" addhome Psi+Theta="); SERIAL_ECHOLN(delta[Y_AXIS]); calculate_SCARA_forward_Transform(delta); // SERIAL_ECHOPGM("Delta X="); SERIAL_ECHO(delta[X_AXIS]); // SERIAL_ECHOPGM(" Delta Y="); SERIAL_ECHOLN(delta[Y_AXIS]); current_position[axis] = delta[axis]; // SCARA home positions are based on configuration since the actual limits are determined by the // inverse kinematic transform. min_pos[axis] = base_min_pos(axis); // + (delta[axis] - base_home_pos(axis)); max_pos[axis] = base_max_pos(axis); // + (delta[axis] - base_home_pos(axis)); } else { current_position[axis] = base_home_pos(axis) + add_homing[axis]; min_pos[axis] = base_min_pos(axis) + add_homing[axis]; max_pos[axis] = base_max_pos(axis) + add_homing[axis]; } #else current_position[axis] = base_home_pos(axis) + add_homing[axis]; min_pos[axis] = base_min_pos(axis) + add_homing[axis]; max_pos[axis] = base_max_pos(axis) + add_homing[axis]; #endif } #ifdef ENABLE_AUTO_BED_LEVELING #ifdef AUTO_BED_LEVELING_GRID static void set_bed_level_equation_lsq(double *plane_equation_coefficients) { vector_3 planeNormal = vector_3(-plane_equation_coefficients[0], -plane_equation_coefficients[1], 1); planeNormal.debug("planeNormal"); plan_bed_level_matrix = matrix_3x3::create_look_at(planeNormal); //bedLevel.debug("bedLevel"); //plan_bed_level_matrix.debug("bed level before"); //vector_3 uncorrected_position = plan_get_position_mm(); //uncorrected_position.debug("position before"); vector_3 corrected_position = plan_get_position(); // corrected_position.debug("position after"); current_position[X_AXIS] = corrected_position.x; current_position[Y_AXIS] = corrected_position.y; current_position[Z_AXIS] = corrected_position.z; // put the bed at 0 so we don't go below it. current_position[Z_AXIS] = zprobe_zoffset; // in the lsq we reach here after raising the extruder due to the loop structure plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]); } #else // not AUTO_BED_LEVELING_GRID static void set_bed_level_equation_3pts(float z_at_pt_1, float z_at_pt_2, float z_at_pt_3) { plan_bed_level_matrix.set_to_identity(); vector_3 pt1 = vector_3(ABL_PROBE_PT_1_X, ABL_PROBE_PT_1_Y, z_at_pt_1); vector_3 pt2 = vector_3(ABL_PROBE_PT_2_X, ABL_PROBE_PT_2_Y, z_at_pt_2); vector_3 pt3 = vector_3(ABL_PROBE_PT_3_X, ABL_PROBE_PT_3_Y, z_at_pt_3); vector_3 from_2_to_1 = (pt1 - pt2).get_normal(); vector_3 from_2_to_3 = (pt3 - pt2).get_normal(); vector_3 planeNormal = vector_3::cross(from_2_to_1, from_2_to_3).get_normal(); planeNormal = vector_3(planeNormal.x, planeNormal.y, abs(planeNormal.z)); plan_bed_level_matrix = matrix_3x3::create_look_at(planeNormal); vector_3 corrected_position = plan_get_position(); current_position[X_AXIS] = corrected_position.x; current_position[Y_AXIS] = corrected_position.y; current_position[Z_AXIS] = corrected_position.z; // put the bed at 0 so we don't go below it. current_position[Z_AXIS] = zprobe_zoffset; plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]); } #endif // AUTO_BED_LEVELING_GRID static void run_z_probe() { plan_bed_level_matrix.set_to_identity(); feedrate = homing_feedrate[Z_AXIS]; // move down until you find the bed float zPosition = -10; plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], zPosition, current_position[E_AXIS], feedrate/60, active_extruder); st_synchronize(); // we have to let the planner know where we are right now as it is not where we said to go. zPosition = st_get_position_mm(Z_AXIS); plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], zPosition, current_position[E_AXIS]); // move up the retract distance zPosition += home_retract_mm(Z_AXIS); plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], zPosition, current_position[E_AXIS], feedrate/60, active_extruder); st_synchronize(); // move back down slowly to find bed feedrate = homing_feedrate[Z_AXIS]/4; zPosition -= home_retract_mm(Z_AXIS) * 2; plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], zPosition, current_position[E_AXIS], feedrate/60, active_extruder); st_synchronize(); current_position[Z_AXIS] = st_get_position_mm(Z_AXIS); // make sure the planner knows where we are as it may be a bit different than we last said to move to plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]); } static void do_blocking_move_to(float x, float y, float z) { float oldFeedRate = feedrate; feedrate = homing_feedrate[Z_AXIS]; current_position[Z_AXIS] = z; plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], feedrate/60, active_extruder); st_synchronize(); feedrate = XY_TRAVEL_SPEED; current_position[X_AXIS] = x; current_position[Y_AXIS] = y; plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], feedrate/60, active_extruder); st_synchronize(); feedrate = oldFeedRate; } static void do_blocking_move_relative(float offset_x, float offset_y, float offset_z) { do_blocking_move_to(current_position[X_AXIS] + offset_x, current_position[Y_AXIS] + offset_y, current_position[Z_AXIS] + offset_z); } static void setup_for_endstop_move() { saved_feedrate = feedrate; saved_feedmultiply = feedmultiply; feedmultiply = 100; previous_millis_cmd = millis(); enable_endstops(true); } static void clean_up_after_endstop_move() { #ifdef ENDSTOPS_ONLY_FOR_HOMING enable_endstops(false); #endif feedrate = saved_feedrate; feedmultiply = saved_feedmultiply; previous_millis_cmd = millis(); } static void engage_z_probe() { // Engage Z Servo endstop if enabled #ifdef SERVO_ENDSTOPS if (servo_endstops[Z_AXIS] > -1) { #if defined (ENABLE_AUTO_BED_LEVELING) && (PROBE_SERVO_DEACTIVATION_DELAY > 0) servos[servo_endstops[Z_AXIS]].attach(0); #endif servos[servo_endstops[Z_AXIS]].write(servo_endstop_angles[Z_AXIS * 2]); #if defined (ENABLE_AUTO_BED_LEVELING) && (PROBE_SERVO_DEACTIVATION_DELAY > 0) delay(PROBE_SERVO_DEACTIVATION_DELAY); servos[servo_endstops[Z_AXIS]].detach(); #endif } #endif } static void retract_z_probe() { // Retract Z Servo endstop if enabled #ifdef SERVO_ENDSTOPS if (servo_endstops[Z_AXIS] > -1) { #if defined (ENABLE_AUTO_BED_LEVELING) && (PROBE_SERVO_DEACTIVATION_DELAY > 0) servos[servo_endstops[Z_AXIS]].attach(0); #endif servos[servo_endstops[Z_AXIS]].write(servo_endstop_angles[Z_AXIS * 2 + 1]); #if defined (ENABLE_AUTO_BED_LEVELING) && (PROBE_SERVO_DEACTIVATION_DELAY > 0) delay(PROBE_SERVO_DEACTIVATION_DELAY); servos[servo_endstops[Z_AXIS]].detach(); #endif } #endif } /// Probe bed height at position (x,y), returns the measured z value static float probe_pt(float x, float y, float z_before) { // move to right place do_blocking_move_to(current_position[X_AXIS], current_position[Y_AXIS], z_before); do_blocking_move_to(x - X_PROBE_OFFSET_FROM_EXTRUDER, y - Y_PROBE_OFFSET_FROM_EXTRUDER, current_position[Z_AXIS]); #ifndef Z_PROBE_SLED engage_z_probe(); // Engage Z Servo endstop if available #endif // Z_PROBE_SLED run_z_probe(); float measured_z = current_position[Z_AXIS]; #ifndef Z_PROBE_SLED retract_z_probe(); #endif // Z_PROBE_SLED SERIAL_PROTOCOLPGM(MSG_BED); SERIAL_PROTOCOLPGM(" x: "); SERIAL_PROTOCOL(x); SERIAL_PROTOCOLPGM(" y: "); SERIAL_PROTOCOL(y); SERIAL_PROTOCOLPGM(" z: "); SERIAL_PROTOCOL(measured_z); SERIAL_PROTOCOLPGM("\n"); return measured_z; } #endif // #ifdef ENABLE_AUTO_BED_LEVELING static void homeaxis(int axis) { #define HOMEAXIS_DO(LETTER) \ ((LETTER##_MIN_PIN > -1 && LETTER##_HOME_DIR==-1) || (LETTER##_MAX_PIN > -1 && LETTER##_HOME_DIR==1)) if (axis==X_AXIS ? HOMEAXIS_DO(X) : axis==Y_AXIS ? HOMEAXIS_DO(Y) : axis==Z_AXIS ? HOMEAXIS_DO(Z) : 0) { int axis_home_dir = home_dir(axis); #ifdef DUAL_X_CARRIAGE if (axis == X_AXIS) axis_home_dir = x_home_dir(active_extruder); #endif current_position[axis] = 0; plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]); #ifndef Z_PROBE_SLED // Engage Servo endstop if enabled #ifdef SERVO_ENDSTOPS #if defined (ENABLE_AUTO_BED_LEVELING) && (PROBE_SERVO_DEACTIVATION_DELAY > 0) if (axis==Z_AXIS) { engage_z_probe(); } else #endif if (servo_endstops[axis] > -1) { servos[servo_endstops[axis]].write(servo_endstop_angles[axis * 2]); } #endif #endif // Z_PROBE_SLED destination[axis] = 1.5 * max_length(axis) * axis_home_dir; feedrate = homing_feedrate[axis]; plan_buffer_line(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], destination[E_AXIS], feedrate/60, active_extruder); st_synchronize(); current_position[axis] = 0; plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]); destination[axis] = -home_retract_mm(axis) * axis_home_dir; plan_buffer_line(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], destination[E_AXIS], feedrate/60, active_extruder); st_synchronize(); destination[axis] = 2*home_retract_mm(axis) * axis_home_dir; #ifdef DELTA feedrate = homing_feedrate[axis]/10; #else feedrate = homing_feedrate[axis]/2 ; #endif plan_buffer_line(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], destination[E_AXIS], feedrate/60, active_extruder); st_synchronize(); #ifdef DELTA // retrace by the amount specified in endstop_adj if (endstop_adj[axis] * axis_home_dir < 0) { plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]); destination[axis] = endstop_adj[axis]; plan_buffer_line(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], destination[E_AXIS], feedrate/60, active_extruder); st_synchronize(); } #endif axis_is_at_home(axis); destination[axis] = current_position[axis]; feedrate = 0.0; endstops_hit_on_purpose(); axis_known_position[axis] = true; // Retract Servo endstop if enabled #ifdef SERVO_ENDSTOPS if (servo_endstops[axis] > -1) { servos[servo_endstops[axis]].write(servo_endstop_angles[axis * 2 + 1]); } #endif #if defined (ENABLE_AUTO_BED_LEVELING) && (PROBE_SERVO_DEACTIVATION_DELAY > 0) #ifndef Z_PROBE_SLED if (axis==Z_AXIS) retract_z_probe(); #endif #endif } } #define HOMEAXIS(LETTER) homeaxis(LETTER##_AXIS) void refresh_cmd_timeout(void) { previous_millis_cmd = millis(); } #ifdef FWRETRACT void retract(bool retracting, bool swapretract = false) { if(retracting && !retracted[active_extruder]) { destination[X_AXIS]=current_position[X_AXIS]; destination[Y_AXIS]=current_position[Y_AXIS]; destination[Z_AXIS]=current_position[Z_AXIS]; destination[E_AXIS]=current_position[E_AXIS]; if (swapretract) { current_position[E_AXIS]+=retract_length_swap/volumetric_multiplier[active_extruder]; } else { current_position[E_AXIS]+=retract_length/volumetric_multiplier[active_extruder]; } plan_set_e_position(current_position[E_AXIS]); float oldFeedrate = feedrate; feedrate=retract_feedrate*60; retracted[active_extruder]=true; prepare_move(); current_position[Z_AXIS]-=retract_zlift; #ifdef DELTA calculate_delta(current_position); // change cartesian kinematic to delta kinematic; plan_set_position(delta[X_AXIS], delta[Y_AXIS], delta[Z_AXIS], current_position[E_AXIS]); #else plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]); #endif prepare_move(); feedrate = oldFeedrate; } else if(!retracting && retracted[active_extruder]) { destination[X_AXIS]=current_position[X_AXIS]; destination[Y_AXIS]=current_position[Y_AXIS]; destination[Z_AXIS]=current_position[Z_AXIS]; destination[E_AXIS]=current_position[E_AXIS]; current_position[Z_AXIS]+=retract_zlift; #ifdef DELTA calculate_delta(current_position); // change cartesian kinematic to delta kinematic; plan_set_position(delta[X_AXIS], delta[Y_AXIS], delta[Z_AXIS], current_position[E_AXIS]); #else plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]); #endif //prepare_move(); if (swapretract) { current_position[E_AXIS]-=(retract_length_swap+retract_recover_length_swap)/volumetric_multiplier[active_extruder]; } else { current_position[E_AXIS]-=(retract_length+retract_recover_length)/volumetric_multiplier[active_extruder]; } plan_set_e_position(current_position[E_AXIS]); float oldFeedrate = feedrate; feedrate=retract_recover_feedrate*60; retracted[active_extruder]=false; prepare_move(); feedrate = oldFeedrate; } } //retract #endif //FWRETRACT #ifdef Z_PROBE_SLED // // Method to dock/undock a sled designed by Charles Bell. // // dock[in] If true, move to MAX_X and engage the electromagnet // offset[in] The additional distance to move to adjust docking location // static void dock_sled(bool dock, int offset=0) { int z_loc; if (!((axis_known_position[X_AXIS]) && (axis_known_position[Y_AXIS]))) { LCD_MESSAGEPGM(MSG_POSITION_UNKNOWN); SERIAL_ECHO_START; SERIAL_ECHOLNPGM(MSG_POSITION_UNKNOWN); return; } if (dock) { do_blocking_move_to(X_MAX_POS + SLED_DOCKING_OFFSET + offset, current_position[Y_AXIS], current_position[Z_AXIS]); // turn off magnet digitalWrite(SERVO0_PIN, LOW); } else { if (current_position[Z_AXIS] < (Z_RAISE_BEFORE_PROBING + 5)) z_loc = Z_RAISE_BEFORE_PROBING; else z_loc = current_position[Z_AXIS]; do_blocking_move_to(X_MAX_POS + SLED_DOCKING_OFFSET + offset, Y_PROBE_OFFSET_FROM_EXTRUDER, z_loc); // turn on magnet digitalWrite(SERVO0_PIN, HIGH); } } #endif void process_commands() { unsigned long codenum; //throw away variable char *starpos = NULL; #ifdef ENABLE_AUTO_BED_LEVELING float x_tmp, y_tmp, z_tmp, real_z; #endif if(code_seen('G')) { switch((int)code_value()) { case 0: // G0 -> G1 case 1: // G1 if(Stopped == false) { get_coordinates(); // For X Y Z E F #ifdef FWRETRACT if(autoretract_enabled) if( !(code_seen('X') || code_seen('Y') || code_seen('Z')) && code_seen('E')) { float echange=destination[E_AXIS]-current_position[E_AXIS]; if((echange<-MIN_RETRACT && !retracted) || (echange>MIN_RETRACT && retracted)) { //move appears to be an attempt to retract or recover current_position[E_AXIS] = destination[E_AXIS]; //hide the slicer-generated retract/recover from calculations plan_set_e_position(current_position[E_AXIS]); //AND from the planner retract(!retracted); return; } } #endif //FWRETRACT prepare_move(); //ClearToSend(); } break; #ifndef SCARA //disable arc support case 2: // G2 - CW ARC if(Stopped == false) { get_arc_coordinates(); prepare_arc_move(true); } break; case 3: // G3 - CCW ARC if(Stopped == false) { get_arc_coordinates(); prepare_arc_move(false); } break; #endif case 4: // G4 dwell LCD_MESSAGEPGM(MSG_DWELL); codenum = 0; if(code_seen('P')) codenum = code_value(); // milliseconds to wait if(code_seen('S')) codenum = code_value() * 1000; // seconds to wait st_synchronize(); codenum += millis(); // keep track of when we started waiting previous_millis_cmd = millis(); while(millis() < codenum) { manage_heater(); manage_inactivity(); lcd_update(); } break; #ifdef FWRETRACT case 10: // G10 retract #if EXTRUDERS > 1 retracted_swap[active_extruder]=(code_seen('S') && code_value_long() == 1); // checks for swap retract argument retract(true,retracted_swap[active_extruder]); #else retract(true); #endif break; case 11: // G11 retract_recover #if EXTRUDERS > 1 retract(false,retracted_swap[active_extruder]); #else retract(false); #endif break; #endif //FWRETRACT case 28: //G28 Home all Axis one at a time #ifdef ENABLE_AUTO_BED_LEVELING plan_bed_level_matrix.set_to_identity(); //Reset the plane ("erase" all leveling data) #endif //ENABLE_AUTO_BED_LEVELING saved_feedrate = feedrate; saved_feedmultiply = feedmultiply; feedmultiply = 100; previous_millis_cmd = millis(); enable_endstops(true); for(int8_t i=0; i < NUM_AXIS; i++) { destination[i] = current_position[i]; } feedrate = 0.0; #ifdef DELTA // A delta can only safely home all axis at the same time // all axis have to home at the same time // Move all carriages up together until the first endstop is hit. current_position[X_AXIS] = 0; current_position[Y_AXIS] = 0; current_position[Z_AXIS] = 0; plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]); destination[X_AXIS] = 3 * Z_MAX_LENGTH; destination[Y_AXIS] = 3 * Z_MAX_LENGTH; destination[Z_AXIS] = 3 * Z_MAX_LENGTH; feedrate = 1.732 * homing_feedrate[X_AXIS]; plan_buffer_line(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], destination[E_AXIS], feedrate/60, active_extruder); st_synchronize(); endstops_hit_on_purpose(); current_position[X_AXIS] = destination[X_AXIS]; current_position[Y_AXIS] = destination[Y_AXIS]; current_position[Z_AXIS] = destination[Z_AXIS]; // take care of back off and rehome now we are all at the top HOMEAXIS(X); HOMEAXIS(Y); HOMEAXIS(Z); calculate_delta(current_position); plan_set_position(delta[X_AXIS], delta[Y_AXIS], delta[Z_AXIS], current_position[E_AXIS]); #else // NOT DELTA home_all_axis = !((code_seen(axis_codes[X_AXIS])) || (code_seen(axis_codes[Y_AXIS])) || (code_seen(axis_codes[Z_AXIS]))); #if Z_HOME_DIR > 0 // If homing away from BED do Z first if((home_all_axis) || (code_seen(axis_codes[Z_AXIS]))) { HOMEAXIS(Z); } #endif #ifdef QUICK_HOME if((home_all_axis)||( code_seen(axis_codes[X_AXIS]) && code_seen(axis_codes[Y_AXIS])) ) //first diagonal move { current_position[X_AXIS] = 0;current_position[Y_AXIS] = 0; #ifndef DUAL_X_CARRIAGE int x_axis_home_dir = home_dir(X_AXIS); #else int x_axis_home_dir = x_home_dir(active_extruder); extruder_duplication_enabled = false; #endif plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]); destination[X_AXIS] = 1.5 * max_length(X_AXIS) * x_axis_home_dir;destination[Y_AXIS] = 1.5 * max_length(Y_AXIS) * home_dir(Y_AXIS); feedrate = homing_feedrate[X_AXIS]; if(homing_feedrate[Y_AXIS]<feedrate) feedrate = homing_feedrate[Y_AXIS]; if (max_length(X_AXIS) > max_length(Y_AXIS)) { feedrate *= sqrt(pow(max_length(Y_AXIS) / max_length(X_AXIS), 2) + 1); } else { feedrate *= sqrt(pow(max_length(X_AXIS) / max_length(Y_AXIS), 2) + 1); } plan_buffer_line(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], destination[E_AXIS], feedrate/60, active_extruder); st_synchronize(); axis_is_at_home(X_AXIS); axis_is_at_home(Y_AXIS); plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]); destination[X_AXIS] = current_position[X_AXIS]; destination[Y_AXIS] = current_position[Y_AXIS]; plan_buffer_line(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], destination[E_AXIS], feedrate/60, active_extruder); feedrate = 0.0; st_synchronize(); endstops_hit_on_purpose(); current_position[X_AXIS] = destination[X_AXIS]; current_position[Y_AXIS] = destination[Y_AXIS]; #ifndef SCARA current_position[Z_AXIS] = destination[Z_AXIS]; #endif } #endif if((home_all_axis) || (code_seen(axis_codes[X_AXIS]))) { #ifdef DUAL_X_CARRIAGE int tmp_extruder = active_extruder; extruder_duplication_enabled = false; active_extruder = !active_extruder; HOMEAXIS(X); inactive_extruder_x_pos = current_position[X_AXIS]; active_extruder = tmp_extruder; HOMEAXIS(X); // reset state used by the different modes memcpy(raised_parked_position, current_position, sizeof(raised_parked_position)); delayed_move_time = 0; active_extruder_parked = true; #else HOMEAXIS(X); #endif } if((home_all_axis) || (code_seen(axis_codes[Y_AXIS]))) { HOMEAXIS(Y); } if(code_seen(axis_codes[X_AXIS])) { if(code_value_long() != 0) { #ifdef SCARA current_position[X_AXIS]=code_value(); #else current_position[X_AXIS]=code_value()+add_homing[X_AXIS]; #endif } } if(code_seen(axis_codes[Y_AXIS])) { if(code_value_long() != 0) { #ifdef SCARA current_position[Y_AXIS]=code_value(); #else current_position[Y_AXIS]=code_value()+add_homing[Y_AXIS]; #endif } } #if Z_HOME_DIR < 0 // If homing towards BED do Z last #ifndef Z_SAFE_HOMING if((home_all_axis) || (code_seen(axis_codes[Z_AXIS]))) { #if defined (Z_RAISE_BEFORE_HOMING) && (Z_RAISE_BEFORE_HOMING > 0) destination[Z_AXIS] = Z_RAISE_BEFORE_HOMING * home_dir(Z_AXIS) * (-1); // Set destination away from bed feedrate = max_feedrate[Z_AXIS]; plan_buffer_line(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], destination[E_AXIS], feedrate, active_extruder); st_synchronize(); #endif HOMEAXIS(Z); } #else // Z Safe mode activated. if(home_all_axis) { destination[X_AXIS] = round(Z_SAFE_HOMING_X_POINT - X_PROBE_OFFSET_FROM_EXTRUDER); destination[Y_AXIS] = round(Z_SAFE_HOMING_Y_POINT - Y_PROBE_OFFSET_FROM_EXTRUDER); destination[Z_AXIS] = Z_RAISE_BEFORE_HOMING * home_dir(Z_AXIS) * (-1); // Set destination away from bed feedrate = XY_TRAVEL_SPEED/60; current_position[Z_AXIS] = 0; plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]); plan_buffer_line(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], destination[E_AXIS], feedrate, active_extruder); st_synchronize(); current_position[X_AXIS] = destination[X_AXIS]; current_position[Y_AXIS] = destination[Y_AXIS]; HOMEAXIS(Z); } // Let's see if X and Y are homed and probe is inside bed area. if(code_seen(axis_codes[Z_AXIS])) { if ( (axis_known_position[X_AXIS]) && (axis_known_position[Y_AXIS]) \ && (current_position[X_AXIS]+X_PROBE_OFFSET_FROM_EXTRUDER >= X_MIN_POS) \ && (current_position[X_AXIS]+X_PROBE_OFFSET_FROM_EXTRUDER <= X_MAX_POS) \ && (current_position[Y_AXIS]+Y_PROBE_OFFSET_FROM_EXTRUDER >= Y_MIN_POS) \ && (current_position[Y_AXIS]+Y_PROBE_OFFSET_FROM_EXTRUDER <= Y_MAX_POS)) { current_position[Z_AXIS] = 0; plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]); destination[Z_AXIS] = Z_RAISE_BEFORE_HOMING * home_dir(Z_AXIS) * (-1); // Set destination away from bed feedrate = max_feedrate[Z_AXIS]; plan_buffer_line(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], destination[E_AXIS], feedrate, active_extruder); st_synchronize(); HOMEAXIS(Z); } else if (!((axis_known_position[X_AXIS]) && (axis_known_position[Y_AXIS]))) { LCD_MESSAGEPGM(MSG_POSITION_UNKNOWN); SERIAL_ECHO_START; SERIAL_ECHOLNPGM(MSG_POSITION_UNKNOWN); } else { LCD_MESSAGEPGM(MSG_ZPROBE_OUT); SERIAL_ECHO_START; SERIAL_ECHOLNPGM(MSG_ZPROBE_OUT); } } #endif #endif if(code_seen(axis_codes[Z_AXIS])) { if(code_value_long() != 0) { current_position[Z_AXIS]=code_value()+add_homing[Z_AXIS]; } } #ifdef ENABLE_AUTO_BED_LEVELING if((home_all_axis) || (code_seen(axis_codes[Z_AXIS]))) { current_position[Z_AXIS] += zprobe_zoffset; //Add Z_Probe offset (the distance is negative) } #endif plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]); #endif // else DELTA #ifdef SCARA calculate_delta(current_position); plan_set_position(delta[X_AXIS], delta[Y_AXIS], delta[Z_AXIS], current_position[E_AXIS]); #endif // SCARA #ifdef ENDSTOPS_ONLY_FOR_HOMING enable_endstops(false); #endif feedrate = saved_feedrate; feedmultiply = saved_feedmultiply; previous_millis_cmd = millis(); endstops_hit_on_purpose(); break; #ifdef ENABLE_AUTO_BED_LEVELING case 29: // G29 Detailed Z-Probe, probes the bed at 3 or more points. { #if Z_MIN_PIN == -1 #error "You must have a Z_MIN endstop in order to enable Auto Bed Leveling feature!!! Z_MIN_PIN must point to a valid hardware pin." #endif // Prevent user from running a G29 without first homing in X and Y if (! (axis_known_position[X_AXIS] && axis_known_position[Y_AXIS]) ) { LCD_MESSAGEPGM(MSG_POSITION_UNKNOWN); SERIAL_ECHO_START; SERIAL_ECHOLNPGM(MSG_POSITION_UNKNOWN); break; // abort G29, since we don't know where we are } #ifdef Z_PROBE_SLED dock_sled(false); #endif // Z_PROBE_SLED st_synchronize(); // make sure the bed_level_rotation_matrix is identity or the planner will get it incorectly //vector_3 corrected_position = plan_get_position_mm(); //corrected_position.debug("position before G29"); plan_bed_level_matrix.set_to_identity(); vector_3 uncorrected_position = plan_get_position(); //uncorrected_position.debug("position durring G29"); current_position[X_AXIS] = uncorrected_position.x; current_position[Y_AXIS] = uncorrected_position.y; current_position[Z_AXIS] = uncorrected_position.z; plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]); setup_for_endstop_move(); feedrate = homing_feedrate[Z_AXIS]; #ifdef AUTO_BED_LEVELING_GRID // probe at the points of a lattice grid int xGridSpacing = (RIGHT_PROBE_BED_POSITION - LEFT_PROBE_BED_POSITION) / (AUTO_BED_LEVELING_GRID_POINTS-1); int yGridSpacing = (BACK_PROBE_BED_POSITION - FRONT_PROBE_BED_POSITION) / (AUTO_BED_LEVELING_GRID_POINTS-1); // solve the plane equation ax + by + d = z // A is the matrix with rows [x y 1] for all the probed points // B is the vector of the Z positions // the normal vector to the plane is formed by the coefficients of the plane equation in the standard form, which is Vx*x+Vy*y+Vz*z+d = 0 // so Vx = -a Vy = -b Vz = 1 (we want the vector facing towards positive Z // "A" matrix of the linear system of equations double eqnAMatrix[AUTO_BED_LEVELING_GRID_POINTS*AUTO_BED_LEVELING_GRID_POINTS*3]; // "B" vector of Z points double eqnBVector[AUTO_BED_LEVELING_GRID_POINTS*AUTO_BED_LEVELING_GRID_POINTS]; int probePointCounter = 0; bool zig = true; for (int yProbe=FRONT_PROBE_BED_POSITION; yProbe <= BACK_PROBE_BED_POSITION; yProbe += yGridSpacing) { int xProbe, xInc; if (zig) { xProbe = LEFT_PROBE_BED_POSITION; //xEnd = RIGHT_PROBE_BED_POSITION; xInc = xGridSpacing; zig = false; } else // zag { xProbe = RIGHT_PROBE_BED_POSITION; //xEnd = LEFT_PROBE_BED_POSITION; xInc = -xGridSpacing; zig = true; } for (int xCount=0; xCount < AUTO_BED_LEVELING_GRID_POINTS; xCount++) { float z_before; if (probePointCounter == 0) { // raise before probing z_before = Z_RAISE_BEFORE_PROBING; } else { // raise extruder z_before = current_position[Z_AXIS] + Z_RAISE_BETWEEN_PROBINGS; } float measured_z = probe_pt(xProbe, yProbe, z_before); eqnBVector[probePointCounter] = measured_z; eqnAMatrix[probePointCounter + 0*AUTO_BED_LEVELING_GRID_POINTS*AUTO_BED_LEVELING_GRID_POINTS] = xProbe; eqnAMatrix[probePointCounter + 1*AUTO_BED_LEVELING_GRID_POINTS*AUTO_BED_LEVELING_GRID_POINTS] = yProbe; eqnAMatrix[probePointCounter + 2*AUTO_BED_LEVELING_GRID_POINTS*AUTO_BED_LEVELING_GRID_POINTS] = 1; probePointCounter++; xProbe += xInc; } } clean_up_after_endstop_move(); // solve lsq problem double *plane_equation_coefficients = qr_solve(AUTO_BED_LEVELING_GRID_POINTS*AUTO_BED_LEVELING_GRID_POINTS, 3, eqnAMatrix, eqnBVector); SERIAL_PROTOCOLPGM("Eqn coefficients: a: "); SERIAL_PROTOCOL(plane_equation_coefficients[0]); SERIAL_PROTOCOLPGM(" b: "); SERIAL_PROTOCOL(plane_equation_coefficients[1]); SERIAL_PROTOCOLPGM(" d: "); SERIAL_PROTOCOLLN(plane_equation_coefficients[2]); set_bed_level_equation_lsq(plane_equation_coefficients); free(plane_equation_coefficients); #else // AUTO_BED_LEVELING_GRID not defined // Probe at 3 arbitrary points // probe 1 float z_at_pt_1 = probe_pt(ABL_PROBE_PT_1_X, ABL_PROBE_PT_1_Y, Z_RAISE_BEFORE_PROBING); // probe 2 float z_at_pt_2 = probe_pt(ABL_PROBE_PT_2_X, ABL_PROBE_PT_2_Y, current_position[Z_AXIS] + Z_RAISE_BETWEEN_PROBINGS); // probe 3 float z_at_pt_3 = probe_pt(ABL_PROBE_PT_3_X, ABL_PROBE_PT_3_Y, current_position[Z_AXIS] + Z_RAISE_BETWEEN_PROBINGS); clean_up_after_endstop_move(); set_bed_level_equation_3pts(z_at_pt_1, z_at_pt_2, z_at_pt_3); #endif // AUTO_BED_LEVELING_GRID st_synchronize(); // The following code correct the Z height difference from z-probe position and hotend tip position. // The Z height on homing is measured by Z-Probe, but the probe is quite far from the hotend. // When the bed is uneven, this height must be corrected. real_z = float(st_get_position(Z_AXIS))/axis_steps_per_unit[Z_AXIS]; //get the real Z (since the auto bed leveling is already correcting the plane) x_tmp = current_position[X_AXIS] + X_PROBE_OFFSET_FROM_EXTRUDER; y_tmp = current_position[Y_AXIS] + Y_PROBE_OFFSET_FROM_EXTRUDER; z_tmp = current_position[Z_AXIS]; apply_rotation_xyz(plan_bed_level_matrix, x_tmp, y_tmp, z_tmp); //Apply the correction sending the probe offset current_position[Z_AXIS] = z_tmp - real_z + current_position[Z_AXIS]; //The difference is added to current position and sent to planner. plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]); #ifdef Z_PROBE_SLED dock_sled(true, -SLED_DOCKING_OFFSET); // correct for over travel. #endif // Z_PROBE_SLED } break; #ifndef Z_PROBE_SLED case 30: // G30 Single Z Probe { engage_z_probe(); // Engage Z Servo endstop if available st_synchronize(); // TODO: make sure the bed_level_rotation_matrix is identity or the planner will get set incorectly setup_for_endstop_move(); feedrate = homing_feedrate[Z_AXIS]; run_z_probe(); SERIAL_PROTOCOLPGM(MSG_BED); SERIAL_PROTOCOLPGM(" X: "); SERIAL_PROTOCOL(current_position[X_AXIS]); SERIAL_PROTOCOLPGM(" Y: "); SERIAL_PROTOCOL(current_position[Y_AXIS]); SERIAL_PROTOCOLPGM(" Z: "); SERIAL_PROTOCOL(current_position[Z_AXIS]); SERIAL_PROTOCOLPGM("\n"); clean_up_after_endstop_move(); retract_z_probe(); // Retract Z Servo endstop if available } break; #else case 31: // dock the sled dock_sled(true); break; case 32: // undock the sled dock_sled(false); break; #endif // Z_PROBE_SLED #endif // ENABLE_AUTO_BED_LEVELING case 90: // G90 relative_mode = false; break; case 91: // G91 relative_mode = true; break; case 92: // G92 if(!code_seen(axis_codes[E_AXIS])) st_synchronize(); for(int8_t i=0; i < NUM_AXIS; i++) { if(code_seen(axis_codes[i])) { if(i == E_AXIS) { current_position[i] = code_value(); plan_set_e_position(current_position[E_AXIS]); } else { #ifdef SCARA if (i == X_AXIS || i == Y_AXIS) { current_position[i] = code_value(); } else { current_position[i] = code_value()+add_homing[i]; } #else current_position[i] = code_value()+add_homing[i]; #endif plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]); } } } break; } } else if(code_seen('M')) { switch( (int)code_value() ) { #ifdef ULTIPANEL case 0: // M0 - Unconditional stop - Wait for user button press on LCD case 1: // M1 - Conditional stop - Wait for user button press on LCD { char *src = strchr_pointer + 2; codenum = 0; bool hasP = false, hasS = false; if (code_seen('P')) { codenum = code_value(); // milliseconds to wait hasP = codenum > 0; } if (code_seen('S')) { codenum = code_value() * 1000; // seconds to wait hasS = codenum > 0; } starpos = strchr(src, '*'); if (starpos != NULL) *(starpos) = '\0'; while (*src == ' ') ++src; if (!hasP && !hasS && *src != '\0') { lcd_setstatus(src); } else { LCD_MESSAGEPGM(MSG_USERWAIT); } lcd_ignore_click(); st_synchronize(); previous_millis_cmd = millis(); if (codenum > 0){ codenum += millis(); // keep track of when we started waiting while(millis() < codenum && !lcd_clicked()){ manage_heater(); manage_inactivity(); lcd_update(); } lcd_ignore_click(false); }else{ if (!lcd_detected()) break; while(!lcd_clicked()){ manage_heater(); manage_inactivity(); lcd_update(); } } if (IS_SD_PRINTING) LCD_MESSAGEPGM(MSG_RESUMING); else LCD_MESSAGEPGM(WELCOME_MSG); } break; #endif case 17: LCD_MESSAGEPGM(MSG_NO_MOVE); enable_x(); enable_y(); enable_z(); enable_e0(); enable_e1(); enable_e2(); break; #ifdef SDSUPPORT case 20: // M20 - list SD card SERIAL_PROTOCOLLNPGM(MSG_BEGIN_FILE_LIST); card.ls(); SERIAL_PROTOCOLLNPGM(MSG_END_FILE_LIST); break; case 21: // M21 - init SD card card.initsd(); break; case 22: //M22 - release SD card card.release(); break; case 23: //M23 - Select file starpos = (strchr(strchr_pointer + 4,'*')); if(starpos!=NULL) *(starpos)='\0'; card.openFile(strchr_pointer + 4,true); break; case 24: //M24 - Start SD print card.startFileprint(); starttime=millis(); break; case 25: //M25 - Pause SD print card.pauseSDPrint(); break; case 26: //M26 - Set SD index if(card.cardOK && code_seen('S')) { card.setIndex(code_value_long()); } break; case 27: //M27 - Get SD status card.getStatus(); break; case 28: //M28 - Start SD write starpos = (strchr(strchr_pointer + 4,'*')); if(starpos != NULL){ char* npos = strchr(cmdbuffer[bufindr], 'N'); strchr_pointer = strchr(npos,' ') + 1; *(starpos) = '\0'; } card.openFile(strchr_pointer+4,false); break; case 29: //M29 - Stop SD write //processed in write to file routine above //card,saving = false; break; case 30: //M30 <filename> Delete File if (card.cardOK){ card.closefile(); starpos = (strchr(strchr_pointer + 4,'*')); if(starpos != NULL){ char* npos = strchr(cmdbuffer[bufindr], 'N'); strchr_pointer = strchr(npos,' ') + 1; *(starpos) = '\0'; } card.removeFile(strchr_pointer + 4); } break; case 32: //M32 - Select file and start SD print { if(card.sdprinting) { st_synchronize(); } starpos = (strchr(strchr_pointer + 4,'*')); char* namestartpos = (strchr(strchr_pointer + 4,'!')); //find ! to indicate filename string start. if(namestartpos==NULL) { namestartpos=strchr_pointer + 4; //default name position, 4 letters after the M } else namestartpos++; //to skip the '!' if(starpos!=NULL) *(starpos)='\0'; bool call_procedure=(code_seen('P')); if(strchr_pointer>namestartpos) call_procedure=false; //false alert, 'P' found within filename if( card.cardOK ) { card.openFile(namestartpos,true,!call_procedure); if(code_seen('S')) if(strchr_pointer<namestartpos) //only if "S" is occuring _before_ the filename card.setIndex(code_value_long()); card.startFileprint(); if(!call_procedure) starttime=millis(); //procedure calls count as normal print time. } } break; case 928: //M928 - Start SD write starpos = (strchr(strchr_pointer + 5,'*')); if(starpos != NULL){ char* npos = strchr(cmdbuffer[bufindr], 'N'); strchr_pointer = strchr(npos,' ') + 1; *(starpos) = '\0'; } card.openLogFile(strchr_pointer+5); break; #endif //SDSUPPORT case 31: //M31 take time since the start of the SD print or an M109 command { stoptime=millis(); char time[30]; unsigned long t=(stoptime-starttime)/1000; int sec,min; min=t/60; sec=t%60; sprintf_P(time, PSTR("%i min, %i sec"), min, sec); SERIAL_ECHO_START; SERIAL_ECHOLN(time); lcd_setstatus(time); autotempShutdown(); } break; case 42: //M42 -Change pin status via gcode if (code_seen('S')) { int pin_status = code_value(); int pin_number = LED_PIN; if (code_seen('P') && pin_status >= 0 && pin_status <= 255) pin_number = code_value(); for(int8_t i = 0; i < (int8_t)(sizeof(sensitive_pins)/sizeof(int)); i++) { if (sensitive_pins[i] == pin_number) { pin_number = -1; break; } } #if defined(FAN_PIN) && FAN_PIN > -1 if (pin_number == FAN_PIN) fanSpeed = pin_status; #endif if (pin_number > -1) { pinMode(pin_number, OUTPUT); digitalWrite(pin_number, pin_status); analogWrite(pin_number, pin_status); } } break; // M48 Z-Probe repeatability measurement function. // // Usage: M48 <n #_samples> <X X_position_for_samples> <Y Y_position_for_samples> <V Verbose_Level> <Engage_probe_for_each_reading> <L legs_of_movement_prior_to_doing_probe> // // This function assumes the bed has been homed. Specificaly, that a G28 command // as been issued prior to invoking the M48 Z-Probe repeatability measurement function. // Any information generated by a prior G29 Bed leveling command will be lost and need to be // regenerated. // // The number of samples will default to 10 if not specified. You can use upper or lower case // letters for any of the options EXCEPT n. n must be in lower case because Marlin uses a capital // N for its communication protocol and will get horribly confused if you send it a capital N. // #ifdef ENABLE_AUTO_BED_LEVELING #ifdef Z_PROBE_REPEATABILITY_TEST case 48: // M48 Z-Probe repeatability { #if Z_MIN_PIN == -1 #error "You must have a Z_MIN endstop in order to enable calculation of Z-Probe repeatability." #endif double sum=0.0; double mean=0.0; double sigma=0.0; double sample_set[50]; int verbose_level=1, n=0, j, n_samples = 10, n_legs=0, engage_probe_for_each_reading=0 ; double X_current, Y_current, Z_current; double X_probe_location, Y_probe_location, Z_start_location, ext_position; if (code_seen('V') || code_seen('v')) { verbose_level = code_value(); if (verbose_level<0 || verbose_level>4 ) { SERIAL_PROTOCOLPGM("?Verbose Level not plausable.\n"); goto Sigma_Exit; } } if (verbose_level > 0) { SERIAL_PROTOCOLPGM("M48 Z-Probe Repeatability test. Version 2.00\n"); SERIAL_PROTOCOLPGM("Full support at: path_to_url"); } if (code_seen('n')) { n_samples = code_value(); if (n_samples<4 || n_samples>50 ) { SERIAL_PROTOCOLPGM("?Specified sample size not plausable.\n"); goto Sigma_Exit; } } X_current = X_probe_location = st_get_position_mm(X_AXIS); Y_current = Y_probe_location = st_get_position_mm(Y_AXIS); Z_current = st_get_position_mm(Z_AXIS); Z_start_location = st_get_position_mm(Z_AXIS) + Z_RAISE_BEFORE_PROBING; ext_position = st_get_position_mm(E_AXIS); if (code_seen('E') || code_seen('e') ) engage_probe_for_each_reading++; if (code_seen('X') || code_seen('x') ) { X_probe_location = code_value() - X_PROBE_OFFSET_FROM_EXTRUDER; if (X_probe_location<X_MIN_POS || X_probe_location>X_MAX_POS ) { SERIAL_PROTOCOLPGM("?Specified X position out of range.\n"); goto Sigma_Exit; } } if (code_seen('Y') || code_seen('y') ) { Y_probe_location = code_value() - Y_PROBE_OFFSET_FROM_EXTRUDER; if (Y_probe_location<Y_MIN_POS || Y_probe_location>Y_MAX_POS ) { SERIAL_PROTOCOLPGM("?Specified Y position out of range.\n"); goto Sigma_Exit; } } if (code_seen('L') || code_seen('l') ) { n_legs = code_value(); if ( n_legs==1 ) n_legs = 2; if ( n_legs<0 || n_legs>15 ) { SERIAL_PROTOCOLPGM("?Specified number of legs in movement not plausable.\n"); goto Sigma_Exit; } } // // Do all the preliminary setup work. First raise the probe. // st_synchronize(); plan_bed_level_matrix.set_to_identity(); plan_buffer_line( X_current, Y_current, Z_start_location, ext_position, homing_feedrate[Z_AXIS]/60, active_extruder); st_synchronize(); // // Now get everything to the specified probe point So we can safely do a probe to // get us close to the bed. If the Z-Axis is far from the bed, we don't want to // use that as a starting point for each probe. // if (verbose_level > 2) SERIAL_PROTOCOL("Positioning probe for the test.\n"); plan_buffer_line( X_probe_location, Y_probe_location, Z_start_location, ext_position, homing_feedrate[X_AXIS]/60, active_extruder); st_synchronize(); current_position[X_AXIS] = X_current = st_get_position_mm(X_AXIS); current_position[Y_AXIS] = Y_current = st_get_position_mm(Y_AXIS); current_position[Z_AXIS] = Z_current = st_get_position_mm(Z_AXIS); current_position[E_AXIS] = ext_position = st_get_position_mm(E_AXIS); // // OK, do the inital probe to get us close to the bed. // Then retrace the right amount and use that in subsequent probes // engage_z_probe(); setup_for_endstop_move(); run_z_probe(); current_position[Z_AXIS] = Z_current = st_get_position_mm(Z_AXIS); Z_start_location = st_get_position_mm(Z_AXIS) + Z_RAISE_BEFORE_PROBING; plan_buffer_line( X_probe_location, Y_probe_location, Z_start_location, ext_position, homing_feedrate[X_AXIS]/60, active_extruder); st_synchronize(); current_position[Z_AXIS] = Z_current = st_get_position_mm(Z_AXIS); if (engage_probe_for_each_reading) retract_z_probe(); for( n=0; n<n_samples; n++) { do_blocking_move_to( X_probe_location, Y_probe_location, Z_start_location); // Make sure we are at the probe location if ( n_legs) { double radius=0.0, theta=0.0, x_sweep, y_sweep; int rotational_direction, l; rotational_direction = (unsigned long) millis() & 0x0001; // clockwise or counter clockwise radius = (unsigned long) millis() % (long) (X_MAX_LENGTH/4); // limit how far out to go theta = (float) ((unsigned long) millis() % (long) 360) / (360./(2*3.1415926)); // turn into radians //SERIAL_ECHOPAIR("starting radius: ",radius); //SERIAL_ECHOPAIR(" theta: ",theta); //SERIAL_ECHOPAIR(" direction: ",rotational_direction); //SERIAL_PROTOCOLLNPGM(""); for( l=0; l<n_legs-1; l++) { if (rotational_direction==1) theta += (float) ((unsigned long) millis() % (long) 20) / (360.0/(2*3.1415926)); // turn into radians else theta -= (float) ((unsigned long) millis() % (long) 20) / (360.0/(2*3.1415926)); // turn into radians radius += (float) ( ((long) ((unsigned long) millis() % (long) 10)) - 5); if ( radius<0.0 ) radius = -radius; X_current = X_probe_location + cos(theta) * radius; Y_current = Y_probe_location + sin(theta) * radius; if ( X_current<X_MIN_POS) // Make sure our X & Y are sane X_current = X_MIN_POS; if ( X_current>X_MAX_POS) X_current = X_MAX_POS; if ( Y_current<Y_MIN_POS) // Make sure our X & Y are sane Y_current = Y_MIN_POS; if ( Y_current>Y_MAX_POS) Y_current = Y_MAX_POS; if (verbose_level>3 ) { SERIAL_ECHOPAIR("x: ", X_current); SERIAL_ECHOPAIR("y: ", Y_current); SERIAL_PROTOCOLLNPGM(""); } do_blocking_move_to( X_current, Y_current, Z_current ); } do_blocking_move_to( X_probe_location, Y_probe_location, Z_start_location); // Go back to the probe location } if (engage_probe_for_each_reading) { engage_z_probe(); delay(1000); } setup_for_endstop_move(); run_z_probe(); sample_set[n] = current_position[Z_AXIS]; // // Get the current mean for the data points we have so far // sum=0.0; for( j=0; j<=n; j++) { sum = sum + sample_set[j]; } mean = sum / (double (n+1)); // // Now, use that mean to calculate the standard deviation for the // data points we have so far // sum=0.0; for( j=0; j<=n; j++) { sum = sum + (sample_set[j]-mean) * (sample_set[j]-mean); } sigma = sqrt( sum / (double (n+1)) ); if (verbose_level > 1) { SERIAL_PROTOCOL(n+1); SERIAL_PROTOCOL(" of "); SERIAL_PROTOCOL(n_samples); SERIAL_PROTOCOLPGM(" z: "); SERIAL_PROTOCOL_F(current_position[Z_AXIS], 6); } if (verbose_level > 2) { SERIAL_PROTOCOL(" mean: "); SERIAL_PROTOCOL_F(mean,6); SERIAL_PROTOCOL(" sigma: "); SERIAL_PROTOCOL_F(sigma,6); } if (verbose_level > 0) SERIAL_PROTOCOLPGM("\n"); plan_buffer_line( X_probe_location, Y_probe_location, Z_start_location, current_position[E_AXIS], homing_feedrate[Z_AXIS]/60, active_extruder); st_synchronize(); if (engage_probe_for_each_reading) { retract_z_probe(); delay(1000); } } retract_z_probe(); delay(1000); clean_up_after_endstop_move(); // enable_endstops(true); if (verbose_level > 0) { SERIAL_PROTOCOLPGM("Mean: "); SERIAL_PROTOCOL_F(mean, 6); SERIAL_PROTOCOLPGM("\n"); } SERIAL_PROTOCOLPGM("Standard Deviation: "); SERIAL_PROTOCOL_F(sigma, 6); SERIAL_PROTOCOLPGM("\n\n"); Sigma_Exit: break; } #endif // Z_PROBE_REPEATABILITY_TEST #endif // ENABLE_AUTO_BED_LEVELING case 104: // M104 if(setTargetedHotend(104)){ break; } if (code_seen('S')) setTargetHotend(code_value(), tmp_extruder); #ifdef DUAL_X_CARRIAGE if (dual_x_carriage_mode == DXC_DUPLICATION_MODE && tmp_extruder == 0) setTargetHotend1(code_value() == 0.0 ? 0.0 : code_value() + duplicate_extruder_temp_offset); #endif setWatch(); break; case 112: // M112 -Emergency Stop kill(); break; case 140: // M140 set bed temp if (code_seen('S')) setTargetBed(code_value()); break; case 105 : // M105 if(setTargetedHotend(105)){ break; } #if defined(TEMP_0_PIN) && TEMP_0_PIN > -1 SERIAL_PROTOCOLPGM("ok T:"); SERIAL_PROTOCOL_F(degHotend(tmp_extruder),1); SERIAL_PROTOCOLPGM(" /"); SERIAL_PROTOCOL_F(degTargetHotend(tmp_extruder),1); #if defined(TEMP_BED_PIN) && TEMP_BED_PIN > -1 SERIAL_PROTOCOLPGM(" B:"); SERIAL_PROTOCOL_F(degBed(),1); SERIAL_PROTOCOLPGM(" /"); SERIAL_PROTOCOL_F(degTargetBed(),1); #endif //TEMP_BED_PIN for (int8_t cur_extruder = 0; cur_extruder < EXTRUDERS; ++cur_extruder) { SERIAL_PROTOCOLPGM(" T"); SERIAL_PROTOCOL(cur_extruder); SERIAL_PROTOCOLPGM(":"); SERIAL_PROTOCOL_F(degHotend(cur_extruder),1); SERIAL_PROTOCOLPGM(" /"); SERIAL_PROTOCOL_F(degTargetHotend(cur_extruder),1); } #else SERIAL_ERROR_START; SERIAL_ERRORLNPGM(MSG_ERR_NO_THERMISTORS); #endif SERIAL_PROTOCOLPGM(" @:"); #ifdef EXTRUDER_WATTS SERIAL_PROTOCOL((EXTRUDER_WATTS * getHeaterPower(tmp_extruder))/127); SERIAL_PROTOCOLPGM("W"); #else SERIAL_PROTOCOL(getHeaterPower(tmp_extruder)); #endif SERIAL_PROTOCOLPGM(" B@:"); #ifdef BED_WATTS SERIAL_PROTOCOL((BED_WATTS * getHeaterPower(-1))/127); SERIAL_PROTOCOLPGM("W"); #else SERIAL_PROTOCOL(getHeaterPower(-1)); #endif #ifdef SHOW_TEMP_ADC_VALUES #if defined(TEMP_BED_PIN) && TEMP_BED_PIN > -1 SERIAL_PROTOCOLPGM(" ADC B:"); SERIAL_PROTOCOL_F(degBed(),1); SERIAL_PROTOCOLPGM("C->"); SERIAL_PROTOCOL_F(rawBedTemp()/OVERSAMPLENR,0); #endif for (int8_t cur_extruder = 0; cur_extruder < EXTRUDERS; ++cur_extruder) { SERIAL_PROTOCOLPGM(" T"); SERIAL_PROTOCOL(cur_extruder); SERIAL_PROTOCOLPGM(":"); SERIAL_PROTOCOL_F(degHotend(cur_extruder),1); SERIAL_PROTOCOLPGM("C->"); SERIAL_PROTOCOL_F(rawHotendTemp(cur_extruder)/OVERSAMPLENR,0); } #endif SERIAL_PROTOCOLLN(""); return; break; case 109: {// M109 - Wait for extruder heater to reach target. if(setTargetedHotend(109)){ break; } LCD_MESSAGEPGM(MSG_HEATING); #ifdef AUTOTEMP autotemp_enabled=false; #endif if (code_seen('S')) { setTargetHotend(code_value(), tmp_extruder); #ifdef DUAL_X_CARRIAGE if (dual_x_carriage_mode == DXC_DUPLICATION_MODE && tmp_extruder == 0) setTargetHotend1(code_value() == 0.0 ? 0.0 : code_value() + duplicate_extruder_temp_offset); #endif CooldownNoWait = true; } else if (code_seen('R')) { setTargetHotend(code_value(), tmp_extruder); #ifdef DUAL_X_CARRIAGE if (dual_x_carriage_mode == DXC_DUPLICATION_MODE && tmp_extruder == 0) setTargetHotend1(code_value() == 0.0 ? 0.0 : code_value() + duplicate_extruder_temp_offset); #endif CooldownNoWait = false; } #ifdef AUTOTEMP if (code_seen('S')) autotemp_min=code_value(); if (code_seen('B')) autotemp_max=code_value(); if (code_seen('F')) { autotemp_factor=code_value(); autotemp_enabled=true; } #endif setWatch(); codenum = millis(); /* See if we are heating up or cooling down */ target_direction = isHeatingHotend(tmp_extruder); // true if heating, false if cooling cancel_heatup = false; #ifdef TEMP_RESIDENCY_TIME long residencyStart; residencyStart = -1; /* continue to loop until we have reached the target temp _and_ until TEMP_RESIDENCY_TIME hasn't passed since we reached it */ while((!cancel_heatup)&&((residencyStart == -1) || (residencyStart >= 0 && (((unsigned int) (millis() - residencyStart)) < (TEMP_RESIDENCY_TIME * 1000UL)))) ) { #else while ( target_direction ? (isHeatingHotend(tmp_extruder)) : (isCoolingHotend(tmp_extruder)&&(CooldownNoWait==false)) ) { #endif //TEMP_RESIDENCY_TIME if( (millis() - codenum) > 1000UL ) { //Print Temp Reading and remaining time every 1 second while heating up/cooling down SERIAL_PROTOCOLPGM("T:"); SERIAL_PROTOCOL_F(degHotend(tmp_extruder),1); SERIAL_PROTOCOLPGM(" E:"); SERIAL_PROTOCOL((int)tmp_extruder); #ifdef TEMP_RESIDENCY_TIME SERIAL_PROTOCOLPGM(" W:"); if(residencyStart > -1) { codenum = ((TEMP_RESIDENCY_TIME * 1000UL) - (millis() - residencyStart)) / 1000UL; SERIAL_PROTOCOLLN( codenum ); } else { SERIAL_PROTOCOLLN( "?" ); } #else SERIAL_PROTOCOLLN(""); #endif codenum = millis(); } manage_heater(); manage_inactivity(); lcd_update(); #ifdef TEMP_RESIDENCY_TIME /* start/restart the TEMP_RESIDENCY_TIME timer whenever we reach target temp for the first time or when current temp falls outside the hysteresis after target temp was reached */ if ((residencyStart == -1 && target_direction && (degHotend(tmp_extruder) >= (degTargetHotend(tmp_extruder)-TEMP_WINDOW))) || (residencyStart == -1 && !target_direction && (degHotend(tmp_extruder) <= (degTargetHotend(tmp_extruder)+TEMP_WINDOW))) || (residencyStart > -1 && labs(degHotend(tmp_extruder) - degTargetHotend(tmp_extruder)) > TEMP_HYSTERESIS) ) { residencyStart = millis(); } #endif //TEMP_RESIDENCY_TIME } LCD_MESSAGEPGM(MSG_HEATING_COMPLETE); starttime=millis(); previous_millis_cmd = millis(); } break; case 190: // M190 - Wait for bed heater to reach target. #if defined(TEMP_BED_PIN) && TEMP_BED_PIN > -1 LCD_MESSAGEPGM(MSG_BED_HEATING); if (code_seen('S')) { setTargetBed(code_value()); CooldownNoWait = true; } else if (code_seen('R')) { setTargetBed(code_value()); CooldownNoWait = false; } codenum = millis(); cancel_heatup = false; target_direction = isHeatingBed(); // true if heating, false if cooling while ( (target_direction)&&(!cancel_heatup) ? (isHeatingBed()) : (isCoolingBed()&&(CooldownNoWait==false)) ) { if(( millis() - codenum) > 1000 ) //Print Temp Reading every 1 second while heating up. { float tt=degHotend(active_extruder); SERIAL_PROTOCOLPGM("T:"); SERIAL_PROTOCOL(tt); SERIAL_PROTOCOLPGM(" E:"); SERIAL_PROTOCOL((int)active_extruder); SERIAL_PROTOCOLPGM(" B:"); SERIAL_PROTOCOL_F(degBed(),1); SERIAL_PROTOCOLLN(""); codenum = millis(); } manage_heater(); manage_inactivity(); lcd_update(); } LCD_MESSAGEPGM(MSG_BED_DONE); previous_millis_cmd = millis(); #endif break; #if defined(FAN_PIN) && FAN_PIN > -1 case 106: //M106 Fan On if (code_seen('S')){ fanSpeed=constrain(code_value(),0,255); } else { fanSpeed=255; } break; case 107: //M107 Fan Off fanSpeed = 0; break; #endif //FAN_PIN #ifdef BARICUDA // PWM for HEATER_1_PIN #if defined(HEATER_1_PIN) && HEATER_1_PIN > -1 case 126: //M126 valve open if (code_seen('S')){ ValvePressure=constrain(code_value(),0,255); } else { ValvePressure=255; } break; case 127: //M127 valve closed ValvePressure = 0; break; #endif //HEATER_1_PIN // PWM for HEATER_2_PIN #if defined(HEATER_2_PIN) && HEATER_2_PIN > -1 case 128: //M128 valve open if (code_seen('S')){ EtoPPressure=constrain(code_value(),0,255); } else { EtoPPressure=255; } break; case 129: //M129 valve closed EtoPPressure = 0; break; #endif //HEATER_2_PIN #endif #if defined(PS_ON_PIN) && PS_ON_PIN > -1 case 80: // M80 - Turn on Power Supply SET_OUTPUT(PS_ON_PIN); //GND WRITE(PS_ON_PIN, PS_ON_AWAKE); // If you have a switch on suicide pin, this is useful // if you want to start another print with suicide feature after // a print without suicide... #if defined SUICIDE_PIN && SUICIDE_PIN > -1 SET_OUTPUT(SUICIDE_PIN); WRITE(SUICIDE_PIN, HIGH); #endif #ifdef ULTIPANEL powersupply = true; LCD_MESSAGEPGM(WELCOME_MSG); lcd_update(); #endif break; #endif case 81: // M81 - Turn off Power Supply disable_heater(); st_synchronize(); disable_e0(); disable_e1(); disable_e2(); finishAndDisableSteppers(); fanSpeed = 0; delay(1000); // Wait a little before to switch off #if defined(SUICIDE_PIN) && SUICIDE_PIN > -1 st_synchronize(); suicide(); #elif defined(PS_ON_PIN) && PS_ON_PIN > -1 SET_OUTPUT(PS_ON_PIN); WRITE(PS_ON_PIN, PS_ON_ASLEEP); #endif #ifdef ULTIPANEL powersupply = false; LCD_MESSAGEPGM(MACHINE_NAME" "MSG_OFF"."); lcd_update(); #endif break; case 82: axis_relative_modes[3] = false; break; case 83: axis_relative_modes[3] = true; break; case 18: //compatibility case 84: // M84 if(code_seen('S')){ stepper_inactive_time = code_value() * 1000; } else { bool all_axis = !((code_seen(axis_codes[X_AXIS])) || (code_seen(axis_codes[Y_AXIS])) || (code_seen(axis_codes[Z_AXIS]))|| (code_seen(axis_codes[E_AXIS]))); if(all_axis) { st_synchronize(); disable_e0(); disable_e1(); disable_e2(); finishAndDisableSteppers(); } else { st_synchronize(); if(code_seen('X')) disable_x(); if(code_seen('Y')) disable_y(); if(code_seen('Z')) disable_z(); #if ((E0_ENABLE_PIN != X_ENABLE_PIN) && (E1_ENABLE_PIN != Y_ENABLE_PIN)) // Only enable on boards that have seperate ENABLE_PINS if(code_seen('E')) { disable_e0(); disable_e1(); disable_e2(); } #endif } } break; case 85: // M85 if(code_seen('S')) { max_inactive_time = code_value() * 1000; } break; case 92: // M92 for(int8_t i=0; i < NUM_AXIS; i++) { if(code_seen(axis_codes[i])) { if(i == 3) { // E float value = code_value(); if(value < 20.0) { float factor = axis_steps_per_unit[i] / value; // increase e constants if M92 E14 is given for netfab. max_e_jerk *= factor; max_feedrate[i] *= factor; axis_steps_per_sqr_second[i] *= factor; } axis_steps_per_unit[i] = value; } else { axis_steps_per_unit[i] = code_value(); } } } break; case 115: // M115 SERIAL_PROTOCOLPGM(MSG_M115_REPORT); break; case 117: // M117 display message starpos = (strchr(strchr_pointer + 5,'*')); if(starpos!=NULL) *(starpos)='\0'; lcd_setstatus(strchr_pointer + 5); break; case 114: // M114 SERIAL_PROTOCOLPGM("X:"); SERIAL_PROTOCOL(current_position[X_AXIS]); SERIAL_PROTOCOLPGM(" Y:"); SERIAL_PROTOCOL(current_position[Y_AXIS]); SERIAL_PROTOCOLPGM(" Z:"); SERIAL_PROTOCOL(current_position[Z_AXIS]); SERIAL_PROTOCOLPGM(" E:"); SERIAL_PROTOCOL(current_position[E_AXIS]); SERIAL_PROTOCOLPGM(MSG_COUNT_X); SERIAL_PROTOCOL(float(st_get_position(X_AXIS))/axis_steps_per_unit[X_AXIS]); SERIAL_PROTOCOLPGM(" Y:"); SERIAL_PROTOCOL(float(st_get_position(Y_AXIS))/axis_steps_per_unit[Y_AXIS]); SERIAL_PROTOCOLPGM(" Z:"); SERIAL_PROTOCOL(float(st_get_position(Z_AXIS))/axis_steps_per_unit[Z_AXIS]); SERIAL_PROTOCOLLN(""); #ifdef SCARA SERIAL_PROTOCOLPGM("SCARA Theta:"); SERIAL_PROTOCOL(delta[X_AXIS]); SERIAL_PROTOCOLPGM(" Psi+Theta:"); SERIAL_PROTOCOL(delta[Y_AXIS]); SERIAL_PROTOCOLLN(""); SERIAL_PROTOCOLPGM("SCARA Cal - Theta:"); SERIAL_PROTOCOL(delta[X_AXIS]+add_homing[X_AXIS]); SERIAL_PROTOCOLPGM(" Psi+Theta (90):"); SERIAL_PROTOCOL(delta[Y_AXIS]-delta[X_AXIS]-90+add_homing[Y_AXIS]); SERIAL_PROTOCOLLN(""); SERIAL_PROTOCOLPGM("SCARA step Cal - Theta:"); SERIAL_PROTOCOL(delta[X_AXIS]/90*axis_steps_per_unit[X_AXIS]); SERIAL_PROTOCOLPGM(" Psi+Theta:"); SERIAL_PROTOCOL((delta[Y_AXIS]-delta[X_AXIS])/90*axis_steps_per_unit[Y_AXIS]); SERIAL_PROTOCOLLN(""); SERIAL_PROTOCOLLN(""); #endif break; case 120: // M120 enable_endstops(false) ; break; case 121: // M121 enable_endstops(true) ; break; case 119: // M119 SERIAL_PROTOCOLLN(MSG_M119_REPORT); #if defined(X_MIN_PIN) && X_MIN_PIN > -1 SERIAL_PROTOCOLPGM(MSG_X_MIN); SERIAL_PROTOCOLLN(((READ(X_MIN_PIN)^X_MIN_ENDSTOP_INVERTING)?MSG_ENDSTOP_HIT:MSG_ENDSTOP_OPEN)); #endif #if defined(X_MAX_PIN) && X_MAX_PIN > -1 SERIAL_PROTOCOLPGM(MSG_X_MAX); SERIAL_PROTOCOLLN(((READ(X_MAX_PIN)^X_MAX_ENDSTOP_INVERTING)?MSG_ENDSTOP_HIT:MSG_ENDSTOP_OPEN)); #endif #if defined(Y_MIN_PIN) && Y_MIN_PIN > -1 SERIAL_PROTOCOLPGM(MSG_Y_MIN); SERIAL_PROTOCOLLN(((READ(Y_MIN_PIN)^Y_MIN_ENDSTOP_INVERTING)?MSG_ENDSTOP_HIT:MSG_ENDSTOP_OPEN)); #endif #if defined(Y_MAX_PIN) && Y_MAX_PIN > -1 SERIAL_PROTOCOLPGM(MSG_Y_MAX); SERIAL_PROTOCOLLN(((READ(Y_MAX_PIN)^Y_MAX_ENDSTOP_INVERTING)?MSG_ENDSTOP_HIT:MSG_ENDSTOP_OPEN)); #endif #if defined(Z_MIN_PIN) && Z_MIN_PIN > -1 SERIAL_PROTOCOLPGM(MSG_Z_MIN); SERIAL_PROTOCOLLN(((READ(Z_MIN_PIN)^Z_MIN_ENDSTOP_INVERTING)?MSG_ENDSTOP_HIT:MSG_ENDSTOP_OPEN)); #endif #if defined(Z_MAX_PIN) && Z_MAX_PIN > -1 SERIAL_PROTOCOLPGM(MSG_Z_MAX); SERIAL_PROTOCOLLN(((READ(Z_MAX_PIN)^Z_MAX_ENDSTOP_INVERTING)?MSG_ENDSTOP_HIT:MSG_ENDSTOP_OPEN)); #endif break; //TODO: update for all axis, use for loop #ifdef BLINKM case 150: // M150 { byte red; byte grn; byte blu; if(code_seen('R')) red = code_value(); if(code_seen('U')) grn = code_value(); if(code_seen('B')) blu = code_value(); SendColors(red,grn,blu); } break; #endif //BLINKM case 200: // M200 D<millimeters> set filament diameter and set E axis units to cubic millimeters (use S0 to set back to millimeters). { tmp_extruder = active_extruder; if(code_seen('T')) { tmp_extruder = code_value(); if(tmp_extruder >= EXTRUDERS) { SERIAL_ECHO_START; SERIAL_ECHO(MSG_M200_INVALID_EXTRUDER); break; } } float area = .0; if(code_seen('D')) { float diameter = (float)code_value(); if (diameter == 0.0) { // setting any extruder filament size disables volumetric on the assumption that // slicers either generate in extruder values as cubic mm or as as filament feeds // for all extruders volumetric_enabled = false; } else { filament_size[tmp_extruder] = (float)code_value(); // make sure all extruders have some sane value for the filament size filament_size[0] = (filament_size[0] == 0.0 ? DEFAULT_NOMINAL_FILAMENT_DIA : filament_size[0]); #if EXTRUDERS > 1 filament_size[1] = (filament_size[1] == 0.0 ? DEFAULT_NOMINAL_FILAMENT_DIA : filament_size[1]); #if EXTRUDERS > 2 filament_size[2] = (filament_size[2] == 0.0 ? DEFAULT_NOMINAL_FILAMENT_DIA : filament_size[2]); #endif #endif volumetric_enabled = true; } } else { //reserved for setting filament diameter via UFID or filament measuring device break; } calculate_volumetric_multipliers(); } break; case 201: // M201 for(int8_t i=0; i < NUM_AXIS; i++) { if(code_seen(axis_codes[i])) { max_acceleration_units_per_sq_second[i] = code_value(); } } // steps per sq second need to be updated to agree with the units per sq second (as they are what is used in the planner) reset_acceleration_rates(); break; #if 0 // Not used for Sprinter/grbl gen6 case 202: // M202 for(int8_t i=0; i < NUM_AXIS; i++) { if(code_seen(axis_codes[i])) axis_travel_steps_per_sqr_second[i] = code_value() * axis_steps_per_unit[i]; } break; #endif case 203: // M203 max feedrate mm/sec for(int8_t i=0; i < NUM_AXIS; i++) { if(code_seen(axis_codes[i])) max_feedrate[i] = code_value(); } break; case 204: // M204 acclereration S normal moves T filmanent only moves { if(code_seen('S')) acceleration = code_value() ; if(code_seen('T')) retract_acceleration = code_value() ; } break; case 205: //M205 advanced settings: minimum travel speed S=while printing T=travel only, B=minimum segment time X= maximum xy jerk, Z=maximum Z jerk { if(code_seen('S')) minimumfeedrate = code_value(); if(code_seen('T')) mintravelfeedrate = code_value(); if(code_seen('B')) minsegmenttime = code_value() ; if(code_seen('X')) max_xy_jerk = code_value() ; if(code_seen('Z')) max_z_jerk = code_value() ; if(code_seen('E')) max_e_jerk = code_value() ; } break; case 206: // M206 additional homing offset for(int8_t i=0; i < 3; i++) { if(code_seen(axis_codes[i])) add_homing[i] = code_value(); } #ifdef SCARA if(code_seen('T')) // Theta { add_homing[X_AXIS] = code_value() ; } if(code_seen('P')) // Psi { add_homing[Y_AXIS] = code_value() ; } #endif break; #ifdef DELTA case 665: // M665 set delta configurations L<diagonal_rod> R<delta_radius> S<segments_per_sec> if(code_seen('L')) { delta_diagonal_rod= code_value(); } if(code_seen('R')) { delta_radius= code_value(); } if(code_seen('S')) { delta_segments_per_second= code_value(); } recalc_delta_settings(delta_radius, delta_diagonal_rod); break; case 666: // M666 set delta endstop adjustemnt for(int8_t i=0; i < 3; i++) { if(code_seen(axis_codes[i])) endstop_adj[i] = code_value(); } break; #endif #ifdef FWRETRACT case 207: //M207 - set retract length S[positive mm] F[feedrate mm/min] Z[additional zlift/hop] { if(code_seen('S')) { retract_length = code_value() ; } if(code_seen('F')) { retract_feedrate = code_value()/60 ; } if(code_seen('Z')) { retract_zlift = code_value() ; } }break; case 208: // M208 - set retract recover length S[positive mm surplus to the M207 S*] F[feedrate mm/min] { if(code_seen('S')) { retract_recover_length = code_value() ; } if(code_seen('F')) { retract_recover_feedrate = code_value()/60 ; } }break; case 209: // M209 - S<1=true/0=false> enable automatic retract detect if the slicer did not support G10/11: every normal extrude-only move will be classified as retract depending on the direction. { if(code_seen('S')) { int t= code_value() ; switch(t) { case 0: { autoretract_enabled=false; retracted[0]=false; #if EXTRUDERS > 1 retracted[1]=false; #endif #if EXTRUDERS > 2 retracted[2]=false; #endif }break; case 1: { autoretract_enabled=true; retracted[0]=false; #if EXTRUDERS > 1 retracted[1]=false; #endif #if EXTRUDERS > 2 retracted[2]=false; #endif }break; default: SERIAL_ECHO_START; SERIAL_ECHOPGM(MSG_UNKNOWN_COMMAND); SERIAL_ECHO(cmdbuffer[bufindr]); SERIAL_ECHOLNPGM("\""); } } }break; #endif // FWRETRACT #if EXTRUDERS > 1 case 218: // M218 - set hotend offset (in mm), T<extruder_number> X<offset_on_X> Y<offset_on_Y> { if(setTargetedHotend(218)){ break; } if(code_seen('X')) { extruder_offset[X_AXIS][tmp_extruder] = code_value(); } if(code_seen('Y')) { extruder_offset[Y_AXIS][tmp_extruder] = code_value(); } #ifdef DUAL_X_CARRIAGE if(code_seen('Z')) { extruder_offset[Z_AXIS][tmp_extruder] = code_value(); } #endif SERIAL_ECHO_START; SERIAL_ECHOPGM(MSG_HOTEND_OFFSET); for(tmp_extruder = 0; tmp_extruder < EXTRUDERS; tmp_extruder++) { SERIAL_ECHO(" "); SERIAL_ECHO(extruder_offset[X_AXIS][tmp_extruder]); SERIAL_ECHO(","); SERIAL_ECHO(extruder_offset[Y_AXIS][tmp_extruder]); #ifdef DUAL_X_CARRIAGE SERIAL_ECHO(","); SERIAL_ECHO(extruder_offset[Z_AXIS][tmp_extruder]); #endif } SERIAL_ECHOLN(""); }break; #endif case 220: // M220 S<factor in percent>- set speed factor override percentage { if(code_seen('S')) { feedmultiply = code_value() ; } } break; case 221: // M221 S<factor in percent>- set extrude factor override percentage { if(code_seen('S')) { int tmp_code = code_value(); if (code_seen('T')) { if(setTargetedHotend(221)){ break; } extruder_multiply[tmp_extruder] = tmp_code; } else { extrudemultiply = tmp_code ; } } } break; case 226: // M226 P<pin number> S<pin state>- Wait until the specified pin reaches the state required { if(code_seen('P')){ int pin_number = code_value(); // pin number int pin_state = -1; // required pin state - default is inverted if(code_seen('S')) pin_state = code_value(); // required pin state if(pin_state >= -1 && pin_state <= 1){ for(int8_t i = 0; i < (int8_t)(sizeof(sensitive_pins)/sizeof(int)); i++) { if (sensitive_pins[i] == pin_number) { pin_number = -1; break; } } if (pin_number > -1) { int target = LOW; st_synchronize(); pinMode(pin_number, INPUT); switch(pin_state){ case 1: target = HIGH; break; case 0: target = LOW; break; case -1: target = !digitalRead(pin_number); break; } while(digitalRead(pin_number) != target){ manage_heater(); manage_inactivity(); lcd_update(); } } } } } break; #if NUM_SERVOS > 0 case 280: // M280 - set servo position absolute. P: servo index, S: angle or microseconds { int servo_index = -1; int servo_position = 0; if (code_seen('P')) servo_index = code_value(); if (code_seen('S')) { servo_position = code_value(); if ((servo_index >= 0) && (servo_index < NUM_SERVOS)) { #if defined (ENABLE_AUTO_BED_LEVELING) && (PROBE_SERVO_DEACTIVATION_DELAY > 0) servos[servo_index].attach(0); #endif servos[servo_index].write(servo_position); #if defined (ENABLE_AUTO_BED_LEVELING) && (PROBE_SERVO_DEACTIVATION_DELAY > 0) delay(PROBE_SERVO_DEACTIVATION_DELAY); servos[servo_index].detach(); #endif } else { SERIAL_ECHO_START; SERIAL_ECHO("Servo "); SERIAL_ECHO(servo_index); SERIAL_ECHOLN(" out of range"); } } else if (servo_index >= 0) { SERIAL_PROTOCOL(MSG_OK); SERIAL_PROTOCOL(" Servo "); SERIAL_PROTOCOL(servo_index); SERIAL_PROTOCOL(": "); SERIAL_PROTOCOL(servos[servo_index].read()); SERIAL_PROTOCOLLN(""); } } break; #endif // NUM_SERVOS > 0 #if (LARGE_FLASH == true && ( BEEPER > 0 || defined(ULTRALCD) || defined(LCD_USE_I2C_BUZZER))) case 300: // M300 { int beepS = code_seen('S') ? code_value() : 110; int beepP = code_seen('P') ? code_value() : 1000; if (beepS > 0) { #if BEEPER > 0 tone(BEEPER, beepS); delay(beepP); noTone(BEEPER); #elif defined(ULTRALCD) lcd_buzz(beepS, beepP); #elif defined(LCD_USE_I2C_BUZZER) lcd_buzz(beepP, beepS); #endif } else { delay(beepP); } } break; #endif // M300 #ifdef PIDTEMP case 301: // M301 { if(code_seen('P')) Kp = code_value(); if(code_seen('I')) Ki = scalePID_i(code_value()); if(code_seen('D')) Kd = scalePID_d(code_value()); #ifdef PID_ADD_EXTRUSION_RATE if(code_seen('C')) Kc = code_value(); #endif updatePID(); SERIAL_PROTOCOL(MSG_OK); SERIAL_PROTOCOL(" p:"); SERIAL_PROTOCOL(Kp); SERIAL_PROTOCOL(" i:"); SERIAL_PROTOCOL(unscalePID_i(Ki)); SERIAL_PROTOCOL(" d:"); SERIAL_PROTOCOL(unscalePID_d(Kd)); #ifdef PID_ADD_EXTRUSION_RATE SERIAL_PROTOCOL(" c:"); //Kc does not have scaling applied above, or in resetting defaults SERIAL_PROTOCOL(Kc); #endif SERIAL_PROTOCOLLN(""); } break; #endif //PIDTEMP #ifdef PIDTEMPBED case 304: // M304 { if(code_seen('P')) bedKp = code_value(); if(code_seen('I')) bedKi = scalePID_i(code_value()); if(code_seen('D')) bedKd = scalePID_d(code_value()); updatePID(); SERIAL_PROTOCOL(MSG_OK); SERIAL_PROTOCOL(" p:"); SERIAL_PROTOCOL(bedKp); SERIAL_PROTOCOL(" i:"); SERIAL_PROTOCOL(unscalePID_i(bedKi)); SERIAL_PROTOCOL(" d:"); SERIAL_PROTOCOL(unscalePID_d(bedKd)); SERIAL_PROTOCOLLN(""); } break; #endif //PIDTEMP case 240: // M240 Triggers a camera by emulating a Canon RC-1 : path_to_url { #ifdef CHDK SET_OUTPUT(CHDK); WRITE(CHDK, HIGH); chdkHigh = millis(); chdkActive = true; #else #if defined(PHOTOGRAPH_PIN) && PHOTOGRAPH_PIN > -1 const uint8_t NUM_PULSES=16; const float PULSE_LENGTH=0.01524; for(int i=0; i < NUM_PULSES; i++) { WRITE(PHOTOGRAPH_PIN, HIGH); _delay_ms(PULSE_LENGTH); WRITE(PHOTOGRAPH_PIN, LOW); _delay_ms(PULSE_LENGTH); } delay(7.33); for(int i=0; i < NUM_PULSES; i++) { WRITE(PHOTOGRAPH_PIN, HIGH); _delay_ms(PULSE_LENGTH); WRITE(PHOTOGRAPH_PIN, LOW); _delay_ms(PULSE_LENGTH); } #endif #endif //chdk end if } break; #ifdef DOGLCD case 250: // M250 Set LCD contrast value: C<value> (value 0..63) { if (code_seen('C')) { lcd_setcontrast( ((int)code_value())&63 ); } SERIAL_PROTOCOLPGM("lcd contrast value: "); SERIAL_PROTOCOL(lcd_contrast); SERIAL_PROTOCOLLN(""); } break; #endif #ifdef PREVENT_DANGEROUS_EXTRUDE case 302: // allow cold extrudes, or set the minimum extrude temperature { float temp = .0; if (code_seen('S')) temp=code_value(); set_extrude_min_temp(temp); } break; #endif case 303: // M303 PID autotune { float temp = 150.0; int e=0; int c=5; if (code_seen('E')) e=code_value(); if (e<0) temp=70; if (code_seen('S')) temp=code_value(); if (code_seen('C')) c=code_value(); PID_autotune(temp, e, c); } break; #ifdef SCARA case 360: // M360 SCARA Theta pos1 SERIAL_ECHOLN(" Cal: Theta 0 "); //SoftEndsEnabled = false; // Ignore soft endstops during calibration //SERIAL_ECHOLN(" Soft endstops disabled "); if(Stopped == false) { //get_coordinates(); // For X Y Z E F delta[X_AXIS] = 0; delta[Y_AXIS] = 120; calculate_SCARA_forward_Transform(delta); destination[X_AXIS] = delta[X_AXIS]/axis_scaling[X_AXIS]; destination[Y_AXIS] = delta[Y_AXIS]/axis_scaling[Y_AXIS]; prepare_move(); //ClearToSend(); return; } break; case 361: // SCARA Theta pos2 SERIAL_ECHOLN(" Cal: Theta 90 "); //SoftEndsEnabled = false; // Ignore soft endstops during calibration //SERIAL_ECHOLN(" Soft endstops disabled "); if(Stopped == false) { //get_coordinates(); // For X Y Z E F delta[X_AXIS] = 90; delta[Y_AXIS] = 130; calculate_SCARA_forward_Transform(delta); destination[X_AXIS] = delta[X_AXIS]/axis_scaling[X_AXIS]; destination[Y_AXIS] = delta[Y_AXIS]/axis_scaling[Y_AXIS]; prepare_move(); //ClearToSend(); return; } break; case 362: // SCARA Psi pos1 SERIAL_ECHOLN(" Cal: Psi 0 "); //SoftEndsEnabled = false; // Ignore soft endstops during calibration //SERIAL_ECHOLN(" Soft endstops disabled "); if(Stopped == false) { //get_coordinates(); // For X Y Z E F delta[X_AXIS] = 60; delta[Y_AXIS] = 180; calculate_SCARA_forward_Transform(delta); destination[X_AXIS] = delta[X_AXIS]/axis_scaling[X_AXIS]; destination[Y_AXIS] = delta[Y_AXIS]/axis_scaling[Y_AXIS]; prepare_move(); //ClearToSend(); return; } break; case 363: // SCARA Psi pos2 SERIAL_ECHOLN(" Cal: Psi 90 "); //SoftEndsEnabled = false; // Ignore soft endstops during calibration //SERIAL_ECHOLN(" Soft endstops disabled "); if(Stopped == false) { //get_coordinates(); // For X Y Z E F delta[X_AXIS] = 50; delta[Y_AXIS] = 90; calculate_SCARA_forward_Transform(delta); destination[X_AXIS] = delta[X_AXIS]/axis_scaling[X_AXIS]; destination[Y_AXIS] = delta[Y_AXIS]/axis_scaling[Y_AXIS]; prepare_move(); //ClearToSend(); return; } break; case 364: // SCARA Psi pos3 (90 deg to Theta) SERIAL_ECHOLN(" Cal: Theta-Psi 90 "); // SoftEndsEnabled = false; // Ignore soft endstops during calibration //SERIAL_ECHOLN(" Soft endstops disabled "); if(Stopped == false) { //get_coordinates(); // For X Y Z E F delta[X_AXIS] = 45; delta[Y_AXIS] = 135; calculate_SCARA_forward_Transform(delta); destination[X_AXIS] = delta[X_AXIS]/axis_scaling[X_AXIS]; destination[Y_AXIS] = delta[Y_AXIS]/axis_scaling[Y_AXIS]; prepare_move(); //ClearToSend(); return; } break; case 365: // M364 Set SCARA scaling for X Y Z for(int8_t i=0; i < 3; i++) { if(code_seen(axis_codes[i])) { axis_scaling[i] = code_value(); } } break; #endif case 400: // M400 finish all moves { st_synchronize(); } break; #if defined(ENABLE_AUTO_BED_LEVELING) && defined(SERVO_ENDSTOPS) && not defined(Z_PROBE_SLED) case 401: { engage_z_probe(); // Engage Z Servo endstop if available } break; case 402: { retract_z_probe(); // Retract Z Servo endstop if enabled } break; #endif #ifdef FILAMENT_SENSOR case 404: //M404 Enter the nominal filament width (3mm, 1.75mm ) N<3.0> or display nominal filament width { #if (FILWIDTH_PIN > -1) if(code_seen('N')) filament_width_nominal=code_value(); else{ SERIAL_PROTOCOLPGM("Filament dia (nominal mm):"); SERIAL_PROTOCOLLN(filament_width_nominal); } #endif } break; case 405: //M405 Turn on filament sensor for control { if(code_seen('D')) meas_delay_cm=code_value(); if(meas_delay_cm> MAX_MEASUREMENT_DELAY) meas_delay_cm = MAX_MEASUREMENT_DELAY; if(delay_index2 == -1) //initialize the ring buffer if it has not been done since startup { int temp_ratio = widthFil_to_size_ratio(); for (delay_index1=0; delay_index1<(MAX_MEASUREMENT_DELAY+1); ++delay_index1 ){ measurement_delay[delay_index1]=temp_ratio-100; //subtract 100 to scale within a signed byte } delay_index1=0; delay_index2=0; } filament_sensor = true ; //SERIAL_PROTOCOLPGM("Filament dia (measured mm):"); //SERIAL_PROTOCOL(filament_width_meas); //SERIAL_PROTOCOLPGM("Extrusion ratio(%):"); //SERIAL_PROTOCOL(extrudemultiply); } break; case 406: //M406 Turn off filament sensor for control { filament_sensor = false ; } break; case 407: //M407 Display measured filament diameter { SERIAL_PROTOCOLPGM("Filament dia (measured mm):"); SERIAL_PROTOCOLLN(filament_width_meas); } break; #endif case 500: // M500 Store settings in EEPROM { Config_StoreSettings(); } break; case 501: // M501 Read settings from EEPROM { Config_RetrieveSettings(); } break; case 502: // M502 Revert to default settings { Config_ResetDefault(); } break; case 503: // M503 print settings currently in memory { Config_PrintSettings(); } break; #ifdef ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED case 540: { if(code_seen('S')) abort_on_endstop_hit = code_value() > 0; } break; #endif #ifdef CUSTOM_M_CODE_SET_Z_PROBE_OFFSET case CUSTOM_M_CODE_SET_Z_PROBE_OFFSET: { float value; if (code_seen('Z')) { value = code_value(); if ((Z_PROBE_OFFSET_RANGE_MIN <= value) && (value <= Z_PROBE_OFFSET_RANGE_MAX)) { zprobe_zoffset = -value; // compare w/ line 278 of ConfigurationStore.cpp SERIAL_ECHO_START; SERIAL_ECHOLNPGM(MSG_ZPROBE_ZOFFSET " " MSG_OK); SERIAL_PROTOCOLLN(""); } else { SERIAL_ECHO_START; SERIAL_ECHOPGM(MSG_ZPROBE_ZOFFSET); SERIAL_ECHOPGM(MSG_Z_MIN); SERIAL_ECHO(Z_PROBE_OFFSET_RANGE_MIN); SERIAL_ECHOPGM(MSG_Z_MAX); SERIAL_ECHO(Z_PROBE_OFFSET_RANGE_MAX); SERIAL_PROTOCOLLN(""); } } else { SERIAL_ECHO_START; SERIAL_ECHOLNPGM(MSG_ZPROBE_ZOFFSET " : "); SERIAL_ECHO(-zprobe_zoffset); SERIAL_PROTOCOLLN(""); } break; } #endif // CUSTOM_M_CODE_SET_Z_PROBE_OFFSET #ifdef FILAMENTCHANGEENABLE case 600: //Pause for filament change X[pos] Y[pos] Z[relative lift] E[initial retract] L[later retract distance for removal] { float target[4]; float lastpos[4]; target[X_AXIS]=current_position[X_AXIS]; target[Y_AXIS]=current_position[Y_AXIS]; target[Z_AXIS]=current_position[Z_AXIS]; target[E_AXIS]=current_position[E_AXIS]; lastpos[X_AXIS]=current_position[X_AXIS]; lastpos[Y_AXIS]=current_position[Y_AXIS]; lastpos[Z_AXIS]=current_position[Z_AXIS]; lastpos[E_AXIS]=current_position[E_AXIS]; //retract by E if(code_seen('E')) { target[E_AXIS]+= code_value(); } else { #ifdef FILAMENTCHANGE_FIRSTRETRACT target[E_AXIS]+= FILAMENTCHANGE_FIRSTRETRACT ; #endif } plan_buffer_line(target[X_AXIS], target[Y_AXIS], target[Z_AXIS], target[E_AXIS], feedrate/60, active_extruder); //lift Z if(code_seen('Z')) { target[Z_AXIS]+= code_value(); } else { #ifdef FILAMENTCHANGE_ZADD target[Z_AXIS]+= FILAMENTCHANGE_ZADD ; #endif } plan_buffer_line(target[X_AXIS], target[Y_AXIS], target[Z_AXIS], target[E_AXIS], feedrate/60, active_extruder); //move xy if(code_seen('X')) { target[X_AXIS]+= code_value(); } else { #ifdef FILAMENTCHANGE_XPOS target[X_AXIS]= FILAMENTCHANGE_XPOS ; #endif } if(code_seen('Y')) { target[Y_AXIS]= code_value(); } else { #ifdef FILAMENTCHANGE_YPOS target[Y_AXIS]= FILAMENTCHANGE_YPOS ; #endif } plan_buffer_line(target[X_AXIS], target[Y_AXIS], target[Z_AXIS], target[E_AXIS], feedrate/60, active_extruder); if(code_seen('L')) { target[E_AXIS]+= code_value(); } else { #ifdef FILAMENTCHANGE_FINALRETRACT target[E_AXIS]+= FILAMENTCHANGE_FINALRETRACT ; #endif } plan_buffer_line(target[X_AXIS], target[Y_AXIS], target[Z_AXIS], target[E_AXIS], feedrate/60, active_extruder); //finish moves st_synchronize(); //disable extruder steppers so filament can be removed disable_e0(); disable_e1(); disable_e2(); delay(100); LCD_ALERTMESSAGEPGM(MSG_FILAMENTCHANGE); uint8_t cnt=0; while(!lcd_clicked()){ cnt++; manage_heater(); manage_inactivity(true); lcd_update(); if(cnt==0) { #if BEEPER > 0 SET_OUTPUT(BEEPER); WRITE(BEEPER,HIGH); delay(3); WRITE(BEEPER,LOW); delay(3); #else #if !defined(LCD_FEEDBACK_FREQUENCY_HZ) || !defined(LCD_FEEDBACK_FREQUENCY_DURATION_MS) lcd_buzz(1000/6,100); #else lcd_buzz(LCD_FEEDBACK_FREQUENCY_DURATION_MS,LCD_FEEDBACK_FREQUENCY_HZ); #endif #endif } } //return to normal if(code_seen('L')) { target[E_AXIS]+= -code_value(); } else { #ifdef FILAMENTCHANGE_FINALRETRACT target[E_AXIS]+=(-1)*FILAMENTCHANGE_FINALRETRACT ; #endif } current_position[E_AXIS]=target[E_AXIS]; //the long retract of L is compensated by manual filament feeding plan_set_e_position(current_position[E_AXIS]); plan_buffer_line(target[X_AXIS], target[Y_AXIS], target[Z_AXIS], target[E_AXIS], feedrate/60, active_extruder); //should do nothing plan_buffer_line(lastpos[X_AXIS], lastpos[Y_AXIS], target[Z_AXIS], target[E_AXIS], feedrate/60, active_extruder); //move xy back plan_buffer_line(lastpos[X_AXIS], lastpos[Y_AXIS], lastpos[Z_AXIS], target[E_AXIS], feedrate/60, active_extruder); //move z back plan_buffer_line(lastpos[X_AXIS], lastpos[Y_AXIS], lastpos[Z_AXIS], lastpos[E_AXIS], feedrate/60, active_extruder); //final untretract } break; #endif //FILAMENTCHANGEENABLE #ifdef DUAL_X_CARRIAGE case 605: // Set dual x-carriage movement mode: // M605 S0: Full control mode. The slicer has full control over x-carriage movement // M605 S1: Auto-park mode. The inactive head will auto park/unpark without slicer involvement // M605 S2 [Xnnn] [Rmmm]: Duplication mode. The second extruder will duplicate the first with nnn // millimeters x-offset and an optional differential hotend temperature of // mmm degrees. E.g., with "M605 S2 X100 R2" the second extruder will duplicate // the first with a spacing of 100mm in the x direction and 2 degrees hotter. // // Note: the X axis should be homed after changing dual x-carriage mode. { st_synchronize(); if (code_seen('S')) dual_x_carriage_mode = code_value(); if (dual_x_carriage_mode == DXC_DUPLICATION_MODE) { if (code_seen('X')) duplicate_extruder_x_offset = max(code_value(),X2_MIN_POS - x_home_pos(0)); if (code_seen('R')) duplicate_extruder_temp_offset = code_value(); SERIAL_ECHO_START; SERIAL_ECHOPGM(MSG_HOTEND_OFFSET); SERIAL_ECHO(" "); SERIAL_ECHO(extruder_offset[X_AXIS][0]); SERIAL_ECHO(","); SERIAL_ECHO(extruder_offset[Y_AXIS][0]); SERIAL_ECHO(" "); SERIAL_ECHO(duplicate_extruder_x_offset); SERIAL_ECHO(","); SERIAL_ECHOLN(extruder_offset[Y_AXIS][1]); } else if (dual_x_carriage_mode != DXC_FULL_CONTROL_MODE && dual_x_carriage_mode != DXC_AUTO_PARK_MODE) { dual_x_carriage_mode = DEFAULT_DUAL_X_CARRIAGE_MODE; } active_extruder_parked = false; extruder_duplication_enabled = false; delayed_move_time = 0; } break; #endif //DUAL_X_CARRIAGE case 907: // M907 Set digital trimpot motor current using axis codes. { #if defined(DIGIPOTSS_PIN) && DIGIPOTSS_PIN > -1 for(int i=0;i<NUM_AXIS;i++) if(code_seen(axis_codes[i])) digipot_current(i,code_value()); if(code_seen('B')) digipot_current(4,code_value()); if(code_seen('S')) for(int i=0;i<=4;i++) digipot_current(i,code_value()); #endif #ifdef MOTOR_CURRENT_PWM_XY_PIN if(code_seen('X')) digipot_current(0, code_value()); #endif #ifdef MOTOR_CURRENT_PWM_Z_PIN if(code_seen('Z')) digipot_current(1, code_value()); #endif #ifdef MOTOR_CURRENT_PWM_E_PIN if(code_seen('E')) digipot_current(2, code_value()); #endif #ifdef DIGIPOT_I2C // this one uses actual amps in floating point for(int i=0;i<NUM_AXIS;i++) if(code_seen(axis_codes[i])) digipot_i2c_set_current(i, code_value()); // for each additional extruder (named B,C,D,E..., channels 4,5,6,7...) for(int i=NUM_AXIS;i<DIGIPOT_I2C_NUM_CHANNELS;i++) if(code_seen('B'+i-NUM_AXIS)) digipot_i2c_set_current(i, code_value()); #endif } break; case 908: // M908 Control digital trimpot directly. { #if defined(DIGIPOTSS_PIN) && DIGIPOTSS_PIN > -1 uint8_t channel,current; if(code_seen('P')) channel=code_value(); if(code_seen('S')) current=code_value(); digitalPotWrite(channel, current); #endif } break; case 350: // M350 Set microstepping mode. Warning: Steps per unit remains unchanged. S code sets stepping mode for all drivers. { #if defined(X_MS1_PIN) && X_MS1_PIN > -1 if(code_seen('S')) for(int i=0;i<=4;i++) microstep_mode(i,code_value()); for(int i=0;i<NUM_AXIS;i++) if(code_seen(axis_codes[i])) microstep_mode(i,(uint8_t)code_value()); if(code_seen('B')) microstep_mode(4,code_value()); microstep_readings(); #endif } break; case 351: // M351 Toggle MS1 MS2 pins directly, S# determines MS1 or MS2, X# sets the pin high/low. { #if defined(X_MS1_PIN) && X_MS1_PIN > -1 if(code_seen('S')) switch((int)code_value()) { case 1: for(int i=0;i<NUM_AXIS;i++) if(code_seen(axis_codes[i])) microstep_ms(i,code_value(),-1); if(code_seen('B')) microstep_ms(4,code_value(),-1); break; case 2: for(int i=0;i<NUM_AXIS;i++) if(code_seen(axis_codes[i])) microstep_ms(i,-1,code_value()); if(code_seen('B')) microstep_ms(4,-1,code_value()); break; } microstep_readings(); #endif } break; case 999: // M999: Restart after being stopped Stopped = false; lcd_reset_alert_level(); gcode_LastN = Stopped_gcode_LastN; FlushSerialRequestResend(); break; } } else if(code_seen('T')) { tmp_extruder = code_value(); if(tmp_extruder >= EXTRUDERS) { SERIAL_ECHO_START; SERIAL_ECHO("T"); SERIAL_ECHO(tmp_extruder); SERIAL_ECHOLN(MSG_INVALID_EXTRUDER); } else { boolean make_move = false; if(code_seen('F')) { make_move = true; next_feedrate = code_value(); if(next_feedrate > 0.0) { feedrate = next_feedrate; } } #if EXTRUDERS > 1 if(tmp_extruder != active_extruder) { // Save current position to return to after applying extruder offset memcpy(destination, current_position, sizeof(destination)); #ifdef DUAL_X_CARRIAGE if (dual_x_carriage_mode == DXC_AUTO_PARK_MODE && Stopped == false && (delayed_move_time != 0 || current_position[X_AXIS] != x_home_pos(active_extruder))) { // Park old head: 1) raise 2) move to park position 3) lower plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS] + TOOLCHANGE_PARK_ZLIFT, current_position[E_AXIS], max_feedrate[Z_AXIS], active_extruder); plan_buffer_line(x_home_pos(active_extruder), current_position[Y_AXIS], current_position[Z_AXIS] + TOOLCHANGE_PARK_ZLIFT, current_position[E_AXIS], max_feedrate[X_AXIS], active_extruder); plan_buffer_line(x_home_pos(active_extruder), current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], max_feedrate[Z_AXIS], active_extruder); st_synchronize(); } // apply Y & Z extruder offset (x offset is already used in determining home pos) current_position[Y_AXIS] = current_position[Y_AXIS] - extruder_offset[Y_AXIS][active_extruder] + extruder_offset[Y_AXIS][tmp_extruder]; current_position[Z_AXIS] = current_position[Z_AXIS] - extruder_offset[Z_AXIS][active_extruder] + extruder_offset[Z_AXIS][tmp_extruder]; active_extruder = tmp_extruder; // This function resets the max/min values - the current position may be overwritten below. axis_is_at_home(X_AXIS); if (dual_x_carriage_mode == DXC_FULL_CONTROL_MODE) { current_position[X_AXIS] = inactive_extruder_x_pos; inactive_extruder_x_pos = destination[X_AXIS]; } else if (dual_x_carriage_mode == DXC_DUPLICATION_MODE) { active_extruder_parked = (active_extruder == 0); // this triggers the second extruder to move into the duplication position if (active_extruder == 0 || active_extruder_parked) current_position[X_AXIS] = inactive_extruder_x_pos; else current_position[X_AXIS] = destination[X_AXIS] + duplicate_extruder_x_offset; inactive_extruder_x_pos = destination[X_AXIS]; extruder_duplication_enabled = false; } else { // record raised toolhead position for use by unpark memcpy(raised_parked_position, current_position, sizeof(raised_parked_position)); raised_parked_position[Z_AXIS] += TOOLCHANGE_UNPARK_ZLIFT; active_extruder_parked = true; delayed_move_time = 0; } #else // Offset extruder (only by XY) int i; for(i = 0; i < 2; i++) { current_position[i] = current_position[i] - extruder_offset[i][active_extruder] + extruder_offset[i][tmp_extruder]; } // Set the new active extruder and position active_extruder = tmp_extruder; #endif //else DUAL_X_CARRIAGE #ifdef DELTA calculate_delta(current_position); // change cartesian kinematic to delta kinematic; //sent position to plan_set_position(); plan_set_position(delta[X_AXIS], delta[Y_AXIS], delta[Z_AXIS],current_position[E_AXIS]); #else plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]); #endif // Move to the old position if 'F' was in the parameters if(make_move && Stopped == false) { prepare_move(); } } #endif SERIAL_ECHO_START; SERIAL_ECHO(MSG_ACTIVE_EXTRUDER); SERIAL_PROTOCOLLN((int)active_extruder); } } else { SERIAL_ECHO_START; SERIAL_ECHOPGM(MSG_UNKNOWN_COMMAND); SERIAL_ECHO(cmdbuffer[bufindr]); SERIAL_ECHOLNPGM("\""); } ClearToSend(); } void FlushSerialRequestResend() { //char cmdbuffer[bufindr][100]="Resend:"; MYSERIAL.flush(); SERIAL_PROTOCOLPGM(MSG_RESEND); SERIAL_PROTOCOLLN(gcode_LastN + 1); ClearToSend(); } void ClearToSend() { previous_millis_cmd = millis(); #ifdef SDSUPPORT if(fromsd[bufindr]) return; #endif //SDSUPPORT SERIAL_PROTOCOLLNPGM(MSG_OK); } void get_coordinates() { bool seen[4]={false,false,false,false}; for(int8_t i=0; i < NUM_AXIS; i++) { if(code_seen(axis_codes[i])) { destination[i] = (float)code_value() + (axis_relative_modes[i] || relative_mode)*current_position[i]; seen[i]=true; } else destination[i] = current_position[i]; //Are these else lines really needed? } if(code_seen('F')) { next_feedrate = code_value(); if(next_feedrate > 0.0) feedrate = next_feedrate; } } void get_arc_coordinates() { #ifdef SF_ARC_FIX bool relative_mode_backup = relative_mode; relative_mode = true; #endif get_coordinates(); #ifdef SF_ARC_FIX relative_mode=relative_mode_backup; #endif if(code_seen('I')) { offset[0] = code_value(); } else { offset[0] = 0.0; } if(code_seen('J')) { offset[1] = code_value(); } else { offset[1] = 0.0; } } void clamp_to_software_endstops(float target[3]) { if (min_software_endstops) { if (target[X_AXIS] < min_pos[X_AXIS]) target[X_AXIS] = min_pos[X_AXIS]; if (target[Y_AXIS] < min_pos[Y_AXIS]) target[Y_AXIS] = min_pos[Y_AXIS]; float negative_z_offset = 0; #ifdef ENABLE_AUTO_BED_LEVELING if (Z_PROBE_OFFSET_FROM_EXTRUDER < 0) negative_z_offset = negative_z_offset + Z_PROBE_OFFSET_FROM_EXTRUDER; if (add_homing[Z_AXIS] < 0) negative_z_offset = negative_z_offset + add_homing[Z_AXIS]; #endif if (target[Z_AXIS] < min_pos[Z_AXIS]+negative_z_offset) target[Z_AXIS] = min_pos[Z_AXIS]+negative_z_offset; } if (max_software_endstops) { if (target[X_AXIS] > max_pos[X_AXIS]) target[X_AXIS] = max_pos[X_AXIS]; if (target[Y_AXIS] > max_pos[Y_AXIS]) target[Y_AXIS] = max_pos[Y_AXIS]; if (target[Z_AXIS] > max_pos[Z_AXIS]) target[Z_AXIS] = max_pos[Z_AXIS]; } } #ifdef DELTA void recalc_delta_settings(float radius, float diagonal_rod) { delta_tower1_x= -SIN_60*radius; // front left tower delta_tower1_y= -COS_60*radius; delta_tower2_x= SIN_60*radius; // front right tower delta_tower2_y= -COS_60*radius; delta_tower3_x= 0.0; // back middle tower delta_tower3_y= radius; delta_diagonal_rod_2= sq(diagonal_rod); } void calculate_delta(float cartesian[3]) { delta[X_AXIS] = sqrt(delta_diagonal_rod_2 - sq(delta_tower1_x-cartesian[X_AXIS]) - sq(delta_tower1_y-cartesian[Y_AXIS]) ) + cartesian[Z_AXIS]; delta[Y_AXIS] = sqrt(delta_diagonal_rod_2 - sq(delta_tower2_x-cartesian[X_AXIS]) - sq(delta_tower2_y-cartesian[Y_AXIS]) ) + cartesian[Z_AXIS]; delta[Z_AXIS] = sqrt(delta_diagonal_rod_2 - sq(delta_tower3_x-cartesian[X_AXIS]) - sq(delta_tower3_y-cartesian[Y_AXIS]) ) + cartesian[Z_AXIS]; /* SERIAL_ECHOPGM("cartesian x="); SERIAL_ECHO(cartesian[X_AXIS]); SERIAL_ECHOPGM(" y="); SERIAL_ECHO(cartesian[Y_AXIS]); SERIAL_ECHOPGM(" z="); SERIAL_ECHOLN(cartesian[Z_AXIS]); SERIAL_ECHOPGM("delta x="); SERIAL_ECHO(delta[X_AXIS]); SERIAL_ECHOPGM(" y="); SERIAL_ECHO(delta[Y_AXIS]); SERIAL_ECHOPGM(" z="); SERIAL_ECHOLN(delta[Z_AXIS]); */ } #endif void prepare_move() { clamp_to_software_endstops(destination); previous_millis_cmd = millis(); #ifdef SCARA //for now same as delta-code float difference[NUM_AXIS]; for (int8_t i=0; i < NUM_AXIS; i++) { difference[i] = destination[i] - current_position[i]; } float cartesian_mm = sqrt( sq(difference[X_AXIS]) + sq(difference[Y_AXIS]) + sq(difference[Z_AXIS])); if (cartesian_mm < 0.000001) { cartesian_mm = abs(difference[E_AXIS]); } if (cartesian_mm < 0.000001) { return; } float seconds = 6000 * cartesian_mm / feedrate / feedmultiply; int steps = max(1, int(scara_segments_per_second * seconds)); //SERIAL_ECHOPGM("mm="); SERIAL_ECHO(cartesian_mm); //SERIAL_ECHOPGM(" seconds="); SERIAL_ECHO(seconds); //SERIAL_ECHOPGM(" steps="); SERIAL_ECHOLN(steps); for (int s = 1; s <= steps; s++) { float fraction = float(s) / float(steps); for(int8_t i=0; i < NUM_AXIS; i++) { destination[i] = current_position[i] + difference[i] * fraction; } calculate_delta(destination); //SERIAL_ECHOPGM("destination[X_AXIS]="); SERIAL_ECHOLN(destination[X_AXIS]); //SERIAL_ECHOPGM("destination[Y_AXIS]="); SERIAL_ECHOLN(destination[Y_AXIS]); //SERIAL_ECHOPGM("destination[Z_AXIS]="); SERIAL_ECHOLN(destination[Z_AXIS]); //SERIAL_ECHOPGM("delta[X_AXIS]="); SERIAL_ECHOLN(delta[X_AXIS]); //SERIAL_ECHOPGM("delta[Y_AXIS]="); SERIAL_ECHOLN(delta[Y_AXIS]); //SERIAL_ECHOPGM("delta[Z_AXIS]="); SERIAL_ECHOLN(delta[Z_AXIS]); plan_buffer_line(delta[X_AXIS], delta[Y_AXIS], delta[Z_AXIS], destination[E_AXIS], feedrate*feedmultiply/60/100.0, active_extruder); } #endif // SCARA #ifdef DELTA float difference[NUM_AXIS]; for (int8_t i=0; i < NUM_AXIS; i++) { difference[i] = destination[i] - current_position[i]; } float cartesian_mm = sqrt(sq(difference[X_AXIS]) + sq(difference[Y_AXIS]) + sq(difference[Z_AXIS])); if (cartesian_mm < 0.000001) { cartesian_mm = abs(difference[E_AXIS]); } if (cartesian_mm < 0.000001) { return; } float seconds = 6000 * cartesian_mm / feedrate / feedmultiply; int steps = max(1, int(delta_segments_per_second * seconds)); // SERIAL_ECHOPGM("mm="); SERIAL_ECHO(cartesian_mm); // SERIAL_ECHOPGM(" seconds="); SERIAL_ECHO(seconds); // SERIAL_ECHOPGM(" steps="); SERIAL_ECHOLN(steps); for (int s = 1; s <= steps; s++) { float fraction = float(s) / float(steps); for(int8_t i=0; i < NUM_AXIS; i++) { destination[i] = current_position[i] + difference[i] * fraction; } calculate_delta(destination); plan_buffer_line(delta[X_AXIS], delta[Y_AXIS], delta[Z_AXIS], destination[E_AXIS], feedrate*feedmultiply/60/100.0, active_extruder); } #endif // DELTA #ifdef DUAL_X_CARRIAGE if (active_extruder_parked) { if (dual_x_carriage_mode == DXC_DUPLICATION_MODE && active_extruder == 0) { // move duplicate extruder into correct duplication position. plan_set_position(inactive_extruder_x_pos, current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]); plan_buffer_line(current_position[X_AXIS] + duplicate_extruder_x_offset, current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], max_feedrate[X_AXIS], 1); plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]); st_synchronize(); extruder_duplication_enabled = true; active_extruder_parked = false; } else if (dual_x_carriage_mode == DXC_AUTO_PARK_MODE) // handle unparking of head { if (current_position[E_AXIS] == destination[E_AXIS]) { // this is a travel move - skit it but keep track of current position (so that it can later // be used as start of first non-travel move) if (delayed_move_time != 0xFFFFFFFFUL) { memcpy(current_position, destination, sizeof(current_position)); if (destination[Z_AXIS] > raised_parked_position[Z_AXIS]) raised_parked_position[Z_AXIS] = destination[Z_AXIS]; delayed_move_time = millis(); return; } } delayed_move_time = 0; // unpark extruder: 1) raise, 2) move into starting XY position, 3) lower plan_buffer_line(raised_parked_position[X_AXIS], raised_parked_position[Y_AXIS], raised_parked_position[Z_AXIS], current_position[E_AXIS], max_feedrate[Z_AXIS], active_extruder); plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], raised_parked_position[Z_AXIS], current_position[E_AXIS], min(max_feedrate[X_AXIS],max_feedrate[Y_AXIS]), active_extruder); plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], max_feedrate[Z_AXIS], active_extruder); active_extruder_parked = false; } } #endif //DUAL_X_CARRIAGE #if ! (defined DELTA || defined SCARA) // Do not use feedmultiply for E or Z only moves if( (current_position[X_AXIS] == destination [X_AXIS]) && (current_position[Y_AXIS] == destination [Y_AXIS])) { plan_buffer_line(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], destination[E_AXIS], feedrate/60, active_extruder); } else { plan_buffer_line(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], destination[E_AXIS], feedrate*feedmultiply/60/100.0, active_extruder); } #endif // !(DELTA || SCARA) for(int8_t i=0; i < NUM_AXIS; i++) { current_position[i] = destination[i]; } } void prepare_arc_move(char isclockwise) { float r = hypot(offset[X_AXIS], offset[Y_AXIS]); // Compute arc radius for mc_arc // Trace the arc mc_arc(current_position, destination, offset, X_AXIS, Y_AXIS, Z_AXIS, feedrate*feedmultiply/60/100.0, r, isclockwise, active_extruder); // As far as the parser is concerned, the position is now == target. In reality the // motion control system might still be processing the action and the real tool position // in any intermediate location. for(int8_t i=0; i < NUM_AXIS; i++) { current_position[i] = destination[i]; } previous_millis_cmd = millis(); } #if defined(CONTROLLERFAN_PIN) && CONTROLLERFAN_PIN > -1 #if defined(FAN_PIN) #if CONTROLLERFAN_PIN == FAN_PIN #error "You cannot set CONTROLLERFAN_PIN equal to FAN_PIN" #endif #endif unsigned long lastMotor = 0; //Save the time for when a motor was turned on last unsigned long lastMotorCheck = 0; void controllerFan() { if ((millis() - lastMotorCheck) >= 2500) //Not a time critical function, so we only check every 2500ms { lastMotorCheck = millis(); if(!READ(X_ENABLE_PIN) || !READ(Y_ENABLE_PIN) || !READ(Z_ENABLE_PIN) || (soft_pwm_bed > 0) #if EXTRUDERS > 2 || !READ(E2_ENABLE_PIN) #endif #if EXTRUDER > 1 #if defined(X2_ENABLE_PIN) && X2_ENABLE_PIN > -1 || !READ(X2_ENABLE_PIN) #endif || !READ(E1_ENABLE_PIN) #endif || !READ(E0_ENABLE_PIN)) //If any of the drivers are enabled... { lastMotor = millis(); //... set time to NOW so the fan will turn on } if ((millis() - lastMotor) >= (CONTROLLERFAN_SECS*1000UL) || lastMotor == 0) //If the last time any driver was enabled, is longer since than CONTROLLERSEC... { digitalWrite(CONTROLLERFAN_PIN, 0); analogWrite(CONTROLLERFAN_PIN, 0); } else { // allows digital or PWM fan output to be used (see M42 handling) digitalWrite(CONTROLLERFAN_PIN, CONTROLLERFAN_SPEED); analogWrite(CONTROLLERFAN_PIN, CONTROLLERFAN_SPEED); } } } #endif #ifdef SCARA void calculate_SCARA_forward_Transform(float f_scara[3]) { // Perform forward kinematics, and place results in delta[3] // The maths and first version has been done by QHARLEY . Integrated into masterbranch 06/2014 and slightly restructured by Joachim Cerny in June 2014 float x_sin, x_cos, y_sin, y_cos; //SERIAL_ECHOPGM("f_delta x="); SERIAL_ECHO(f_scara[X_AXIS]); //SERIAL_ECHOPGM(" y="); SERIAL_ECHO(f_scara[Y_AXIS]); x_sin = sin(f_scara[X_AXIS]/SCARA_RAD2DEG) * Linkage_1; x_cos = cos(f_scara[X_AXIS]/SCARA_RAD2DEG) * Linkage_1; y_sin = sin(f_scara[Y_AXIS]/SCARA_RAD2DEG) * Linkage_2; y_cos = cos(f_scara[Y_AXIS]/SCARA_RAD2DEG) * Linkage_2; // SERIAL_ECHOPGM(" x_sin="); SERIAL_ECHO(x_sin); // SERIAL_ECHOPGM(" x_cos="); SERIAL_ECHO(x_cos); // SERIAL_ECHOPGM(" y_sin="); SERIAL_ECHO(y_sin); // SERIAL_ECHOPGM(" y_cos="); SERIAL_ECHOLN(y_cos); delta[X_AXIS] = x_cos + y_cos + SCARA_offset_x; //theta delta[Y_AXIS] = x_sin + y_sin + SCARA_offset_y; //theta+phi //SERIAL_ECHOPGM(" delta[X_AXIS]="); SERIAL_ECHO(delta[X_AXIS]); //SERIAL_ECHOPGM(" delta[Y_AXIS]="); SERIAL_ECHOLN(delta[Y_AXIS]); } void calculate_delta(float cartesian[3]){ //reverse kinematics. // Perform reversed kinematics, and place results in delta[3] // The maths and first version has been done by QHARLEY . Integrated into masterbranch 06/2014 and slightly restructured by Joachim Cerny in June 2014 float SCARA_pos[2]; static float SCARA_C2, SCARA_S2, SCARA_K1, SCARA_K2, SCARA_theta, SCARA_psi; SCARA_pos[X_AXIS] = cartesian[X_AXIS] * axis_scaling[X_AXIS] - SCARA_offset_x; //Translate SCARA to standard X Y SCARA_pos[Y_AXIS] = cartesian[Y_AXIS] * axis_scaling[Y_AXIS] - SCARA_offset_y; // With scaling factor. #if (Linkage_1 == Linkage_2) SCARA_C2 = ( ( sq(SCARA_pos[X_AXIS]) + sq(SCARA_pos[Y_AXIS]) ) / (2 * (float)L1_2) ) - 1; #else SCARA_C2 = ( sq(SCARA_pos[X_AXIS]) + sq(SCARA_pos[Y_AXIS]) - (float)L1_2 - (float)L2_2 ) / 45000; #endif SCARA_S2 = sqrt( 1 - sq(SCARA_C2) ); SCARA_K1 = Linkage_1 + Linkage_2 * SCARA_C2; SCARA_K2 = Linkage_2 * SCARA_S2; SCARA_theta = ( atan2(SCARA_pos[X_AXIS],SCARA_pos[Y_AXIS])-atan2(SCARA_K1, SCARA_K2) ) * -1; SCARA_psi = atan2(SCARA_S2,SCARA_C2); delta[X_AXIS] = SCARA_theta * SCARA_RAD2DEG; // Multiply by 180/Pi - theta is support arm angle delta[Y_AXIS] = (SCARA_theta + SCARA_psi) * SCARA_RAD2DEG; // - equal to sub arm angle (inverted motor) delta[Z_AXIS] = cartesian[Z_AXIS]; /* SERIAL_ECHOPGM("cartesian x="); SERIAL_ECHO(cartesian[X_AXIS]); SERIAL_ECHOPGM(" y="); SERIAL_ECHO(cartesian[Y_AXIS]); SERIAL_ECHOPGM(" z="); SERIAL_ECHOLN(cartesian[Z_AXIS]); SERIAL_ECHOPGM("scara x="); SERIAL_ECHO(SCARA_pos[X_AXIS]); SERIAL_ECHOPGM(" y="); SERIAL_ECHOLN(SCARA_pos[Y_AXIS]); SERIAL_ECHOPGM("delta x="); SERIAL_ECHO(delta[X_AXIS]); SERIAL_ECHOPGM(" y="); SERIAL_ECHO(delta[Y_AXIS]); SERIAL_ECHOPGM(" z="); SERIAL_ECHOLN(delta[Z_AXIS]); SERIAL_ECHOPGM("C2="); SERIAL_ECHO(SCARA_C2); SERIAL_ECHOPGM(" S2="); SERIAL_ECHO(SCARA_S2); SERIAL_ECHOPGM(" Theta="); SERIAL_ECHO(SCARA_theta); SERIAL_ECHOPGM(" Psi="); SERIAL_ECHOLN(SCARA_psi); SERIAL_ECHOLN(" ");*/ } #endif #ifdef TEMP_STAT_LEDS static bool blue_led = false; static bool red_led = false; static uint32_t stat_update = 0; void handle_status_leds(void) { float max_temp = 0.0; if(millis() > stat_update) { stat_update += 500; // Update every 0.5s for (int8_t cur_extruder = 0; cur_extruder < EXTRUDERS; ++cur_extruder) { max_temp = max(max_temp, degHotend(cur_extruder)); max_temp = max(max_temp, degTargetHotend(cur_extruder)); } #if defined(TEMP_BED_PIN) && TEMP_BED_PIN > -1 max_temp = max(max_temp, degTargetBed()); max_temp = max(max_temp, degBed()); #endif if((max_temp > 55.0) && (red_led == false)) { digitalWrite(STAT_LED_RED, 1); digitalWrite(STAT_LED_BLUE, 0); red_led = true; blue_led = false; } if((max_temp < 54.0) && (blue_led == false)) { digitalWrite(STAT_LED_RED, 0); digitalWrite(STAT_LED_BLUE, 1); red_led = false; blue_led = true; } } } #endif void manage_inactivity(bool ignore_stepper_queue/*=false*/) //default argument set in Marlin.h { #if defined(KILL_PIN) && KILL_PIN > -1 static int killCount = 0; // make the inactivity button a bit less responsive const int KILL_DELAY = 10000; #endif #if defined(HOME_PIN) && HOME_PIN > -1 static int homeDebounceCount = 0; // poor man's debouncing count const int HOME_DEBOUNCE_DELAY = 10000; #endif if(buflen < (BUFSIZE-1)) get_command(); if( (millis() - previous_millis_cmd) > max_inactive_time ) if(max_inactive_time) kill(); if(stepper_inactive_time) { if( (millis() - previous_millis_cmd) > stepper_inactive_time ) { if(blocks_queued() == false && ignore_stepper_queue == false) { disable_x(); disable_y(); disable_z(); disable_e0(); disable_e1(); disable_e2(); } } } #ifdef CHDK //Check if pin should be set to LOW after M240 set it to HIGH if (chdkActive && (millis() - chdkHigh > CHDK_DELAY)) { chdkActive = false; WRITE(CHDK, LOW); } #endif #if defined(KILL_PIN) && KILL_PIN > -1 // Check if the kill button was pressed and wait just in case it was an accidental // key kill key press // your_sha256_hash--------------- if( 0 == READ(KILL_PIN) ) { killCount++; } else if (killCount > 0) { killCount--; } // Exceeded threshold and we can confirm that it was not accidental // KILL the machine // your_sha256_hash if ( killCount >= KILL_DELAY) { kill(); } #endif #if defined(HOME_PIN) && HOME_PIN > -1 // Check to see if we have to home, use poor man's debouncer // --------------------------------------------------------- if ( 0 == READ(HOME_PIN) ) { if (homeDebounceCount == 0) { enquecommand_P((PSTR("G28"))); homeDebounceCount++; LCD_ALERTMESSAGEPGM(MSG_AUTO_HOME); } else if (homeDebounceCount < HOME_DEBOUNCE_DELAY) { homeDebounceCount++; } else { homeDebounceCount = 0; } } #endif #if defined(CONTROLLERFAN_PIN) && CONTROLLERFAN_PIN > -1 controllerFan(); //Check if fan should be turned on to cool stepper drivers down #endif #ifdef EXTRUDER_RUNOUT_PREVENT if( (millis() - previous_millis_cmd) > EXTRUDER_RUNOUT_SECONDS*1000 ) if(degHotend(active_extruder)>EXTRUDER_RUNOUT_MINTEMP) { bool oldstatus=READ(E0_ENABLE_PIN); enable_e0(); float oldepos=current_position[E_AXIS]; float oldedes=destination[E_AXIS]; plan_buffer_line(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], destination[E_AXIS]+EXTRUDER_RUNOUT_EXTRUDE*EXTRUDER_RUNOUT_ESTEPS/axis_steps_per_unit[E_AXIS], EXTRUDER_RUNOUT_SPEED/60.*EXTRUDER_RUNOUT_ESTEPS/axis_steps_per_unit[E_AXIS], active_extruder); current_position[E_AXIS]=oldepos; destination[E_AXIS]=oldedes; plan_set_e_position(oldepos); previous_millis_cmd=millis(); st_synchronize(); WRITE(E0_ENABLE_PIN,oldstatus); } #endif #if defined(DUAL_X_CARRIAGE) // handle delayed move timeout if (delayed_move_time != 0 && (millis() - delayed_move_time) > 1000 && Stopped == false) { // travel moves have been received so enact them delayed_move_time = 0xFFFFFFFFUL; // force moves to be done memcpy(destination,current_position,sizeof(destination)); prepare_move(); } #endif #ifdef TEMP_STAT_LEDS handle_status_leds(); #endif check_axes_activity(); } void kill() { cli(); // Stop interrupts disable_heater(); disable_x(); disable_y(); disable_z(); disable_e0(); disable_e1(); disable_e2(); #if defined(PS_ON_PIN) && PS_ON_PIN > -1 pinMode(PS_ON_PIN,INPUT); #endif SERIAL_ERROR_START; SERIAL_ERRORLNPGM(MSG_ERR_KILLED); LCD_ALERTMESSAGEPGM(MSG_KILLED); // FMC small patch to update the LCD before ending sei(); // enable interrupts for ( int i=5; i--; lcd_update()) { delay(200); } cli(); // disable interrupts suicide(); while(1) { /* Intentionally left empty */ } // Wait for reset } void Stop() { disable_heater(); if(Stopped == false) { Stopped = true; Stopped_gcode_LastN = gcode_LastN; // Save last g_code for restart SERIAL_ERROR_START; SERIAL_ERRORLNPGM(MSG_ERR_STOPPED); LCD_MESSAGEPGM(MSG_STOPPED); } } bool IsStopped() { return Stopped; }; #ifdef FAST_PWM_FAN void setPwmFrequency(uint8_t pin, int val) { val &= 0x07; switch(digitalPinToTimer(pin)) { #if defined(TCCR0A) case TIMER0A: case TIMER0B: // TCCR0B &= ~(_BV(CS00) | _BV(CS01) | _BV(CS02)); // TCCR0B |= val; break; #endif #if defined(TCCR1A) case TIMER1A: case TIMER1B: // TCCR1B &= ~(_BV(CS10) | _BV(CS11) | _BV(CS12)); // TCCR1B |= val; break; #endif #if defined(TCCR2) case TIMER2: case TIMER2: TCCR2 &= ~(_BV(CS10) | _BV(CS11) | _BV(CS12)); TCCR2 |= val; break; #endif #if defined(TCCR2A) case TIMER2A: case TIMER2B: TCCR2B &= ~(_BV(CS20) | _BV(CS21) | _BV(CS22)); TCCR2B |= val; break; #endif #if defined(TCCR3A) case TIMER3A: case TIMER3B: case TIMER3C: TCCR3B &= ~(_BV(CS30) | _BV(CS31) | _BV(CS32)); TCCR3B |= val; break; #endif #if defined(TCCR4A) case TIMER4A: case TIMER4B: case TIMER4C: TCCR4B &= ~(_BV(CS40) | _BV(CS41) | _BV(CS42)); TCCR4B |= val; break; #endif #if defined(TCCR5A) case TIMER5A: case TIMER5B: case TIMER5C: TCCR5B &= ~(_BV(CS50) | _BV(CS51) | _BV(CS52)); TCCR5B |= val; break; #endif } } #endif //FAST_PWM_FAN bool setTargetedHotend(int code){ tmp_extruder = active_extruder; if(code_seen('T')) { tmp_extruder = code_value(); if(tmp_extruder >= EXTRUDERS) { SERIAL_ECHO_START; switch(code){ case 104: SERIAL_ECHO(MSG_M104_INVALID_EXTRUDER); break; case 105: SERIAL_ECHO(MSG_M105_INVALID_EXTRUDER); break; case 109: SERIAL_ECHO(MSG_M109_INVALID_EXTRUDER); break; case 218: SERIAL_ECHO(MSG_M218_INVALID_EXTRUDER); break; case 221: SERIAL_ECHO(MSG_M221_INVALID_EXTRUDER); break; } SERIAL_ECHOLN(tmp_extruder); return true; } } return false; } float calculate_volumetric_multiplier(float diameter) { float area = .0; float radius = .0; radius = diameter * .5; if (! volumetric_enabled || radius == 0) { area = 1; } else { area = M_PI * pow(radius, 2); } return 1.0 / area; } void calculate_volumetric_multipliers() { volumetric_multiplier[0] = calculate_volumetric_multiplier(filament_size[0]); #if EXTRUDERS > 1 volumetric_multiplier[1] = calculate_volumetric_multiplier(filament_size[1]); #if EXTRUDERS > 2 volumetric_multiplier[2] = calculate_volumetric_multiplier(filament_size[2]); #endif #endif } ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/Marlin_main.cpp
c++
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
41,401
```objective-c /** * Finnish * * LCD Menu Messages * Please note these are limited to 17 characters! * */ #ifndef LANGUAGE_FI_H #define LANGUAGE_FI_H #define WELCOME_MSG MACHINE_NAME " valmis." #define MSG_SD_INSERTED "Kortti asetettu" #define MSG_SD_REMOVED "Kortti poistettu" #define MSG_MAIN "Palaa" #define MSG_AUTOSTART "Automaatti" #define MSG_DISABLE_STEPPERS "Vapauta moottorit" #define MSG_AUTO_HOME "Aja referenssiin" #define MSG_SET_HOME_OFFSETS "Set home offsets" #define MSG_SET_ORIGIN "Aseta origo" #define MSG_PREHEAT_PLA "Esilammita PLA" #define MSG_PREHEAT_PLA0 "Esilammita PLA 1" #define MSG_PREHEAT_PLA1 "Esilammita PLA 2" #define MSG_PREHEAT_PLA2 "Esilammita PLA 3" #define MSG_PREHEAT_PLA012 "Esila. PLA Kaikki" #define MSG_PREHEAT_PLA_BEDONLY "Esila. PLA Alusta" #define MSG_PREHEAT_PLA_SETTINGS "Esilamm. PLA konf" #define MSG_PREHEAT_ABS "Esilammita ABS" #define MSG_PREHEAT_ABS0 "Esilammita ABS 1" #define MSG_PREHEAT_ABS1 "Esilammita ABS 2" #define MSG_PREHEAT_ABS2 "Esilammita ABS 3" #define MSG_PREHEAT_ABS012 "Esila. ABS Kaikki" #define MSG_PREHEAT_ABS_BEDONLY "Esila. ABS Alusta" #define MSG_PREHEAT_ABS_SETTINGS "Esilamm. ABS konf" #define MSG_COOLDOWN "Jaahdyta" #define MSG_SWITCH_PS_ON "Virta paalle" #define MSG_SWITCH_PS_OFF "Virta pois" #define MSG_EXTRUDE "Pursota" #define MSG_RETRACT "Veda takaisin" #define MSG_MOVE_AXIS "Liikuta akseleita" #define MSG_MOVE_X "Move X" #define MSG_MOVE_Y "Move Y" #define MSG_MOVE_Z "Move Z" #define MSG_MOVE_E "Extruder" #define MSG_MOVE_E1 "Extruder2" #define MSG_MOVE_E2 "Extruder3" #define MSG_MOVE_01MM "Move 0.1mm" #define MSG_MOVE_1MM "Move 1mm" #define MSG_MOVE_10MM "Move 10mm" #define MSG_SPEED "Nopeus" #define MSG_NOZZLE "Suutin" #define MSG_NOZZLE1 "Suutin2" #define MSG_NOZZLE2 "Suutin3" #define MSG_BED "Alusta" #define MSG_FAN_SPEED "Tuul. nopeus" #define MSG_FLOW "Virtaus" #define MSG_FLOW0 "Virtaus 0" #define MSG_FLOW1 "Virtaus 1" #define MSG_FLOW2 "Virtaus 2" #define MSG_CONTROL "Kontrolli" #define MSG_MIN " \002 Min" #define MSG_MAX " \002 Max" #define MSG_FACTOR " \002 Kerr" #define MSG_AUTOTEMP "Autotemp" #define MSG_ON "On " #define MSG_OFF "Off" #define MSG_PID_P "PID-P" #define MSG_PID_I "PID-I" #define MSG_PID_D "PID-D" #define MSG_PID_C "PID-C" #define MSG_ACC "Kiihtyv" #define MSG_VXY_JERK "Vxy-jerk" #define MSG_VZ_JERK "Vz-jerk" #define MSG_VE_JERK "Ve-jerk" #define MSG_VMAX "Vmax " #define MSG_X "x" #define MSG_Y "y" #define MSG_Z "z" #define MSG_E "e" #define MSG_VMIN "Vmin" #define MSG_VTRAV_MIN "VLiike min" #define MSG_AMAX "Amax " #define MSG_A_RETRACT "A-peruuta" #define MSG_XSTEPS "Xsteps/mm" #define MSG_YSTEPS "Ysteps/mm" #define MSG_ZSTEPS "Zsteps/mm" #define MSG_ESTEPS "Esteps/mm" #define MSG_TEMPERATURE "Lampotila" #define MSG_MOTION "Liike" #define MSG_VOLUMETRIC "Filament" #define MSG_VOLUMETRIC_ENABLED "E in mm3" #define MSG_FILAMENT_SIZE_EXTRUDER_0 "Fil. Dia. 1" #define MSG_FILAMENT_SIZE_EXTRUDER_1 "Fil. Dia. 2" #define MSG_FILAMENT_SIZE_EXTRUDER_2 "Fil. Dia. 3" #define MSG_CONTRAST "LCD contrast" #define MSG_STORE_EPROM "Tallenna muistiin" #define MSG_LOAD_EPROM "Lataa muistista" #define MSG_RESTORE_FAILSAFE "Palauta oletus" #define MSG_REFRESH "Paivita" #define MSG_WATCH "Seuraa" #define MSG_PREPARE "Valmistele" #define MSG_TUNE "Saada" #define MSG_PAUSE_PRINT "Keskeyta tulostus" #define MSG_RESUME_PRINT "Jatka tulostusta" #define MSG_STOP_PRINT "Pysayta tulostus" #define MSG_CARD_MENU "Korttivalikko" #define MSG_NO_CARD "Ei korttia" #define MSG_DWELL "Nukkumassa..." #define MSG_USERWAIT "Odotet. valintaa" #define MSG_RESUMING "Jatke. tulostusta" #define MSG_PRINT_ABORTED "Print aborted" #define MSG_NO_MOVE "Ei liiketta." #define MSG_KILLED "KILLED. " #define MSG_STOPPED "STOPPED. " #define MSG_CONTROL_RETRACT "Veda mm" #define MSG_CONTROL_RETRACT_SWAP "Va. Veda mm" #define MSG_CONTROL_RETRACTF "Veda V" #define MSG_CONTROL_RETRACT_ZLIFT "Z mm" #define MSG_CONTROL_RETRACT_RECOVER "UnRet +mm" #define MSG_CONTROL_RETRACT_RECOVER_SWAP "Va. UnRet +mm" #define MSG_CONTROL_RETRACT_RECOVERF "UnRet V" #define MSG_AUTORETRACT "AutoVeto." #define MSG_FILAMENTCHANGE "Change filament" #define MSG_INIT_SDCARD "Init. SD-Card" #define MSG_CNG_SDCARD "Change SD-Card" #define MSG_ZPROBE_OUT "Z probe out. bed" #define MSG_POSITION_UNKNOWN "Home X/Y before Z" #define MSG_ZPROBE_ZOFFSET "Z Offset" #define MSG_BABYSTEP_X "Babystep X" #define MSG_BABYSTEP_Y "Babystep Y" #define MSG_BABYSTEP_Z "Babystep Z" #define MSG_ENDSTOP_ABORT "Endstop abort" #define MSG_RECTRACT "Veda takaisin" #ifdef DELTA_CALIBRATION_MENU #define MSG_DELTA_CALIBRATE "Delta Calibration" #define MSG_DELTA_CALIBRATE_X "Calibrate X" #define MSG_DELTA_CALIBRATE_Y "Calibrate Y" #define MSG_DELTA_CALIBRATE_Z "Calibrate Z" #define MSG_DELTA_CALIBRATE_CENTER "Calibrate Center" #endif // DELTA_CALIBRATION_MENU #endif // LANGUAGE_FI_H ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/language_fi.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
1,656
```objective-c /* Arduino SdFat Library * * This file is part of the Arduino SdFat Library * * This Library is free software: you can redistribute it and/or modify * (at your option) any later version. * * This Library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * along with the Arduino SdFat Library. If not, see * <path_to_url */ #include "Marlin.h" #ifdef SDSUPPORT #ifndef SdVolume_h #define SdVolume_h /** * \file * \brief SdVolume class */ #include "SdFatConfig.h" #include "Sd2Card.h" #include "SdFatStructs.h" //============================================================================== // SdVolume class /** * \brief Cache for an SD data block */ union cache_t { /** Used to access cached file data blocks. */ uint8_t data[512]; /** Used to access cached FAT16 entries. */ uint16_t fat16[256]; /** Used to access cached FAT32 entries. */ uint32_t fat32[128]; /** Used to access cached directory entries. */ dir_t dir[16]; /** Used to access a cached Master Boot Record. */ mbr_t mbr; /** Used to access to a cached FAT boot sector. */ fat_boot_t fbs; /** Used to access to a cached FAT32 boot sector. */ fat32_boot_t fbs32; /** Used to access to a cached FAT32 FSINFO sector. */ fat32_fsinfo_t fsinfo; }; //your_sha256_hash-------------- /** * \class SdVolume * \brief Access FAT16 and FAT32 volumes on SD and SDHC cards. */ class SdVolume { public: /** Create an instance of SdVolume */ SdVolume() : fatType_(0) {} /** Clear the cache and returns a pointer to the cache. Used by the WaveRP * recorder to do raw write to the SD card. Not for normal apps. * \return A pointer to the cache buffer or zero if an error occurs. */ cache_t* cacheClear() { if (!cacheFlush()) return 0; cacheBlockNumber_ = 0XFFFFFFFF; return &cacheBuffer_; } /** Initialize a FAT volume. Try partition one first then try super * floppy format. * * \param[in] dev The Sd2Card where the volume is located. * * \return The value one, true, is returned for success and * the value zero, false, is returned for failure. Reasons for * failure include not finding a valid partition, not finding a valid * FAT file system or an I/O error. */ bool init(Sd2Card* dev) { return init(dev, 1) ? true : init(dev, 0);} bool init(Sd2Card* dev, uint8_t part); // inline functions that return volume info /** \return The volume's cluster size in blocks. */ uint8_t blocksPerCluster() const {return blocksPerCluster_;} /** \return The number of blocks in one FAT. */ uint32_t blocksPerFat() const {return blocksPerFat_;} /** \return The total number of clusters in the volume. */ uint32_t clusterCount() const {return clusterCount_;} /** \return The shift count required to multiply by blocksPerCluster. */ uint8_t clusterSizeShift() const {return clusterSizeShift_;} /** \return The logical block number for the start of file data. */ uint32_t dataStartBlock() const {return dataStartBlock_;} /** \return The number of FAT structures on the volume. */ uint8_t fatCount() const {return fatCount_;} /** \return The logical block number for the start of the first FAT. */ uint32_t fatStartBlock() const {return fatStartBlock_;} /** \return The FAT type of the volume. Values are 12, 16 or 32. */ uint8_t fatType() const {return fatType_;} int32_t freeClusterCount(); /** \return The number of entries in the root directory for FAT16 volumes. */ uint32_t rootDirEntryCount() const {return rootDirEntryCount_;} /** \return The logical block number for the start of the root directory on FAT16 volumes or the first cluster number on FAT32 volumes. */ uint32_t rootDirStart() const {return rootDirStart_;} /** Sd2Card object for this volume * \return pointer to Sd2Card object. */ Sd2Card* sdCard() {return sdCard_;} /** Debug access to FAT table * * \param[in] n cluster number. * \param[out] v value of entry * \return true for success or false for failure */ bool dbgFat(uint32_t n, uint32_t* v) {return fatGet(n, v);} //your_sha256_hash-------------- private: // Allow SdBaseFile access to SdVolume private data. friend class SdBaseFile; // value for dirty argument in cacheRawBlock to indicate read from cache static bool const CACHE_FOR_READ = false; // value for dirty argument in cacheRawBlock to indicate write to cache static bool const CACHE_FOR_WRITE = true; #if USE_MULTIPLE_CARDS cache_t cacheBuffer_; // 512 byte cache for device blocks uint32_t cacheBlockNumber_; // Logical number of block in the cache Sd2Card* sdCard_; // Sd2Card object for cache bool cacheDirty_; // cacheFlush() will write block if true uint32_t cacheMirrorBlock_; // block number for mirror FAT #else // USE_MULTIPLE_CARDS static cache_t cacheBuffer_; // 512 byte cache for device blocks static uint32_t cacheBlockNumber_; // Logical number of block in the cache static Sd2Card* sdCard_; // Sd2Card object for cache static bool cacheDirty_; // cacheFlush() will write block if true static uint32_t cacheMirrorBlock_; // block number for mirror FAT #endif // USE_MULTIPLE_CARDS uint32_t allocSearchStart_; // start cluster for alloc search uint8_t blocksPerCluster_; // cluster size in blocks uint32_t blocksPerFat_; // FAT size in blocks uint32_t clusterCount_; // clusters in one FAT uint8_t clusterSizeShift_; // shift to convert cluster count to block count uint32_t dataStartBlock_; // first data block number uint8_t fatCount_; // number of FATs on volume uint32_t fatStartBlock_; // start block for first FAT uint8_t fatType_; // volume type (12, 16, OR 32) uint16_t rootDirEntryCount_; // number of entries in FAT16 root dir uint32_t rootDirStart_; // root start block for FAT16, cluster for FAT32 //your_sha256_hash------------ bool allocContiguous(uint32_t count, uint32_t* curCluster); uint8_t blockOfCluster(uint32_t position) const { return (position >> 9) & (blocksPerCluster_ - 1);} uint32_t clusterStartBlock(uint32_t cluster) const { return dataStartBlock_ + ((cluster - 2) << clusterSizeShift_);} uint32_t blockNumber(uint32_t cluster, uint32_t position) const { return clusterStartBlock(cluster) + blockOfCluster(position);} cache_t *cache() {return &cacheBuffer_;} uint32_t cacheBlockNumber() {return cacheBlockNumber_;} #if USE_MULTIPLE_CARDS bool cacheFlush(); bool cacheRawBlock(uint32_t blockNumber, bool dirty); #else // USE_MULTIPLE_CARDS static bool cacheFlush(); static bool cacheRawBlock(uint32_t blockNumber, bool dirty); #endif // USE_MULTIPLE_CARDS // used by SdBaseFile write to assign cache to SD location void cacheSetBlockNumber(uint32_t blockNumber, bool dirty) { cacheDirty_ = dirty; cacheBlockNumber_ = blockNumber; } void cacheSetDirty() {cacheDirty_ |= CACHE_FOR_WRITE;} bool chainSize(uint32_t beginCluster, uint32_t* size); bool fatGet(uint32_t cluster, uint32_t* value); bool fatPut(uint32_t cluster, uint32_t value); bool fatPutEOC(uint32_t cluster) { return fatPut(cluster, 0x0FFFFFFF); } bool freeChain(uint32_t cluster); bool isEOC(uint32_t cluster) const { if (FAT12_SUPPORT && fatType_ == 12) return cluster >= FAT12EOC_MIN; if (fatType_ == 16) return cluster >= FAT16EOC_MIN; return cluster >= FAT32EOC_MIN; } bool readBlock(uint32_t block, uint8_t* dst) { return sdCard_->readBlock(block, dst);} bool writeBlock(uint32_t block, const uint8_t* dst) { return sdCard_->writeBlock(block, dst); } //your_sha256_hash-------------- // Deprecated functions - suppress cpplint warnings with NOLINT comment #if ALLOW_DEPRECATED_FUNCTIONS && !defined(DOXYGEN) public: /** \deprecated Use: bool SdVolume::init(Sd2Card* dev); * \param[in] dev The SD card where the volume is located. * \return true for success or false for failure. */ bool init(Sd2Card& dev) {return init(&dev);} // NOLINT /** \deprecated Use: bool SdVolume::init(Sd2Card* dev, uint8_t vol); * \param[in] dev The SD card where the volume is located. * \param[in] part The partition to be used. * \return true for success or false for failure. */ bool init(Sd2Card& dev, uint8_t part) { // NOLINT return init(&dev, part); } #endif // ALLOW_DEPRECATED_FUNCTIONS }; #endif // SdVolume #endif ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/SdVolume.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
2,305
```c++ /* Arduino SdFat Library * * This file is part of the Arduino SdFat Library * * This Library is free software: you can redistribute it and/or modify * (at your option) any later version. * * This Library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * along with the Arduino SdFat Library. If not, see * <path_to_url */ #include "Marlin.h" #ifdef SDSUPPORT #include "SdFile.h" /** Create a file object and open it in the current working directory. * * \param[in] path A path with a valid 8.3 DOS name for a file to be opened. * * \param[in] oflag Values for \a oflag are constructed by a bitwise-inclusive * OR of open flags. see SdBaseFile::open(SdBaseFile*, const char*, uint8_t). */ SdFile::SdFile(const char* path, uint8_t oflag) : SdBaseFile(path, oflag) { } //your_sha256_hash-------------- /** Write data to an open file. * * \note Data is moved to the cache but may not be written to the * storage device until sync() is called. * * \param[in] buf Pointer to the location of the data to be written. * * \param[in] nbyte Number of bytes to write. * * \return For success write() returns the number of bytes written, always * \a nbyte. If an error occurs, write() returns -1. Possible errors * include write() is called before a file has been opened, write is called * for a read-only file, device is full, a corrupt file system or an I/O error. * */ int16_t SdFile::write(const void* buf, uint16_t nbyte) { return SdBaseFile::write(buf, nbyte); } //your_sha256_hash-------------- /** Write a byte to a file. Required by the Arduino Print class. * \param[in] b the byte to be written. * Use writeError to check for errors. */ #if ARDUINO >= 100 size_t SdFile::write(uint8_t b) { return SdBaseFile::write(&b, 1); } #else void SdFile::write(uint8_t b) { SdBaseFile::write(&b, 1); } #endif //your_sha256_hash-------------- /** Write a string to a file. Used by the Arduino Print class. * \param[in] str Pointer to the string. * Use writeError to check for errors. */ void SdFile::write(const char* str) { SdBaseFile::write(str, strlen(str)); } //your_sha256_hash-------------- /** Write a PROGMEM string to a file. * \param[in] str Pointer to the PROGMEM string. * Use writeError to check for errors. */ void SdFile::write_P(PGM_P str) { for (uint8_t c; (c = pgm_read_byte(str)); str++) write(c); } //your_sha256_hash-------------- /** Write a PROGMEM string followed by CR/LF to a file. * \param[in] str Pointer to the PROGMEM string. * Use writeError to check for errors. */ void SdFile::writeln_P(PGM_P str) { write_P(str); write_P(PSTR("\r\n")); } #endif ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/SdFile.cpp
c++
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
755
```objective-c #include "Configuration.h" #ifdef AUTO_BED_LEVELING_GRID void daxpy ( int n, double da, double dx[], int incx, double dy[], int incy ); double ddot ( int n, double dx[], int incx, double dy[], int incy ); double dnrm2 ( int n, double x[], int incx ); void dqrank ( double a[], int lda, int m, int n, double tol, int *kr, int jpvt[], double qraux[] ); void dqrdc ( double a[], int lda, int n, int p, double qraux[], int jpvt[], double work[], int job ); int dqrls ( double a[], int lda, int m, int n, double tol, int *kr, double b[], double x[], double rsd[], int jpvt[], double qraux[], int itask ); void dqrlss ( double a[], int lda, int m, int n, int kr, double b[], double x[], double rsd[], int jpvt[], double qraux[] ); int dqrsl ( double a[], int lda, int n, int k, double qraux[], double y[], double qy[], double qty[], double b[], double rsd[], double ab[], int job ); void dscal ( int n, double sa, double x[], int incx ); void dswap ( int n, double x[], int incx, double y[], int incy ); double *qr_solve ( int m, int n, double a[], double b[] ); #endif ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/qr_solve.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
340
```objective-c #ifndef CONFIGURATION_H #define CONFIGURATION_H #include "boards.h" // This configuration file contains the basic settings. // Advanced settings can be found in Configuration_adv.h // BASIC SETTINGS: select your board type, temperature sensor type, axis scaling, and endstop configuration //=========================================================================== //============================= DELTA Printer =============================== //=========================================================================== // For a Delta printer replace the configuration files with the files in the // example_configurations/delta directory. // //=========================================================================== //============================= SCARA Printer =============================== //=========================================================================== // For a Delta printer replace the configuration files with the files in the // example_configurations/SCARA directory. // // User-specified version info of this build to display in [Pronterface, etc] terminal window during // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this // build by the user have been successfully uploaded into firmware. //#define STRING_VERSION "1.0.2" #define STRING_VERSION_CONFIG_H __DATE__ " " __TIME__ // build date and time #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes. // SERIAL_PORT selects which serial port should be used for communication with the host. // This allows the connection of wireless adapters (for instance) to non-default port pins. // Serial port 0 is still used by the Arduino bootloader regardless of this setting. #define SERIAL_PORT 0 // This determines the communication speed of the printer #define BAUDRATE 250000 // This enables the serial port associated to the Bluetooth interface //#define BTENABLED // Enable BT interface on AT90USB devices // The following define selects which electronics board you have. // Please choose the name from boards.h that matches your setup #ifndef MOTHERBOARD #define MOTHERBOARD 33 #endif // Define this to set a custom name for your generic Mendel, // #define CUSTOM_MENDEL_NAME "This Mendel" // Define this to set a unique identifier for this printer, (Used by some programs to differentiate between machines) // You can use an online service to generate a random UUID. (eg path_to_url // #define MACHINE_UUID "00000000-0000-0000-0000-000000000000" // This defines the number of extruders #define EXTRUDERS 1 //// The following define selects which power supply you have. Please choose the one that matches your setup // 1 = ATX // 2 = X-Box 360 203Watts (the blue wire connected to PS_ON and the red wire to VCC) #define POWER_SUPPLY 1 // Define this to have the electronics keep the power supply off on startup. If you don't know what this is leave it. // #define PS_DEFAULT_OFF //=========================================================================== //=============================Thermal Settings ============================ //=========================================================================== // //--NORMAL IS 4.7kohm PULLUP!-- 1kohm pullup can be used on hotend sensor, using correct resistor and table // //// Temperature sensor settings: // -2 is thermocouple with MAX6675 (only for sensor 0) // -1 is thermocouple with AD595 // 0 is not used // 1 is 100k thermistor - best choice for EPCOS 100k (4.7k pullup) // 2 is 200k thermistor - ATC Semitec 204GT-2 (4.7k pullup) // 3 is Mendel-parts thermistor (4.7k pullup) // 4 is 10k thermistor !! do not use it for a hotend. It gives bad resolution at high temp. !! // 5 is 100K thermistor - ATC Semitec 104GT-2 (Used in ParCan & J-Head) (4.7k pullup) // 6 is 100k EPCOS - Not as accurate as table 1 (created using a fluke thermocouple) (4.7k pullup) // 7 is 100k Honeywell thermistor 135-104LAG-J01 (4.7k pullup) // 71 is 100k Honeywell thermistor 135-104LAF-J01 (4.7k pullup) // 8 is 100k 0603 SMD Vishay NTCS0603E3104FXT (4.7k pullup) // 9 is 100k GE Sensing AL03006-58.2K-97-G1 (4.7k pullup) // 10 is 100k RS thermistor 198-961 (4.7k pullup) // 11 is 100k beta 3950 1% thermistor (4.7k pullup) // 12 is 100k 0603 SMD Vishay NTCS0603E3104FXT (4.7k pullup) (calibrated for Makibox hot bed) // 13 is 100k Hisens 3950 1% up to 300C for hotend "Simple ONE " & "Hotend "All In ONE" // 20 is the PT100 circuit found in the Ultimainboard V2.x // 60 is 100k Maker's Tool Works Kapton Bed Thermistor beta=3950 // // 1k ohm pullup tables - This is not normal, you would have to have changed out your 4.7k for 1k // (but gives greater accuracy and more stable PID) // 51 is 100k thermistor - EPCOS (1k pullup) // 52 is 200k thermistor - ATC Semitec 204GT-2 (1k pullup) // 55 is 100k thermistor - ATC Semitec 104GT-2 (Used in ParCan & J-Head) (1k pullup) // // 1047 is Pt1000 with 4k7 pullup // 1010 is Pt1000 with 1k pullup (non standard) // 147 is Pt100 with 4k7 pullup // 110 is Pt100 with 1k pullup (non standard) #define TEMP_SENSOR_0 0 #define TEMP_SENSOR_1 0 #define TEMP_SENSOR_2 0 #define TEMP_SENSOR_BED 0 // This makes temp sensor 1 a redundant sensor for sensor 0. If the temperatures difference between these sensors is to high the print will be aborted. //#define TEMP_SENSOR_1_AS_REDUNDANT #define MAX_REDUNDANT_TEMP_SENSOR_DIFF 10 // Actual temperature must be close to target for this long before M109 returns success #define TEMP_RESIDENCY_TIME 10 // (seconds) #define TEMP_HYSTERESIS 3 // (degC) range of +/- temperatures considered "close" to the target one #define TEMP_WINDOW 1 // (degC) Window around target to start the residency timer x degC early. // The minimal temperature defines the temperature below which the heater will not be enabled It is used // to check that the wiring to the thermistor is not broken. // Otherwise this would lead to the heater being powered on all the time. #define HEATER_0_MINTEMP 5 #define HEATER_1_MINTEMP 5 #define HEATER_2_MINTEMP 5 #define BED_MINTEMP 5 // When temperature exceeds max temp, your heater will be switched off. // This feature exists to protect your hotend from overheating accidentally, but *NOT* from thermistor short/failure! // You should use MINTEMP for thermistor short/failure protection. #define HEATER_0_MAXTEMP 275 #define HEATER_1_MAXTEMP 275 #define HEATER_2_MAXTEMP 275 #define BED_MAXTEMP 150 // If your bed has low resistance e.g. .6 ohm and throws the fuse you can duty cycle it to reduce the // average current. The value should be an integer and the heat bed will be turned on for 1 interval of // HEATER_BED_DUTY_CYCLE_DIVIDER intervals. //#define HEATER_BED_DUTY_CYCLE_DIVIDER 4 // If you want the M105 heater power reported in watts, define the BED_WATTS, and (shared for all extruders) EXTRUDER_WATTS //#define EXTRUDER_WATTS (12.0*12.0/6.7) // P=I^2/R //#define BED_WATTS (12.0*12.0/1.1) // P=I^2/R // PID settings: // Comment the following line to disable PID and enable bang-bang. #define PIDTEMP #define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current #define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current #ifdef PIDTEMP //#define PID_DEBUG // Sends debug data to the serial port. //#define PID_OPENLOOP 1 // Puts PID in open loop. M104/M140 sets the output power from 0 to PID_MAX //#define SLOW_PWM_HEATERS // PWM with very low frequency (roughly 0.125Hz=8s) and minimum state time of approximately 1s useful for heaters driven by a relay #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature // is more then PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max. #define PID_INTEGRAL_DRIVE_MAX PID_MAX //limit for the integral term #define K1 0.95 //smoothing factor within the PID #define PID_dT ((OVERSAMPLENR * 10.0)/(F_CPU / 64.0 / 256.0)) //sampling period of the temperature routine // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it // Ultimaker #define DEFAULT_Kp 22.2 #define DEFAULT_Ki 1.08 #define DEFAULT_Kd 114 // MakerGear // #define DEFAULT_Kp 7.0 // #define DEFAULT_Ki 0.1 // #define DEFAULT_Kd 12 // Mendel Parts V9 on 12V // #define DEFAULT_Kp 63.0 // #define DEFAULT_Ki 2.25 // #define DEFAULT_Kd 440 #endif // PIDTEMP // Bed Temperature Control // Select PID or bang-bang with PIDTEMPBED. If bang-bang, BED_LIMIT_SWITCHING will enable hysteresis // // Uncomment this to enable PID on the bed. It uses the same frequency PWM as the extruder. // If your PID_dT above is the default, and correct for your hardware/configuration, that means 7.689Hz, // which is fine for driving a square wave into a resistive load and does not significantly impact you FET heating. // This also works fine on a Fotek SSR-10DA Solid State Relay into a 250W heater. // If your configuration is significantly different than this and you don't understand the issues involved, you probably // shouldn't use bed PID until someone else verifies your hardware works. // If this is enabled, find your own PID constants below. //#define PIDTEMPBED // //#define BED_LIMIT_SWITCHING // This sets the max power delivered to the bed, and replaces the HEATER_BED_DUTY_CYCLE_DIVIDER option. // all forms of bed control obey this (PID, bang-bang, bang-bang with hysteresis) // setting this to anything other than 255 enables a form of PWM to the bed just like HEATER_BED_DUTY_CYCLE_DIVIDER did, // so you shouldn't use it unless you are OK with PWM on your bed. (see the comment on enabling PIDTEMPBED) #define MAX_BED_POWER 255 // limits duty cycle to bed; 255=full current #ifdef PIDTEMPBED //120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+) //from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of .15 (vs .1, 1, 10) #define DEFAULT_bedKp 10.00 #define DEFAULT_bedKi .023 #define DEFAULT_bedKd 305.4 //120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+) //from pidautotune // #define DEFAULT_bedKp 97.1 // #define DEFAULT_bedKi 1.41 // #define DEFAULT_bedKd 1675.16 // FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles. #endif // PIDTEMPBED //this prevents dangerous Extruder moves, i.e. if the temperature is under the limit //can be software-disabled for whatever purposes by #define PREVENT_DANGEROUS_EXTRUDE //if PREVENT_DANGEROUS_EXTRUDE is on, you can still disable (uncomment) very long bits of extrusion separately. #define PREVENT_LENGTHY_EXTRUDE #define EXTRUDE_MINTEMP 170 #define EXTRUDE_MAXLENGTH (X_MAX_LENGTH+Y_MAX_LENGTH) //prevent extrusion of very large distances. /*================== Thermal Runaway Protection ============================== This is a feature to protect your printer from burn up in flames if it has a thermistor coming off place (this happened to a friend of mine recently and motivated me writing this feature). The issue: If a thermistor come off, it will read a lower temperature than actual. The system will turn the heater on forever, burning up the filament and anything else around. After the temperature reaches the target for the first time, this feature will start measuring for how long the current temperature stays below the target minus _HYSTERESIS (set_temperature - THERMAL_RUNAWAY_PROTECTION_HYSTERESIS). If it stays longer than _PERIOD, it means the thermistor temperature cannot catch up with the target, so something *may be* wrong. Then, to be on the safe side, the system will he halt. Bear in mind the count down will just start AFTER the first time the thermistor temperature is over the target, so you will have no problem if your extruder heater takes 2 minutes to hit the target on heating. */ // If you want to enable this feature for all your extruder heaters, // uncomment the 2 defines below: // Parameters for all extruder heaters //#define THERMAL_RUNAWAY_PROTECTION_PERIOD 40 //in seconds //#define THERMAL_RUNAWAY_PROTECTION_HYSTERESIS 4 // in degree Celsius // If you want to enable this feature for your bed heater, // uncomment the 2 defines below: // Parameters for the bed heater //#define THERMAL_RUNAWAY_PROTECTION_BED_PERIOD 20 //in seconds //#define THERMAL_RUNAWAY_PROTECTION_BED_HYSTERESIS 2 // in degree Celsius //=========================================================================== //=========================================================================== //=============================Mechanical Settings=========================== //=========================================================================== // Uncomment the following line to enable CoreXY kinematics // #define COREXY // coarse Endstop Settings #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors #ifndef ENDSTOPPULLUPS // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined // #define ENDSTOPPULLUP_XMAX // #define ENDSTOPPULLUP_YMAX // #define ENDSTOPPULLUP_ZMAX // #define ENDSTOPPULLUP_XMIN // #define ENDSTOPPULLUP_YMIN // #define ENDSTOPPULLUP_ZMIN #endif #ifdef ENDSTOPPULLUPS #define ENDSTOPPULLUP_XMAX #define ENDSTOPPULLUP_YMAX #define ENDSTOPPULLUP_ZMAX #define ENDSTOPPULLUP_XMIN #define ENDSTOPPULLUP_YMIN #define ENDSTOPPULLUP_ZMIN #endif // The pullups are needed if you directly connect a mechanical endswitch between the signal and ground pins. const bool X_MIN_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop. const bool Y_MIN_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop. const bool Z_MIN_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop. const bool X_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop. const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop. const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop. //#define DISABLE_MAX_ENDSTOPS //#define DISABLE_MIN_ENDSTOPS // Disable max endstops for compatibility with endstop checking routine #if defined(COREXY) && !defined(DISABLE_MAX_ENDSTOPS) #define DISABLE_MAX_ENDSTOPS #endif // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1 #define X_ENABLE_ON 0 #define Y_ENABLE_ON 0 #define Z_ENABLE_ON 0 #define E_ENABLE_ON 0 // For all extruders // Disables axis when it's not being used. #define DISABLE_X false #define DISABLE_Y false #define DISABLE_Z false #define DISABLE_E false // For all extruders #define DISABLE_INACTIVE_EXTRUDER false //disable only inactive extruders and keep active extruder enabled #define INVERT_X_DIR true // for Mendel set to false, for Orca set to true #define INVERT_Y_DIR false // for Mendel set to true, for Orca set to false #define INVERT_Z_DIR true // for Mendel set to false, for Orca set to true #define INVERT_E0_DIR false // for direct drive extruder v9 set to true, for geared extruder set to false #define INVERT_E1_DIR false // for direct drive extruder v9 set to true, for geared extruder set to false #define INVERT_E2_DIR false // for direct drive extruder v9 set to true, for geared extruder set to false // ENDSTOP SETTINGS: // Sets direction of endstops when homing; 1=MAX, -1=MIN #define X_HOME_DIR -1 #define Y_HOME_DIR -1 #define Z_HOME_DIR -1 #define min_software_endstops false // If true, axis won't move to coordinates less than HOME_POS. #define max_software_endstops false // If true, axis won't move to coordinates greater than the defined lengths below. // Travel limits after homing #define X_MAX_POS 205 #define X_MIN_POS 0 #define Y_MAX_POS 205 #define Y_MIN_POS 0 #define Z_MAX_POS 200 #define Z_MIN_POS 0 #define X_MAX_LENGTH (X_MAX_POS - X_MIN_POS) #define Y_MAX_LENGTH (Y_MAX_POS - Y_MIN_POS) #define Z_MAX_LENGTH (Z_MAX_POS - Z_MIN_POS) //============================= Bed Auto Leveling =========================== //#define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line) #define Z_PROBE_REPEATABILITY_TEST // If not commented out, Z-Probe Repeatability test will be included if Auto Bed Leveling is Enabled. #ifdef ENABLE_AUTO_BED_LEVELING // There are 2 different ways to pick the X and Y locations to probe: // - "grid" mode // Probe every point in a rectangular grid // You must specify the rectangle, and the density of sample points // This mode is preferred because there are more measurements. // It used to be called ACCURATE_BED_LEVELING but "grid" is more descriptive // - "3-point" mode // Probe 3 arbitrary points on the bed (that aren't colinear) // You must specify the X & Y coordinates of all 3 points #define AUTO_BED_LEVELING_GRID // with AUTO_BED_LEVELING_GRID, the bed is sampled in a // AUTO_BED_LEVELING_GRID_POINTSxAUTO_BED_LEVELING_GRID_POINTS grid // and least squares solution is calculated // Note: this feature occupies 10'206 byte #ifdef AUTO_BED_LEVELING_GRID // set the rectangle in which to probe #define LEFT_PROBE_BED_POSITION 15 #define RIGHT_PROBE_BED_POSITION 170 #define BACK_PROBE_BED_POSITION 180 #define FRONT_PROBE_BED_POSITION 20 // set the number of grid points per dimension // I wouldn't see a reason to go above 3 (=9 probing points on the bed) #define AUTO_BED_LEVELING_GRID_POINTS 2 #else // not AUTO_BED_LEVELING_GRID // with no grid, just probe 3 arbitrary points. A simple cross-product // is used to esimate the plane of the print bed #define ABL_PROBE_PT_1_X 15 #define ABL_PROBE_PT_1_Y 180 #define ABL_PROBE_PT_2_X 15 #define ABL_PROBE_PT_2_Y 20 #define ABL_PROBE_PT_3_X 170 #define ABL_PROBE_PT_3_Y 20 #endif // AUTO_BED_LEVELING_GRID // these are the offsets to the probe relative to the extruder tip (Hotend - Probe) // X and Y offsets must be integers #define X_PROBE_OFFSET_FROM_EXTRUDER -25 #define Y_PROBE_OFFSET_FROM_EXTRUDER -29 #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35 #define Z_RAISE_BEFORE_HOMING 4 // (in mm) Raise Z before homing (G28) for Probe Clearance. // Be sure you have this distance over your Z_MAX_POS in case #define XY_TRAVEL_SPEED 8000 // X and Y axis travel speed between probes, in mm/min #define Z_RAISE_BEFORE_PROBING 15 //How much the extruder will be raised before traveling to the first probing point. #define Z_RAISE_BETWEEN_PROBINGS 5 //How much the extruder will be raised when traveling from between next probing points //#define Z_PROBE_SLED // turn on if you have a z-probe mounted on a sled like those designed by Charles Bell //#define SLED_DOCKING_OFFSET 5 // the extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like. //If defined, the Probe servo will be turned on only during movement and then turned off to avoid jerk //The value is the delay to turn the servo off after powered on - depends on the servo speed; 300ms is good value, but you can try lower it. // You MUST HAVE the SERVO_ENDSTOPS defined to use here a value higher than zero otherwise your code will not compile. // #define PROBE_SERVO_DEACTIVATION_DELAY 300 //If you have enabled the Bed Auto Leveling and are using the same Z Probe for Z Homing, //it is highly recommended you let this Z_SAFE_HOMING enabled!!! #define Z_SAFE_HOMING // This feature is meant to avoid Z homing with probe outside the bed area. // When defined, it will: // - Allow Z homing only after X and Y homing AND stepper drivers still enabled // - If stepper drivers timeout, it will need X and Y homing again before Z homing // - Position the probe in a defined XY point before Z Homing when homing all axis (G28) // - Block Z homing only when the probe is outside bed area. #ifdef Z_SAFE_HOMING #define Z_SAFE_HOMING_X_POINT (X_MAX_LENGTH/2) // X point for Z homing when homing all axis (G28) #define Z_SAFE_HOMING_Y_POINT (Y_MAX_LENGTH/2) // Y point for Z homing when homing all axis (G28) #endif #ifdef AUTO_BED_LEVELING_GRID // Check if Probe_Offset * Grid Points is greater than Probing Range #if X_PROBE_OFFSET_FROM_EXTRUDER < 0 #if (-(X_PROBE_OFFSET_FROM_EXTRUDER * AUTO_BED_LEVELING_GRID_POINTS) >= (RIGHT_PROBE_BED_POSITION - LEFT_PROBE_BED_POSITION)) #error "The X axis probing range is not enough to fit all the points defined in AUTO_BED_LEVELING_GRID_POINTS" #endif #else #if ((X_PROBE_OFFSET_FROM_EXTRUDER * AUTO_BED_LEVELING_GRID_POINTS) >= (RIGHT_PROBE_BED_POSITION - LEFT_PROBE_BED_POSITION)) #error "The X axis probing range is not enough to fit all the points defined in AUTO_BED_LEVELING_GRID_POINTS" #endif #endif #if Y_PROBE_OFFSET_FROM_EXTRUDER < 0 #if (-(Y_PROBE_OFFSET_FROM_EXTRUDER * AUTO_BED_LEVELING_GRID_POINTS) >= (BACK_PROBE_BED_POSITION - FRONT_PROBE_BED_POSITION)) #error "The Y axis probing range is not enough to fit all the points defined in AUTO_BED_LEVELING_GRID_POINTS" #endif #else #if ((Y_PROBE_OFFSET_FROM_EXTRUDER * AUTO_BED_LEVELING_GRID_POINTS) >= (BACK_PROBE_BED_POSITION - FRONT_PROBE_BED_POSITION)) #error "The Y axis probing range is not enough to fit all the points defined in AUTO_BED_LEVELING_GRID_POINTS" #endif #endif #endif #endif // ENABLE_AUTO_BED_LEVELING // The position of the homing switches //#define MANUAL_HOME_POSITIONS // If defined, MANUAL_*_HOME_POS below will be used //#define BED_CENTER_AT_0_0 // If defined, the center of the bed is at (X=0, Y=0) //Manual homing switch locations: // For deltabots this means top and center of the Cartesian print volume. #define MANUAL_X_HOME_POS 0 #define MANUAL_Y_HOME_POS 0 #define MANUAL_Z_HOME_POS 0 //#define MANUAL_Z_HOME_POS 402 // For delta: Distance between nozzle and print surface after homing. //// MOVEMENT SETTINGS #define NUM_AXIS 4 // The axis order in all axis related arrays is X, Y, Z, E #define HOMING_FEEDRATE {50*60, 50*60, 4*60, 0} // set the homing speeds (mm/min) // default settings #define DEFAULT_AXIS_STEPS_PER_UNIT {128.5,45.5,206.8019,760*1.1} // default steps per mm #define DEFAULT_MAX_FEEDRATE {500, 500, 500, 25} // (mm/sec) #define DEFAULT_MAX_ACCELERATION {60, 100, 5, 10000} // X, Y, Z, E maximum start speed for accelerated moves. E default values are good for Skeinforge 40+, for older versions raise them a lot. #define DEFAULT_ACCELERATION 500 // X, Y, Z and E max acceleration in mm/s^2 for printing moves #define DEFAULT_RETRACT_ACCELERATION 3000 // X, Y, Z and E max acceleration in mm/s^2 for retracts // Offset of the extruders (uncomment if using more than one and relying on firmware to position when changing). // The offset has to be X=0, Y=0 for the extruder 0 hotend (default extruder). // For the other hotends it is their distance from the extruder 0 hotend. // #define EXTRUDER_OFFSET_X {0.0, 20.00} // (in mm) for each extruder, offset of the hotend on the X axis // #define EXTRUDER_OFFSET_Y {0.0, 5.00} // (in mm) for each extruder, offset of the hotend on the Y axis // The speed change that does not require acceleration (i.e. the software might assume it can be done instantaneously) #define DEFAULT_XYJERK 20.0 // (mm/sec) #define DEFAULT_ZJERK 0.4 // (mm/sec) #define DEFAULT_EJERK 5.0 // (mm/sec) //=========================================================================== //=============================Additional Features=========================== //=========================================================================== // Custom M code points #define CUSTOM_M_CODES #ifdef CUSTOM_M_CODES #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851 #define Z_PROBE_OFFSET_RANGE_MIN -15 #define Z_PROBE_OFFSET_RANGE_MAX -5 #endif // EEPROM // The microcontroller can store settings in the EEPROM, e.g. max velocity... // M500 - stores parameters in EEPROM // M501 - reads parameters from EEPROM (if you need reset them after you changed them temporarily). // M502 - reverts to the default "factory settings". You still need to store them in EEPROM afterwards if you want to. //define this to enable EEPROM support #define EEPROM_SETTINGS //to disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out: // please keep turned on if you can. //#define EEPROM_CHITCHAT // Preheat Constants #define PLA_PREHEAT_HOTEND_TEMP 180 #define PLA_PREHEAT_HPB_TEMP 70 #define PLA_PREHEAT_FAN_SPEED 255 // Insert Value between 0 and 255 #define ABS_PREHEAT_HOTEND_TEMP 240 #define ABS_PREHEAT_HPB_TEMP 100 #define ABS_PREHEAT_FAN_SPEED 255 // Insert Value between 0 and 255 //LCD and SD support //#define ULTRA_LCD //general LCD support, also 16x2 //#define DOGLCD // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family) //#define SDSUPPORT // Enable SD Card Support in Hardware Console //#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error) //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking //#define ULTIMAKERCONTROLLER //as available from the Ultimaker online store. //#define ULTIPANEL //the UltiPanel as on Thingiverse //#define LCD_FEEDBACK_FREQUENCY_HZ 1000 // this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click //#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click // The MaKr3d Makr-Panel with graphic controller and SD support // path_to_url //#define MAKRPANEL // The RepRapDiscount Smart Controller (white PCB) // path_to_url //#define REPRAP_DISCOUNT_SMART_CONTROLLER // The GADGETS3D G3D LCD/SD Controller (blue PCB) // path_to_url //#define G3D_PANEL // The RepRapDiscount FULL GRAPHIC Smart Controller (quadratic white PCB) // path_to_url // // ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: path_to_url //#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER // The RepRapWorld REPRAPWORLD_KEYPAD v1.1 // path_to_url //#define REPRAPWORLD_KEYPAD //#define REPRAPWORLD_KEYPAD_MOVE_STEP 10.0 // how much should be moved when a key is pressed, eg 10.0 means 10mm per click // The Elefu RA Board Control Panel // path_to_url // REMEMBER TO INSTALL LiquidCrystal_I2C.h in your ARDUINO library folder: path_to_url //#define RA_CONTROL_PANEL //automatic expansion #if defined (MAKRPANEL) #define DOGLCD #define SDSUPPORT #define ULTIPANEL #define NEWPANEL #define DEFAULT_LCD_CONTRAST 17 #endif #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) #define DOGLCD #define U8GLIB_ST7920 #define REPRAP_DISCOUNT_SMART_CONTROLLER #endif #if defined(ULTIMAKERCONTROLLER) || defined(REPRAP_DISCOUNT_SMART_CONTROLLER) || defined(G3D_PANEL) #define ULTIPANEL #define NEWPANEL #endif #if defined(REPRAPWORLD_KEYPAD) #define NEWPANEL #define ULTIPANEL #endif #if defined(RA_CONTROL_PANEL) #define ULTIPANEL #define NEWPANEL #define LCD_I2C_TYPE_PCA8574 #define LCD_I2C_ADDRESS 0x27 // I2C Address of the port expander #endif //I2C PANELS //#define LCD_I2C_SAINSMART_YWROBOT #ifdef LCD_I2C_SAINSMART_YWROBOT // This uses the LiquidCrystal_I2C library ( path_to_url ) // Make sure it is placed in the Arduino libraries directory. #define LCD_I2C_TYPE_PCF8575 #define LCD_I2C_ADDRESS 0x27 // I2C Address of the port expander #define NEWPANEL #define ULTIPANEL #endif // PANELOLU2 LCD with status LEDs, separate encoder and click inputs //#define LCD_I2C_PANELOLU2 #ifdef LCD_I2C_PANELOLU2 // This uses the LiquidTWI2 library v1.2.3 or later ( path_to_url ) // Make sure the LiquidTWI2 directory is placed in the Arduino or Sketchbook libraries subdirectory. // (v1.2.3 no longer requires you to define PANELOLU in the LiquidTWI2.h library header file) // Note: The PANELOLU2 encoder click input can either be directly connected to a pin // (if BTN_ENC defined to != -1) or read through I2C (when BTN_ENC == -1). #define LCD_I2C_TYPE_MCP23017 #define LCD_I2C_ADDRESS 0x20 // I2C Address of the port expander #define LCD_USE_I2C_BUZZER //comment out to disable buzzer on LCD #define NEWPANEL #define ULTIPANEL #ifndef ENCODER_PULSES_PER_STEP #define ENCODER_PULSES_PER_STEP 4 #endif #ifndef ENCODER_STEPS_PER_MENU_ITEM #define ENCODER_STEPS_PER_MENU_ITEM 1 #endif #ifdef LCD_USE_I2C_BUZZER #define LCD_FEEDBACK_FREQUENCY_HZ 1000 #define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 #endif #endif // Panucatt VIKI LCD with status LEDs, integrated click & L/R/U/P buttons, separate encoder inputs //#define LCD_I2C_VIKI #ifdef LCD_I2C_VIKI // This uses the LiquidTWI2 library v1.2.3 or later ( path_to_url ) // Make sure the LiquidTWI2 directory is placed in the Arduino or Sketchbook libraries subdirectory. // Note: The pause/stop/resume LCD button pin should be connected to the Arduino // BTN_ENC pin (or set BTN_ENC to -1 if not used) #define LCD_I2C_TYPE_MCP23017 #define LCD_I2C_ADDRESS 0x20 // I2C Address of the port expander #define LCD_USE_I2C_BUZZER //comment out to disable buzzer on LCD (requires LiquidTWI2 v1.2.3 or later) #define NEWPANEL #define ULTIPANEL #endif // Shift register panels // --------------------- // 2 wire Non-latching LCD SR from: // path_to_url#!shiftregister-connection //#define SAV_3DLCD #ifdef SAV_3DLCD #define SR_LCD_2W_NL // Non latching 2 wire shiftregister #define NEWPANEL #define ULTIPANEL #endif #ifdef ULTIPANEL // #define NEWPANEL //enable this if you have a click-encoder panel #define SDSUPPORT #define ULTRA_LCD #ifdef DOGLCD // Change number of lines to match the DOG graphic display #define LCD_WIDTH 20 #define LCD_HEIGHT 5 #else #define LCD_WIDTH 20 #define LCD_HEIGHT 4 #endif #else //no panel but just LCD #ifdef ULTRA_LCD #ifdef DOGLCD // Change number of lines to match the 128x64 graphics display #define LCD_WIDTH 20 #define LCD_HEIGHT 5 #else #define LCD_WIDTH 16 #define LCD_HEIGHT 2 #endif #endif #endif // default LCD contrast for dogm-like LCD displays #ifdef DOGLCD # ifndef DEFAULT_LCD_CONTRAST # define DEFAULT_LCD_CONTRAST 32 # endif #endif // Increase the FAN pwm frequency. Removes the PWM noise but increases heating in the FET/Arduino //#define FAST_PWM_FAN // Temperature status LEDs that display the hotend and bet temperature. // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on. // Otherwise the RED led is on. There is 1C hysteresis. //#define TEMP_STAT_LEDS // Use software PWM to drive the fan, as for the heaters. This uses a very low frequency // which is not ass annoying as with the hardware PWM. On the other hand, if this frequency // is too low, you should also increment SOFT_PWM_SCALE. //#define FAN_SOFT_PWM // Incrementing this by 1 will double the software PWM frequency, // affecting heaters, and the fan if FAN_SOFT_PWM is enabled. // However, control resolution will be halved for each increment; // at zero value, there are 128 effective control positions. #define SOFT_PWM_SCALE 0 // M240 Triggers a camera by emulating a Canon RC-1 Remote // Data from: path_to_url // #define PHOTOGRAPH_PIN 23 // SF send wrong arc g-codes when using Arc Point as fillet procedure //#define SF_ARC_FIX // Support for the BariCUDA Paste Extruder. //#define BARICUDA //define BlinkM/CyzRgb Support //#define BLINKM /*********************************************************************\ * R/C SERVO support * Sponsored by TrinityLabs, Reworked by codexmas **********************************************************************/ // Number of servos 1 // // If you select a configuration below, this will receive a default value and does not need to be set manually // set it manually if you have more servos than extruders and wish to manually control some // leaving it undefined or defining as 0 will disable the servo subsystem // If unsure, leave commented / disabled #define NUM_SERVOS 3 // Servo index starts with 0 for M280 command // Servo Endstops // // This allows for servo actuated endstops, primary usage is for the Z Axis to eliminate calibration or bed height changes. // Use M206 command to correct for switch height offset to actual nozzle height. Store that setting with M500. // //#define SERVO_ENDSTOPS {-1, -1, 0} // Servo index for X, Y, Z. Disable with -1 //#define SERVO_ENDSTOP_ANGLES {0,0, 0,0, 70,0} // X,Y,Z Axis Extend and Retract angles /**********************************************************************\ * Support for a filament diameter sensor * Also allows adjustment of diameter at print time (vs at slicing) * Single extruder only at this point (extruder 0) * * Motherboards * 34 - RAMPS1.4 - uses Analog input 5 on the AUX2 connector * 81 - Printrboard - Uses Analog input 2 on the Exp1 connector (version B,C,D,E) * 301 - Rambo - uses Analog input 3 * Note may require analog pins to be defined for different motherboards **********************************************************************/ // Uncomment below to enable //#define FILAMENT_SENSOR #define FILAMENT_SENSOR_EXTRUDER_NUM 0 //The number of the extruder that has the filament sensor (0,1,2) #define MEASUREMENT_DELAY_CM 14 //measurement delay in cm. This is the distance from filament sensor to middle of barrel #define DEFAULT_NOMINAL_FILAMENT_DIA 3.0 //Enter the diameter (in mm) of the filament generally used (3.0 mm or 1.75 mm) - this is then used in the slicer software. Used for sensor reading validation #define MEASURED_UPPER_LIMIT 3.30 //upper limit factor used for sensor reading validation in mm #define MEASURED_LOWER_LIMIT 1.90 //lower limit factor for sensor reading validation in mm #define MAX_MEASUREMENT_DELAY 20 //delay buffer size in bytes (1 byte = 1cm)- limits maximum measurement delay allowable (must be larger than MEASUREMENT_DELAY_CM and lower number saves RAM) //defines used in the code #define DEFAULT_MEASURED_FILAMENT_DIA DEFAULT_NOMINAL_FILAMENT_DIA //set measured to nominal initially //When using an LCD, uncomment the line below to display the Filament sensor data on the last line instead of status. Status will appear for 5 sec. //#define FILAMENT_LCD_DISPLAY #include "Configuration_adv.h" #include "thermistortables.h" #endif //__CONFIGURATION_H ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/Configuration.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
9,320
```objective-c #ifndef ULTRA_LCD_IMPLEMENTATION_HITACHI_HD44780_H #define ULTRA_LCD_IMPLEMENTATION_HITACHI_HD44780_H /** * Implementation of the LCD display routines for a Hitachi HD44780 display. These are common LCD character displays. * When selecting the Russian language, a slightly different LCD implementation is used to handle UTF8 characters. **/ #ifndef REPRAPWORLD_KEYPAD extern volatile uint8_t buttons; //the last checked buttons in a bit array. #else extern volatile uint16_t buttons; //an extended version of the last checked buttons in a bit array. #endif //////////////////////////////////// // Setup button and encode mappings for each panel (into 'buttons' variable // // This is just to map common functions (across different panels) onto the same // macro name. The mapping is independent of whether the button is directly connected or // via a shift/i2c register. #ifdef ULTIPANEL // All UltiPanels might have an encoder - so this is always be mapped onto first two bits #define BLEN_B 1 #define BLEN_A 0 #define EN_B (1<<BLEN_B) // The two encoder pins are connected through BTN_EN1 and BTN_EN2 #define EN_A (1<<BLEN_A) #if defined(BTN_ENC) && BTN_ENC > -1 // encoder click is directly connected #define BLEN_C 2 #define EN_C (1<<BLEN_C) #endif // // Setup other button mappings of each panel // #if defined(LCD_I2C_VIKI) #define B_I2C_BTN_OFFSET 3 // (the first three bit positions reserved for EN_A, EN_B, EN_C) // button and encoder bit positions within 'buttons' #define B_LE (BUTTON_LEFT<<B_I2C_BTN_OFFSET) // The remaining normalized buttons are all read via I2C #define B_UP (BUTTON_UP<<B_I2C_BTN_OFFSET) #define B_MI (BUTTON_SELECT<<B_I2C_BTN_OFFSET) #define B_DW (BUTTON_DOWN<<B_I2C_BTN_OFFSET) #define B_RI (BUTTON_RIGHT<<B_I2C_BTN_OFFSET) #if defined(BTN_ENC) && BTN_ENC > -1 // the pause/stop/restart button is connected to BTN_ENC when used #define B_ST (EN_C) // Map the pause/stop/resume button into its normalized functional name #define LCD_CLICKED (buttons&(B_MI|B_RI|B_ST)) // pause/stop button also acts as click until we implement proper pause/stop. #else #define LCD_CLICKED (buttons&(B_MI|B_RI)) #endif // I2C buttons take too long to read inside an interrupt context and so we read them during lcd_update #define LCD_HAS_SLOW_BUTTONS #elif defined(LCD_I2C_PANELOLU2) // encoder click can be read through I2C if not directly connected #if BTN_ENC <= 0 #define B_I2C_BTN_OFFSET 3 // (the first three bit positions reserved for EN_A, EN_B, EN_C) #define B_MI (PANELOLU2_ENCODER_C<<B_I2C_BTN_OFFSET) // requires LiquidTWI2 library v1.2.3 or later #define LCD_CLICKED (buttons&B_MI) // I2C buttons take too long to read inside an interrupt context and so we read them during lcd_update #define LCD_HAS_SLOW_BUTTONS #else #define LCD_CLICKED (buttons&EN_C) #endif #elif defined(REPRAPWORLD_KEYPAD) // define register bit values, don't change it #define BLEN_REPRAPWORLD_KEYPAD_F3 0 #define BLEN_REPRAPWORLD_KEYPAD_F2 1 #define BLEN_REPRAPWORLD_KEYPAD_F1 2 #define BLEN_REPRAPWORLD_KEYPAD_UP 3 #define BLEN_REPRAPWORLD_KEYPAD_RIGHT 4 #define BLEN_REPRAPWORLD_KEYPAD_MIDDLE 5 #define BLEN_REPRAPWORLD_KEYPAD_DOWN 6 #define BLEN_REPRAPWORLD_KEYPAD_LEFT 7 #define REPRAPWORLD_BTN_OFFSET 3 // bit offset into buttons for shift register values #define EN_REPRAPWORLD_KEYPAD_F3 (1<<(BLEN_REPRAPWORLD_KEYPAD_F3+REPRAPWORLD_BTN_OFFSET)) #define EN_REPRAPWORLD_KEYPAD_F2 (1<<(BLEN_REPRAPWORLD_KEYPAD_F2+REPRAPWORLD_BTN_OFFSET)) #define EN_REPRAPWORLD_KEYPAD_F1 (1<<(BLEN_REPRAPWORLD_KEYPAD_F1+REPRAPWORLD_BTN_OFFSET)) #define EN_REPRAPWORLD_KEYPAD_UP (1<<(BLEN_REPRAPWORLD_KEYPAD_UP+REPRAPWORLD_BTN_OFFSET)) #define EN_REPRAPWORLD_KEYPAD_RIGHT (1<<(BLEN_REPRAPWORLD_KEYPAD_RIGHT+REPRAPWORLD_BTN_OFFSET)) #define EN_REPRAPWORLD_KEYPAD_MIDDLE (1<<(BLEN_REPRAPWORLD_KEYPAD_MIDDLE+REPRAPWORLD_BTN_OFFSET)) #define EN_REPRAPWORLD_KEYPAD_DOWN (1<<(BLEN_REPRAPWORLD_KEYPAD_DOWN+REPRAPWORLD_BTN_OFFSET)) #define EN_REPRAPWORLD_KEYPAD_LEFT (1<<(BLEN_REPRAPWORLD_KEYPAD_LEFT+REPRAPWORLD_BTN_OFFSET)) #define LCD_CLICKED ((buttons&EN_C) || (buttons&EN_REPRAPWORLD_KEYPAD_F1)) #define REPRAPWORLD_KEYPAD_MOVE_Y_DOWN (buttons&EN_REPRAPWORLD_KEYPAD_DOWN) #define REPRAPWORLD_KEYPAD_MOVE_Y_UP (buttons&EN_REPRAPWORLD_KEYPAD_UP) #define REPRAPWORLD_KEYPAD_MOVE_HOME (buttons&EN_REPRAPWORLD_KEYPAD_MIDDLE) #elif defined(NEWPANEL) #define LCD_CLICKED (buttons&EN_C) #else // old style ULTIPANEL //bits in the shift register that carry the buttons for: // left up center down right red(stop) #define BL_LE 7 #define BL_UP 6 #define BL_MI 5 #define BL_DW 4 #define BL_RI 3 #define BL_ST 2 //automatic, do not change #define B_LE (1<<BL_LE) #define B_UP (1<<BL_UP) #define B_MI (1<<BL_MI) #define B_DW (1<<BL_DW) #define B_RI (1<<BL_RI) #define B_ST (1<<BL_ST) #define LCD_CLICKED (buttons&(B_MI|B_ST)) #endif //////////////////////// // Setup Rotary Encoder Bit Values (for two pin encoders to indicate movement) // These values are independent of which pins are used for EN_A and EN_B indications // The rotary encoder part is also independent to the chipset used for the LCD #if defined(EN_A) && defined(EN_B) #define encrot0 0 #define encrot1 2 #define encrot2 3 #define encrot3 1 #endif #endif //ULTIPANEL //////////////////////////////////// // Create LCD class instance and chipset-specific information #if defined(LCD_I2C_TYPE_PCF8575) // note: these are register mapped pins on the PCF8575 controller not Arduino pins #define LCD_I2C_PIN_BL 3 #define LCD_I2C_PIN_EN 2 #define LCD_I2C_PIN_RW 1 #define LCD_I2C_PIN_RS 0 #define LCD_I2C_PIN_D4 4 #define LCD_I2C_PIN_D5 5 #define LCD_I2C_PIN_D6 6 #define LCD_I2C_PIN_D7 7 #include <Wire.h> #include <LCD.h> #include <LiquidCrystal_I2C.h> #define LCD_CLASS LiquidCrystal_I2C LCD_CLASS lcd(LCD_I2C_ADDRESS,LCD_I2C_PIN_EN,LCD_I2C_PIN_RW,LCD_I2C_PIN_RS,LCD_I2C_PIN_D4,LCD_I2C_PIN_D5,LCD_I2C_PIN_D6,LCD_I2C_PIN_D7); #elif defined(LCD_I2C_TYPE_MCP23017) //for the LED indicators (which maybe mapped to different things in lcd_implementation_update_indicators()) #define LED_A 0x04 //100 #define LED_B 0x02 //010 #define LED_C 0x01 //001 #define LCD_HAS_STATUS_INDICATORS #include <Wire.h> #include <LiquidTWI2.h> #define LCD_CLASS LiquidTWI2 #if defined(DETECT_DEVICE) LCD_CLASS lcd(LCD_I2C_ADDRESS, 1); #else LCD_CLASS lcd(LCD_I2C_ADDRESS); #endif #elif defined(LCD_I2C_TYPE_MCP23008) #include <Wire.h> #include <LiquidTWI2.h> #define LCD_CLASS LiquidTWI2 #if defined(DETECT_DEVICE) LCD_CLASS lcd(LCD_I2C_ADDRESS, 1); #else LCD_CLASS lcd(LCD_I2C_ADDRESS); #endif #elif defined(LCD_I2C_TYPE_PCA8574) #include <LiquidCrystal_I2C.h> #define LCD_CLASS LiquidCrystal_I2C LCD_CLASS lcd(LCD_I2C_ADDRESS, LCD_WIDTH, LCD_HEIGHT); // 2 wire Non-latching LCD SR from: // path_to_url#!shiftregister-connection #elif defined(SR_LCD_2W_NL) extern "C" void __cxa_pure_virtual() { while (1); } #include <LCD.h> #include <LiquidCrystal_SR.h> #define LCD_CLASS LiquidCrystal_SR LCD_CLASS lcd(SR_DATA_PIN, SR_CLK_PIN); #else // Standard directly connected LCD implementations #ifdef LANGUAGE_RU #include "LiquidCrystalRus.h" #define LCD_CLASS LiquidCrystalRus #else #include <LiquidCrystal.h> #define LCD_CLASS LiquidCrystal #endif LCD_CLASS lcd(LCD_PINS_RS, LCD_PINS_ENABLE, LCD_PINS_D4, LCD_PINS_D5,LCD_PINS_D6,LCD_PINS_D7); //RS,Enable,D4,D5,D6,D7 #endif #if defined(LCD_PROGRESS_BAR) && defined(SDSUPPORT) static uint16_t progressBarTick = 0; #if PROGRESS_MSG_EXPIRE > 0 static uint16_t messageTick = 0; #endif #define LCD_STR_PROGRESS "\x03\x04\x05" #endif /* Custom characters defined in the first 8 characters of the LCD */ #define LCD_STR_BEDTEMP "\x00" #define LCD_STR_DEGREE "\x01" #define LCD_STR_THERMOMETER "\x02" #define LCD_STR_UPLEVEL "\x03" #define LCD_STR_REFRESH "\x04" #define LCD_STR_FOLDER "\x05" #define LCD_STR_FEEDRATE "\x06" #define LCD_STR_CLOCK "\x07" #define LCD_STR_ARROW_RIGHT "\x7E" /* from the default character set */ static void lcd_set_custom_characters( #if defined(LCD_PROGRESS_BAR) && defined(SDSUPPORT) bool progress_bar_set=true #endif ) { byte bedTemp[8] = { B00000, B11111, B10101, B10001, B10101, B11111, B00000, B00000 }; //thanks Sonny Mounicou byte degree[8] = { B01100, B10010, B10010, B01100, B00000, B00000, B00000, B00000 }; byte thermometer[8] = { B00100, B01010, B01010, B01010, B01010, B10001, B10001, B01110 }; byte uplevel[8] = { B00100, B01110, B11111, B00100, B11100, B00000, B00000, B00000 }; //thanks joris byte refresh[8] = { B00000, B00110, B11001, B11000, B00011, B10011, B01100, B00000, }; //thanks joris byte folder[8] = { B00000, B11100, B11111, B10001, B10001, B11111, B00000, B00000 }; //thanks joris byte feedrate[8] = { B11100, B10000, B11000, B10111, B00101, B00110, B00101, B00000 }; //thanks Sonny Mounicou byte clock[8] = { B00000, B01110, B10011, B10101, B10001, B01110, B00000, B00000 }; //thanks Sonny Mounicou #if defined(LCD_PROGRESS_BAR) && defined(SDSUPPORT) static bool char_mode = false; byte progress[3][8] = { { B00000, B10000, B10000, B10000, B10000, B10000, B10000, B00000 }, { B00000, B10100, B10100, B10100, B10100, B10100, B10100, B00000 }, { B00000, B10101, B10101, B10101, B10101, B10101, B10101, B00000 } }; if (progress_bar_set != char_mode) { char_mode = progress_bar_set; lcd.createChar(LCD_STR_BEDTEMP[0], bedTemp); lcd.createChar(LCD_STR_DEGREE[0], degree); lcd.createChar(LCD_STR_THERMOMETER[0], thermometer); lcd.createChar(LCD_STR_FEEDRATE[0], feedrate); lcd.createChar(LCD_STR_CLOCK[0], clock); if (progress_bar_set) { // Progress bar characters for info screen for (int i=3; i--;) lcd.createChar(LCD_STR_PROGRESS[i], progress[i]); } else { // Custom characters for submenus lcd.createChar(LCD_STR_UPLEVEL[0], uplevel); lcd.createChar(LCD_STR_REFRESH[0], refresh); lcd.createChar(LCD_STR_FOLDER[0], folder); } } #else lcd.createChar(LCD_STR_BEDTEMP[0], bedTemp); lcd.createChar(LCD_STR_DEGREE[0], degree); lcd.createChar(LCD_STR_THERMOMETER[0], thermometer); lcd.createChar(LCD_STR_UPLEVEL[0], uplevel); lcd.createChar(LCD_STR_REFRESH[0], refresh); lcd.createChar(LCD_STR_FOLDER[0], folder); lcd.createChar(LCD_STR_FEEDRATE[0], feedrate); lcd.createChar(LCD_STR_CLOCK[0], clock); #endif } static void lcd_implementation_init( #if defined(LCD_PROGRESS_BAR) && defined(SDSUPPORT) bool progress_bar_set=true #endif ) { #if defined(LCD_I2C_TYPE_PCF8575) lcd.begin(LCD_WIDTH, LCD_HEIGHT); #ifdef LCD_I2C_PIN_BL lcd.setBacklightPin(LCD_I2C_PIN_BL,POSITIVE); lcd.setBacklight(HIGH); #endif #elif defined(LCD_I2C_TYPE_MCP23017) lcd.setMCPType(LTI_TYPE_MCP23017); lcd.begin(LCD_WIDTH, LCD_HEIGHT); lcd.setBacklight(0); //set all the LEDs off to begin with #elif defined(LCD_I2C_TYPE_MCP23008) lcd.setMCPType(LTI_TYPE_MCP23008); lcd.begin(LCD_WIDTH, LCD_HEIGHT); #elif defined(LCD_I2C_TYPE_PCA8574) lcd.init(); lcd.backlight(); #else lcd.begin(LCD_WIDTH, LCD_HEIGHT); #endif lcd_set_custom_characters( #if defined(LCD_PROGRESS_BAR) && defined(SDSUPPORT) progress_bar_set #endif ); lcd.clear(); } static void lcd_implementation_clear() { lcd.clear(); } /* Arduino < 1.0.0 is missing a function to print PROGMEM strings, so we need to implement our own */ static void lcd_printPGM(const char* str) { char c; while((c = pgm_read_byte(str++)) != '\0') { lcd.write(c); } } /* Possible status screens: 16x2 |0123456789012345| |000/000 B000/000| |Status line.....| 16x4 |0123456789012345| |000/000 B000/000| |SD100% Z000.0| |F100% T--:--| |Status line.....| 20x2 |01234567890123456789| |T000/000D B000/000D | |Status line.........| 20x4 |01234567890123456789| |T000/000D B000/000D | |X+000.0 Y+000.0 Z+000.0| |F100% SD100% T--:--| |Status line.........| 20x4 |01234567890123456789| |T000/000D B000/000D | |T000/000D Z000.0| |F100% SD100% T--:--| |Status line.........| */ static void lcd_implementation_status_screen() { int tHotend=int(degHotend(0) + 0.5); int tTarget=int(degTargetHotend(0) + 0.5); #if LCD_WIDTH < 20 lcd.setCursor(0, 0); lcd.print(itostr3(tHotend)); lcd.print('/'); lcd.print(itostr3left(tTarget)); # if EXTRUDERS > 1 || TEMP_SENSOR_BED != 0 //If we have an 2nd extruder or heated bed, show that in the top right corner lcd.setCursor(8, 0); # if EXTRUDERS > 1 tHotend = int(degHotend(1) + 0.5); tTarget = int(degTargetHotend(1) + 0.5); lcd.print(LCD_STR_THERMOMETER[0]); # else//Heated bed tHotend=int(degBed() + 0.5); tTarget=int(degTargetBed() + 0.5); lcd.print(LCD_STR_BEDTEMP[0]); # endif lcd.print(itostr3(tHotend)); lcd.print('/'); lcd.print(itostr3left(tTarget)); # endif//EXTRUDERS > 1 || TEMP_SENSOR_BED != 0 #else//LCD_WIDTH > 19 lcd.setCursor(0, 0); lcd.print(LCD_STR_THERMOMETER[0]); lcd.print(itostr3(tHotend)); lcd.print('/'); lcd.print(itostr3left(tTarget)); lcd_printPGM(PSTR(LCD_STR_DEGREE " ")); if (tTarget < 10) lcd.print(' '); # if EXTRUDERS > 1 || TEMP_SENSOR_BED != 0 //If we have an 2nd extruder or heated bed, show that in the top right corner lcd.setCursor(10, 0); # if EXTRUDERS > 1 tHotend = int(degHotend(1) + 0.5); tTarget = int(degTargetHotend(1) + 0.5); lcd.print(LCD_STR_THERMOMETER[0]); # else//Heated bed tHotend=int(degBed() + 0.5); tTarget=int(degTargetBed() + 0.5); lcd.print(LCD_STR_BEDTEMP[0]); # endif lcd.print(itostr3(tHotend)); lcd.print('/'); lcd.print(itostr3left(tTarget)); lcd_printPGM(PSTR(LCD_STR_DEGREE " ")); if (tTarget < 10) lcd.print(' '); # endif//EXTRUDERS > 1 || TEMP_SENSOR_BED != 0 #endif//LCD_WIDTH > 19 #if LCD_HEIGHT > 2 //Lines 2 for 4 line LCD # if LCD_WIDTH < 20 # ifdef SDSUPPORT lcd.setCursor(0, 2); lcd_printPGM(PSTR("SD")); if (IS_SD_PRINTING) lcd.print(itostr3(card.percentDone())); else lcd_printPGM(PSTR("---")); lcd.print('%'); # endif//SDSUPPORT # else//LCD_WIDTH > 19 # if EXTRUDERS > 1 && TEMP_SENSOR_BED != 0 //If we both have a 2nd extruder and a heated bed, show the heated bed temp on the 2nd line on the left, as the first line is filled with extruder temps tHotend=int(degBed() + 0.5); tTarget=int(degTargetBed() + 0.5); lcd.setCursor(0, 1); lcd.print(LCD_STR_BEDTEMP[0]); lcd.print(itostr3(tHotend)); lcd.print('/'); lcd.print(itostr3left(tTarget)); lcd_printPGM(PSTR(LCD_STR_DEGREE " ")); if (tTarget < 10) lcd.print(' '); # else lcd.setCursor(0,1); lcd.print('X'); lcd.print(ftostr3(current_position[X_AXIS])); lcd_printPGM(PSTR(" Y")); lcd.print(ftostr3(current_position[Y_AXIS])); # endif//EXTRUDERS > 1 || TEMP_SENSOR_BED != 0 # endif//LCD_WIDTH > 19 lcd.setCursor(LCD_WIDTH - 8, 1); lcd.print('Z'); lcd.print(ftostr32sp(current_position[Z_AXIS] + 0.00001)); #endif//LCD_HEIGHT > 2 #if LCD_HEIGHT > 3 lcd.setCursor(0, 2); lcd.print(LCD_STR_FEEDRATE[0]); lcd.print(itostr3(feedmultiply)); lcd.print('%'); # if LCD_WIDTH > 19 # ifdef SDSUPPORT lcd.setCursor(7, 2); lcd_printPGM(PSTR("SD")); if (IS_SD_PRINTING) lcd.print(itostr3(card.percentDone())); else lcd_printPGM(PSTR("---")); lcd.print('%'); # endif//SDSUPPORT # endif//LCD_WIDTH > 19 lcd.setCursor(LCD_WIDTH - 6, 2); lcd.print(LCD_STR_CLOCK[0]); if(starttime != 0) { uint16_t time = millis()/60000 - starttime/60000; lcd.print(itostr2(time/60)); lcd.print(':'); lcd.print(itostr2(time%60)); }else{ lcd_printPGM(PSTR("--:--")); } #endif // Status message line at the bottom lcd.setCursor(0, LCD_HEIGHT - 1); #if defined(LCD_PROGRESS_BAR) && defined(SDSUPPORT) if (card.isFileOpen()) { uint16_t mil = millis(), diff = mil - progressBarTick; if (diff >= PROGRESS_BAR_MSG_TIME || !lcd_status_message[0]) { // draw the progress bar int tix = (int)(card.percentDone() * LCD_WIDTH * 3) / 100, cel = tix / 3, rem = tix % 3, i = LCD_WIDTH; char msg[LCD_WIDTH+1], b = ' '; msg[i] = '\0'; while (i--) { if (i == cel - 1) b = LCD_STR_PROGRESS[2]; else if (i == cel && rem != 0) b = LCD_STR_PROGRESS[rem-1]; msg[i] = b; } lcd.print(msg); return; } } //card.isFileOpen #endif //LCD_PROGRESS_BAR //Display both Status message line and Filament display on the last line #ifdef FILAMENT_LCD_DISPLAY if (message_millis + 5000 <= millis()) { //display any status for the first 5 sec after screen is initiated lcd_printPGM(PSTR("Dia ")); lcd.print(ftostr12ns(filament_width_meas)); lcd_printPGM(PSTR(" V")); lcd.print(itostr3(100.0*volumetric_multiplier[FILAMENT_SENSOR_EXTRUDER_NUM])); lcd.print('%'); return; } #endif //FILAMENT_LCD_DISPLAY lcd.print(lcd_status_message); } static void lcd_implementation_drawmenu_generic(uint8_t row, const char* pstr, char pre_char, char post_char) { char c; //Use all characters in narrow LCDs #if LCD_WIDTH < 20 uint8_t n = LCD_WIDTH - 1 - 1; #else uint8_t n = LCD_WIDTH - 1 - 2; #endif lcd.setCursor(0, row); lcd.print(pre_char); while( ((c = pgm_read_byte(pstr)) != '\0') && (n>0) ) { lcd.print(c); pstr++; n--; } while(n--) lcd.print(' '); lcd.print(post_char); lcd.print(' '); } static void lcd_implementation_drawmenu_setting_edit_generic(uint8_t row, const char* pstr, char pre_char, char* data) { char c; //Use all characters in narrow LCDs #if LCD_WIDTH < 20 uint8_t n = LCD_WIDTH - 1 - 1 - strlen(data); #else uint8_t n = LCD_WIDTH - 1 - 2 - strlen(data); #endif lcd.setCursor(0, row); lcd.print(pre_char); while( ((c = pgm_read_byte(pstr)) != '\0') && (n>0) ) { lcd.print(c); pstr++; n--; } lcd.print(':'); while(n--) lcd.print(' '); lcd.print(data); } static void lcd_implementation_drawmenu_setting_edit_generic_P(uint8_t row, const char* pstr, char pre_char, const char* data) { char c; //Use all characters in narrow LCDs #if LCD_WIDTH < 20 uint8_t n = LCD_WIDTH - 1 - 1 - strlen_P(data); #else uint8_t n = LCD_WIDTH - 1 - 2 - strlen_P(data); #endif lcd.setCursor(0, row); lcd.print(pre_char); while( ((c = pgm_read_byte(pstr)) != '\0') && (n>0) ) { lcd.print(c); pstr++; n--; } lcd.print(':'); while(n--) lcd.print(' '); lcd_printPGM(data); } #define lcd_implementation_drawmenu_setting_edit_int3_selected(row, pstr, pstr2, data, minValue, maxValue) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, '>', itostr3(*(data))) #define lcd_implementation_drawmenu_setting_edit_int3(row, pstr, pstr2, data, minValue, maxValue) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, ' ', itostr3(*(data))) #define lcd_implementation_drawmenu_setting_edit_float3_selected(row, pstr, pstr2, data, minValue, maxValue) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, '>', ftostr3(*(data))) #define lcd_implementation_drawmenu_setting_edit_float3(row, pstr, pstr2, data, minValue, maxValue) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, ' ', ftostr3(*(data))) #define lcd_implementation_drawmenu_setting_edit_float32_selected(row, pstr, pstr2, data, minValue, maxValue) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, '>', ftostr32(*(data))) #define lcd_implementation_drawmenu_setting_edit_float32(row, pstr, pstr2, data, minValue, maxValue) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, ' ', ftostr32(*(data))) #define lcd_implementation_drawmenu_setting_edit_float43_selected(row, pstr, pstr2, data, minValue, maxValue) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, '>', ftostr43(*(data))) #define lcd_implementation_drawmenu_setting_edit_float43(row, pstr, pstr2, data, minValue, maxValue) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, ' ', ftostr43(*(data))) #define lcd_implementation_drawmenu_setting_edit_float5_selected(row, pstr, pstr2, data, minValue, maxValue) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, '>', ftostr5(*(data))) #define lcd_implementation_drawmenu_setting_edit_float5(row, pstr, pstr2, data, minValue, maxValue) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, ' ', ftostr5(*(data))) #define lcd_implementation_drawmenu_setting_edit_float52_selected(row, pstr, pstr2, data, minValue, maxValue) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, '>', ftostr52(*(data))) #define lcd_implementation_drawmenu_setting_edit_float52(row, pstr, pstr2, data, minValue, maxValue) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, ' ', ftostr52(*(data))) #define lcd_implementation_drawmenu_setting_edit_float51_selected(row, pstr, pstr2, data, minValue, maxValue) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, '>', ftostr51(*(data))) #define lcd_implementation_drawmenu_setting_edit_float51(row, pstr, pstr2, data, minValue, maxValue) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, ' ', ftostr51(*(data))) #define lcd_implementation_drawmenu_setting_edit_long5_selected(row, pstr, pstr2, data, minValue, maxValue) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, '>', ftostr5(*(data))) #define lcd_implementation_drawmenu_setting_edit_long5(row, pstr, pstr2, data, minValue, maxValue) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, ' ', ftostr5(*(data))) #define lcd_implementation_drawmenu_setting_edit_bool_selected(row, pstr, pstr2, data) lcd_implementation_drawmenu_setting_edit_generic_P(row, pstr, '>', (*(data))?PSTR(MSG_ON):PSTR(MSG_OFF)) #define lcd_implementation_drawmenu_setting_edit_bool(row, pstr, pstr2, data) lcd_implementation_drawmenu_setting_edit_generic_P(row, pstr, ' ', (*(data))?PSTR(MSG_ON):PSTR(MSG_OFF)) //Add version for callback functions #define lcd_implementation_drawmenu_setting_edit_callback_int3_selected(row, pstr, pstr2, data, minValue, maxValue, callback) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, '>', itostr3(*(data))) #define lcd_implementation_drawmenu_setting_edit_callback_int3(row, pstr, pstr2, data, minValue, maxValue, callback) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, ' ', itostr3(*(data))) #define your_sha256_hashd(row, pstr, pstr2, data, minValue, maxValue, callback) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, '>', ftostr3(*(data))) #define lcd_implementation_drawmenu_setting_edit_callback_float3(row, pstr, pstr2, data, minValue, maxValue, callback) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, ' ', ftostr3(*(data))) #define your_sha256_hashed(row, pstr, pstr2, data, minValue, maxValue, callback) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, '>', ftostr32(*(data))) #define lcd_implementation_drawmenu_setting_edit_callback_float32(row, pstr, pstr2, data, minValue, maxValue, callback) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, ' ', ftostr32(*(data))) #define your_sha256_hashed(row, pstr, pstr2, data, minValue, maxValue, callback) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, '>', ftostr43(*(data))) #define lcd_implementation_drawmenu_setting_edit_callback_float43(row, pstr, pstr2, data, minValue, maxValue, callback) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, ' ', ftostr43(*(data))) #define your_sha256_hashd(row, pstr, pstr2, data, minValue, maxValue, callback) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, '>', ftostr5(*(data))) #define lcd_implementation_drawmenu_setting_edit_callback_float5(row, pstr, pstr2, data, minValue, maxValue, callback) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, ' ', ftostr5(*(data))) #define your_sha256_hashed(row, pstr, pstr2, data, minValue, maxValue, callback) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, '>', ftostr52(*(data))) #define lcd_implementation_drawmenu_setting_edit_callback_float52(row, pstr, pstr2, data, minValue, maxValue, callback) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, ' ', ftostr52(*(data))) #define your_sha256_hashed(row, pstr, pstr2, data, minValue, maxValue, callback) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, '>', ftostr51(*(data))) #define lcd_implementation_drawmenu_setting_edit_callback_float51(row, pstr, pstr2, data, minValue, maxValue, callback) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, ' ', ftostr51(*(data))) #define your_sha256_hash(row, pstr, pstr2, data, minValue, maxValue, callback) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, '>', ftostr5(*(data))) #define lcd_implementation_drawmenu_setting_edit_callback_long5(row, pstr, pstr2, data, minValue, maxValue, callback) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, ' ', ftostr5(*(data))) #define lcd_implementation_drawmenu_setting_edit_callback_bool_selected(row, pstr, pstr2, data, callback) lcd_implementation_drawmenu_setting_edit_generic_P(row, pstr, '>', (*(data))?PSTR(MSG_ON):PSTR(MSG_OFF)) #define lcd_implementation_drawmenu_setting_edit_callback_bool(row, pstr, pstr2, data, callback) lcd_implementation_drawmenu_setting_edit_generic_P(row, pstr, ' ', (*(data))?PSTR(MSG_ON):PSTR(MSG_OFF)) void lcd_implementation_drawedit(const char* pstr, char* value) { lcd.setCursor(1, 1); lcd_printPGM(pstr); lcd.print(':'); #if LCD_WIDTH < 20 lcd.setCursor(LCD_WIDTH - strlen(value), 1); #else lcd.setCursor(LCD_WIDTH -1 - strlen(value), 1); #endif lcd.print(value); } static void lcd_implementation_drawmenu_sdfile_selected(uint8_t row, const char* pstr, const char* filename, char* longFilename) { char c; uint8_t n = LCD_WIDTH - 1; lcd.setCursor(0, row); lcd.print('>'); if (longFilename[0] != '\0') { filename = longFilename; longFilename[LCD_WIDTH-1] = '\0'; } while( ((c = *filename) != '\0') && (n>0) ) { lcd.print(c); filename++; n--; } while(n--) lcd.print(' '); } static void lcd_implementation_drawmenu_sdfile(uint8_t row, const char* pstr, const char* filename, char* longFilename) { char c; uint8_t n = LCD_WIDTH - 1; lcd.setCursor(0, row); lcd.print(' '); if (longFilename[0] != '\0') { filename = longFilename; longFilename[LCD_WIDTH-1] = '\0'; } while( ((c = *filename) != '\0') && (n>0) ) { lcd.print(c); filename++; n--; } while(n--) lcd.print(' '); } static void lcd_implementation_drawmenu_sddirectory_selected(uint8_t row, const char* pstr, const char* filename, char* longFilename) { char c; uint8_t n = LCD_WIDTH - 2; lcd.setCursor(0, row); lcd.print('>'); lcd.print(LCD_STR_FOLDER[0]); if (longFilename[0] != '\0') { filename = longFilename; longFilename[LCD_WIDTH-2] = '\0'; } while( ((c = *filename) != '\0') && (n>0) ) { lcd.print(c); filename++; n--; } while(n--) lcd.print(' '); } static void lcd_implementation_drawmenu_sddirectory(uint8_t row, const char* pstr, const char* filename, char* longFilename) { char c; uint8_t n = LCD_WIDTH - 2; lcd.setCursor(0, row); lcd.print(' '); lcd.print(LCD_STR_FOLDER[0]); if (longFilename[0] != '\0') { filename = longFilename; longFilename[LCD_WIDTH-2] = '\0'; } while( ((c = *filename) != '\0') && (n>0) ) { lcd.print(c); filename++; n--; } while(n--) lcd.print(' '); } #define lcd_implementation_drawmenu_back_selected(row, pstr, data) lcd_implementation_drawmenu_generic(row, pstr, LCD_STR_UPLEVEL[0], LCD_STR_UPLEVEL[0]) #define lcd_implementation_drawmenu_back(row, pstr, data) lcd_implementation_drawmenu_generic(row, pstr, ' ', LCD_STR_UPLEVEL[0]) #define lcd_implementation_drawmenu_submenu_selected(row, pstr, data) lcd_implementation_drawmenu_generic(row, pstr, '>', LCD_STR_ARROW_RIGHT[0]) #define lcd_implementation_drawmenu_submenu(row, pstr, data) lcd_implementation_drawmenu_generic(row, pstr, ' ', LCD_STR_ARROW_RIGHT[0]) #define lcd_implementation_drawmenu_gcode_selected(row, pstr, gcode) lcd_implementation_drawmenu_generic(row, pstr, '>', ' ') #define lcd_implementation_drawmenu_gcode(row, pstr, gcode) lcd_implementation_drawmenu_generic(row, pstr, ' ', ' ') #define lcd_implementation_drawmenu_function_selected(row, pstr, data) lcd_implementation_drawmenu_generic(row, pstr, '>', ' ') #define lcd_implementation_drawmenu_function(row, pstr, data) lcd_implementation_drawmenu_generic(row, pstr, ' ', ' ') static void lcd_implementation_quick_feedback() { #ifdef LCD_USE_I2C_BUZZER #if !defined(LCD_FEEDBACK_FREQUENCY_HZ) || !defined(LCD_FEEDBACK_FREQUENCY_DURATION_MS) lcd_buzz(1000/6,100); #else lcd_buzz(LCD_FEEDBACK_FREQUENCY_DURATION_MS,LCD_FEEDBACK_FREQUENCY_HZ); #endif #elif defined(BEEPER) && BEEPER > -1 SET_OUTPUT(BEEPER); #if !defined(LCD_FEEDBACK_FREQUENCY_HZ) || !defined(LCD_FEEDBACK_FREQUENCY_DURATION_MS) for(int8_t i=0;i<10;i++) { WRITE(BEEPER,HIGH); delayMicroseconds(100); WRITE(BEEPER,LOW); delayMicroseconds(100); } #else for(int8_t i=0;i<(LCD_FEEDBACK_FREQUENCY_DURATION_MS / (1000 / LCD_FEEDBACK_FREQUENCY_HZ));i++) { WRITE(BEEPER,HIGH); delayMicroseconds(1000000 / LCD_FEEDBACK_FREQUENCY_HZ / 2); WRITE(BEEPER,LOW); delayMicroseconds(1000000 / LCD_FEEDBACK_FREQUENCY_HZ / 2); } #endif #endif } #ifdef LCD_HAS_STATUS_INDICATORS static void lcd_implementation_update_indicators() { #if defined(LCD_I2C_PANELOLU2) || defined(LCD_I2C_VIKI) //set the LEDS - referred to as backlights by the LiquidTWI2 library static uint8_t ledsprev = 0; uint8_t leds = 0; if (target_temperature_bed > 0) leds |= LED_A; if (target_temperature[0] > 0) leds |= LED_B; if (fanSpeed) leds |= LED_C; #if EXTRUDERS > 1 if (target_temperature[1] > 0) leds |= LED_C; #endif if (leds != ledsprev) { lcd.setBacklight(leds); ledsprev = leds; } #endif } #endif #ifdef LCD_HAS_SLOW_BUTTONS extern uint32_t blocking_enc; static uint8_t lcd_implementation_read_slow_buttons() { #ifdef LCD_I2C_TYPE_MCP23017 uint8_t slow_buttons; // Reading these buttons this is likely to be too slow to call inside interrupt context // so they are called during normal lcd_update slow_buttons = lcd.readButtons() << B_I2C_BTN_OFFSET; #if defined(LCD_I2C_VIKI) if(slow_buttons & (B_MI|B_RI)) { //LCD clicked if(blocking_enc > millis()) { slow_buttons &= ~(B_MI|B_RI); // Disable LCD clicked buttons if screen is updated } } #endif return slow_buttons; #endif } #endif #endif//ULTRA_LCD_IMPLEMENTATION_HITACHI_HD44780_H ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/ultralcd_implementation_hitachi_HD44780.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
9,573
```c++ /* planner.c - buffers movement commands and manages the acceleration profile plan Part of Grbl Grbl is free software: you can redistribute it and/or modify (at your option) any later version. Grbl is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the along with Grbl. If not, see <path_to_url */ /* The ring buffer implementation gleaned from the wiring_serial library by David A. Mellis. */ /* Reasoning behind the mathematics in this module (in the key of 'Mathematica'): s == speed, a == acceleration, t == time, d == distance Basic definitions: Speed[s_, a_, t_] := s + (a*t) Travel[s_, a_, t_] := Integrate[Speed[s, a, t], t] Distance to reach a specific speed with a constant acceleration: Solve[{Speed[s, a, t] == m, Travel[s, a, t] == d}, d, t] d -> (m^2 - s^2)/(2 a) --> estimate_acceleration_distance() Speed after a given distance of travel with constant acceleration: Solve[{Speed[s, a, t] == m, Travel[s, a, t] == d}, m, t] m -> Sqrt[2 a d + s^2] DestinationSpeed[s_, a_, d_] := Sqrt[2 a d + s^2] When to start braking (di) to reach a specified destionation speed (s2) after accelerating from initial speed s1 without ever stopping at a plateau: Solve[{DestinationSpeed[s1, a, di] == DestinationSpeed[s2, a, d - di]}, di] di -> (2 a d - s1^2 + s2^2)/(4 a) --> intersection_distance() IntersectionDistance[s1_, s2_, a_, d_] := (2 a d - s1^2 + s2^2)/(4 a) */ #include "Marlin.h" #include "planner.h" #include "stepper.h" #include "temperature.h" #include "ultralcd.h" #include "language.h" //=========================================================================== //=============================public variables ============================ //=========================================================================== unsigned long minsegmenttime; float max_feedrate[NUM_AXIS]; // set the max speeds float axis_steps_per_unit[NUM_AXIS]; unsigned long max_acceleration_units_per_sq_second[NUM_AXIS]; // Use M201 to override by software float minimumfeedrate; float acceleration; // Normal acceleration mm/s^2 THIS IS THE DEFAULT ACCELERATION for all moves. M204 SXXXX float retract_acceleration; // mm/s^2 filament pull-pack and push-forward while standing still in the other axis M204 TXXXX float max_xy_jerk; //speed than can be stopped at once, if i understand correctly. float max_z_jerk; float max_e_jerk; float mintravelfeedrate; unsigned long axis_steps_per_sqr_second[NUM_AXIS]; #ifdef ENABLE_AUTO_BED_LEVELING // this holds the required transform to compensate for bed level matrix_3x3 plan_bed_level_matrix = { 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, }; #endif // #ifdef ENABLE_AUTO_BED_LEVELING // The current position of the tool in absolute steps long position[NUM_AXIS]; //rescaled from extern when axis_steps_per_unit are changed by gcode static float previous_speed[NUM_AXIS]; // Speed of previous path line segment static float previous_nominal_speed; // Nominal speed of previous path line segment #ifdef AUTOTEMP float autotemp_max=250; float autotemp_min=210; float autotemp_factor=0.1; bool autotemp_enabled=false; #endif unsigned char g_uc_extruder_last_move[3] = {0,0,0}; //=========================================================================== //=================semi-private variables, used in inline functions ===== //=========================================================================== block_t block_buffer[BLOCK_BUFFER_SIZE]; // A ring buffer for motion instfructions volatile unsigned char block_buffer_head; // Index of the next block to be pushed volatile unsigned char block_buffer_tail; // Index of the block to process now //=========================================================================== //=============================private variables ============================ //=========================================================================== #ifdef PREVENT_DANGEROUS_EXTRUDE float extrude_min_temp=EXTRUDE_MINTEMP; #endif #ifdef XY_FREQUENCY_LIMIT #define MAX_FREQ_TIME (1000000.0/XY_FREQUENCY_LIMIT) // Used for the frequency limit static unsigned char old_direction_bits = 0; // Old direction bits. Used for speed calculations static long x_segment_time[3]={MAX_FREQ_TIME + 1,0,0}; // Segment times (in us). Used for speed calculations static long y_segment_time[3]={MAX_FREQ_TIME + 1,0,0}; #endif #ifdef FILAMENT_SENSOR static char meas_sample; //temporary variable to hold filament measurement sample #endif // Returns the index of the next block in the ring buffer // NOTE: Removed modulo (%) operator, which uses an expensive divide and multiplication. static int8_t next_block_index(int8_t block_index) { block_index++; if (block_index == BLOCK_BUFFER_SIZE) { block_index = 0; } return(block_index); } // Returns the index of the previous block in the ring buffer static int8_t prev_block_index(int8_t block_index) { if (block_index == 0) { block_index = BLOCK_BUFFER_SIZE; } block_index--; return(block_index); } //=========================================================================== //=============================functions ============================ //=========================================================================== // Calculates the distance (not time) it takes to accelerate from initial_rate to target_rate using the // given acceleration: FORCE_INLINE float estimate_acceleration_distance(float initial_rate, float target_rate, float acceleration) { if (acceleration!=0) { return((target_rate*target_rate-initial_rate*initial_rate)/ (2.0*acceleration)); } else { return 0.0; // acceleration was 0, set acceleration distance to 0 } } // This function gives you the point at which you must start braking (at the rate of -acceleration) if // you started at speed initial_rate and accelerated until this point and want to end at the final_rate after // a total travel of distance. This can be used to compute the intersection point between acceleration and // deceleration in the cases where the trapezoid has no plateau (i.e. never reaches maximum speed) FORCE_INLINE float intersection_distance(float initial_rate, float final_rate, float acceleration, float distance) { if (acceleration!=0) { return((2.0*acceleration*distance-initial_rate*initial_rate+final_rate*final_rate)/ (4.0*acceleration) ); } else { return 0.0; // acceleration was 0, set intersection distance to 0 } } // Calculates trapezoid parameters so that the entry- and exit-speed is compensated by the provided factors. void calculate_trapezoid_for_block(block_t *block, float entry_factor, float exit_factor) { unsigned long initial_rate = ceil(block->nominal_rate*entry_factor); // (step/min) unsigned long final_rate = ceil(block->nominal_rate*exit_factor); // (step/min) // Limit minimal step rate (Otherwise the timer will overflow.) if(initial_rate <120) { initial_rate=120; } if(final_rate < 120) { final_rate=120; } long acceleration = block->acceleration_st; int32_t accelerate_steps = ceil(estimate_acceleration_distance(initial_rate, block->nominal_rate, acceleration)); int32_t decelerate_steps = floor(estimate_acceleration_distance(block->nominal_rate, final_rate, -acceleration)); // Calculate the size of Plateau of Nominal Rate. int32_t plateau_steps = block->step_event_count-accelerate_steps-decelerate_steps; // Is the Plateau of Nominal Rate smaller than nothing? That means no cruising, and we will // have to use intersection_distance() to calculate when to abort acceleration and start braking // in order to reach the final_rate exactly at the end of this block. if (plateau_steps < 0) { accelerate_steps = ceil(intersection_distance(initial_rate, final_rate, acceleration, block->step_event_count)); accelerate_steps = max(accelerate_steps,0); // Check limits due to numerical round-off accelerate_steps = min((uint32_t)accelerate_steps,block->step_event_count);//(We can cast here to unsigned, because the above line ensures that we are above zero) plateau_steps = 0; } #ifdef ADVANCE volatile long initial_advance = block->advance*entry_factor*entry_factor; volatile long final_advance = block->advance*exit_factor*exit_factor; #endif // ADVANCE // block->accelerate_until = accelerate_steps; // block->decelerate_after = accelerate_steps+plateau_steps; CRITICAL_SECTION_START; // Fill variables used by the stepper in a critical section if(block->busy == false) { // Don't update variables if block is busy. block->accelerate_until = accelerate_steps; block->decelerate_after = accelerate_steps+plateau_steps; block->initial_rate = initial_rate; block->final_rate = final_rate; #ifdef ADVANCE block->initial_advance = initial_advance; block->final_advance = final_advance; #endif //ADVANCE } CRITICAL_SECTION_END; } // Calculates the maximum allowable speed at this point when you must be able to reach target_velocity using the // acceleration within the allotted distance. FORCE_INLINE float max_allowable_speed(float acceleration, float target_velocity, float distance) { return sqrt(target_velocity*target_velocity-2*acceleration*distance); } // "Junction jerk" in this context is the immediate change in speed at the junction of two blocks. // This method will calculate the junction jerk as the euclidean distance between the nominal // velocities of the respective blocks. //inline float junction_jerk(block_t *before, block_t *after) { // return sqrt( // pow((before->speed_x-after->speed_x), 2)+pow((before->speed_y-after->speed_y), 2)); //} // The kernel called by planner_recalculate() when scanning the plan from last to first entry. void planner_reverse_pass_kernel(block_t *previous, block_t *current, block_t *next) { if(!current) { return; } if (next) { // If entry speed is already at the maximum entry speed, no need to recheck. Block is cruising. // If not, block in state of acceleration or deceleration. Reset entry speed to maximum and // check for maximum allowable speed reductions to ensure maximum possible planned speed. if (current->entry_speed != current->max_entry_speed) { // If nominal length true, max junction speed is guaranteed to be reached. Only compute // for max allowable speed if block is decelerating and nominal length is false. if ((!current->nominal_length_flag) && (current->max_entry_speed > next->entry_speed)) { current->entry_speed = min( current->max_entry_speed, max_allowable_speed(-current->acceleration,next->entry_speed,current->millimeters)); } else { current->entry_speed = current->max_entry_speed; } current->recalculate_flag = true; } } // Skip last block. Already initialized and set for recalculation. } // planner_recalculate() needs to go over the current plan twice. Once in reverse and once forward. This // implements the reverse pass. void planner_reverse_pass() { uint8_t block_index = block_buffer_head; //Make a local copy of block_buffer_tail, because the interrupt can alter it CRITICAL_SECTION_START; unsigned char tail = block_buffer_tail; CRITICAL_SECTION_END if(((block_buffer_head-tail + BLOCK_BUFFER_SIZE) & (BLOCK_BUFFER_SIZE - 1)) > 3) { block_index = (block_buffer_head - 3) & (BLOCK_BUFFER_SIZE - 1); block_t *block[3] = { NULL, NULL, NULL }; while(block_index != tail) { block_index = prev_block_index(block_index); block[2]= block[1]; block[1]= block[0]; block[0] = &block_buffer[block_index]; planner_reverse_pass_kernel(block[0], block[1], block[2]); } } } // The kernel called by planner_recalculate() when scanning the plan from first to last entry. void planner_forward_pass_kernel(block_t *previous, block_t *current, block_t *next) { if(!previous) { return; } // If the previous block is an acceleration block, but it is not long enough to complete the // full speed change within the block, we need to adjust the entry speed accordingly. Entry // speeds have already been reset, maximized, and reverse planned by reverse planner. // If nominal length is true, max junction speed is guaranteed to be reached. No need to recheck. if (!previous->nominal_length_flag) { if (previous->entry_speed < current->entry_speed) { double entry_speed = min( current->entry_speed, max_allowable_speed(-previous->acceleration,previous->entry_speed,previous->millimeters) ); // Check for junction speed change if (current->entry_speed != entry_speed) { current->entry_speed = entry_speed; current->recalculate_flag = true; } } } } // planner_recalculate() needs to go over the current plan twice. Once in reverse and once forward. This // implements the forward pass. void planner_forward_pass() { uint8_t block_index = block_buffer_tail; block_t *block[3] = { NULL, NULL, NULL }; while(block_index != block_buffer_head) { block[0] = block[1]; block[1] = block[2]; block[2] = &block_buffer[block_index]; planner_forward_pass_kernel(block[0],block[1],block[2]); block_index = next_block_index(block_index); } planner_forward_pass_kernel(block[1], block[2], NULL); } // Recalculates the trapezoid speed profiles for all blocks in the plan according to the // entry_factor for each junction. Must be called by planner_recalculate() after // updating the blocks. void planner_recalculate_trapezoids() { int8_t block_index = block_buffer_tail; block_t *current; block_t *next = NULL; while(block_index != block_buffer_head) { current = next; next = &block_buffer[block_index]; if (current) { // Recalculate if current block entry or exit junction speed has changed. if (current->recalculate_flag || next->recalculate_flag) { // NOTE: Entry and exit factors always > 0 by all previous logic operations. calculate_trapezoid_for_block(current, current->entry_speed/current->nominal_speed, next->entry_speed/current->nominal_speed); current->recalculate_flag = false; // Reset current only to ensure next trapezoid is computed } } block_index = next_block_index( block_index ); } // Last/newest block in buffer. Exit speed is set with MINIMUM_PLANNER_SPEED. Always recalculated. if(next != NULL) { calculate_trapezoid_for_block(next, next->entry_speed/next->nominal_speed, MINIMUM_PLANNER_SPEED/next->nominal_speed); next->recalculate_flag = false; } } // Recalculates the motion plan according to the following algorithm: // // 1. Go over every block in reverse order and calculate a junction speed reduction (i.e. block_t.entry_factor) // so that: // a. The junction jerk is within the set limit // b. No speed reduction within one block requires faster deceleration than the one, true constant // acceleration. // 2. Go over every block in chronological order and dial down junction speed reduction values if // a. The speed increase within one block would require faster accelleration than the one, true // constant acceleration. // // When these stages are complete all blocks have an entry_factor that will allow all speed changes to // be performed using only the one, true constant acceleration, and where no junction jerk is jerkier than // the set limit. Finally it will: // // 3. Recalculate trapezoids for all blocks. void planner_recalculate() { planner_reverse_pass(); planner_forward_pass(); planner_recalculate_trapezoids(); } void plan_init() { block_buffer_head = 0; block_buffer_tail = 0; memset(position, 0, sizeof(position)); // clear position previous_speed[0] = 0.0; previous_speed[1] = 0.0; previous_speed[2] = 0.0; previous_speed[3] = 0.0; previous_nominal_speed = 0.0; } #ifdef AUTOTEMP void getHighESpeed() { static float oldt=0; if(!autotemp_enabled){ return; } if(degTargetHotend0()+2<autotemp_min) { //probably temperature set to zero. return; //do nothing } float high=0.0; uint8_t block_index = block_buffer_tail; while(block_index != block_buffer_head) { if((block_buffer[block_index].steps_x != 0) || (block_buffer[block_index].steps_y != 0) || (block_buffer[block_index].steps_z != 0)) { float se=(float(block_buffer[block_index].steps_e)/float(block_buffer[block_index].step_event_count))*block_buffer[block_index].nominal_speed; //se; mm/sec; if(se>high) { high=se; } } block_index = (block_index+1) & (BLOCK_BUFFER_SIZE - 1); } float g=autotemp_min+high*autotemp_factor; float t=g; if(t<autotemp_min) t=autotemp_min; if(t>autotemp_max) t=autotemp_max; if(oldt>t) { t=AUTOTEMP_OLDWEIGHT*oldt+(1-AUTOTEMP_OLDWEIGHT)*t; } oldt=t; setTargetHotend0(t); } #endif void check_axes_activity() { unsigned char x_active = 0; unsigned char y_active = 0; unsigned char z_active = 0; unsigned char e_active = 0; unsigned char tail_fan_speed = fanSpeed; #ifdef BARICUDA unsigned char tail_valve_pressure = ValvePressure; unsigned char tail_e_to_p_pressure = EtoPPressure; #endif block_t *block; if(block_buffer_tail != block_buffer_head) { uint8_t block_index = block_buffer_tail; tail_fan_speed = block_buffer[block_index].fan_speed; #ifdef BARICUDA tail_valve_pressure = block_buffer[block_index].valve_pressure; tail_e_to_p_pressure = block_buffer[block_index].e_to_p_pressure; #endif while(block_index != block_buffer_head) { block = &block_buffer[block_index]; if(block->steps_x != 0) x_active++; if(block->steps_y != 0) y_active++; if(block->steps_z != 0) z_active++; if(block->steps_e != 0) e_active++; block_index = (block_index+1) & (BLOCK_BUFFER_SIZE - 1); } } if((DISABLE_X) && (x_active == 0)) disable_x(); if((DISABLE_Y) && (y_active == 0)) disable_y(); if((DISABLE_Z) && (z_active == 0)) disable_z(); if((DISABLE_E) && (e_active == 0)) { disable_e0(); disable_e1(); disable_e2(); } #if defined(FAN_PIN) && FAN_PIN > -1 #ifdef FAN_KICKSTART_TIME static unsigned long fan_kick_end; if (tail_fan_speed) { if (fan_kick_end == 0) { // Just starting up fan - run at full power. fan_kick_end = millis() + FAN_KICKSTART_TIME; tail_fan_speed = 255; } else if (fan_kick_end > millis()) // Fan still spinning up. tail_fan_speed = 255; } else { fan_kick_end = 0; } #endif//FAN_KICKSTART_TIME #ifdef FAN_SOFT_PWM fanSpeedSoftPwm = tail_fan_speed; #else analogWrite(FAN_PIN,tail_fan_speed); #endif//!FAN_SOFT_PWM #endif//FAN_PIN > -1 #ifdef AUTOTEMP getHighESpeed(); #endif #ifdef BARICUDA #if defined(HEATER_1_PIN) && HEATER_1_PIN > -1 analogWrite(HEATER_1_PIN,tail_valve_pressure); #endif #if defined(HEATER_2_PIN) && HEATER_2_PIN > -1 analogWrite(HEATER_2_PIN,tail_e_to_p_pressure); #endif #endif } float junction_deviation = 0.1; // Add a new linear movement to the buffer. steps_x, _y and _z is the absolute position in // mm. Microseconds specify how many microseconds the move should take to perform. To aid acceleration // calculation the caller must also provide the physical length of the line in millimeters. #ifdef ENABLE_AUTO_BED_LEVELING void plan_buffer_line(float x, float y, float z, const float &e, float feed_rate, const uint8_t &extruder) #else void plan_buffer_line(const float &x, const float &y, const float &z, const float &e, float feed_rate, const uint8_t &extruder) #endif //ENABLE_AUTO_BED_LEVELING { // Calculate the buffer head after we push this byte int next_buffer_head = next_block_index(block_buffer_head); // If the buffer is full: good! That means we are well ahead of the robot. // Rest here until there is room in the buffer. while(block_buffer_tail == next_buffer_head) { manage_heater(); manage_inactivity(); lcd_update(); } #ifdef ENABLE_AUTO_BED_LEVELING apply_rotation_xyz(plan_bed_level_matrix, x, y, z); #endif // ENABLE_AUTO_BED_LEVELING // The target position of the tool in absolute steps // Calculate target position in absolute steps //this should be done after the wait, because otherwise a M92 code within the gcode disrupts this calculation somehow long target[4]; target[X_AXIS] = lround(x*axis_steps_per_unit[X_AXIS]); target[Y_AXIS] = lround(y*axis_steps_per_unit[Y_AXIS]); target[Z_AXIS] = lround(z*axis_steps_per_unit[Z_AXIS]); target[E_AXIS] = lround(e*axis_steps_per_unit[E_AXIS]); #ifdef PREVENT_DANGEROUS_EXTRUDE if(target[E_AXIS]!=position[E_AXIS]) { if(degHotend(active_extruder)<extrude_min_temp) { position[E_AXIS]=target[E_AXIS]; //behave as if the move really took place, but ignore E part SERIAL_ECHO_START; SERIAL_ECHOLNPGM(MSG_ERR_COLD_EXTRUDE_STOP); } #ifdef PREVENT_LENGTHY_EXTRUDE if(labs(target[E_AXIS]-position[E_AXIS])>axis_steps_per_unit[E_AXIS]*EXTRUDE_MAXLENGTH) { position[E_AXIS]=target[E_AXIS]; //behave as if the move really took place, but ignore E part SERIAL_ECHO_START; SERIAL_ECHOLNPGM(MSG_ERR_LONG_EXTRUDE_STOP); } #endif } #endif // Prepare to set up new block block_t *block = &block_buffer[block_buffer_head]; // Mark block as not busy (Not executed by the stepper interrupt) block->busy = false; // Number of steps for each axis #ifndef COREXY // default non-h-bot planning block->steps_x = labs(target[X_AXIS]-position[X_AXIS]); block->steps_y = labs(target[Y_AXIS]-position[Y_AXIS]); #else // corexy planning // these equations follow the form of the dA and dB equations on path_to_url block->steps_x = labs((target[X_AXIS]-position[X_AXIS]) + (target[Y_AXIS]-position[Y_AXIS])); block->steps_y = labs((target[X_AXIS]-position[X_AXIS]) - (target[Y_AXIS]-position[Y_AXIS])); #endif block->steps_z = labs(target[Z_AXIS]-position[Z_AXIS]); block->steps_e = labs(target[E_AXIS]-position[E_AXIS]); block->steps_e *= volumetric_multiplier[active_extruder]; block->steps_e *= extrudemultiply; block->steps_e /= 100; block->step_event_count = max(block->steps_x, max(block->steps_y, max(block->steps_z, block->steps_e))); // Bail if this is a zero-length block if (block->step_event_count <= dropsegments) { return; } block->fan_speed = fanSpeed; #ifdef BARICUDA block->valve_pressure = ValvePressure; block->e_to_p_pressure = EtoPPressure; #endif // Compute direction bits for this block block->direction_bits = 0; #ifndef COREXY if (target[X_AXIS] < position[X_AXIS]) { block->direction_bits |= (1<<X_AXIS); } if (target[Y_AXIS] < position[Y_AXIS]) { block->direction_bits |= (1<<Y_AXIS); } #else if ((target[X_AXIS]-position[X_AXIS]) + (target[Y_AXIS]-position[Y_AXIS]) < 0) { block->direction_bits |= (1<<X_AXIS); } if ((target[X_AXIS]-position[X_AXIS]) - (target[Y_AXIS]-position[Y_AXIS]) < 0) { block->direction_bits |= (1<<Y_AXIS); } #endif if (target[Z_AXIS] < position[Z_AXIS]) { block->direction_bits |= (1<<Z_AXIS); } if (target[E_AXIS] < position[E_AXIS]) { block->direction_bits |= (1<<E_AXIS); } block->active_extruder = extruder; //enable active axes #ifdef COREXY if((block->steps_x != 0) || (block->steps_y != 0)) { enable_x(); enable_y(); } #else if(block->steps_x != 0) enable_x(); if(block->steps_y != 0) enable_y(); #endif #ifndef Z_LATE_ENABLE if(block->steps_z != 0) enable_z(); #endif // Enable extruder(s) if(block->steps_e != 0) { if (DISABLE_INACTIVE_EXTRUDER) //enable only selected extruder { if(g_uc_extruder_last_move[0] > 0) g_uc_extruder_last_move[0]--; if(g_uc_extruder_last_move[1] > 0) g_uc_extruder_last_move[1]--; if(g_uc_extruder_last_move[2] > 0) g_uc_extruder_last_move[2]--; switch(extruder) { case 0: enable_e0(); g_uc_extruder_last_move[0] = BLOCK_BUFFER_SIZE*2; if(g_uc_extruder_last_move[1] == 0) disable_e1(); if(g_uc_extruder_last_move[2] == 0) disable_e2(); break; case 1: enable_e1(); g_uc_extruder_last_move[1] = BLOCK_BUFFER_SIZE*2; if(g_uc_extruder_last_move[0] == 0) disable_e0(); if(g_uc_extruder_last_move[2] == 0) disable_e2(); break; case 2: enable_e2(); g_uc_extruder_last_move[2] = BLOCK_BUFFER_SIZE*2; if(g_uc_extruder_last_move[0] == 0) disable_e0(); if(g_uc_extruder_last_move[1] == 0) disable_e1(); break; } } else //enable all { enable_e0(); enable_e1(); enable_e2(); } } if (block->steps_e == 0) { if(feed_rate<mintravelfeedrate) feed_rate=mintravelfeedrate; } else { if(feed_rate<minimumfeedrate) feed_rate=minimumfeedrate; } /* This part of the code calculates the total length of the movement. For cartesian bots, the X_AXIS is the real X movement and same for Y_AXIS. But for corexy bots, that is not true. The "X_AXIS" and "Y_AXIS" motors (that should be named to A_AXIS and B_AXIS) cannot be used for X and Y length, because A=X+Y and B=X-Y. So we need to create other 2 "AXIS", named X_HEAD and Y_HEAD, meaning the real displacement of the Head. Having the real displacement of the head, we can calculate the total movement length and apply the desired speed. */ #ifndef COREXY float delta_mm[4]; delta_mm[X_AXIS] = (target[X_AXIS]-position[X_AXIS])/axis_steps_per_unit[X_AXIS]; delta_mm[Y_AXIS] = (target[Y_AXIS]-position[Y_AXIS])/axis_steps_per_unit[Y_AXIS]; #else float delta_mm[6]; delta_mm[X_HEAD] = (target[X_AXIS]-position[X_AXIS])/axis_steps_per_unit[X_AXIS]; delta_mm[Y_HEAD] = (target[Y_AXIS]-position[Y_AXIS])/axis_steps_per_unit[Y_AXIS]; delta_mm[X_AXIS] = ((target[X_AXIS]-position[X_AXIS]) + (target[Y_AXIS]-position[Y_AXIS]))/axis_steps_per_unit[X_AXIS]; delta_mm[Y_AXIS] = ((target[X_AXIS]-position[X_AXIS]) - (target[Y_AXIS]-position[Y_AXIS]))/axis_steps_per_unit[Y_AXIS]; #endif delta_mm[Z_AXIS] = (target[Z_AXIS]-position[Z_AXIS])/axis_steps_per_unit[Z_AXIS]; delta_mm[E_AXIS] = ((target[E_AXIS]-position[E_AXIS])/axis_steps_per_unit[E_AXIS])*volumetric_multiplier[active_extruder]*extrudemultiply/100.0; if ( block->steps_x <=dropsegments && block->steps_y <=dropsegments && block->steps_z <=dropsegments ) { block->millimeters = fabs(delta_mm[E_AXIS]); } else { #ifndef COREXY block->millimeters = sqrt(square(delta_mm[X_AXIS]) + square(delta_mm[Y_AXIS]) + square(delta_mm[Z_AXIS])); #else block->millimeters = sqrt(square(delta_mm[X_HEAD]) + square(delta_mm[Y_HEAD]) + square(delta_mm[Z_AXIS])); #endif } float inverse_millimeters = 1.0/block->millimeters; // Inverse millimeters to remove multiple divides // Calculate speed in mm/second for each axis. No divide by zero due to previous checks. float inverse_second = feed_rate * inverse_millimeters; int moves_queued=(block_buffer_head-block_buffer_tail + BLOCK_BUFFER_SIZE) & (BLOCK_BUFFER_SIZE - 1); // slow down when de buffer starts to empty, rather than wait at the corner for a buffer refill #ifdef OLD_SLOWDOWN if(moves_queued < (BLOCK_BUFFER_SIZE * 0.5) && moves_queued > 1) feed_rate = feed_rate*moves_queued / (BLOCK_BUFFER_SIZE * 0.5); #endif #ifdef SLOWDOWN // segment time im micro seconds unsigned long segment_time = lround(1000000.0/inverse_second); if ((moves_queued > 1) && (moves_queued < (BLOCK_BUFFER_SIZE * 0.5))) { if (segment_time < minsegmenttime) { // buffer is draining, add extra time. The amount of time added increases if the buffer is still emptied more. inverse_second=1000000.0/(segment_time+lround(2*(minsegmenttime-segment_time)/moves_queued)); #ifdef XY_FREQUENCY_LIMIT segment_time = lround(1000000.0/inverse_second); #endif } } #endif // END OF SLOW DOWN SECTION block->nominal_speed = block->millimeters * inverse_second; // (mm/sec) Always > 0 block->nominal_rate = ceil(block->step_event_count * inverse_second); // (step/sec) Always > 0 #ifdef FILAMENT_SENSOR //FMM update ring buffer used for delay with filament measurements if((extruder==FILAMENT_SENSOR_EXTRUDER_NUM) && (delay_index2 > -1)) //only for extruder with filament sensor and if ring buffer is initialized { delay_dist = delay_dist + delta_mm[E_AXIS]; //increment counter with next move in e axis while (delay_dist >= (10*(MAX_MEASUREMENT_DELAY+1))) //check if counter is over max buffer size in mm delay_dist = delay_dist - 10*(MAX_MEASUREMENT_DELAY+1); //loop around the buffer while (delay_dist<0) delay_dist = delay_dist + 10*(MAX_MEASUREMENT_DELAY+1); //loop around the buffer delay_index1=delay_dist/10.0; //calculate index //ensure the number is within range of the array after converting from floating point if(delay_index1<0) delay_index1=0; else if (delay_index1>MAX_MEASUREMENT_DELAY) delay_index1=MAX_MEASUREMENT_DELAY; if(delay_index1 != delay_index2) //moved index { meas_sample=widthFil_to_size_ratio()-100; //subtract off 100 to reduce magnitude - to store in a signed char } while( delay_index1 != delay_index2) { delay_index2 = delay_index2 + 1; if(delay_index2>MAX_MEASUREMENT_DELAY) delay_index2=delay_index2-(MAX_MEASUREMENT_DELAY+1); //loop around buffer when incrementing if(delay_index2<0) delay_index2=0; else if (delay_index2>MAX_MEASUREMENT_DELAY) delay_index2=MAX_MEASUREMENT_DELAY; measurement_delay[delay_index2]=meas_sample; } } #endif // Calculate and limit speed in mm/sec for each axis float current_speed[4]; float speed_factor = 1.0; //factor <=1 do decrease speed for(int i=0; i < 4; i++) { current_speed[i] = delta_mm[i] * inverse_second; if(fabs(current_speed[i]) > max_feedrate[i]) speed_factor = min(speed_factor, max_feedrate[i] / fabs(current_speed[i])); } // Max segement time in us. #ifdef XY_FREQUENCY_LIMIT #define MAX_FREQ_TIME (1000000.0/XY_FREQUENCY_LIMIT) // Check and limit the xy direction change frequency unsigned char direction_change = block->direction_bits ^ old_direction_bits; old_direction_bits = block->direction_bits; segment_time = lround((float)segment_time / speed_factor); if((direction_change & (1<<X_AXIS)) == 0) { x_segment_time[0] += segment_time; } else { x_segment_time[2] = x_segment_time[1]; x_segment_time[1] = x_segment_time[0]; x_segment_time[0] = segment_time; } if((direction_change & (1<<Y_AXIS)) == 0) { y_segment_time[0] += segment_time; } else { y_segment_time[2] = y_segment_time[1]; y_segment_time[1] = y_segment_time[0]; y_segment_time[0] = segment_time; } long max_x_segment_time = max(x_segment_time[0], max(x_segment_time[1], x_segment_time[2])); long max_y_segment_time = max(y_segment_time[0], max(y_segment_time[1], y_segment_time[2])); long min_xy_segment_time =min(max_x_segment_time, max_y_segment_time); if(min_xy_segment_time < MAX_FREQ_TIME) speed_factor = min(speed_factor, speed_factor * (float)min_xy_segment_time / (float)MAX_FREQ_TIME); #endif // Correct the speed if( speed_factor < 1.0) { for(unsigned char i=0; i < 4; i++) { current_speed[i] *= speed_factor; } block->nominal_speed *= speed_factor; block->nominal_rate *= speed_factor; } // Compute and limit the acceleration rate for the trapezoid generator. float steps_per_mm = block->step_event_count/block->millimeters; if(block->steps_x == 0 && block->steps_y == 0 && block->steps_z == 0) { block->acceleration_st = ceil(retract_acceleration * steps_per_mm); // convert to: acceleration steps/sec^2 } else { block->acceleration_st = ceil(acceleration * steps_per_mm); // convert to: acceleration steps/sec^2 // Limit acceleration per axis if(((float)block->acceleration_st * (float)block->steps_x / (float)block->step_event_count) > axis_steps_per_sqr_second[X_AXIS]) block->acceleration_st = axis_steps_per_sqr_second[X_AXIS]; if(((float)block->acceleration_st * (float)block->steps_y / (float)block->step_event_count) > axis_steps_per_sqr_second[Y_AXIS]) block->acceleration_st = axis_steps_per_sqr_second[Y_AXIS]; if(((float)block->acceleration_st * (float)block->steps_e / (float)block->step_event_count) > axis_steps_per_sqr_second[E_AXIS]) block->acceleration_st = axis_steps_per_sqr_second[E_AXIS]; if(((float)block->acceleration_st * (float)block->steps_z / (float)block->step_event_count ) > axis_steps_per_sqr_second[Z_AXIS]) block->acceleration_st = axis_steps_per_sqr_second[Z_AXIS]; } block->acceleration = block->acceleration_st / steps_per_mm; block->acceleration_rate = (long)((float)block->acceleration_st * (16777216.0 / (F_CPU / 8.0))); #if 0 // Use old jerk for now // Compute path unit vector double unit_vec[3]; unit_vec[X_AXIS] = delta_mm[X_AXIS]*inverse_millimeters; unit_vec[Y_AXIS] = delta_mm[Y_AXIS]*inverse_millimeters; unit_vec[Z_AXIS] = delta_mm[Z_AXIS]*inverse_millimeters; // Compute maximum allowable entry speed at junction by centripetal acceleration approximation. // Let a circle be tangent to both previous and current path line segments, where the junction // deviation is defined as the distance from the junction to the closest edge of the circle, // colinear with the circle center. The circular segment joining the two paths represents the // path of centripetal acceleration. Solve for max velocity based on max acceleration about the // radius of the circle, defined indirectly by junction deviation. This may be also viewed as // path width or max_jerk in the previous grbl version. This approach does not actually deviate // from path, but used as a robust way to compute cornering speeds, as it takes into account the // nonlinearities of both the junction angle and junction velocity. double vmax_junction = MINIMUM_PLANNER_SPEED; // Set default max junction speed // Skip first block or when previous_nominal_speed is used as a flag for homing and offset cycles. if ((block_buffer_head != block_buffer_tail) && (previous_nominal_speed > 0.0)) { // Compute cosine of angle between previous and current path. (prev_unit_vec is negative) // NOTE: Max junction velocity is computed without sin() or acos() by trig half angle identity. double cos_theta = - previous_unit_vec[X_AXIS] * unit_vec[X_AXIS] - previous_unit_vec[Y_AXIS] * unit_vec[Y_AXIS] - previous_unit_vec[Z_AXIS] * unit_vec[Z_AXIS] ; // Skip and use default max junction speed for 0 degree acute junction. if (cos_theta < 0.95) { vmax_junction = min(previous_nominal_speed,block->nominal_speed); // Skip and avoid divide by zero for straight junctions at 180 degrees. Limit to min() of nominal speeds. if (cos_theta > -0.95) { // Compute maximum junction velocity based on maximum acceleration and junction deviation double sin_theta_d2 = sqrt(0.5*(1.0-cos_theta)); // Trig half angle identity. Always positive. vmax_junction = min(vmax_junction, sqrt(block->acceleration * junction_deviation * sin_theta_d2/(1.0-sin_theta_d2)) ); } } } #endif // Start with a safe speed float vmax_junction = max_xy_jerk/2; float vmax_junction_factor = 1.0; if(fabs(current_speed[Z_AXIS]) > max_z_jerk/2) vmax_junction = min(vmax_junction, max_z_jerk/2); if(fabs(current_speed[E_AXIS]) > max_e_jerk/2) vmax_junction = min(vmax_junction, max_e_jerk/2); vmax_junction = min(vmax_junction, block->nominal_speed); float safe_speed = vmax_junction; if ((moves_queued > 1) && (previous_nominal_speed > 0.0001)) { float jerk = sqrt(pow((current_speed[X_AXIS]-previous_speed[X_AXIS]), 2)+pow((current_speed[Y_AXIS]-previous_speed[Y_AXIS]), 2)); // if((fabs(previous_speed[X_AXIS]) > 0.0001) || (fabs(previous_speed[Y_AXIS]) > 0.0001)) { vmax_junction = block->nominal_speed; // } if (jerk > max_xy_jerk) { vmax_junction_factor = (max_xy_jerk/jerk); } if(fabs(current_speed[Z_AXIS] - previous_speed[Z_AXIS]) > max_z_jerk) { vmax_junction_factor= min(vmax_junction_factor, (max_z_jerk/fabs(current_speed[Z_AXIS] - previous_speed[Z_AXIS]))); } if(fabs(current_speed[E_AXIS] - previous_speed[E_AXIS]) > max_e_jerk) { vmax_junction_factor = min(vmax_junction_factor, (max_e_jerk/fabs(current_speed[E_AXIS] - previous_speed[E_AXIS]))); } vmax_junction = min(previous_nominal_speed, vmax_junction * vmax_junction_factor); // Limit speed to max previous speed } block->max_entry_speed = vmax_junction; // Initialize block entry speed. Compute based on deceleration to user-defined MINIMUM_PLANNER_SPEED. double v_allowable = max_allowable_speed(-block->acceleration,MINIMUM_PLANNER_SPEED,block->millimeters); block->entry_speed = min(vmax_junction, v_allowable); // Initialize planner efficiency flags // Set flag if block will always reach maximum junction speed regardless of entry/exit speeds. // If a block can de/ac-celerate from nominal speed to zero within the length of the block, then // the current block and next block junction speeds are guaranteed to always be at their maximum // junction speeds in deceleration and acceleration, respectively. This is due to how the current // block nominal speed limits both the current and next maximum junction speeds. Hence, in both // the reverse and forward planners, the corresponding block junction speed will always be at the // the maximum junction speed and may always be ignored for any speed reduction checks. if (block->nominal_speed <= v_allowable) { block->nominal_length_flag = true; } else { block->nominal_length_flag = false; } block->recalculate_flag = true; // Always calculate trapezoid for new block // Update previous path unit_vector and nominal speed memcpy(previous_speed, current_speed, sizeof(previous_speed)); // previous_speed[] = current_speed[] previous_nominal_speed = block->nominal_speed; #ifdef ADVANCE // Calculate advance rate if((block->steps_e == 0) || (block->steps_x == 0 && block->steps_y == 0 && block->steps_z == 0)) { block->advance_rate = 0; block->advance = 0; } else { long acc_dist = estimate_acceleration_distance(0, block->nominal_rate, block->acceleration_st); float advance = (STEPS_PER_CUBIC_MM_E * EXTRUDER_ADVANCE_K) * (current_speed[E_AXIS] * current_speed[E_AXIS] * EXTRUSION_AREA * EXTRUSION_AREA)*256; block->advance = advance; if(acc_dist == 0) { block->advance_rate = 0; } else { block->advance_rate = advance / (float)acc_dist; } } /* SERIAL_ECHO_START; SERIAL_ECHOPGM("advance :"); SERIAL_ECHO(block->advance/256.0); SERIAL_ECHOPGM("advance rate :"); SERIAL_ECHOLN(block->advance_rate/256.0); */ #endif // ADVANCE calculate_trapezoid_for_block(block, block->entry_speed/block->nominal_speed, safe_speed/block->nominal_speed); // Move buffer head block_buffer_head = next_buffer_head; // Update position memcpy(position, target, sizeof(target)); // position[] = target[] planner_recalculate(); st_wake_up(); } #ifdef ENABLE_AUTO_BED_LEVELING vector_3 plan_get_position() { vector_3 position = vector_3(st_get_position_mm(X_AXIS), st_get_position_mm(Y_AXIS), st_get_position_mm(Z_AXIS)); //position.debug("in plan_get position"); //plan_bed_level_matrix.debug("in plan_get bed_level"); matrix_3x3 inverse = matrix_3x3::transpose(plan_bed_level_matrix); //inverse.debug("in plan_get inverse"); position.apply_rotation(inverse); //position.debug("after rotation"); return position; } #endif // ENABLE_AUTO_BED_LEVELING #ifdef ENABLE_AUTO_BED_LEVELING void plan_set_position(float x, float y, float z, const float &e) { apply_rotation_xyz(plan_bed_level_matrix, x, y, z); #else void plan_set_position(const float &x, const float &y, const float &z, const float &e) { #endif // ENABLE_AUTO_BED_LEVELING position[X_AXIS] = lround(x*axis_steps_per_unit[X_AXIS]); position[Y_AXIS] = lround(y*axis_steps_per_unit[Y_AXIS]); position[Z_AXIS] = lround(z*axis_steps_per_unit[Z_AXIS]); position[E_AXIS] = lround(e*axis_steps_per_unit[E_AXIS]); st_set_position(position[X_AXIS], position[Y_AXIS], position[Z_AXIS], position[E_AXIS]); previous_nominal_speed = 0.0; // Resets planner junction speeds. Assumes start from rest. previous_speed[0] = 0.0; previous_speed[1] = 0.0; previous_speed[2] = 0.0; previous_speed[3] = 0.0; } void plan_set_e_position(const float &e) { position[E_AXIS] = lround(e*axis_steps_per_unit[E_AXIS]); st_set_e_position(position[E_AXIS]); } uint8_t movesplanned() { return (block_buffer_head-block_buffer_tail + BLOCK_BUFFER_SIZE) & (BLOCK_BUFFER_SIZE - 1); } #ifdef PREVENT_DANGEROUS_EXTRUDE void set_extrude_min_temp(float temp) { extrude_min_temp=temp; } #endif // Calculate the steps/s^2 acceleration rates, based on the mm/s^s void reset_acceleration_rates() { for(int8_t i=0; i < NUM_AXIS; i++) { axis_steps_per_sqr_second[i] = max_acceleration_units_per_sq_second[i] * axis_steps_per_unit[i]; } } ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/planner.cpp
c++
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
10,917
```objective-c /** * German * * LCD Menu Messages * Please note these are limited to 17 characters! * */ #ifndef LANGUAGE_DE_H #define LANGUAGE_DE_H #define WELCOME_MSG MACHINE_NAME " Bereit." #define MSG_SD_INSERTED "SDKarte erkannt" #define MSG_SD_REMOVED "SDKarte entfernt" #define MSG_MAIN "Hauptmen" #define MSG_AUTOSTART "Autostart" #define MSG_DISABLE_STEPPERS "Stepper abschalt." #define MSG_AUTO_HOME "Auto Nullpunkt" #define MSG_SET_HOME_OFFSETS "Set home offsets" #define MSG_SET_ORIGIN "Setze Nullpunkt" #define MSG_PREHEAT_PLA "Vorwrmen PLA" #define MSG_PREHEAT_PLA0 "Vorwrmen PLA 1" #define MSG_PREHEAT_PLA1 "Vorwrmen PLA 2" #define MSG_PREHEAT_PLA2 "Vorwrmen PLA 3" #define MSG_PREHEAT_PLA012 "Vorw. PLA Alle" #define MSG_PREHEAT_PLA_BEDONLY "Vorw. PLA Bett" #define MSG_PREHEAT_PLA_SETTINGS "Vorwrm. PLA Ein." #define MSG_PREHEAT_ABS "Vorwrmen ABS" #define MSG_PREHEAT_ABS0 "Vorwrmen ABS 1" #define MSG_PREHEAT_ABS1 "Vorwrmen ABS 2" #define MSG_PREHEAT_ABS2 "Vorwrmen ABS 3" #define MSG_PREHEAT_ABS012 "Vorw. ABS Alle" #define MSG_PREHEAT_ABS_BEDONLY "Vorw. ABS Bett" #define MSG_PREHEAT_ABS_SETTINGS "Vorwrm. ABS Ein." #define MSG_COOLDOWN "Abkhlen" #define MSG_SWITCH_PS_ON "Switch Power On" #define MSG_SWITCH_PS_OFF "Switch Power Off" #define MSG_EXTRUDE "Extrude" #define MSG_RETRACT "Retract" #define MSG_MOVE_AXIS "Achsen bewegen" #define MSG_MOVE_X "X bewegen" #define MSG_MOVE_Y "Y bewegen" #define MSG_MOVE_Z "Z bewegen" #define MSG_MOVE_E "Extruder" #define MSG_MOVE_E1 "Extruder2" #define MSG_MOVE_E2 "Extruder3" #define MSG_MOVE_01MM "0.1mm bewegen" #define MSG_MOVE_1MM "1mm bewegen" #define MSG_MOVE_10MM "10mm bewegen" #define MSG_SPEED "Geschw" #define MSG_NOZZLE "Dse" #define MSG_NOZZLE1 "Dse2" #define MSG_NOZZLE2 "Dse3" #define MSG_BED "Bett" #define MSG_FAN_SPEED "Lftergeschw." #define MSG_FLOW "Fluss" #define MSG_FLOW0 "Fluss 0" #define MSG_FLOW1 "Fluss 1" #define MSG_FLOW2 "Fluss 2" #define MSG_CONTROL "Einstellungen" #define MSG_MIN "\002 Min" #define MSG_MAX "\002 Max" #define MSG_FACTOR "\002 Faktor" #define MSG_AUTOTEMP "AutoTemp" #define MSG_ON "Ein" #define MSG_OFF "Aus" #define MSG_PID_P "PID-P" #define MSG_PID_I "PID-I" #define MSG_PID_D "PID-D" #define MSG_PID_C "PID-C" #define MSG_ACC "Acc" #define MSG_VXY_JERK "Vxy-jerk" #define MSG_VZ_JERK "Vz-jerk" #define MSG_VE_JERK "Ve-jerk" #define MSG_VMAX "Vmax " #define MSG_X "x" #define MSG_Y "y" #define MSG_Z "z" #define MSG_E "e" #define MSG_VMIN "Vmin" #define MSG_VTRAV_MIN "VTrav min" #define MSG_AMAX "Amax " #define MSG_A_RETRACT "A-Retract" #define MSG_XSTEPS "Xsteps/mm" #define MSG_YSTEPS "Ysteps/mm" #define MSG_ZSTEPS "Zsteps/mm" #define MSG_ESTEPS "Esteps/mm" #define MSG_TEMPERATURE "Temperatur" #define MSG_MOTION "Bewegung" #define MSG_VOLUMETRIC "Filament" #define MSG_VOLUMETRIC_ENABLED "E in mm3" #define MSG_FILAMENT_SIZE_EXTRUDER_0 "Fil. Dia. 1" #define MSG_FILAMENT_SIZE_EXTRUDER_1 "Fil. Dia. 2" #define MSG_FILAMENT_SIZE_EXTRUDER_2 "Fil. Dia. 3" #define MSG_CONTRAST "LCD contrast" #define MSG_STORE_EPROM "EPROM speichern" #define MSG_LOAD_EPROM "EPROM laden" #define MSG_RESTORE_FAILSAFE "Standardkonfig." #define MSG_REFRESH "Aktualisieren" #define MSG_WATCH "Beobachten" #define MSG_PREPARE "Vorbereitung" #define MSG_TUNE "Justierung" #define MSG_PAUSE_PRINT "Druck anhalten" #define MSG_RESUME_PRINT "Druck fortsetz" #define MSG_STOP_PRINT "Druck stoppen" #define MSG_CARD_MENU "SDKarten Men" #define MSG_NO_CARD "Keine SDKarte" #define MSG_DWELL "Warten..." #define MSG_USERWAIT "Warte auf Nutzer" #define MSG_RESUMING "Druck fortsetzung" #define MSG_PRINT_ABORTED "Print aborted" #define MSG_NO_MOVE "Kein Zug." #define MSG_KILLED "KILLED" #define MSG_STOPPED "GESTOPPT" #define MSG_CONTROL_RETRACT "Retract mm" #define MSG_CONTROL_RETRACT_SWAP "Wechs. Retract mm" #define MSG_CONTROL_RETRACTF "Retract V" #define MSG_CONTROL_RETRACT_ZLIFT "Hop mm" #define MSG_CONTROL_RETRACT_RECOVER "UnRet +mm" #define MSG_CONTROL_RETRACT_RECOVER_SWAP "Wechs. UnRet +mm" #define MSG_CONTROL_RETRACT_RECOVERF "UnRet V" #define MSG_AUTORETRACT "AutoRetr." #define MSG_FILAMENTCHANGE "Filament wechseln" #define MSG_INIT_SDCARD "Init. SD-Card" #define MSG_CNG_SDCARD "Change SD-Card" #define MSG_ZPROBE_OUT "Z probe out. bed" #define MSG_POSITION_UNKNOWN "Home X/Y before Z" #define MSG_ZPROBE_ZOFFSET "Z Offset" #define MSG_BABYSTEP_X "Babystep X" #define MSG_BABYSTEP_Y "Babystep Y" #define MSG_BABYSTEP_Z "Babystep Z" #define MSG_ENDSTOP_ABORT "Endstop abort" #define MSG_STEPPER_RELEASED "Stepper frei" #define MSG_RECTRACT_WIDE "Rectract" #ifdef DELTA_CALIBRATION_MENU #define MSG_DELTA_CALIBRATE "Delta Calibration" #define MSG_DELTA_CALIBRATE_X "Calibrate X" #define MSG_DELTA_CALIBRATE_Y "Calibrate Y" #define MSG_DELTA_CALIBRATE_Z "Calibrate Z" #define MSG_DELTA_CALIBRATE_CENTER "Calibrate Center" #endif // DELTA_CALIBRATION_MENU #endif // LANGUAGE_DE_H ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/language_de.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
1,606
```objective-c /** *dogm_lcd_implementation.h * *Graphics LCD implementation for 128x64 pixel LCDs by STB for ErikZalm/Marlin *Demonstrator: path_to_url * *With the use of: *u8glib by Oliver Kraus *path_to_url */ #ifndef ULTRA_LCD_IMPLEMENTATION_DOGM_H #define ULTRA_LCD_IMPLEMENTATION_DOGM_H /** * Implementation of the LCD display routines for a DOGM128 graphic display. These are common LCD 128x64 pixel graphic displays. **/ #ifdef ULTIPANEL #define BLEN_A 0 #define BLEN_B 1 #define BLEN_C 2 #define EN_A (1<<BLEN_A) #define EN_B (1<<BLEN_B) #define EN_C (1<<BLEN_C) #define encrot0 0 #define encrot1 2 #define encrot2 3 #define encrot3 1 #define LCD_CLICKED (buttons&EN_C) #endif #include <U8glib.h> #include "DOGMbitmaps.h" #include "dogm_font_data_marlin.h" #include "ultralcd.h" #include "ultralcd_st7920_u8glib_rrd.h" /* Russian language not supported yet, needs custom font #ifdef LANGUAGE_RU #include "LiquidCrystalRus.h" #define LCD_CLASS LiquidCrystalRus #else #include <LiquidCrystal.h> #define LCD_CLASS LiquidCrystal #endif */ // DOGM parameters (size in pixels) #define DOG_CHAR_WIDTH 6 #define DOG_CHAR_HEIGHT 12 #define DOG_CHAR_WIDTH_LARGE 9 #define DOG_CHAR_HEIGHT_LARGE 18 #define START_ROW 0 /* Custom characters defined in font font_6x10_marlin.c */ #define LCD_STR_DEGREE "\xB0" #define LCD_STR_REFRESH "\xF8" #define LCD_STR_FOLDER "\xF9" #define LCD_STR_ARROW_RIGHT "\xFA" #define LCD_STR_UPLEVEL "\xFB" #define LCD_STR_CLOCK "\xFC" #define LCD_STR_FEEDRATE "\xFD" #define LCD_STR_BEDTEMP "\xFE" #define LCD_STR_THERMOMETER "\xFF" #define FONT_STATUSMENU u8g_font_6x9 int lcd_contrast; // LCD selection #ifdef U8GLIB_ST7920 //U8GLIB_ST7920_128X64_RRD u8g(0,0,0); U8GLIB_ST7920_128X64_RRD u8g(0); #elif defined(MAKRPANEL) // The MaKrPanel display, ST7565 controller as well U8GLIB_NHD_C12864 u8g(DOGLCD_CS, DOGLCD_A0); #else // for regular DOGM128 display with HW-SPI U8GLIB_DOGM128 u8g(DOGLCD_CS, DOGLCD_A0); // HW-SPI Com: CS, A0 #endif static void lcd_implementation_init() { #ifdef LCD_PIN_BL pinMode(LCD_PIN_BL, OUTPUT); // Enable LCD backlight digitalWrite(LCD_PIN_BL, HIGH); #endif u8g.setContrast(lcd_contrast); // Uncomment this if you have the first generation (V1.10) of STBs board // pinMode(17, OUTPUT); // Enable LCD backlight // digitalWrite(17, HIGH); u8g.firstPage(); do { u8g.setFont(u8g_font_6x10_marlin); u8g.setColorIndex(1); u8g.drawBox (0, 0, u8g.getWidth(), u8g.getHeight()); u8g.setColorIndex(1); } while( u8g.nextPage() ); #ifdef LCD_SCREEN_ROT_90 u8g.setRot90(); // Rotate screen by 90 #endif #ifdef LCD_SCREEN_ROT_180 u8g.setRot180(); // Rotate screen by 180 #endif #ifdef LCD_SCREEN_ROT_270 u8g.setRot270(); // Rotate screen by 270 #endif u8g.firstPage(); do { // RepRap init bmp u8g.drawBitmapP(0,0,START_BMPBYTEWIDTH,START_BMPHEIGHT,start_bmp); // Welcome message u8g.setFont(u8g_font_6x10_marlin); u8g.drawStr(62,10,"MARLIN"); u8g.setFont(u8g_font_5x8); u8g.drawStr(62,19,"V1.0.2"); u8g.setFont(u8g_font_6x10_marlin); u8g.drawStr(62,28,"by ErikZalm"); u8g.drawStr(62,41,"DOGM128 LCD"); u8g.setFont(u8g_font_5x8); u8g.drawStr(62,48,"enhancements"); u8g.setFont(u8g_font_5x8); u8g.drawStr(62,55,"by STB, MM"); u8g.drawStr(62,61,"uses u"); u8g.drawStr90(92,57,"8"); u8g.drawStr(100,61,"glib"); } while( u8g.nextPage() ); } static void lcd_implementation_clear() { // NO NEED TO IMPLEMENT LIKE SO. Picture loop automatically clears the display. // // Check this article: path_to_url // // u8g.firstPage(); // do { // u8g.setColorIndex(0); // u8g.drawBox (0, 0, u8g.getWidth(), u8g.getHeight()); // u8g.setColorIndex(1); // } while( u8g.nextPage() ); } /* Arduino < 1.0.0 is missing a function to print PROGMEM strings, so we need to implement our own */ static void lcd_printPGM(const char* str) { char c; while((c = pgm_read_byte(str++)) != '\0') { u8g.print(c); } } static void _draw_heater_status(int x, int heater) { bool isBed = heater < 0; int y = 17 + (isBed ? 1 : 0); u8g.setFont(FONT_STATUSMENU); u8g.setPrintPos(x,6); u8g.print(itostr3(int((heater >= 0 ? degTargetHotend(heater) : degTargetBed()) + 0.5))); lcd_printPGM(PSTR(LCD_STR_DEGREE " ")); u8g.setPrintPos(x,27); u8g.print(itostr3(int(heater >= 0 ? degHotend(heater) : degBed()) + 0.5)); lcd_printPGM(PSTR(LCD_STR_DEGREE " ")); if (!isHeatingHotend(0)) { u8g.drawBox(x+7,y,2,2); } else { u8g.setColorIndex(0); // white on black u8g.drawBox(x+7,y,2,2); u8g.setColorIndex(1); // black on white } } static void lcd_implementation_status_screen() { static unsigned char fan_rot = 0; u8g.setColorIndex(1); // black on white // Symbols menu graphics, animated fan u8g.drawBitmapP(9,1,STATUS_SCREENBYTEWIDTH,STATUS_SCREENHEIGHT, (blink % 2) && fanSpeed ? status_screen0_bmp : status_screen1_bmp); #ifdef SDSUPPORT //SD Card Symbol u8g.drawBox(42,42,8,7); u8g.drawBox(50,44,2,5); u8g.drawFrame(42,49,10,4); u8g.drawPixel(50,43); // Progress bar u8g.drawFrame(54,49,73,4); // SD Card Progress bar and clock u8g.setFont(FONT_STATUSMENU); if (IS_SD_PRINTING) { // Progress bar u8g.drawBox(55,50, (unsigned int)( (71 * card.percentDone())/100) ,2); } else { // do nothing } u8g.setPrintPos(80,47); if(starttime != 0) { uint16_t time = millis()/60000 - starttime/60000; u8g.print(itostr2(time/60)); u8g.print(':'); u8g.print(itostr2(time%60)); }else{ lcd_printPGM(PSTR("--:--")); } #endif // Extruders _draw_heater_status(6, 0); #if EXTRUDERS > 1 _draw_heater_status(31, 1); #if EXTRUDERS > 2 _draw_heater_status(55, 2); #endif #endif // Heatbed _draw_heater_status(81, -1); // Fan u8g.setFont(FONT_STATUSMENU); u8g.setPrintPos(104,27); #if defined(FAN_PIN) && FAN_PIN > -1 u8g.print(itostr3(int((fanSpeed*100)/256 + 1))); u8g.print("%"); #else u8g.print("---"); #endif // X, Y, Z-Coordinates u8g.setFont(FONT_STATUSMENU); u8g.drawBox(0,29,128,10); u8g.setColorIndex(0); // white on black u8g.setPrintPos(2,37); u8g.print("X"); u8g.drawPixel(8,33); u8g.drawPixel(8,35); u8g.setPrintPos(10,37); u8g.print(ftostr31ns(current_position[X_AXIS])); u8g.setPrintPos(43,37); lcd_printPGM(PSTR("Y")); u8g.drawPixel(49,33); u8g.drawPixel(49,35); u8g.setPrintPos(51,37); u8g.print(ftostr31ns(current_position[Y_AXIS])); u8g.setPrintPos(83,37); u8g.print("Z"); u8g.drawPixel(89,33); u8g.drawPixel(89,35); u8g.setPrintPos(91,37); u8g.print(ftostr31(current_position[Z_AXIS])); u8g.setColorIndex(1); // black on white // Feedrate u8g.setFont(u8g_font_6x10_marlin); u8g.setPrintPos(3,49); u8g.print(LCD_STR_FEEDRATE[0]); u8g.setFont(FONT_STATUSMENU); u8g.setPrintPos(12,48); u8g.print(itostr3(feedmultiply)); u8g.print('%'); // Status line u8g.setFont(FONT_STATUSMENU); u8g.setPrintPos(0,61); #ifndef FILAMENT_LCD_DISPLAY u8g.print(lcd_status_message); #else if(message_millis+5000>millis()){ //Display both Status message line and Filament display on the last line u8g.print(lcd_status_message); } else { lcd_printPGM(PSTR("dia:")); u8g.print(ftostr12ns(filament_width_meas)); lcd_printPGM(PSTR(" factor:")); u8g.print(itostr3(extrudemultiply)); u8g.print('%'); } #endif } static void lcd_implementation_drawmenu_generic(uint8_t row, const char* pstr, char pre_char, char post_char) { char c; uint8_t n = LCD_WIDTH - 1 - 2; if ((pre_char == '>') || (pre_char == LCD_STR_UPLEVEL[0] )) { u8g.setColorIndex(1); // black on white u8g.drawBox (0, row*DOG_CHAR_HEIGHT + 3, 128, DOG_CHAR_HEIGHT); u8g.setColorIndex(0); // following text must be white on black } else u8g.setColorIndex(1); // unmarked text is black on white u8g.setPrintPos(0 * DOG_CHAR_WIDTH, (row + 1) * DOG_CHAR_HEIGHT); u8g.print(pre_char == '>' ? ' ' : pre_char); // Row selector is obsolete while( (c = pgm_read_byte(pstr)) != '\0' ) { u8g.print(c); pstr++; n--; } while(n--){ u8g.print(' '); } u8g.print(post_char); u8g.print(' '); u8g.setColorIndex(1); // restore settings to black on white } static void _drawmenu_setting_edit_generic(uint8_t row, const char* pstr, char pre_char, const char* data, bool pgm) { char c; uint8_t n = LCD_WIDTH - 1 - 2 - (pgm ? strlen_P(data) : strlen(data)); u8g.setPrintPos(0 * DOG_CHAR_WIDTH, (row + 1) * DOG_CHAR_HEIGHT); u8g.print(pre_char); while( (c = pgm_read_byte(pstr)) != '\0' ) { u8g.print(c); pstr++; n--; } u8g.print(':'); while(n--) u8g.print(' '); if (pgm) { lcd_printPGM(data); } else { u8g.print(data); } } #define lcd_implementation_drawmenu_setting_edit_generic(row, pstr, pre_char, data) _drawmenu_setting_edit_generic(row, pstr, pre_char, data, false) #define lcd_implementation_drawmenu_setting_edit_generic_P(row, pstr, pre_char, data) _drawmenu_setting_edit_generic(row, pstr, pre_char, data, true) #define lcd_implementation_drawmenu_setting_edit_int3_selected(row, pstr, pstr2, data, minValue, maxValue) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, '>', itostr3(*(data))) #define lcd_implementation_drawmenu_setting_edit_int3(row, pstr, pstr2, data, minValue, maxValue) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, ' ', itostr3(*(data))) #define lcd_implementation_drawmenu_setting_edit_float3_selected(row, pstr, pstr2, data, minValue, maxValue) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, '>', ftostr3(*(data))) #define lcd_implementation_drawmenu_setting_edit_float3(row, pstr, pstr2, data, minValue, maxValue) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, ' ', ftostr3(*(data))) #define lcd_implementation_drawmenu_setting_edit_float32_selected(row, pstr, pstr2, data, minValue, maxValue) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, '>', ftostr32(*(data))) #define lcd_implementation_drawmenu_setting_edit_float32(row, pstr, pstr2, data, minValue, maxValue) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, ' ', ftostr32(*(data))) #define lcd_implementation_drawmenu_setting_edit_float43_selected(row, pstr, pstr2, data, minValue, maxValue) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, '>', ftostr43(*(data))) #define lcd_implementation_drawmenu_setting_edit_float43(row, pstr, pstr2, data, minValue, maxValue) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, ' ', ftostr43(*(data))) #define lcd_implementation_drawmenu_setting_edit_float5_selected(row, pstr, pstr2, data, minValue, maxValue) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, '>', ftostr5(*(data))) #define lcd_implementation_drawmenu_setting_edit_float5(row, pstr, pstr2, data, minValue, maxValue) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, ' ', ftostr5(*(data))) #define lcd_implementation_drawmenu_setting_edit_float52_selected(row, pstr, pstr2, data, minValue, maxValue) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, '>', ftostr52(*(data))) #define lcd_implementation_drawmenu_setting_edit_float52(row, pstr, pstr2, data, minValue, maxValue) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, ' ', ftostr52(*(data))) #define lcd_implementation_drawmenu_setting_edit_float51_selected(row, pstr, pstr2, data, minValue, maxValue) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, '>', ftostr51(*(data))) #define lcd_implementation_drawmenu_setting_edit_float51(row, pstr, pstr2, data, minValue, maxValue) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, ' ', ftostr51(*(data))) #define lcd_implementation_drawmenu_setting_edit_long5_selected(row, pstr, pstr2, data, minValue, maxValue) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, '>', ftostr5(*(data))) #define lcd_implementation_drawmenu_setting_edit_long5(row, pstr, pstr2, data, minValue, maxValue) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, ' ', ftostr5(*(data))) #define lcd_implementation_drawmenu_setting_edit_bool_selected(row, pstr, pstr2, data) lcd_implementation_drawmenu_setting_edit_generic_P(row, pstr, '>', (*(data))?PSTR(MSG_ON):PSTR(MSG_OFF)) #define lcd_implementation_drawmenu_setting_edit_bool(row, pstr, pstr2, data) lcd_implementation_drawmenu_setting_edit_generic_P(row, pstr, ' ', (*(data))?PSTR(MSG_ON):PSTR(MSG_OFF)) //Add version for callback functions #define lcd_implementation_drawmenu_setting_edit_callback_int3_selected(row, pstr, pstr2, data, minValue, maxValue, callback) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, '>', itostr3(*(data))) #define lcd_implementation_drawmenu_setting_edit_callback_int3(row, pstr, pstr2, data, minValue, maxValue, callback) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, ' ', itostr3(*(data))) #define your_sha256_hashd(row, pstr, pstr2, data, minValue, maxValue, callback) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, '>', ftostr3(*(data))) #define lcd_implementation_drawmenu_setting_edit_callback_float3(row, pstr, pstr2, data, minValue, maxValue, callback) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, ' ', ftostr3(*(data))) #define your_sha256_hashed(row, pstr, pstr2, data, minValue, maxValue, callback) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, '>', ftostr32(*(data))) #define lcd_implementation_drawmenu_setting_edit_callback_float32(row, pstr, pstr2, data, minValue, maxValue, callback) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, ' ', ftostr32(*(data))) #define your_sha256_hashed(row, pstr, pstr2, data, minValue, maxValue, callback) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, '>', ftostr43(*(data))) #define lcd_implementation_drawmenu_setting_edit_callback_float43(row, pstr, pstr2, data, minValue, maxValue, callback) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, ' ', ftostr43(*(data))) #define your_sha256_hashd(row, pstr, pstr2, data, minValue, maxValue, callback) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, '>', ftostr5(*(data))) #define lcd_implementation_drawmenu_setting_edit_callback_float5(row, pstr, pstr2, data, minValue, maxValue, callback) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, ' ', ftostr5(*(data))) #define your_sha256_hashed(row, pstr, pstr2, data, minValue, maxValue, callback) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, '>', ftostr52(*(data))) #define lcd_implementation_drawmenu_setting_edit_callback_float52(row, pstr, pstr2, data, minValue, maxValue, callback) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, ' ', ftostr52(*(data))) #define your_sha256_hashed(row, pstr, pstr2, data, minValue, maxValue, callback) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, '>', ftostr51(*(data))) #define lcd_implementation_drawmenu_setting_edit_callback_float51(row, pstr, pstr2, data, minValue, maxValue, callback) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, ' ', ftostr51(*(data))) #define your_sha256_hash(row, pstr, pstr2, data, minValue, maxValue, callback) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, '>', ftostr5(*(data))) #define lcd_implementation_drawmenu_setting_edit_callback_long5(row, pstr, pstr2, data, minValue, maxValue, callback) lcd_implementation_drawmenu_setting_edit_generic(row, pstr, ' ', ftostr5(*(data))) #define lcd_implementation_drawmenu_setting_edit_callback_bool_selected(row, pstr, pstr2, data, callback) lcd_implementation_drawmenu_setting_edit_generic_P(row, pstr, '>', (*(data))?PSTR(MSG_ON):PSTR(MSG_OFF)) #define lcd_implementation_drawmenu_setting_edit_callback_bool(row, pstr, pstr2, data, callback) lcd_implementation_drawmenu_setting_edit_generic_P(row, pstr, ' ', (*(data))?PSTR(MSG_ON):PSTR(MSG_OFF)) void lcd_implementation_drawedit(const char* pstr, char* value) { u8g.setPrintPos(0 * DOG_CHAR_WIDTH_LARGE, (u8g.getHeight() - 1 - DOG_CHAR_HEIGHT_LARGE) - (1 * DOG_CHAR_HEIGHT_LARGE) - START_ROW ); u8g.setFont(u8g_font_9x18); lcd_printPGM(pstr); u8g.print(':'); u8g.setPrintPos((14 - strlen(value)) * DOG_CHAR_WIDTH_LARGE, (u8g.getHeight() - 1 - DOG_CHAR_HEIGHT_LARGE) - (1 * DOG_CHAR_HEIGHT_LARGE) - START_ROW ); u8g.print(value); } static void _drawmenu_sd(uint8_t row, const char* pstr, const char* filename, char * const longFilename, bool isDir, bool isSelected) { char c; uint8_t n = LCD_WIDTH - 1; if (longFilename[0] != '\0') { filename = longFilename; longFilename[n] = '\0'; } if (isSelected) { u8g.setColorIndex(1); // black on white u8g.drawBox (0, row*DOG_CHAR_HEIGHT + 3, 128, DOG_CHAR_HEIGHT); u8g.setColorIndex(0); // following text must be white on black } u8g.setPrintPos(0 * DOG_CHAR_WIDTH, (row + 1) * DOG_CHAR_HEIGHT); u8g.print(' '); // Indent by 1 char if (isDir) u8g.print(LCD_STR_FOLDER[0]); while((c = *filename) != '\0') { u8g.print(c); filename++; n--; } while(n--) u8g.print(' '); if (isSelected) u8g.setColorIndex(1); // black on white } #define lcd_implementation_drawmenu_sdfile_selected(row, pstr, filename, longFilename) _drawmenu_sd(row, pstr, filename, longFilename, false, true) #define lcd_implementation_drawmenu_sdfile(row, pstr, filename, longFilename) _drawmenu_sd(row, pstr, filename, longFilename, false, false) #define lcd_implementation_drawmenu_sddirectory_selected(row, pstr, filename, longFilename) _drawmenu_sd(row, pstr, filename, longFilename, true, true) #define lcd_implementation_drawmenu_sddirectory(row, pstr, filename, longFilename) _drawmenu_sd(row, pstr, filename, longFilename, true, false) #define lcd_implementation_drawmenu_back_selected(row, pstr, data) lcd_implementation_drawmenu_generic(row, pstr, LCD_STR_UPLEVEL[0], LCD_STR_UPLEVEL[0]) #define lcd_implementation_drawmenu_back(row, pstr, data) lcd_implementation_drawmenu_generic(row, pstr, ' ', LCD_STR_UPLEVEL[0]) #define lcd_implementation_drawmenu_submenu_selected(row, pstr, data) lcd_implementation_drawmenu_generic(row, pstr, '>', LCD_STR_ARROW_RIGHT[0]) #define lcd_implementation_drawmenu_submenu(row, pstr, data) lcd_implementation_drawmenu_generic(row, pstr, ' ', LCD_STR_ARROW_RIGHT[0]) #define lcd_implementation_drawmenu_gcode_selected(row, pstr, gcode) lcd_implementation_drawmenu_generic(row, pstr, '>', ' ') #define lcd_implementation_drawmenu_gcode(row, pstr, gcode) lcd_implementation_drawmenu_generic(row, pstr, ' ', ' ') #define lcd_implementation_drawmenu_function_selected(row, pstr, data) lcd_implementation_drawmenu_generic(row, pstr, '>', ' ') #define lcd_implementation_drawmenu_function(row, pstr, data) lcd_implementation_drawmenu_generic(row, pstr, ' ', ' ') static void lcd_implementation_quick_feedback() { #if BEEPER > -1 SET_OUTPUT(BEEPER); for(int8_t i=0;i<10;i++) { WRITE(BEEPER,HIGH); delay(3); WRITE(BEEPER,LOW); delay(3); } #endif } #endif//ULTRA_LCD_IMPLEMENTATION_DOGM_H ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/dogm_lcd_implementation.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
5,739
```c++ /* Arduino SdFat Library * * This file is part of the Arduino SdFat Library * * This Library is free software: you can redistribute it and/or modify * (at your option) any later version. * * This Library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * along with the Arduino SdFat Library. If not, see * <path_to_url */ #include "Marlin.h" #ifdef SDSUPPORT #include "SdBaseFile.h" //your_sha256_hash-------------- // pointer to cwd directory SdBaseFile* SdBaseFile::cwd_ = 0; // callback function for date/time void (*SdBaseFile::dateTime_)(uint16_t* date, uint16_t* time) = 0; //your_sha256_hash-------------- // add a cluster to a file bool SdBaseFile::addCluster() { if (!vol_->allocContiguous(1, &curCluster_)) goto fail; // if first cluster of file link to directory entry if (firstCluster_ == 0) { firstCluster_ = curCluster_; flags_ |= F_FILE_DIR_DIRTY; } return true; fail: return false; } //your_sha256_hash-------------- // Add a cluster to a directory file and zero the cluster. // return with first block of cluster in the cache bool SdBaseFile::addDirCluster() { uint32_t block; // max folder size if (fileSize_/sizeof(dir_t) >= 0XFFFF) goto fail; if (!addCluster()) goto fail; if (!vol_->cacheFlush()) goto fail; block = vol_->clusterStartBlock(curCluster_); // set cache to first block of cluster vol_->cacheSetBlockNumber(block, true); // zero first block of cluster memset(vol_->cacheBuffer_.data, 0, 512); // zero rest of cluster for (uint8_t i = 1; i < vol_->blocksPerCluster_; i++) { if (!vol_->writeBlock(block + i, vol_->cacheBuffer_.data)) goto fail; } // Increase directory file size by cluster size fileSize_ += 512UL << vol_->clusterSizeShift_; return true; fail: return false; } //your_sha256_hash-------------- // cache a file's directory entry // return pointer to cached entry or null for failure dir_t* SdBaseFile::cacheDirEntry(uint8_t action) { if (!vol_->cacheRawBlock(dirBlock_, action)) goto fail; return vol_->cache()->dir + dirIndex_; fail: return 0; } //your_sha256_hash-------------- /** Close a file and force cached data and directory information * to be written to the storage device. * * \return The value one, true, is returned for success and * the value zero, false, is returned for failure. * Reasons for failure include no file is open or an I/O error. */ bool SdBaseFile::close() { bool rtn = sync(); type_ = FAT_FILE_TYPE_CLOSED; return rtn; } //your_sha256_hash-------------- /** Check for contiguous file and return its raw block range. * * \param[out] bgnBlock the first block address for the file. * \param[out] endBlock the last block address for the file. * * \return The value one, true, is returned for success and * the value zero, false, is returned for failure. * Reasons for failure include file is not contiguous, file has zero length * or an I/O error occurred. */ bool SdBaseFile::contiguousRange(uint32_t* bgnBlock, uint32_t* endBlock) { // error if no blocks if (firstCluster_ == 0) goto fail; for (uint32_t c = firstCluster_; ; c++) { uint32_t next; if (!vol_->fatGet(c, &next)) goto fail; // check for contiguous if (next != (c + 1)) { // error if not end of chain if (!vol_->isEOC(next)) goto fail; *bgnBlock = vol_->clusterStartBlock(firstCluster_); *endBlock = vol_->clusterStartBlock(c) + vol_->blocksPerCluster_ - 1; return true; } } fail: return false; } //your_sha256_hash-------------- /** Create and open a new contiguous file of a specified size. * * \note This function only supports short DOS 8.3 names. * See open() for more information. * * \param[in] dirFile The directory where the file will be created. * \param[in] path A path with a valid DOS 8.3 file name. * \param[in] size The desired file size. * * \return The value one, true, is returned for success and * the value zero, false, is returned for failure. * Reasons for failure include \a path contains * an invalid DOS 8.3 file name, the FAT volume has not been initialized, * a file is already open, the file already exists, the root * directory is full or an I/O error. * */ bool SdBaseFile::createContiguous(SdBaseFile* dirFile, const char* path, uint32_t size) { uint32_t count; // don't allow zero length file if (size == 0) goto fail; if (!open(dirFile, path, O_CREAT | O_EXCL | O_RDWR)) goto fail; // calculate number of clusters needed count = ((size - 1) >> (vol_->clusterSizeShift_ + 9)) + 1; // allocate clusters if (!vol_->allocContiguous(count, &firstCluster_)) { remove(); goto fail; } fileSize_ = size; // insure sync() will update dir entry flags_ |= F_FILE_DIR_DIRTY; return sync(); fail: return false; } //your_sha256_hash-------------- /** Return a file's directory entry. * * \param[out] dir Location for return of the file's directory entry. * * \return The value one, true, is returned for success and * the value zero, false, is returned for failure. */ bool SdBaseFile::dirEntry(dir_t* dir) { dir_t* p; // make sure fields on SD are correct if (!sync()) goto fail; // read entry p = cacheDirEntry(SdVolume::CACHE_FOR_READ); if (!p) goto fail; // copy to caller's struct memcpy(dir, p, sizeof(dir_t)); return true; fail: return false; } //your_sha256_hash-------------- /** Format the name field of \a dir into the 13 byte array * \a name in standard 8.3 short name format. * * \param[in] dir The directory structure containing the name. * \param[out] name A 13 byte char array for the formatted name. */ void SdBaseFile::dirName(const dir_t& dir, char* name) { uint8_t j = 0; for (uint8_t i = 0; i < 11; i++) { if (dir.name[i] == ' ')continue; if (i == 8) name[j++] = '.'; name[j++] = dir.name[i]; } name[j] = 0; } //your_sha256_hash-------------- /** Test for the existence of a file in a directory * * \param[in] name Name of the file to be tested for. * * The calling instance must be an open directory file. * * dirFile.exists("TOFIND.TXT") searches for "TOFIND.TXT" in the directory * dirFile. * * \return true if the file exists else false. */ bool SdBaseFile::exists(const char* name) { SdBaseFile file; return file.open(this, name, O_READ); } //your_sha256_hash-------------- /** * Get a string from a file. * * fgets() reads bytes from a file into the array pointed to by \a str, until * \a num - 1 bytes are read, or a delimiter is read and transferred to \a str, * or end-of-file is encountered. The string is then terminated * with a null byte. * * fgets() deletes CR, '\\r', from the string. This insures only a '\\n' * terminates the string for Windows text files which use CRLF for newline. * * \param[out] str Pointer to the array where the string is stored. * \param[in] num Maximum number of characters to be read * (including the final null byte). Usually the length * of the array \a str is used. * \param[in] delim Optional set of delimiters. The default is "\n". * * \return For success fgets() returns the length of the string in \a str. * If no data is read, fgets() returns zero for EOF or -1 if an error occurred. **/ int16_t SdBaseFile::fgets(char* str, int16_t num, char* delim) { char ch; int16_t n = 0; int16_t r = -1; while ((n + 1) < num && (r = read(&ch, 1)) == 1) { // delete CR if (ch == '\r') continue; str[n++] = ch; if (!delim) { if (ch == '\n') break; } else { if (strchr(delim, ch)) break; } } if (r < 0) { // read error return -1; } str[n] = '\0'; return n; } //your_sha256_hash-------------- /** Get a file's name * * \param[out] name An array of 13 characters for the file's name. * * \return The value one, true, is returned for success and * the value zero, false, is returned for failure. */ bool SdBaseFile::getFilename(char* name) { if (!isOpen()) return false; if (isRoot()) { name[0] = '/'; name[1] = '\0'; return true; } // cache entry dir_t* p = cacheDirEntry(SdVolume::CACHE_FOR_READ); if (!p) return false; // format name dirName(*p, name); return true; } //your_sha256_hash-------------- void SdBaseFile::getpos(fpos_t* pos) { pos->position = curPosition_; pos->cluster = curCluster_; } //your_sha256_hash-------------- /** List directory contents. * * \param[in] pr Print stream for list. * * \param[in] flags The inclusive OR of * * LS_DATE - %Print file modification date * * LS_SIZE - %Print file size. * * LS_R - Recursive list of subdirectories. * * \param[in] indent Amount of space before file name. Used for recursive * list to indicate subdirectory level. */ void SdBaseFile::ls(uint8_t flags, uint8_t indent) { rewind(); int8_t status; while ((status = lsPrintNext( flags, indent))) { if (status > 1 && (flags & LS_R)) { uint16_t index = curPosition()/32 - 1; SdBaseFile s; if (s.open(this, index, O_READ)) s.ls( flags, indent + 2); seekSet(32 * (index + 1)); } } } //your_sha256_hash-------------- // saves 32 bytes on stack for ls recursion // return 0 - EOF, 1 - normal file, or 2 - directory int8_t SdBaseFile::lsPrintNext( uint8_t flags, uint8_t indent) { dir_t dir; uint8_t w = 0; while (1) { if (read(&dir, sizeof(dir)) != sizeof(dir)) return 0; if (dir.name[0] == DIR_NAME_FREE) return 0; // skip deleted entry and entries for . and .. if (dir.name[0] != DIR_NAME_DELETED && dir.name[0] != '.' && DIR_IS_FILE_OR_SUBDIR(&dir)) break; } // indent for dir level for (uint8_t i = 0; i < indent; i++) MYSERIAL.write(' '); // print name for (uint8_t i = 0; i < 11; i++) { if (dir.name[i] == ' ')continue; if (i == 8) { MYSERIAL.write('.'); w++; } MYSERIAL.write(dir.name[i]); w++; } if (DIR_IS_SUBDIR(&dir)) { MYSERIAL.write('/'); w++; } if (flags & (LS_DATE | LS_SIZE)) { while (w++ < 14) MYSERIAL.write(' '); } // print modify date/time if requested if (flags & LS_DATE) { MYSERIAL.write(' '); printFatDate( dir.lastWriteDate); MYSERIAL.write(' '); printFatTime( dir.lastWriteTime); } // print size if requested if (!DIR_IS_SUBDIR(&dir) && (flags & LS_SIZE)) { MYSERIAL.write(' '); MYSERIAL.print(dir.fileSize); } MYSERIAL.println(); return DIR_IS_FILE(&dir) ? 1 : 2; } //your_sha256_hash-------------- // format directory name field from a 8.3 name string bool SdBaseFile::make83Name(const char* str, uint8_t* name, const char** ptr) { uint8_t c; uint8_t n = 7; // max index for part before dot uint8_t i = 0; // blank fill name and extension while (i < 11) name[i++] = ' '; i = 0; while (*str != '\0' && *str != '/') { c = *str++; if (c == '.') { if (n == 10) goto fail; // only one dot allowed n = 10; // max index for full 8.3 name i = 8; // place for extension } else { // illegal FAT characters PGM_P p = PSTR("|<>^+=?/[];,*\"\\"); uint8_t b; while ((b = pgm_read_byte(p++))) if (b == c) goto fail; // check size and only allow ASCII printable characters if (i > n || c < 0X21 || c > 0X7E)goto fail; // only upper case allowed in 8.3 names - convert lower to upper name[i++] = (c < 'a' || c > 'z') ? (c) : (c + ('A' - 'a')); } } *ptr = str; // must have a file name, extension is optional return name[0] != ' '; fail: return false; } //your_sha256_hash-------------- /** Make a new directory. * * \param[in] parent An open SdFat instance for the directory that will contain * the new directory. * * \param[in] path A path with a valid 8.3 DOS name for the new directory. * * \param[in] pFlag Create missing parent directories if true. * * \return The value one, true, is returned for success and * the value zero, false, is returned for failure. * Reasons for failure include this file is already open, \a parent is not a * directory, \a path is invalid or already exists in \a parent. */ bool SdBaseFile::mkdir(SdBaseFile* parent, const char* path, bool pFlag) { uint8_t dname[11]; SdBaseFile dir1, dir2; SdBaseFile* sub = &dir1; SdBaseFile* start = parent; if (!parent || isOpen()) goto fail; if (*path == '/') { while (*path == '/') path++; if (!parent->isRoot()) { if (!dir2.openRoot(parent->vol_)) goto fail; parent = &dir2; } } while (1) { if (!make83Name(path, dname, &path)) goto fail; while (*path == '/') path++; if (!*path) break; if (!sub->open(parent, dname, O_READ)) { if (!pFlag || !sub->mkdir(parent, dname)) { goto fail; } } if (parent != start) parent->close(); parent = sub; sub = parent != &dir1 ? &dir1 : &dir2; } return mkdir(parent, dname); fail: return false; } //your_sha256_hash-------------- bool SdBaseFile::mkdir(SdBaseFile* parent, const uint8_t dname[11]) { uint32_t block; dir_t d; dir_t* p; if (!parent->isDir()) goto fail; // create a normal file if (!open(parent, dname, O_CREAT | O_EXCL | O_RDWR)) goto fail; // convert file to directory flags_ = O_READ; type_ = FAT_FILE_TYPE_SUBDIR; // allocate and zero first cluster if (!addDirCluster())goto fail; // force entry to SD if (!sync()) goto fail; // cache entry - should already be in cache due to sync() call p = cacheDirEntry(SdVolume::CACHE_FOR_WRITE); if (!p) goto fail; // change directory entry attribute p->attributes = DIR_ATT_DIRECTORY; // make entry for '.' memcpy(&d, p, sizeof(d)); d.name[0] = '.'; for (uint8_t i = 1; i < 11; i++) d.name[i] = ' '; // cache block for '.' and '..' block = vol_->clusterStartBlock(firstCluster_); if (!vol_->cacheRawBlock(block, SdVolume::CACHE_FOR_WRITE)) goto fail; // copy '.' to block memcpy(&vol_->cache()->dir[0], &d, sizeof(d)); // make entry for '..' d.name[1] = '.'; if (parent->isRoot()) { d.firstClusterLow = 0; d.firstClusterHigh = 0; } else { d.firstClusterLow = parent->firstCluster_ & 0XFFFF; d.firstClusterHigh = parent->firstCluster_ >> 16; } // copy '..' to block memcpy(&vol_->cache()->dir[1], &d, sizeof(d)); // write first block return vol_->cacheFlush(); fail: return false; } //your_sha256_hash-------------- /** Open a file in the current working directory. * * \param[in] path A path with a valid 8.3 DOS name for a file to be opened. * * \param[in] oflag Values for \a oflag are constructed by a bitwise-inclusive * OR of open flags. see SdBaseFile::open(SdBaseFile*, const char*, uint8_t). * * \return The value one, true, is returned for success and * the value zero, false, is returned for failure. */ bool SdBaseFile::open(const char* path, uint8_t oflag) { return open(cwd_, path, oflag); } //your_sha256_hash-------------- /** Open a file or directory by name. * * \param[in] dirFile An open SdFat instance for the directory containing the * file to be opened. * * \param[in] path A path with a valid 8.3 DOS name for a file to be opened. * * \param[in] oflag Values for \a oflag are constructed by a bitwise-inclusive * OR of flags from the following list * * O_READ - Open for reading. * * O_RDONLY - Same as O_READ. * * O_WRITE - Open for writing. * * O_WRONLY - Same as O_WRITE. * * O_RDWR - Open for reading and writing. * * O_APPEND - If set, the file offset shall be set to the end of the * file prior to each write. * * O_AT_END - Set the initial position at the end of the file. * * O_CREAT - If the file exists, this flag has no effect except as noted * under O_EXCL below. Otherwise, the file shall be created * * O_EXCL - If O_CREAT and O_EXCL are set, open() shall fail if the file exists. * * O_SYNC - Call sync() after each write. This flag should not be used with * write(uint8_t), write_P(PGM_P), writeln_P(PGM_P), or the Arduino Print class. * These functions do character at a time writes so sync() will be called * after each byte. * * O_TRUNC - If the file exists and is a regular file, and the file is * successfully opened and is not read only, its length shall be truncated to 0. * * WARNING: A given file must not be opened by more than one SdBaseFile object * of file corruption may occur. * * \note Directory files must be opened read only. Write and truncation is * not allowed for directory files. * * \return The value one, true, is returned for success and * the value zero, false, is returned for failure. * Reasons for failure include this file is already open, \a dirFile is not * a directory, \a path is invalid, the file does not exist * or can't be opened in the access mode specified by oflag. */ bool SdBaseFile::open(SdBaseFile* dirFile, const char* path, uint8_t oflag) { uint8_t dname[11]; SdBaseFile dir1, dir2; SdBaseFile *parent = dirFile; SdBaseFile *sub = &dir1; if (!dirFile) goto fail; // error if already open if (isOpen()) goto fail; if (*path == '/') { while (*path == '/') path++; if (!dirFile->isRoot()) { if (!dir2.openRoot(dirFile->vol_)) goto fail; parent = &dir2; } } while (1) { if (!make83Name(path, dname, &path)) goto fail; while (*path == '/') path++; if (!*path) break; if (!sub->open(parent, dname, O_READ)) goto fail; if (parent != dirFile) parent->close(); parent = sub; sub = parent != &dir1 ? &dir1 : &dir2; } return open(parent, dname, oflag); fail: return false; } //your_sha256_hash-------------- // open with filename in dname bool SdBaseFile::open(SdBaseFile* dirFile, const uint8_t dname[11], uint8_t oflag) { bool emptyFound = false; bool fileFound = false; uint8_t index; dir_t* p; vol_ = dirFile->vol_; dirFile->rewind(); // search for file while (dirFile->curPosition_ < dirFile->fileSize_) { index = 0XF & (dirFile->curPosition_ >> 5); p = dirFile->readDirCache(); if (!p) goto fail; if (p->name[0] == DIR_NAME_FREE || p->name[0] == DIR_NAME_DELETED) { // remember first empty slot if (!emptyFound) { dirBlock_ = dirFile->vol_->cacheBlockNumber(); dirIndex_ = index; emptyFound = true; } // done if no entries follow if (p->name[0] == DIR_NAME_FREE) break; } else if (!memcmp(dname, p->name, 11)) { fileFound = true; break; } } if (fileFound) { // don't open existing file if O_EXCL if (oflag & O_EXCL) goto fail; } else { // don't create unless O_CREAT and O_WRITE if (!(oflag & O_CREAT) || !(oflag & O_WRITE)) goto fail; if (emptyFound) { index = dirIndex_; p = cacheDirEntry(SdVolume::CACHE_FOR_WRITE); if (!p) goto fail; } else { if (dirFile->type_ == FAT_FILE_TYPE_ROOT_FIXED) goto fail; // add and zero cluster for dirFile - first cluster is in cache for write if (!dirFile->addDirCluster()) goto fail; // use first entry in cluster p = dirFile->vol_->cache()->dir; index = 0; } // initialize as empty file memset(p, 0, sizeof(dir_t)); memcpy(p->name, dname, 11); // set timestamps if (dateTime_) { // call user date/time function dateTime_(&p->creationDate, &p->creationTime); } else { // use default date/time p->creationDate = FAT_DEFAULT_DATE; p->creationTime = FAT_DEFAULT_TIME; } p->lastAccessDate = p->creationDate; p->lastWriteDate = p->creationDate; p->lastWriteTime = p->creationTime; // write entry to SD if (!dirFile->vol_->cacheFlush()) goto fail; } // open entry in cache return openCachedEntry(index, oflag); fail: return false; } //your_sha256_hash-------------- /** Open a file by index. * * \param[in] dirFile An open SdFat instance for the directory. * * \param[in] index The \a index of the directory entry for the file to be * opened. The value for \a index is (directory file position)/32. * * \param[in] oflag Values for \a oflag are constructed by a bitwise-inclusive * OR of flags O_READ, O_WRITE, O_TRUNC, and O_SYNC. * * See open() by path for definition of flags. * \return true for success or false for failure. */ bool SdBaseFile::open(SdBaseFile* dirFile, uint16_t index, uint8_t oflag) { dir_t* p; vol_ = dirFile->vol_; // error if already open if (isOpen() || !dirFile) goto fail; // don't open existing file if O_EXCL - user call error if (oflag & O_EXCL) goto fail; // seek to location of entry if (!dirFile->seekSet(32 * index)) goto fail; // read entry into cache p = dirFile->readDirCache(); if (!p) goto fail; // error if empty slot or '.' or '..' if (p->name[0] == DIR_NAME_FREE || p->name[0] == DIR_NAME_DELETED || p->name[0] == '.') { goto fail; } // open cached entry return openCachedEntry(index & 0XF, oflag); fail: return false; } //your_sha256_hash-------------- // open a cached directory entry. Assumes vol_ is initialized bool SdBaseFile::openCachedEntry(uint8_t dirIndex, uint8_t oflag) { // location of entry in cache dir_t* p = &vol_->cache()->dir[dirIndex]; // write or truncate is an error for a directory or read-only file if (p->attributes & (DIR_ATT_READ_ONLY | DIR_ATT_DIRECTORY)) { if (oflag & (O_WRITE | O_TRUNC)) goto fail; } // remember location of directory entry on SD dirBlock_ = vol_->cacheBlockNumber(); dirIndex_ = dirIndex; // copy first cluster number for directory fields firstCluster_ = (uint32_t)p->firstClusterHigh << 16; firstCluster_ |= p->firstClusterLow; // make sure it is a normal file or subdirectory if (DIR_IS_FILE(p)) { fileSize_ = p->fileSize; type_ = FAT_FILE_TYPE_NORMAL; } else if (DIR_IS_SUBDIR(p)) { if (!vol_->chainSize(firstCluster_, &fileSize_)) goto fail; type_ = FAT_FILE_TYPE_SUBDIR; } else { goto fail; } // save open flags for read/write flags_ = oflag & F_OFLAG; // set to start of file curCluster_ = 0; curPosition_ = 0; if ((oflag & O_TRUNC) && !truncate(0)) return false; return oflag & O_AT_END ? seekEnd(0) : true; fail: type_ = FAT_FILE_TYPE_CLOSED; return false; } //your_sha256_hash-------------- /** Open the next file or subdirectory in a directory. * * \param[in] dirFile An open SdFat instance for the directory containing the * file to be opened. * * \param[in] oflag Values for \a oflag are constructed by a bitwise-inclusive * OR of flags O_READ, O_WRITE, O_TRUNC, and O_SYNC. * * See open() by path for definition of flags. * \return true for success or false for failure. */ bool SdBaseFile::openNext(SdBaseFile* dirFile, uint8_t oflag) { dir_t* p; uint8_t index; if (!dirFile) goto fail; // error if already open if (isOpen()) goto fail; vol_ = dirFile->vol_; while (1) { index = 0XF & (dirFile->curPosition_ >> 5); // read entry into cache p = dirFile->readDirCache(); if (!p) goto fail; // done if last entry if (p->name[0] == DIR_NAME_FREE) goto fail; // skip empty slot or '.' or '..' if (p->name[0] == DIR_NAME_DELETED || p->name[0] == '.') { continue; } // must be file or dir if (DIR_IS_FILE_OR_SUBDIR(p)) { return openCachedEntry(index, oflag); } } fail: return false; } //your_sha256_hash-------------- /** Open a directory's parent directory. * * \param[in] dir Parent of this directory will be opened. Must not be root. * * \return The value one, true, is returned for success and * the value zero, false, is returned for failure. */ bool SdBaseFile::openParent(SdBaseFile* dir) { dir_t entry; dir_t* p; SdBaseFile file; uint32_t c; uint32_t cluster; uint32_t lbn; // error if already open or dir is root or dir is not a directory if (isOpen() || !dir || dir->isRoot() || !dir->isDir()) goto fail; vol_ = dir->vol_; // position to '..' if (!dir->seekSet(32)) goto fail; // read '..' entry if (dir->read(&entry, sizeof(entry)) != 32) goto fail; // verify it is '..' if (entry.name[0] != '.' || entry.name[1] != '.') goto fail; // start cluster for '..' cluster = entry.firstClusterLow; cluster |= (uint32_t)entry.firstClusterHigh << 16; if (cluster == 0) return openRoot(vol_); // start block for '..' lbn = vol_->clusterStartBlock(cluster); // first block of parent dir if (!vol_->cacheRawBlock(lbn, SdVolume::CACHE_FOR_READ)) { goto fail; } p = &vol_->cacheBuffer_.dir[1]; // verify name for '../..' if (p->name[0] != '.' || p->name[1] != '.') goto fail; // '..' is pointer to first cluster of parent. open '../..' to find parent if (p->firstClusterHigh == 0 && p->firstClusterLow == 0) { if (!file.openRoot(dir->volume())) goto fail; } else { if (!file.openCachedEntry(1, O_READ)) goto fail; } // search for parent in '../..' do { if (file.readDir(&entry, NULL) != 32) goto fail; c = entry.firstClusterLow; c |= (uint32_t)entry.firstClusterHigh << 16; } while (c != cluster); // open parent return open(&file, file.curPosition()/32 - 1, O_READ); fail: return false; } //your_sha256_hash-------------- /** Open a volume's root directory. * * \param[in] vol The FAT volume containing the root directory to be opened. * * \return The value one, true, is returned for success and * the value zero, false, is returned for failure. * Reasons for failure include the file is already open, the FAT volume has * not been initialized or it a FAT12 volume. */ bool SdBaseFile::openRoot(SdVolume* vol) { // error if file is already open if (isOpen()) goto fail; if (vol->fatType() == 16 || (FAT12_SUPPORT && vol->fatType() == 12)) { type_ = FAT_FILE_TYPE_ROOT_FIXED; firstCluster_ = 0; fileSize_ = 32 * vol->rootDirEntryCount(); } else if (vol->fatType() == 32) { type_ = FAT_FILE_TYPE_ROOT32; firstCluster_ = vol->rootDirStart(); if (!vol->chainSize(firstCluster_, &fileSize_)) goto fail; } else { // volume is not initialized, invalid, or FAT12 without support return false; } vol_ = vol; // read only flags_ = O_READ; // set to start of file curCluster_ = 0; curPosition_ = 0; // root has no directory entry dirBlock_ = 0; dirIndex_ = 0; return true; fail: return false; } //your_sha256_hash-------------- /** Return the next available byte without consuming it. * * \return The byte if no error and not at eof else -1; */ int SdBaseFile::peek() { fpos_t pos; getpos(&pos); int c = read(); if (c >= 0) setpos(&pos); return c; } //your_sha256_hash-------------- /** %Print the name field of a directory entry in 8.3 format. * \param[in] pr Print stream for output. * \param[in] dir The directory structure containing the name. * \param[in] width Blank fill name if length is less than \a width. * \param[in] printSlash Print '/' after directory names if true. */ void SdBaseFile::printDirName(const dir_t& dir, uint8_t width, bool printSlash) { uint8_t w = 0; for (uint8_t i = 0; i < 11; i++) { if (dir.name[i] == ' ')continue; if (i == 8) { MYSERIAL.write('.'); w++; } MYSERIAL.write(dir.name[i]); w++; } if (DIR_IS_SUBDIR(&dir) && printSlash) { MYSERIAL.write('/'); w++; } while (w < width) { MYSERIAL.write(' '); w++; } } //your_sha256_hash-------------- // print uint8_t with width 2 static void print2u( uint8_t v) { if (v < 10) MYSERIAL.write('0'); MYSERIAL.print(v, DEC); } //your_sha256_hash-------------- /** %Print a directory date field to Serial. * * Format is yyyy-mm-dd. * * \param[in] fatDate The date field from a directory entry. */ //your_sha256_hash-------------- /** %Print a directory date field. * * Format is yyyy-mm-dd. * * \param[in] pr Print stream for output. * \param[in] fatDate The date field from a directory entry. */ void SdBaseFile::printFatDate(uint16_t fatDate) { MYSERIAL.print(FAT_YEAR(fatDate)); MYSERIAL.write('-'); print2u( FAT_MONTH(fatDate)); MYSERIAL.write('-'); print2u( FAT_DAY(fatDate)); } //your_sha256_hash-------------- /** %Print a directory time field. * * Format is hh:mm:ss. * * \param[in] pr Print stream for output. * \param[in] fatTime The time field from a directory entry. */ void SdBaseFile::printFatTime( uint16_t fatTime) { print2u( FAT_HOUR(fatTime)); MYSERIAL.write(':'); print2u( FAT_MINUTE(fatTime)); MYSERIAL.write(':'); print2u( FAT_SECOND(fatTime)); } //your_sha256_hash-------------- /** Print a file's name to Serial * * \return The value one, true, is returned for success and * the value zero, false, is returned for failure. */ bool SdBaseFile::printName() { char name[13]; if (!getFilename(name)) return false; MYSERIAL.print(name); return true; } //your_sha256_hash-------------- /** Read the next byte from a file. * * \return For success read returns the next byte in the file as an int. * If an error occurs or end of file is reached -1 is returned. */ int16_t SdBaseFile::read() { uint8_t b; return read(&b, 1) == 1 ? b : -1; } //your_sha256_hash-------------- /** Read data from a file starting at the current position. * * \param[out] buf Pointer to the location that will receive the data. * * \param[in] nbyte Maximum number of bytes to read. * * \return For success read() returns the number of bytes read. * A value less than \a nbyte, including zero, will be returned * if end of file is reached. * If an error occurs, read() returns -1. Possible errors include * read() called before a file has been opened, corrupt file system * or an I/O error occurred. */ int16_t SdBaseFile::read(void* buf, uint16_t nbyte) { uint8_t* dst = reinterpret_cast<uint8_t*>(buf); uint16_t offset; uint16_t toRead; uint32_t block; // raw device block number // error if not open or write only if (!isOpen() || !(flags_ & O_READ)) goto fail; // max bytes left in file if (nbyte >= (fileSize_ - curPosition_)) { nbyte = fileSize_ - curPosition_; } // amount left to read toRead = nbyte; while (toRead > 0) { offset = curPosition_ & 0X1FF; // offset in block if (type_ == FAT_FILE_TYPE_ROOT_FIXED) { block = vol_->rootDirStart() + (curPosition_ >> 9); } else { uint8_t blockOfCluster = vol_->blockOfCluster(curPosition_); if (offset == 0 && blockOfCluster == 0) { // start of new cluster if (curPosition_ == 0) { // use first cluster in file curCluster_ = firstCluster_; } else { // get next cluster from FAT if (!vol_->fatGet(curCluster_, &curCluster_)) goto fail; } } block = vol_->clusterStartBlock(curCluster_) + blockOfCluster; } uint16_t n = toRead; // amount to be read from current block if (n > (512 - offset)) n = 512 - offset; // no buffering needed if n == 512 if (n == 512 && block != vol_->cacheBlockNumber()) { if (!vol_->readBlock(block, dst)) goto fail; } else { // read block to cache and copy data to caller if (!vol_->cacheRawBlock(block, SdVolume::CACHE_FOR_READ)) goto fail; uint8_t* src = vol_->cache()->data + offset; memcpy(dst, src, n); } dst += n; curPosition_ += n; toRead -= n; } return nbyte; fail: return -1; } //your_sha256_hash-------------- /** Read the next directory entry from a directory file. * * \param[out] dir The dir_t struct that will receive the data. * * \return For success readDir() returns the number of bytes read. * A value of zero will be returned if end of file is reached. * If an error occurs, readDir() returns -1. Possible errors include * readDir() called before a directory has been opened, this is not * a directory file or an I/O error occurred. */ int8_t SdBaseFile::readDir(dir_t* dir, char* longFilename) { int16_t n; // if not a directory file or miss-positioned return an error if (!isDir() || (0X1F & curPosition_)) return -1; //If we have a longFilename buffer, mark it as invalid. If we find a long filename it will be filled automaticly. if (longFilename != NULL) { longFilename[0] = '\0'; } while (1) { n = read(dir, sizeof(dir_t)); if (n != sizeof(dir_t)) return n == 0 ? 0 : -1; // last entry if DIR_NAME_FREE if (dir->name[0] == DIR_NAME_FREE) return 0; // skip empty entries and entry for . and .. if (dir->name[0] == DIR_NAME_DELETED || dir->name[0] == '.') continue; //Fill the long filename if we have a long filename entry, // long filename entries are stored before the actual filename. if (DIR_IS_LONG_NAME(dir) && longFilename != NULL) { vfat_t *VFAT = (vfat_t*)dir; //Sanity check the VFAT entry. The first cluster is always set to zero. And th esequence number should be higher then 0 if (VFAT->firstClusterLow == 0 && (VFAT->sequenceNumber & 0x1F) > 0 && (VFAT->sequenceNumber & 0x1F) <= MAX_VFAT_ENTRIES) { //TODO: Store the filename checksum to verify if a none-long filename aware system modified the file table. n = ((VFAT->sequenceNumber & 0x1F) - 1) * 13; longFilename[n+0] = VFAT->name1[0]; longFilename[n+1] = VFAT->name1[1]; longFilename[n+2] = VFAT->name1[2]; longFilename[n+3] = VFAT->name1[3]; longFilename[n+4] = VFAT->name1[4]; longFilename[n+5] = VFAT->name2[0]; longFilename[n+6] = VFAT->name2[1]; longFilename[n+7] = VFAT->name2[2]; longFilename[n+8] = VFAT->name2[3]; longFilename[n+9] = VFAT->name2[4]; longFilename[n+10] = VFAT->name2[5]; longFilename[n+11] = VFAT->name3[0]; longFilename[n+12] = VFAT->name3[1]; //If this VFAT entry is the last one, add a NUL terminator at the end of the string if (VFAT->sequenceNumber & 0x40) longFilename[n+13] = '\0'; } } // return if normal file or subdirectory if (DIR_IS_FILE_OR_SUBDIR(dir)) return n; } } //your_sha256_hash-------------- // Read next directory entry into the cache // Assumes file is correctly positioned dir_t* SdBaseFile::readDirCache() { uint8_t i; // error if not directory if (!isDir()) goto fail; // index of entry in cache i = (curPosition_ >> 5) & 0XF; // use read to locate and cache block if (read() < 0) goto fail; // advance to next entry curPosition_ += 31; // return pointer to entry return vol_->cache()->dir + i; fail: return 0; } //your_sha256_hash-------------- /** Remove a file. * * The directory entry and all data for the file are deleted. * * \note This function should not be used to delete the 8.3 version of a * file that has a long name. For example if a file has the long name * "New Text Document.txt" you should not delete the 8.3 name "NEWTEX~1.TXT". * * \return The value one, true, is returned for success and * the value zero, false, is returned for failure. * Reasons for failure include the file read-only, is a directory, * or an I/O error occurred. */ bool SdBaseFile::remove() { dir_t* d; // free any clusters - will fail if read-only or directory if (!truncate(0)) goto fail; // cache directory entry d = cacheDirEntry(SdVolume::CACHE_FOR_WRITE); if (!d) goto fail; // mark entry deleted d->name[0] = DIR_NAME_DELETED; // set this file closed type_ = FAT_FILE_TYPE_CLOSED; // write entry to SD return vol_->cacheFlush(); return true; fail: return false; } //your_sha256_hash-------------- /** Remove a file. * * The directory entry and all data for the file are deleted. * * \param[in] dirFile The directory that contains the file. * \param[in] path Path for the file to be removed. * * \note This function should not be used to delete the 8.3 version of a * file that has a long name. For example if a file has the long name * "New Text Document.txt" you should not delete the 8.3 name "NEWTEX~1.TXT". * * \return The value one, true, is returned for success and * the value zero, false, is returned for failure. * Reasons for failure include the file is a directory, is read only, * \a dirFile is not a directory, \a path is not found * or an I/O error occurred. */ bool SdBaseFile::remove(SdBaseFile* dirFile, const char* path) { SdBaseFile file; if (!file.open(dirFile, path, O_WRITE)) goto fail; return file.remove(); fail: // can't set iostate - static function return false; } //your_sha256_hash-------------- /** Rename a file or subdirectory. * * \param[in] dirFile Directory for the new path. * \param[in] newPath New path name for the file/directory. * * \return The value one, true, is returned for success and * the value zero, false, is returned for failure. * Reasons for failure include \a dirFile is not open or is not a directory * file, newPath is invalid or already exists, or an I/O error occurs. */ bool SdBaseFile::rename(SdBaseFile* dirFile, const char* newPath) { dir_t entry; uint32_t dirCluster = 0; SdBaseFile file; dir_t* d; // must be an open file or subdirectory if (!(isFile() || isSubDir())) goto fail; // can't move file if (vol_ != dirFile->vol_) goto fail; // sync() and cache directory entry sync(); d = cacheDirEntry(SdVolume::CACHE_FOR_WRITE); if (!d) goto fail; // save directory entry memcpy(&entry, d, sizeof(entry)); // mark entry deleted d->name[0] = DIR_NAME_DELETED; // make directory entry for new path if (isFile()) { if (!file.open(dirFile, newPath, O_CREAT | O_EXCL | O_WRITE)) { goto restore; } } else { // don't create missing path prefix components if (!file.mkdir(dirFile, newPath, false)) { goto restore; } // save cluster containing new dot dot dirCluster = file.firstCluster_; } // change to new directory entry dirBlock_ = file.dirBlock_; dirIndex_ = file.dirIndex_; // mark closed to avoid possible destructor close call file.type_ = FAT_FILE_TYPE_CLOSED; // cache new directory entry d = cacheDirEntry(SdVolume::CACHE_FOR_WRITE); if (!d) goto fail; // copy all but name field to new directory entry memcpy(&d->attributes, &entry.attributes, sizeof(entry) - sizeof(d->name)); // update dot dot if directory if (dirCluster) { // get new dot dot uint32_t block = vol_->clusterStartBlock(dirCluster); if (!vol_->cacheRawBlock(block, SdVolume::CACHE_FOR_READ)) goto fail; memcpy(&entry, &vol_->cache()->dir[1], sizeof(entry)); // free unused cluster if (!vol_->freeChain(dirCluster)) goto fail; // store new dot dot block = vol_->clusterStartBlock(firstCluster_); if (!vol_->cacheRawBlock(block, SdVolume::CACHE_FOR_WRITE)) goto fail; memcpy(&vol_->cache()->dir[1], &entry, sizeof(entry)); } return vol_->cacheFlush(); restore: d = cacheDirEntry(SdVolume::CACHE_FOR_WRITE); if (!d) goto fail; // restore entry d->name[0] = entry.name[0]; vol_->cacheFlush(); fail: return false; } //your_sha256_hash-------------- /** Remove a directory file. * * The directory file will be removed only if it is empty and is not the * root directory. rmdir() follows DOS and Windows and ignores the * read-only attribute for the directory. * * \note This function should not be used to delete the 8.3 version of a * directory that has a long name. For example if a directory has the * long name "New folder" you should not delete the 8.3 name "NEWFOL~1". * * \return The value one, true, is returned for success and * the value zero, false, is returned for failure. * Reasons for failure include the file is not a directory, is the root * directory, is not empty, or an I/O error occurred. */ bool SdBaseFile::rmdir() { // must be open subdirectory if (!isSubDir()) goto fail; rewind(); // make sure directory is empty while (curPosition_ < fileSize_) { dir_t* p = readDirCache(); if (!p) goto fail; // done if past last used entry if (p->name[0] == DIR_NAME_FREE) break; // skip empty slot, '.' or '..' if (p->name[0] == DIR_NAME_DELETED || p->name[0] == '.') continue; // error not empty if (DIR_IS_FILE_OR_SUBDIR(p)) goto fail; } // convert empty directory to normal file for remove type_ = FAT_FILE_TYPE_NORMAL; flags_ |= O_WRITE; return remove(); fail: return false; } //your_sha256_hash-------------- /** Recursively delete a directory and all contained files. * * This is like the Unix/Linux 'rm -rf *' if called with the root directory * hence the name. * * Warning - This will remove all contents of the directory including * subdirectories. The directory will then be removed if it is not root. * The read-only attribute for files will be ignored. * * \note This function should not be used to delete the 8.3 version of * a directory that has a long name. See remove() and rmdir(). * * \return The value one, true, is returned for success and * the value zero, false, is returned for failure. */ bool SdBaseFile::rmRfStar() { uint16_t index; SdBaseFile f; rewind(); while (curPosition_ < fileSize_) { // remember position index = curPosition_/32; dir_t* p = readDirCache(); if (!p) goto fail; // done if past last entry if (p->name[0] == DIR_NAME_FREE) break; // skip empty slot or '.' or '..' if (p->name[0] == DIR_NAME_DELETED || p->name[0] == '.') continue; // skip if part of long file name or volume label in root if (!DIR_IS_FILE_OR_SUBDIR(p)) continue; if (!f.open(this, index, O_READ)) goto fail; if (f.isSubDir()) { // recursively delete if (!f.rmRfStar()) goto fail; } else { // ignore read-only f.flags_ |= O_WRITE; if (!f.remove()) goto fail; } // position to next entry if required if (curPosition_ != (32*(index + 1))) { if (!seekSet(32*(index + 1))) goto fail; } } // don't try to delete root if (!isRoot()) { if (!rmdir()) goto fail; } return true; fail: return false; } //your_sha256_hash-------------- /** Create a file object and open it in the current working directory. * * \param[in] path A path with a valid 8.3 DOS name for a file to be opened. * * \param[in] oflag Values for \a oflag are constructed by a bitwise-inclusive * OR of open flags. see SdBaseFile::open(SdBaseFile*, const char*, uint8_t). */ SdBaseFile::SdBaseFile(const char* path, uint8_t oflag) { type_ = FAT_FILE_TYPE_CLOSED; writeError = false; open(path, oflag); } //your_sha256_hash-------------- /** Sets a file's position. * * \param[in] pos The new position in bytes from the beginning of the file. * * \return The value one, true, is returned for success and * the value zero, false, is returned for failure. */ bool SdBaseFile::seekSet(uint32_t pos) { uint32_t nCur; uint32_t nNew; // error if file not open or seek past end of file if (!isOpen() || pos > fileSize_) goto fail; if (type_ == FAT_FILE_TYPE_ROOT_FIXED) { curPosition_ = pos; goto done; } if (pos == 0) { // set position to start of file curCluster_ = 0; curPosition_ = 0; goto done; } // calculate cluster index for cur and new position nCur = (curPosition_ - 1) >> (vol_->clusterSizeShift_ + 9); nNew = (pos - 1) >> (vol_->clusterSizeShift_ + 9); if (nNew < nCur || curPosition_ == 0) { // must follow chain from first cluster curCluster_ = firstCluster_; } else { // advance from curPosition nNew -= nCur; } while (nNew--) { if (!vol_->fatGet(curCluster_, &curCluster_)) goto fail; } curPosition_ = pos; done: return true; fail: return false; } //your_sha256_hash-------------- void SdBaseFile::setpos(fpos_t* pos) { curPosition_ = pos->position; curCluster_ = pos->cluster; } //your_sha256_hash-------------- /** The sync() call causes all modified data and directory fields * to be written to the storage device. * * \return The value one, true, is returned for success and * the value zero, false, is returned for failure. * Reasons for failure include a call to sync() before a file has been * opened or an I/O error. */ bool SdBaseFile::sync() { // only allow open files and directories if (!isOpen()) goto fail; if (flags_ & F_FILE_DIR_DIRTY) { dir_t* d = cacheDirEntry(SdVolume::CACHE_FOR_WRITE); // check for deleted by another open file object if (!d || d->name[0] == DIR_NAME_DELETED) goto fail; // do not set filesize for dir files if (!isDir()) d->fileSize = fileSize_; // update first cluster fields d->firstClusterLow = firstCluster_ & 0XFFFF; d->firstClusterHigh = firstCluster_ >> 16; // set modify time if user supplied a callback date/time function if (dateTime_) { dateTime_(&d->lastWriteDate, &d->lastWriteTime); d->lastAccessDate = d->lastWriteDate; } // clear directory dirty flags_ &= ~F_FILE_DIR_DIRTY; } return vol_->cacheFlush(); fail: writeError = true; return false; } //your_sha256_hash-------------- /** Copy a file's timestamps * * \param[in] file File to copy timestamps from. * * \note * Modify and access timestamps may be overwritten if a date time callback * function has been set by dateTimeCallback(). * * \return The value one, true, is returned for success and * the value zero, false, is returned for failure. */ bool SdBaseFile::timestamp(SdBaseFile* file) { dir_t* d; dir_t dir; // get timestamps if (!file->dirEntry(&dir)) goto fail; // update directory fields if (!sync()) goto fail; d = cacheDirEntry(SdVolume::CACHE_FOR_WRITE); if (!d) goto fail; // copy timestamps d->lastAccessDate = dir.lastAccessDate; d->creationDate = dir.creationDate; d->creationTime = dir.creationTime; d->creationTimeTenths = dir.creationTimeTenths; d->lastWriteDate = dir.lastWriteDate; d->lastWriteTime = dir.lastWriteTime; // write back entry return vol_->cacheFlush(); fail: return false; } //your_sha256_hash-------------- /** Set a file's timestamps in its directory entry. * * \param[in] flags Values for \a flags are constructed by a bitwise-inclusive * OR of flags from the following list * * T_ACCESS - Set the file's last access date. * * T_CREATE - Set the file's creation date and time. * * T_WRITE - Set the file's last write/modification date and time. * * \param[in] year Valid range 1980 - 2107 inclusive. * * \param[in] month Valid range 1 - 12 inclusive. * * \param[in] day Valid range 1 - 31 inclusive. * * \param[in] hour Valid range 0 - 23 inclusive. * * \param[in] minute Valid range 0 - 59 inclusive. * * \param[in] second Valid range 0 - 59 inclusive * * \note It is possible to set an invalid date since there is no check for * the number of days in a month. * * \note * Modify and access timestamps may be overwritten if a date time callback * function has been set by dateTimeCallback(). * * \return The value one, true, is returned for success and * the value zero, false, is returned for failure. */ bool SdBaseFile::timestamp(uint8_t flags, uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second) { uint16_t dirDate; uint16_t dirTime; dir_t* d; if (!isOpen() || year < 1980 || year > 2107 || month < 1 || month > 12 || day < 1 || day > 31 || hour > 23 || minute > 59 || second > 59) { goto fail; } // update directory entry if (!sync()) goto fail; d = cacheDirEntry(SdVolume::CACHE_FOR_WRITE); if (!d) goto fail; dirDate = FAT_DATE(year, month, day); dirTime = FAT_TIME(hour, minute, second); if (flags & T_ACCESS) { d->lastAccessDate = dirDate; } if (flags & T_CREATE) { d->creationDate = dirDate; d->creationTime = dirTime; // seems to be units of 1/100 second not 1/10 as Microsoft states d->creationTimeTenths = second & 1 ? 100 : 0; } if (flags & T_WRITE) { d->lastWriteDate = dirDate; d->lastWriteTime = dirTime; } return vol_->cacheFlush(); fail: return false; } //your_sha256_hash-------------- /** Truncate a file to a specified length. The current file position * will be maintained if it is less than or equal to \a length otherwise * it will be set to end of file. * * \param[in] length The desired length for the file. * * \return The value one, true, is returned for success and * the value zero, false, is returned for failure. * Reasons for failure include file is read only, file is a directory, * \a length is greater than the current file size or an I/O error occurs. */ bool SdBaseFile::truncate(uint32_t length) { uint32_t newPos; // error if not a normal file or read-only if (!isFile() || !(flags_ & O_WRITE)) goto fail; // error if length is greater than current size if (length > fileSize_) goto fail; // fileSize and length are zero - nothing to do if (fileSize_ == 0) return true; // remember position for seek after truncation newPos = curPosition_ > length ? length : curPosition_; // position to last cluster in truncated file if (!seekSet(length)) goto fail; if (length == 0) { // free all clusters if (!vol_->freeChain(firstCluster_)) goto fail; firstCluster_ = 0; } else { uint32_t toFree; if (!vol_->fatGet(curCluster_, &toFree)) goto fail; if (!vol_->isEOC(toFree)) { // free extra clusters if (!vol_->freeChain(toFree)) goto fail; // current cluster is end of chain if (!vol_->fatPutEOC(curCluster_)) goto fail; } } fileSize_ = length; // need to update directory entry flags_ |= F_FILE_DIR_DIRTY; if (!sync()) goto fail; // set file to correct position return seekSet(newPos); fail: return false; } //your_sha256_hash-------------- /** Write data to an open file. * * \note Data is moved to the cache but may not be written to the * storage device until sync() is called. * * \param[in] buf Pointer to the location of the data to be written. * * \param[in] nbyte Number of bytes to write. * * \return For success write() returns the number of bytes written, always * \a nbyte. If an error occurs, write() returns -1. Possible errors * include write() is called before a file has been opened, write is called * for a read-only file, device is full, a corrupt file system or an I/O error. * */ int16_t SdBaseFile::write(const void* buf, uint16_t nbyte) { // convert void* to uint8_t* - must be before goto statements const uint8_t* src = reinterpret_cast<const uint8_t*>(buf); // number of bytes left to write - must be before goto statements uint16_t nToWrite = nbyte; // error if not a normal file or is read-only if (!isFile() || !(flags_ & O_WRITE)) goto fail; // seek to end of file if append flag if ((flags_ & O_APPEND) && curPosition_ != fileSize_) { if (!seekEnd()) goto fail; } while (nToWrite > 0) { uint8_t blockOfCluster = vol_->blockOfCluster(curPosition_); uint16_t blockOffset = curPosition_ & 0X1FF; if (blockOfCluster == 0 && blockOffset == 0) { // start of new cluster if (curCluster_ == 0) { if (firstCluster_ == 0) { // allocate first cluster of file if (!addCluster()) goto fail; } else { curCluster_ = firstCluster_; } } else { uint32_t next; if (!vol_->fatGet(curCluster_, &next)) goto fail; if (vol_->isEOC(next)) { // add cluster if at end of chain if (!addCluster()) goto fail; } else { curCluster_ = next; } } } // max space in block uint16_t n = 512 - blockOffset; // lesser of space and amount to write if (n > nToWrite) n = nToWrite; // block for data write uint32_t block = vol_->clusterStartBlock(curCluster_) + blockOfCluster; if (n == 512) { // full block - don't need to use cache if (vol_->cacheBlockNumber() == block) { // invalidate cache if block is in cache vol_->cacheSetBlockNumber(0XFFFFFFFF, false); } if (!vol_->writeBlock(block, src)) goto fail; } else { if (blockOffset == 0 && curPosition_ >= fileSize_) { // start of new block don't need to read into cache if (!vol_->cacheFlush()) goto fail; // set cache dirty and SD address of block vol_->cacheSetBlockNumber(block, true); } else { // rewrite part of block if (!vol_->cacheRawBlock(block, SdVolume::CACHE_FOR_WRITE)) goto fail; } uint8_t* dst = vol_->cache()->data + blockOffset; memcpy(dst, src, n); } curPosition_ += n; src += n; nToWrite -= n; } if (curPosition_ > fileSize_) { // update fileSize and insure sync will update dir entry fileSize_ = curPosition_; flags_ |= F_FILE_DIR_DIRTY; } else if (dateTime_ && nbyte) { // insure sync will update modified date and time flags_ |= F_FILE_DIR_DIRTY; } if (flags_ & O_SYNC) { if (!sync()) goto fail; } return nbyte; fail: // return for write error writeError = true; return -1; } //your_sha256_hash-------------- // suppress cpplint warnings with NOLINT comment #if ALLOW_DEPRECATED_FUNCTIONS && !defined(DOXYGEN) void (*SdBaseFile::oldDateTime_)(uint16_t& date, uint16_t& time) = 0; // NOLINT #endif // ALLOW_DEPRECATED_FUNCTIONS #endif ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/SdBaseFile.cpp
c++
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
15,206
```objective-c #ifndef ULTRALCD_H #define ULTRALCD_H #include "Marlin.h" #ifdef ULTRA_LCD void lcd_update(); void lcd_init(); void lcd_setstatus(const char* message); void lcd_setstatuspgm(const char* message); void lcd_setalertstatuspgm(const char* message); void lcd_reset_alert_level(); bool lcd_detected(void); #ifdef DOGLCD extern int lcd_contrast; void lcd_setcontrast(uint8_t value); #endif static unsigned char blink = 0; // Variable for visualization of fan rotation in GLCD #define LCD_MESSAGEPGM(x) lcd_setstatuspgm(PSTR(x)) #define LCD_ALERTMESSAGEPGM(x) lcd_setalertstatuspgm(PSTR(x)) #define LCD_UPDATE_INTERVAL 100 #define LCD_TIMEOUT_TO_STATUS 15000 #ifdef ULTIPANEL void lcd_buttons_update(); extern volatile uint8_t buttons; //the last checked buttons in a bit array. #ifdef REPRAPWORLD_KEYPAD extern volatile uint8_t buttons_reprapworld_keypad; // to store the keypad shift register values #endif #else FORCE_INLINE void lcd_buttons_update() {} #endif extern int plaPreheatHotendTemp; extern int plaPreheatHPBTemp; extern int plaPreheatFanSpeed; extern int absPreheatHotendTemp; extern int absPreheatHPBTemp; extern int absPreheatFanSpeed; extern bool cancel_heatup; #ifdef FILAMENT_LCD_DISPLAY extern unsigned long message_millis; #endif void lcd_buzz(long duration,uint16_t freq); bool lcd_clicked(); void lcd_ignore_click(bool b=true); #ifdef NEWPANEL #define EN_C (1<<BLEN_C) #define EN_B (1<<BLEN_B) #define EN_A (1<<BLEN_A) #define LCD_CLICKED (buttons&EN_C) #ifdef REPRAPWORLD_KEYPAD #define EN_REPRAPWORLD_KEYPAD_F3 (1<<BLEN_REPRAPWORLD_KEYPAD_F3) #define EN_REPRAPWORLD_KEYPAD_F2 (1<<BLEN_REPRAPWORLD_KEYPAD_F2) #define EN_REPRAPWORLD_KEYPAD_F1 (1<<BLEN_REPRAPWORLD_KEYPAD_F1) #define EN_REPRAPWORLD_KEYPAD_UP (1<<BLEN_REPRAPWORLD_KEYPAD_UP) #define EN_REPRAPWORLD_KEYPAD_RIGHT (1<<BLEN_REPRAPWORLD_KEYPAD_RIGHT) #define EN_REPRAPWORLD_KEYPAD_MIDDLE (1<<BLEN_REPRAPWORLD_KEYPAD_MIDDLE) #define EN_REPRAPWORLD_KEYPAD_DOWN (1<<BLEN_REPRAPWORLD_KEYPAD_DOWN) #define EN_REPRAPWORLD_KEYPAD_LEFT (1<<BLEN_REPRAPWORLD_KEYPAD_LEFT) #define LCD_CLICKED ((buttons&EN_C) || (buttons_reprapworld_keypad&EN_REPRAPWORLD_KEYPAD_F1)) #define REPRAPWORLD_KEYPAD_MOVE_Z_UP (buttons_reprapworld_keypad&EN_REPRAPWORLD_KEYPAD_F2) #define REPRAPWORLD_KEYPAD_MOVE_Z_DOWN (buttons_reprapworld_keypad&EN_REPRAPWORLD_KEYPAD_F3) #define REPRAPWORLD_KEYPAD_MOVE_X_LEFT (buttons_reprapworld_keypad&EN_REPRAPWORLD_KEYPAD_LEFT) #define REPRAPWORLD_KEYPAD_MOVE_X_RIGHT (buttons_reprapworld_keypad&EN_REPRAPWORLD_KEYPAD_RIGHT) #define REPRAPWORLD_KEYPAD_MOVE_Y_DOWN (buttons_reprapworld_keypad&EN_REPRAPWORLD_KEYPAD_DOWN) #define REPRAPWORLD_KEYPAD_MOVE_Y_UP (buttons_reprapworld_keypad&EN_REPRAPWORLD_KEYPAD_UP) #define REPRAPWORLD_KEYPAD_MOVE_HOME (buttons_reprapworld_keypad&EN_REPRAPWORLD_KEYPAD_MIDDLE) #endif //REPRAPWORLD_KEYPAD #else //atomic, do not change #define B_LE (1<<BL_LE) #define B_UP (1<<BL_UP) #define B_MI (1<<BL_MI) #define B_DW (1<<BL_DW) #define B_RI (1<<BL_RI) #define B_ST (1<<BL_ST) #define EN_B (1<<BLEN_B) #define EN_A (1<<BLEN_A) #define LCD_CLICKED ((buttons&B_MI)||(buttons&B_ST)) #endif//NEWPANEL #else //no LCD FORCE_INLINE void lcd_update() {} FORCE_INLINE void lcd_init() {} FORCE_INLINE void lcd_setstatus(const char* message) {} FORCE_INLINE void lcd_buttons_update() {} FORCE_INLINE void lcd_reset_alert_level() {} FORCE_INLINE void lcd_buzz(long duration,uint16_t freq) {} FORCE_INLINE bool lcd_detected(void) { return true; } #define LCD_MESSAGEPGM(x) #define LCD_ALERTMESSAGEPGM(x) #endif //ULTRA_LCD char *itostr2(const uint8_t &x); char *itostr31(const int &xx); char *itostr3(const int &xx); char *itostr3left(const int &xx); char *itostr4(const int &xx); char *ftostr3(const float &x); char *ftostr31ns(const float &x); // float to string without sign character char *ftostr31(const float &x); char *ftostr32(const float &x); char *ftostr43(const float &x); char *ftostr12ns(const float &x); char *ftostr32sp(const float &x); // remove zero-padding from ftostr32 char *ftostr5(const float &x); char *ftostr51(const float &x); char *ftostr52(const float &x); #endif //ULTRALCD_H ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/ultralcd.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
1,357
```objective-c /** * Catalan * * LCD Menu Messages * Please note these are limited to 17 characters! * */ #ifndef LANGUAGE_CA_H #define LANGUAGE_CA_H #define WELCOME_MSG MACHINE_NAME " preparada." #define MSG_SD_INSERTED "SD detectada." #define MSG_SD_REMOVED "SD expulsada." #define MSG_MAIN "Menu principal" #define MSG_AUTOSTART "Inici automatic" #define MSG_DISABLE_STEPPERS "Apagar motors" #define MSG_AUTO_HOME "Home global" #define MSG_SET_HOME_OFFSETS "Set home offsets" #define MSG_SET_ORIGIN "Establir origen" #define MSG_PREHEAT_PLA "Preescalfar PLA" #define MSG_PREHEAT_PLA0 "Preescalfar PLA 1" #define MSG_PREHEAT_PLA1 "Preescalfar PLA 2" #define MSG_PREHEAT_PLA2 "Preescalfar PLA 3" #define MSG_PREHEAT_PLA012 "Preesc. tot PLA" #define MSG_PREHEAT_PLA_BEDONLY "Preesc. llit PLA" #define MSG_PREHEAT_PLA_SETTINGS "Configuraci PLA" #define MSG_PREHEAT_ABS "Preescalfar ABS" #define MSG_PREHEAT_ABS0 "Preescalfar ABS 1" #define MSG_PREHEAT_ABS1 "Preescalfar ABS 2" #define MSG_PREHEAT_ABS2 "Preescalfar ABS 3" #define MSG_PREHEAT_ABS012 "Preesc. tot ABS" #define MSG_PREHEAT_ABS_BEDONLY "Preesc. llit ABS" #define MSG_PREHEAT_ABS_SETTINGS "Configuraci ABS" #define MSG_COOLDOWN "Refredar" #define MSG_SWITCH_PS_ON "Switch power on" #define MSG_SWITCH_PS_OFF "Switch power off" #define MSG_EXTRUDE "Extruir" #define MSG_RETRACT "Refredar" #define MSG_MOVE_AXIS "Moure eixos" #define MSG_MOVE_X "Moure X" #define MSG_MOVE_Y "Moure Y" #define MSG_MOVE_Z "Moure Z" #define MSG_MOVE_E "Extrusor" #define MSG_MOVE_E1 "Extruder2" #define MSG_MOVE_E2 "Extruder3" #define MSG_MOVE_01MM "Moure 0.1mm" #define MSG_MOVE_1MM "Moure 1mm" #define MSG_MOVE_10MM "Moure 10mm" #define MSG_SPEED "Velocitat" #define MSG_NOZZLE "Nozzle" #define MSG_NOZZLE1 "Nozzle2" #define MSG_NOZZLE2 "Nozzle3" #define MSG_BED "Llit" #define MSG_FAN_SPEED "Vel. Ventilador" #define MSG_FLOW "Fluxe" #define MSG_FLOW0 "Fluxe 0" #define MSG_FLOW1 "Fluxe 1" #define MSG_FLOW2 "Fluxe 2" #define MSG_CONTROL "Control" #define MSG_MIN " \002 Min" #define MSG_MAX " \002 Max" #define MSG_FACTOR " \002 Fact" #define MSG_AUTOTEMP "Autotemp" #define MSG_ON "On " #define MSG_OFF "Off" #define MSG_PID_P "PID-P" #define MSG_PID_I "PID-I" #define MSG_PID_D "PID-D" #define MSG_PID_C "PID-C" #define MSG_ACC "Accel" #define MSG_VXY_JERK "Vxy-jerk" #define MSG_VZ_JERK "Vz-jerk" #define MSG_VE_JERK "Ve-jerk" #define MSG_VMAX "Vmax " #define MSG_X "x" #define MSG_Y "y" #define MSG_Z "z" #define MSG_E "e" #define MSG_VMIN "Vmin" #define MSG_VTRAV_MIN "VTrav min" #define MSG_AMAX "Amax " #define MSG_A_RETRACT "A-retract" #define MSG_XSTEPS "Xpassos/mm" #define MSG_YSTEPS "Ypassos/mm" #define MSG_ZSTEPS "Zpassos/mm" #define MSG_ESTEPS "Epassos/mm" #define MSG_TEMPERATURE "Temperatura" #define MSG_MOTION "Moviment" #define MSG_VOLUMETRIC "Filament" #define MSG_VOLUMETRIC_ENABLED "E in mm3" #define MSG_FILAMENT_SIZE_EXTRUDER_0 "Fil. Dia. 1" #define MSG_FILAMENT_SIZE_EXTRUDER_1 "Fil. Dia. 2" #define MSG_FILAMENT_SIZE_EXTRUDER_2 "Fil. Dia. 3" #define MSG_CONTRAST "Contrast de LCD" #define MSG_STORE_EPROM "Desar a memoria" #define MSG_LOAD_EPROM "Carregar de mem." #define MSG_RESTORE_FAILSAFE "Rest. emergencia" #define MSG_REFRESH "Refrescar" #define MSG_WATCH "Pantalla Info." #define MSG_PREPARE "Preparar" #define MSG_TUNE "Calibrar" #define MSG_PAUSE_PRINT "Pausa imp." #define MSG_RESUME_PRINT "Reprendre imp." #define MSG_STOP_PRINT "Parar inp." #define MSG_CARD_MENU "Imprimir de SD" #define MSG_NO_CARD "-Sense targeta SD" #define MSG_DWELL "Repos..." #define MSG_USERWAIT "Esperant usuari.." #define MSG_RESUMING "Reprenent imp." #define MSG_PRINT_ABORTED "Print aborted" #define MSG_NO_MOVE "Sense moviment." #define MSG_KILLED "PARADA DE EMERG. " #define MSG_STOPPED "ATURAT. " #define MSG_CONTROL_RETRACT "Retreure mm" #define MSG_CONTROL_RETRACT_SWAP "Swap Retreure mm" #define MSG_CONTROL_RETRACTF "Retreure F" #define MSG_CONTROL_RETRACT_ZLIFT "Aixecar mm" #define MSG_CONTROL_RETRACT_RECOVER "DesRet +mm" #define MSG_CONTROL_RETRACT_RECOVER_SWAP "Swap DesRet +mm" #define MSG_CONTROL_RETRACT_RECOVERF "DesRet F" #define MSG_AUTORETRACT "AutoRetr." #define MSG_FILAMENTCHANGE "Canviar filament" #define MSG_INIT_SDCARD "Iniciant SD" #define MSG_CNG_SDCARD "Canviar SD" #define MSG_ZPROBE_OUT "Z probe out. bed" #define MSG_POSITION_UNKNOWN "Home X/Y abans Z" #define MSG_ZPROBE_ZOFFSET "Z Offset" #define MSG_BABYSTEP_X "Babystep X" #define MSG_BABYSTEP_Y "Babystep Y" #define MSG_BABYSTEP_Z "Babystep Z" #define MSG_ENDSTOP_ABORT "Endstop abort" #define MSG_RECTRACT "Retreure" #ifdef DELTA_CALIBRATION_MENU #define MSG_DELTA_CALIBRATE "Delta Calibration" #define MSG_DELTA_CALIBRATE_X "Calibrate X" #define MSG_DELTA_CALIBRATE_Y "Calibrate Y" #define MSG_DELTA_CALIBRATE_Z "Calibrate Z" #define MSG_DELTA_CALIBRATE_CENTER "Calibrate Center" #endif // DELTA_CALIBRATION_MENU #endif // LANGUAGE_CA_H ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/language_ca.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
1,595
```objective-c #ifndef WATCHDOG_H #define WATCHDOG_H #include "Marlin.h" #ifdef USE_WATCHDOG // initialize watch dog with a 1 sec interrupt time void watchdog_init(); // pad the dog/reset watchdog. MUST be called at least every second after the first watchdog_init or AVR will go into emergency procedures.. void watchdog_reset(); #else //If we do not have a watchdog, then we can have empty functions which are optimized away. FORCE_INLINE void watchdog_init() {}; FORCE_INLINE void watchdog_reset() {}; #endif #endif ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/watchdog.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
116
```objective-c /* Arduino SdFat Library * * This file is part of the Arduino SdFat Library * * This Library is free software: you can redistribute it and/or modify * (at your option) any later version. * * This Library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * along with the Arduino SdFat Library. If not, see * <path_to_url */ #include "Marlin.h" #ifdef SDSUPPORT #ifndef SdFatUtil_h #define SdFatUtil_h /** * \file * \brief Useful utility functions. */ #include "Marlin.h" #include "MarlinSerial.h" /** Store and print a string in flash memory.*/ #define PgmPrint(x) SerialPrint_P(PSTR(x)) /** Store and print a string in flash memory followed by a CR/LF.*/ #define PgmPrintln(x) SerialPrintln_P(PSTR(x)) namespace SdFatUtil { int FreeRam(); void print_P( PGM_P str); void println_P( PGM_P str); void SerialPrint_P(PGM_P str); void SerialPrintln_P(PGM_P str); } using namespace SdFatUtil; // NOLINT #endif // #define SdFatUtil_h #endif ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/SdFatUtil.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
295
```objective-c /* vector_3.cpp - Vector library for bed leveling This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU You should have received a copy of the GNU Lesser General Public Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef VECTOR_3_H #define VECTOR_3_H #ifdef ENABLE_AUTO_BED_LEVELING class matrix_3x3; struct vector_3 { float x, y, z; vector_3(); vector_3(float x, float y, float z); static vector_3 cross(vector_3 a, vector_3 b); vector_3 operator+(vector_3 v); vector_3 operator-(vector_3 v); void normalize(); float get_length(); vector_3 get_normal(); void debug(char* title); void apply_rotation(matrix_3x3 matrix); }; struct matrix_3x3 { float matrix[9]; static matrix_3x3 create_from_rows(vector_3 row_0, vector_3 row_1, vector_3 row_2); static matrix_3x3 create_look_at(vector_3 target); static matrix_3x3 transpose(matrix_3x3 original); void set_to_identity(); void debug(char* title); }; void apply_rotation_xyz(matrix_3x3 rotationMatrix, float &x, float& y, float& z); #endif // ENABLE_AUTO_BED_LEVELING #endif // VECTOR_3_H ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/vector_3.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
369
```c++ #include "Marlin.h" #ifdef USE_WATCHDOG #include <avr/wdt.h> #include "watchdog.h" #include "ultralcd.h" //=========================================================================== //=============================private variables ============================ //=========================================================================== //=========================================================================== //=============================functinos ============================ //=========================================================================== /// intialise watch dog with a 4 sec interrupt time void watchdog_init() { #ifdef WATCHDOG_RESET_MANUAL //We enable the watchdog timer, but only for the interrupt. //Take care, as this requires the correct order of operation, with interrupts disabled. See the datasheet of any AVR chip for details. wdt_reset(); _WD_CONTROL_REG = _BV(_WD_CHANGE_BIT) | _BV(WDE); _WD_CONTROL_REG = _BV(WDIE) | WDTO_4S; #else wdt_enable(WDTO_4S); #endif } /// reset watchdog. MUST be called every 1s after init or avr will reset. void watchdog_reset() { wdt_reset(); } //=========================================================================== //=============================ISR ============================ //=========================================================================== //Watchdog timer interrupt, called if main program blocks >1sec and manual reset is enabled. #ifdef WATCHDOG_RESET_MANUAL ISR(WDT_vect) { //TODO: This message gets overwritten by the kill() call LCD_ALERTMESSAGEPGM("ERR:Please Reset");//16 characters so it fits on a 16x2 display lcd_update(); SERIAL_ERROR_START; SERIAL_ERRORLNPGM("Something is wrong, please turn off the printer."); kill(); //kill blocks while(1); //wait for user or serial reset } #endif//RESET_MANUAL #endif//USE_WATCHDOG ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/watchdog.cpp
c++
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
362
```c++ /* motion_control.c - high level interface for issuing motion commands Part of Grbl Grbl is free software: you can redistribute it and/or modify (at your option) any later version. Grbl is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the along with Grbl. If not, see <path_to_url */ #include "Marlin.h" #include "stepper.h" #include "planner.h" // The arc is approximated by generating a huge number of tiny, linear segments. The length of each // segment is configured in settings.mm_per_arc_segment. void mc_arc(float *position, float *target, float *offset, uint8_t axis_0, uint8_t axis_1, uint8_t axis_linear, float feed_rate, float radius, uint8_t isclockwise, uint8_t extruder) { // int acceleration_manager_was_enabled = plan_is_acceleration_manager_enabled(); // plan_set_acceleration_manager_enabled(false); // disable acceleration management for the duration of the arc float center_axis0 = position[axis_0] + offset[axis_0]; float center_axis1 = position[axis_1] + offset[axis_1]; float linear_travel = target[axis_linear] - position[axis_linear]; float extruder_travel = target[E_AXIS] - position[E_AXIS]; float r_axis0 = -offset[axis_0]; // Radius vector from center to current location float r_axis1 = -offset[axis_1]; float rt_axis0 = target[axis_0] - center_axis0; float rt_axis1 = target[axis_1] - center_axis1; // CCW angle between position and target from circle center. Only one atan2() trig computation required. float angular_travel = atan2(r_axis0*rt_axis1-r_axis1*rt_axis0, r_axis0*rt_axis0+r_axis1*rt_axis1); if (angular_travel < 0) { angular_travel += 2*M_PI; } if (isclockwise) { angular_travel -= 2*M_PI; } //20141002:full circle for G03 did not work, e.g. G03 X80 Y80 I20 J0 F2000 is giving an Angle of zero so head is not moving //to compensate when start pos = target pos && angle is zero -> angle = 2Pi if (position[axis_0] == target[axis_0] && position[axis_1] == target[axis_1] && angular_travel == 0) { angular_travel += 2*M_PI; } //end fix G03 float millimeters_of_travel = hypot(angular_travel*radius, fabs(linear_travel)); if (millimeters_of_travel < 0.001) { return; } uint16_t segments = floor(millimeters_of_travel/MM_PER_ARC_SEGMENT); if(segments == 0) segments = 1; /* // Multiply inverse feed_rate to compensate for the fact that this movement is approximated // by a number of discrete segments. The inverse feed_rate should be correct for the sum of // all segments. if (invert_feed_rate) { feed_rate *= segments; } */ float theta_per_segment = angular_travel/segments; float linear_per_segment = linear_travel/segments; float extruder_per_segment = extruder_travel/segments; /* Vector rotation by transformation matrix: r is the original vector, r_T is the rotated vector, and phi is the angle of rotation. Based on the solution approach by Jens Geisler. r_T = [cos(phi) -sin(phi); sin(phi) cos(phi] * r ; For arc generation, the center of the circle is the axis of rotation and the radius vector is defined from the circle center to the initial position. Each line segment is formed by successive vector rotations. This requires only two cos() and sin() computations to form the rotation matrix for the duration of the entire arc. Error may accumulate from numerical round-off, since all double numbers are single precision on the Arduino. (True double precision will not have round off issues for CNC applications.) Single precision error can accumulate to be greater than tool precision in some cases. Therefore, arc path correction is implemented. Small angle approximation may be used to reduce computation overhead further. This approximation holds for everything, but very small circles and large mm_per_arc_segment values. In other words, theta_per_segment would need to be greater than 0.1 rad and N_ARC_CORRECTION would need to be large to cause an appreciable drift error. N_ARC_CORRECTION~=25 is more than small enough to correct for numerical drift error. N_ARC_CORRECTION may be on the order a hundred(s) before error becomes an issue for CNC machines with the single precision Arduino calculations. This approximation also allows mc_arc to immediately insert a line segment into the planner without the initial overhead of computing cos() or sin(). By the time the arc needs to be applied a correction, the planner should have caught up to the lag caused by the initial mc_arc overhead. This is important when there are successive arc motions. */ // Vector rotation matrix values float cos_T = 1-0.5*theta_per_segment*theta_per_segment; // Small angle approximation float sin_T = theta_per_segment; float arc_target[4]; float sin_Ti; float cos_Ti; float r_axisi; uint16_t i; int8_t count = 0; // Initialize the linear axis arc_target[axis_linear] = position[axis_linear]; // Initialize the extruder axis arc_target[E_AXIS] = position[E_AXIS]; for (i = 1; i<segments; i++) { // Increment (segments-1) if (count < N_ARC_CORRECTION) { // Apply vector rotation matrix r_axisi = r_axis0*sin_T + r_axis1*cos_T; r_axis0 = r_axis0*cos_T - r_axis1*sin_T; r_axis1 = r_axisi; count++; } else { // Arc correction to radius vector. Computed only every N_ARC_CORRECTION increments. // Compute exact location by applying transformation matrix from initial radius vector(=-offset). cos_Ti = cos(i*theta_per_segment); sin_Ti = sin(i*theta_per_segment); r_axis0 = -offset[axis_0]*cos_Ti + offset[axis_1]*sin_Ti; r_axis1 = -offset[axis_0]*sin_Ti - offset[axis_1]*cos_Ti; count = 0; } // Update arc_target location arc_target[axis_0] = center_axis0 + r_axis0; arc_target[axis_1] = center_axis1 + r_axis1; arc_target[axis_linear] += linear_per_segment; arc_target[E_AXIS] += extruder_per_segment; clamp_to_software_endstops(arc_target); plan_buffer_line(arc_target[X_AXIS], arc_target[Y_AXIS], arc_target[Z_AXIS], arc_target[E_AXIS], feed_rate, extruder); } // Ensure last segment arrives at target location. plan_buffer_line(target[X_AXIS], target[Y_AXIS], target[Z_AXIS], target[E_AXIS], feed_rate, extruder); // plan_set_acceleration_manager_enabled(acceleration_manager_was_enabled); } ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/motion_control.cpp
c++
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
1,653
```objective-c /** * Aragonese * * LCD Menu Messages * Please note these are limited to 17 characters! * */ #ifndef LANGUAGE_AN_H #define LANGUAGE_AN_H #define WELCOME_MSG MACHINE_NAME " parada." #define MSG_SD_INSERTED "Tarcheta colocada" #define MSG_SD_REMOVED "Tarcheta retirada" #define MSG_MAIN "Menu prencipal" #define MSG_AUTOSTART " Autostart" #define MSG_DISABLE_STEPPERS "Amortar motors" #define MSG_AUTO_HOME "Levar a l'orichen" #define MSG_SET_HOME_OFFSETS "Set home offsets" #define MSG_SET_ORIGIN "Establir zero" #define MSG_PREHEAT_PLA "Precalentar PLA" #define MSG_PREHEAT_PLA0 "Precalentar PLA0" #define MSG_PREHEAT_PLA1 "Precalentar PLA1" #define MSG_PREHEAT_PLA2 "Precalentar PLA2" #define MSG_PREHEAT_PLA012 "Precalentar PLA a" #define MSG_PREHEAT_PLA_BEDONLY "Prec. PLA Base" #define MSG_PREHEAT_PLA_SETTINGS "Achustar tem. PLA" #define MSG_PREHEAT_ABS "Precalentar ABS" #define MSG_PREHEAT_ABS0 "Precalentar ABS0" #define MSG_PREHEAT_ABS1 "Precalentar ABS1" #define MSG_PREHEAT_ABS2 "Precalentar ABS2" #define MSG_PREHEAT_ABS012 "Precalentar ABS a" #define MSG_PREHEAT_ABS_BEDONLY "Prec. ABS Base" #define MSG_PREHEAT_ABS_SETTINGS "Achustar tem. ABS" #define MSG_COOLDOWN "Enfriar" #define MSG_SWITCH_PS_ON "Enchegar Fuent" #define MSG_SWITCH_PS_OFF "Desenchegar Fuent" #define MSG_EXTRUDE "Extruir" #define MSG_RETRACT "Retraer" #define MSG_MOVE_AXIS "Mover Eixes" #define MSG_MOVE_X "Move X" #define MSG_MOVE_Y "Move Y" #define MSG_MOVE_Z "Move Z" #define MSG_MOVE_E "Extruder" #define MSG_MOVE_E1 "Extruder2" #define MSG_MOVE_E2 "Extruder3" #define MSG_MOVE_01MM "Move 0.1mm" #define MSG_MOVE_1MM "Move 1mm" #define MSG_MOVE_10MM "Move 10mm" #define MSG_SPEED "Velocidat" #define MSG_NOZZLE "Nozzle" #define MSG_NOZZLE1 "Nozzle2" #define MSG_NOZZLE2 "Nozzle3" #define MSG_BED "Base" #define MSG_FAN_SPEED "Ixoriador" #define MSG_FLOW "Fluxo" #define MSG_FLOW0 "Fluxo 0" #define MSG_FLOW1 "Fluxo 1" #define MSG_FLOW2 "Fluxo 2" #define MSG_CONTROL "Control" #define MSG_MIN "\002 Min" #define MSG_MAX "\002 Max" #define MSG_FACTOR "\002 Fact" #define MSG_AUTOTEMP "Autotemp" #define MSG_ON "On" #define MSG_OFF "Off" #define MSG_PID_P "PID-P" #define MSG_PID_I "PID-I" #define MSG_PID_D "PID-D" #define MSG_PID_C "PID-C" #define MSG_ACC "Acel" #define MSG_VXY_JERK "Vxy-jerk" #define MSG_VZ_JERK "Vz-jerk" #define MSG_VE_JERK "Ves-jerk" #define MSG_VMAX "Vmax" #define MSG_X "x" #define MSG_Y "y" #define MSG_Z "z" #define MSG_E "y" #define MSG_VMIN "Vmin" #define MSG_VTRAV_MIN "VTrav min" #define MSG_AMAX "Amax" #define MSG_A_RETRACT "A-retrac." #define MSG_XSTEPS "X trangos/mm" #define MSG_YSTEPS "Y trangos/mm" #define MSG_ZSTEPS "Z trangos/mm" #define MSG_ESTEPS "E trangos/mm" #define MSG_TEMPERATURE "Temperatura" #define MSG_MOTION "Movimiento" #define MSG_VOLUMETRIC "Filament" #define MSG_VOLUMETRIC_ENABLED "E in mm3" #define MSG_FILAMENT_SIZE_EXTRUDER_0 "Fil. Dia. 1" #define MSG_FILAMENT_SIZE_EXTRUDER_1 "Fil. Dia. 2" #define MSG_FILAMENT_SIZE_EXTRUDER_2 "Fil. Dia. 3" #define MSG_CONTRAST "Contrast" #define MSG_STORE_EPROM "Alzar Memoria" #define MSG_LOAD_EPROM "Cargar Memoria" #define MSG_RESTORE_FAILSAFE "Rest. d'emerchen." #define MSG_REFRESH "Tornar a cargar" #define MSG_WATCH "Monitorizar" #define MSG_PREPARE "Preparar" #define MSG_TUNE "Achustar" #define MSG_PAUSE_PRINT "Pausar impresion" #define MSG_RESUME_PRINT "Contin. impresion" #define MSG_STOP_PRINT "Detener Impresion" #define MSG_CARD_MENU "Menu de SD" #define MSG_NO_CARD "No i hai tarcheta" #define MSG_DWELL "Reposo..." #define MSG_USERWAIT "Asperan. ordines" #define MSG_RESUMING "Contin. impresion" #define MSG_PRINT_ABORTED "Print aborted" #define MSG_NO_MOVE "Sin movimiento" #define MSG_KILLED "ATURADA D'EMERCH." #define MSG_STOPPED "ATURADA." #define MSG_CONTROL_RETRACT "Retraer mm" #define MSG_CONTROL_RETRACT_SWAP "Swap Retraer mm" #define MSG_CONTROL_RETRACTF "Retraer F" #define MSG_CONTROL_RETRACT_ZLIFT "Devantar mm" #define MSG_CONTROL_RETRACT_RECOVER "DesRet +mm" #define MSG_CONTROL_RETRACT_RECOVER_SWAP "Swap DesRet +mm" #define MSG_CONTROL_RETRACT_RECOVERF "DesRet F" #define MSG_AUTORETRACT "AutoRetr." #define MSG_FILAMENTCHANGE "Cambear" #define MSG_INIT_SDCARD "Encetan. tarcheta" #define MSG_CNG_SDCARD "Cambiar tarcheta" #define MSG_ZPROBE_OUT "Z probe out. bed" #define MSG_POSITION_UNKNOWN "Home X/Y before Z" #define MSG_ZPROBE_ZOFFSET "Z Offset" #define MSG_BABYSTEP_X "Babystep X" #define MSG_BABYSTEP_Y "Babystep Y" #define MSG_BABYSTEP_Z "Babystep Z" #define MSG_ENDSTOP_ABORT "Endstop abort" #define MSG_RECTRACT "Retraer" #define MSG_RECTRACT_WIDE "Retraer" #define MSG_TEMPERATURE_WIDE "Temperatura" #define MSG_TEMPERATURE_RTN "Temperatura" #define MSG_MAIN_WIDE "Menu Prencipal" #define MSG_MOTION_WIDE "Movimiento" #define MSG_PREPARE_ALT "Preparar" #define MSG_CONTROL_ARROW "Control \x7E" #define MSG_RETRACT_ARROW "Retraer \x7E" #define MSG_STEPPER_RELEASED "Desacoplada." #ifdef DELTA_CALIBRATION_MENU #define MSG_DELTA_CALIBRATE "Delta Calibration" #define MSG_DELTA_CALIBRATE_X "Calibrate X" #define MSG_DELTA_CALIBRATE_Y "Calibrate Y" #define MSG_DELTA_CALIBRATE_Z "Calibrate Z" #define MSG_DELTA_CALIBRATE_CENTER "Calibrate Center" #endif // DELTA_CALIBRATION_MENU #endif // LANGUAGE_AN_H ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/language_an.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
1,717
```objective-c /** * Spanish * * LCD Menu Messages * Please note these are limited to 17 characters! * */ #ifndef LANGUAGE_ES_H #define LANGUAGE_ES_H #define WELCOME_MSG MACHINE_NAME " lista." #define MSG_SD_INSERTED "Tarjeta colocada" #define MSG_SD_REMOVED "Tarjeta retirada" #define MSG_MAIN "Menu principal" #define MSG_AUTOSTART " Autostart" #define MSG_DISABLE_STEPPERS "Apagar motores" #define MSG_AUTO_HOME "Llevar al origen" #define MSG_SET_HOME_OFFSETS "Ajustar offsets" #define MSG_SET_ORIGIN "Establecer cero" #define MSG_PREHEAT_PLA "Precalentar PLA" #define MSG_PREHEAT_PLA0 "Precalentar PLA 1" #define MSG_PREHEAT_PLA1 "Precalentar PLA 2" #define MSG_PREHEAT_PLA2 "Precalentar PLA 3" #define MSG_PREHEAT_PLA012 "Precal. PLA Todo" #define MSG_PREHEAT_PLA_BEDONLY "Precal. PLA Base" #define MSG_PREHEAT_PLA_SETTINGS "Ajustar temp. PLA" #define MSG_PREHEAT_ABS "Precalentar ABS" #define MSG_PREHEAT_ABS0 "Precalentar ABS 1" #define MSG_PREHEAT_ABS1 "Precalentar ABS 2" #define MSG_PREHEAT_ABS2 "Precalentar ABS 3" #define MSG_PREHEAT_ABS012 "Precal. ABS Todo" #define MSG_PREHEAT_ABS_BEDONLY "Precal. ABS Base" #define MSG_PREHEAT_ABS_SETTINGS "Ajustar temp. ABS" #define MSG_COOLDOWN "Enfriar" #define MSG_SWITCH_PS_ON "Encender" #define MSG_SWITCH_PS_OFF "Apagar" #define MSG_EXTRUDE "Extruir" #define MSG_RETRACT "Retraer" #define MSG_MOVE_AXIS "Mover ejes" #define MSG_MOVE_X "Mover X" #define MSG_MOVE_Y "Mover Y" #define MSG_MOVE_Z "Mover Z" #define MSG_MOVE_E "Extrusor" #define MSG_MOVE_E1 "Extrusor2" #define MSG_MOVE_E2 "Extrusor3" #define MSG_MOVE_01MM "Mover 0.1mm" #define MSG_MOVE_1MM "Mover 1mm" #define MSG_MOVE_10MM "Mover 10mm" #define MSG_SPEED "Velocidad" #define MSG_NOZZLE "Nozzle" #define MSG_NOZZLE1 "Nozzle2" #define MSG_NOZZLE2 "Nozzle3" #define MSG_BED "Base" #define MSG_FAN_SPEED "Ventilador" #define MSG_FLOW "Flujo" #define MSG_FLOW0 "Flujo 0" #define MSG_FLOW1 "Flujo 1" #define MSG_FLOW2 "Flujo 2" #define MSG_CONTROL "Control" #define MSG_MIN "\002 Min" #define MSG_MAX "\002 Max" #define MSG_FACTOR "\002 Fact" #define MSG_AUTOTEMP "Autotemp" #define MSG_ON "On" #define MSG_OFF "Off" #define MSG_PID_P "PID-P" #define MSG_PID_I "PID-I" #define MSG_PID_D "PID-D" #define MSG_PID_C "PID-C" #define MSG_ACC "Acel" #define MSG_VXY_JERK "Vxy-jerk" #define MSG_VZ_JERK "Vz-jerk" #define MSG_VE_JERK "Ve-jerk" #define MSG_VMAX "Vmax" #define MSG_X "x" #define MSG_Y "y" #define MSG_Z "z" #define MSG_E "e" #define MSG_VMIN "Vmin" #define MSG_VTRAV_MIN "Vvacio min" #define MSG_AMAX "Amax" #define MSG_A_RETRACT "A-retrac." #define MSG_XSTEPS "X pasos/mm" #define MSG_YSTEPS "Y pasos/mm" #define MSG_ZSTEPS "Z pasos/mm" #define MSG_ESTEPS "E pasos/mm" #define MSG_TEMPERATURE "Temperatura" #define MSG_MOTION "Movimiento" #define MSG_VOLUMETRIC "Filament" #define MSG_VOLUMETRIC_ENABLED "E in mm3" #define MSG_FILAMENT_SIZE_EXTRUDER_0 "Fil. Dia. 1" #define MSG_FILAMENT_SIZE_EXTRUDER_1 "Fil. Dia. 2" #define MSG_FILAMENT_SIZE_EXTRUDER_2 "Fil. Dia. 3" #define MSG_CONTRAST "Contraste" #define MSG_STORE_EPROM "Guardar memoria" #define MSG_LOAD_EPROM "Cargar memoria" #define MSG_RESTORE_FAILSAFE "Rest. de emergen." #define MSG_REFRESH "Volver a cargar" #define MSG_WATCH "Monitorizar" #define MSG_PREPARE "Preparar" #define MSG_TUNE "Ajustar" #define MSG_PAUSE_PRINT "Pausar impresion" #define MSG_RESUME_PRINT "Reanudar impres." #define MSG_STOP_PRINT "Detener impresion" #define MSG_CARD_MENU "Menu de SD" #define MSG_NO_CARD "No hay tarjeta SD" #define MSG_DWELL "Reposo..." #define MSG_USERWAIT "Esperando ordenes" #define MSG_RESUMING "Resumiendo impre." #define MSG_PRINT_ABORTED "Print aborted" #define MSG_NO_MOVE "Sin movimiento" #define MSG_KILLED "PARADA DE EMERG." #define MSG_STOPPED "PARADA" #define MSG_CONTROL_RETRACT "Retraer mm" #define MSG_CONTROL_RETRACT_SWAP "Interc. Retraer mm" #define MSG_CONTROL_RETRACTF "Retraer V" #define MSG_CONTROL_RETRACT_ZLIFT "Levantar mm" #define MSG_CONTROL_RETRACT_RECOVER "DesRet +mm" #define MSG_CONTROL_RETRACT_RECOVER_SWAP "Interc. DesRet +mm" #define MSG_CONTROL_RETRACT_RECOVERF "DesRet V" #define MSG_AUTORETRACT "AutoRetr." #define MSG_FILAMENTCHANGE "Cambiar filamento" #define MSG_INIT_SDCARD "Iniciando tarjeta" #define MSG_CNG_SDCARD "Cambiar tarjeta" #define MSG_ZPROBE_OUT "sonda Z fuera" #define MSG_POSITION_UNKNOWN "Reiniciar X/Y y Z" #define MSG_ZPROBE_ZOFFSET "Offset Z" #define MSG_BABYSTEP_X "Babystep X" #define MSG_BABYSTEP_Y "Babystep Y" #define MSG_BABYSTEP_Z "Babystep Z" #define MSG_ENDSTOP_ABORT "Endstop abort" #define MSG_RECTRACT "Retraer" #define MSG_RECTRACT_WIDE "Retraer" #define MSG_TEMPERATURE_WIDE "Temperatura" #define MSG_TEMPERATURE_RTN "Temperatura" #define MSG_MAIN_WIDE "Menu principal" #define MSG_MOTION_WIDE "Movimiento" #define MSG_PREPARE_ALT "Preparar" #define MSG_CONTROL_ARROW "Control \x7E" #define MSG_RETRACT_ARROW "Retraer \x7E" #define MSG_STEPPER_RELEASED "Desacoplada." #ifdef DELTA_CALIBRATION_MENU #define MSG_DELTA_CALIBRATE "Delta Calibration" #define MSG_DELTA_CALIBRATE_X "Calibrate X" #define MSG_DELTA_CALIBRATE_Y "Calibrate Y" #define MSG_DELTA_CALIBRATE_Z "Calibrate Z" #define MSG_DELTA_CALIBRATE_CENTER "Calibrate Center" #endif // DELTA_CALIBRATION_MENU #endif // LANGUAGE_ES_H ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/language_es.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
1,704
```objective-c #ifndef SPEED_LOOKUPTABLE_H #define SPEED_LOOKUPTABLE_H #include "Marlin.h" #if F_CPU == 16000000 const uint16_t speed_lookuptable_fast[256][2] PROGMEM = {\ { 62500, 55556}, { 6944, 3268}, { 3676, 1176}, { 2500, 607}, { 1893, 369}, { 1524, 249}, { 1275, 179}, { 1096, 135}, { 961, 105}, { 856, 85}, { 771, 69}, { 702, 58}, { 644, 49}, { 595, 42}, { 553, 37}, { 516, 32}, { 484, 28}, { 456, 25}, { 431, 23}, { 408, 20}, { 388, 19}, { 369, 16}, { 353, 16}, { 337, 14}, { 323, 13}, { 310, 11}, { 299, 11}, { 288, 11}, { 277, 9}, { 268, 9}, { 259, 8}, { 251, 8}, { 243, 8}, { 235, 7}, { 228, 6}, { 222, 6}, { 216, 6}, { 210, 6}, { 204, 5}, { 199, 5}, { 194, 5}, { 189, 4}, { 185, 4}, { 181, 4}, { 177, 4}, { 173, 4}, { 169, 4}, { 165, 3}, { 162, 3}, { 159, 4}, { 155, 3}, { 152, 3}, { 149, 2}, { 147, 3}, { 144, 3}, { 141, 2}, { 139, 3}, { 136, 2}, { 134, 2}, { 132, 3}, { 129, 2}, { 127, 2}, { 125, 2}, { 123, 2}, { 121, 2}, { 119, 1}, { 118, 2}, { 116, 2}, { 114, 1}, { 113, 2}, { 111, 2}, { 109, 1}, { 108, 2}, { 106, 1}, { 105, 2}, { 103, 1}, { 102, 1}, { 101, 1}, { 100, 2}, { 98, 1}, { 97, 1}, { 96, 1}, { 95, 2}, { 93, 1}, { 92, 1}, { 91, 1}, { 90, 1}, { 89, 1}, { 88, 1}, { 87, 1}, { 86, 1}, { 85, 1}, { 84, 1}, { 83, 0}, { 83, 1}, { 82, 1}, { 81, 1}, { 80, 1}, { 79, 1}, { 78, 0}, { 78, 1}, { 77, 1}, { 76, 1}, { 75, 0}, { 75, 1}, { 74, 1}, { 73, 1}, { 72, 0}, { 72, 1}, { 71, 1}, { 70, 0}, { 70, 1}, { 69, 0}, { 69, 1}, { 68, 1}, { 67, 0}, { 67, 1}, { 66, 0}, { 66, 1}, { 65, 0}, { 65, 1}, { 64, 1}, { 63, 0}, { 63, 1}, { 62, 0}, { 62, 1}, { 61, 0}, { 61, 1}, { 60, 0}, { 60, 0}, { 60, 1}, { 59, 0}, { 59, 1}, { 58, 0}, { 58, 1}, { 57, 0}, { 57, 1}, { 56, 0}, { 56, 0}, { 56, 1}, { 55, 0}, { 55, 1}, { 54, 0}, { 54, 0}, { 54, 1}, { 53, 0}, { 53, 0}, { 53, 1}, { 52, 0}, { 52, 0}, { 52, 1}, { 51, 0}, { 51, 0}, { 51, 1}, { 50, 0}, { 50, 0}, { 50, 1}, { 49, 0}, { 49, 0}, { 49, 1}, { 48, 0}, { 48, 0}, { 48, 1}, { 47, 0}, { 47, 0}, { 47, 0}, { 47, 1}, { 46, 0}, { 46, 0}, { 46, 1}, { 45, 0}, { 45, 0}, { 45, 0}, { 45, 1}, { 44, 0}, { 44, 0}, { 44, 0}, { 44, 1}, { 43, 0}, { 43, 0}, { 43, 0}, { 43, 1}, { 42, 0}, { 42, 0}, { 42, 0}, { 42, 1}, { 41, 0}, { 41, 0}, { 41, 0}, { 41, 0}, { 41, 1}, { 40, 0}, { 40, 0}, { 40, 0}, { 40, 0}, { 40, 1}, { 39, 0}, { 39, 0}, { 39, 0}, { 39, 0}, { 39, 1}, { 38, 0}, { 38, 0}, { 38, 0}, { 38, 0}, { 38, 1}, { 37, 0}, { 37, 0}, { 37, 0}, { 37, 0}, { 37, 0}, { 37, 1}, { 36, 0}, { 36, 0}, { 36, 0}, { 36, 0}, { 36, 1}, { 35, 0}, { 35, 0}, { 35, 0}, { 35, 0}, { 35, 0}, { 35, 0}, { 35, 1}, { 34, 0}, { 34, 0}, { 34, 0}, { 34, 0}, { 34, 0}, { 34, 1}, { 33, 0}, { 33, 0}, { 33, 0}, { 33, 0}, { 33, 0}, { 33, 0}, { 33, 1}, { 32, 0}, { 32, 0}, { 32, 0}, { 32, 0}, { 32, 0}, { 32, 0}, { 32, 0}, { 32, 1}, { 31, 0}, { 31, 0}, { 31, 0}, { 31, 0}, { 31, 0}, { 31, 0}, { 31, 1}, { 30, 0}, { 30, 0}, { 30, 0}, { 30, 0} }; const uint16_t speed_lookuptable_slow[256][2] PROGMEM = {\ { 62500, 12500}, { 50000, 8334}, { 41666, 5952}, { 35714, 4464}, { 31250, 3473}, { 27777, 2777}, { 25000, 2273}, { 22727, 1894}, { 20833, 1603}, { 19230, 1373}, { 17857, 1191}, { 16666, 1041}, { 15625, 920}, { 14705, 817}, { 13888, 731}, { 13157, 657}, { 12500, 596}, { 11904, 541}, { 11363, 494}, { 10869, 453}, { 10416, 416}, { 10000, 385}, { 9615, 356}, { 9259, 331}, { 8928, 308}, { 8620, 287}, { 8333, 269}, { 8064, 252}, { 7812, 237}, { 7575, 223}, { 7352, 210}, { 7142, 198}, { 6944, 188}, { 6756, 178}, { 6578, 168}, { 6410, 160}, { 6250, 153}, { 6097, 145}, { 5952, 139}, { 5813, 132}, { 5681, 126}, { 5555, 121}, { 5434, 115}, { 5319, 111}, { 5208, 106}, { 5102, 102}, { 5000, 99}, { 4901, 94}, { 4807, 91}, { 4716, 87}, { 4629, 84}, { 4545, 81}, { 4464, 79}, { 4385, 75}, { 4310, 73}, { 4237, 71}, { 4166, 68}, { 4098, 66}, { 4032, 64}, { 3968, 62}, { 3906, 60}, { 3846, 59}, { 3787, 56}, { 3731, 55}, { 3676, 53}, { 3623, 52}, { 3571, 50}, { 3521, 49}, { 3472, 48}, { 3424, 46}, { 3378, 45}, { 3333, 44}, { 3289, 43}, { 3246, 41}, { 3205, 41}, { 3164, 39}, { 3125, 39}, { 3086, 38}, { 3048, 36}, { 3012, 36}, { 2976, 35}, { 2941, 35}, { 2906, 33}, { 2873, 33}, { 2840, 32}, { 2808, 31}, { 2777, 30}, { 2747, 30}, { 2717, 29}, { 2688, 29}, { 2659, 28}, { 2631, 27}, { 2604, 27}, { 2577, 26}, { 2551, 26}, { 2525, 25}, { 2500, 25}, { 2475, 25}, { 2450, 23}, { 2427, 24}, { 2403, 23}, { 2380, 22}, { 2358, 22}, { 2336, 22}, { 2314, 21}, { 2293, 21}, { 2272, 20}, { 2252, 20}, { 2232, 20}, { 2212, 20}, { 2192, 19}, { 2173, 18}, { 2155, 19}, { 2136, 18}, { 2118, 18}, { 2100, 17}, { 2083, 17}, { 2066, 17}, { 2049, 17}, { 2032, 16}, { 2016, 16}, { 2000, 16}, { 1984, 16}, { 1968, 15}, { 1953, 16}, { 1937, 14}, { 1923, 15}, { 1908, 15}, { 1893, 14}, { 1879, 14}, { 1865, 14}, { 1851, 13}, { 1838, 14}, { 1824, 13}, { 1811, 13}, { 1798, 13}, { 1785, 12}, { 1773, 13}, { 1760, 12}, { 1748, 12}, { 1736, 12}, { 1724, 12}, { 1712, 12}, { 1700, 11}, { 1689, 12}, { 1677, 11}, { 1666, 11}, { 1655, 11}, { 1644, 11}, { 1633, 10}, { 1623, 11}, { 1612, 10}, { 1602, 10}, { 1592, 10}, { 1582, 10}, { 1572, 10}, { 1562, 10}, { 1552, 9}, { 1543, 10}, { 1533, 9}, { 1524, 9}, { 1515, 9}, { 1506, 9}, { 1497, 9}, { 1488, 9}, { 1479, 9}, { 1470, 9}, { 1461, 8}, { 1453, 8}, { 1445, 9}, { 1436, 8}, { 1428, 8}, { 1420, 8}, { 1412, 8}, { 1404, 8}, { 1396, 8}, { 1388, 7}, { 1381, 8}, { 1373, 7}, { 1366, 8}, { 1358, 7}, { 1351, 7}, { 1344, 8}, { 1336, 7}, { 1329, 7}, { 1322, 7}, { 1315, 7}, { 1308, 6}, { 1302, 7}, { 1295, 7}, { 1288, 6}, { 1282, 7}, { 1275, 6}, { 1269, 7}, { 1262, 6}, { 1256, 6}, { 1250, 7}, { 1243, 6}, { 1237, 6}, { 1231, 6}, { 1225, 6}, { 1219, 6}, { 1213, 6}, { 1207, 6}, { 1201, 5}, { 1196, 6}, { 1190, 6}, { 1184, 5}, { 1179, 6}, { 1173, 5}, { 1168, 6}, { 1162, 5}, { 1157, 5}, { 1152, 6}, { 1146, 5}, { 1141, 5}, { 1136, 5}, { 1131, 5}, { 1126, 5}, { 1121, 5}, { 1116, 5}, { 1111, 5}, { 1106, 5}, { 1101, 5}, { 1096, 5}, { 1091, 5}, { 1086, 4}, { 1082, 5}, { 1077, 5}, { 1072, 4}, { 1068, 5}, { 1063, 4}, { 1059, 5}, { 1054, 4}, { 1050, 4}, { 1046, 5}, { 1041, 4}, { 1037, 4}, { 1033, 5}, { 1028, 4}, { 1024, 4}, { 1020, 4}, { 1016, 4}, { 1012, 4}, { 1008, 4}, { 1004, 4}, { 1000, 4}, { 996, 4}, { 992, 4}, { 988, 4}, { 984, 4}, { 980, 4}, { 976, 4}, { 972, 4}, { 968, 3}, { 965, 3} }; #elif F_CPU == 20000000 const uint16_t speed_lookuptable_fast[256][2] PROGMEM = { {62500, 54055}, {8445, 3917}, {4528, 1434}, {3094, 745}, {2349, 456}, {1893, 307}, {1586, 222}, {1364, 167}, {1197, 131}, {1066, 105}, {961, 86}, {875, 72}, {803, 61}, {742, 53}, {689, 45}, {644, 40}, {604, 35}, {569, 32}, {537, 28}, {509, 25}, {484, 23}, {461, 21}, {440, 19}, {421, 17}, {404, 16}, {388, 15}, {373, 14}, {359, 13}, {346, 12}, {334, 11}, {323, 10}, {313, 10}, {303, 9}, {294, 9}, {285, 8}, {277, 7}, {270, 8}, {262, 7}, {255, 6}, {249, 6}, {243, 6}, {237, 6}, {231, 5}, {226, 5}, {221, 5}, {216, 5}, {211, 4}, {207, 5}, {202, 4}, {198, 4}, {194, 4}, {190, 3}, {187, 4}, {183, 3}, {180, 3}, {177, 4}, {173, 3}, {170, 3}, {167, 2}, {165, 3}, {162, 3}, {159, 2}, {157, 3}, {154, 2}, {152, 3}, {149, 2}, {147, 2}, {145, 2}, {143, 2}, {141, 2}, {139, 2}, {137, 2}, {135, 2}, {133, 2}, {131, 2}, {129, 1}, {128, 2}, {126, 2}, {124, 1}, {123, 2}, {121, 1}, {120, 2}, {118, 1}, {117, 1}, {116, 2}, {114, 1}, {113, 1}, {112, 2}, {110, 1}, {109, 1}, {108, 1}, {107, 2}, {105, 1}, {104, 1}, {103, 1}, {102, 1}, {101, 1}, {100, 1}, {99, 1}, {98, 1}, {97, 1}, {96, 1}, {95, 1}, {94, 1}, {93, 1}, {92, 1}, {91, 0}, {91, 1}, {90, 1}, {89, 1}, {88, 1}, {87, 0}, {87, 1}, {86, 1}, {85, 1}, {84, 0}, {84, 1}, {83, 1}, {82, 1}, {81, 0}, {81, 1}, {80, 1}, {79, 0}, {79, 1}, {78, 0}, {78, 1}, {77, 1}, {76, 0}, {76, 1}, {75, 0}, {75, 1}, {74, 1}, {73, 0}, {73, 1}, {72, 0}, {72, 1}, {71, 0}, {71, 1}, {70, 0}, {70, 1}, {69, 0}, {69, 1}, {68, 0}, {68, 1}, {67, 0}, {67, 1}, {66, 0}, {66, 1}, {65, 0}, {65, 0}, {65, 1}, {64, 0}, {64, 1}, {63, 0}, {63, 1}, {62, 0}, {62, 0}, {62, 1}, {61, 0}, {61, 1}, {60, 0}, {60, 0}, {60, 1}, {59, 0}, {59, 0}, {59, 1}, {58, 0}, {58, 0}, {58, 1}, {57, 0}, {57, 0}, {57, 1}, {56, 0}, {56, 0}, {56, 1}, {55, 0}, {55, 0}, {55, 1}, {54, 0}, {54, 0}, {54, 1}, {53, 0}, {53, 0}, {53, 0}, {53, 1}, {52, 0}, {52, 0}, {52, 1}, {51, 0}, {51, 0}, {51, 0}, {51, 1}, {50, 0}, {50, 0}, {50, 0}, {50, 1}, {49, 0}, {49, 0}, {49, 0}, {49, 1}, {48, 0}, {48, 0}, {48, 0}, {48, 1}, {47, 0}, {47, 0}, {47, 0}, {47, 1}, {46, 0}, {46, 0}, {46, 0}, {46, 0}, {46, 1}, {45, 0}, {45, 0}, {45, 0}, {45, 1}, {44, 0}, {44, 0}, {44, 0}, {44, 0}, {44, 1}, {43, 0}, {43, 0}, {43, 0}, {43, 0}, {43, 1}, {42, 0}, {42, 0}, {42, 0}, {42, 0}, {42, 0}, {42, 1}, {41, 0}, {41, 0}, {41, 0}, {41, 0}, {41, 0}, {41, 1}, {40, 0}, {40, 0}, {40, 0}, {40, 0}, {40, 1}, {39, 0}, {39, 0}, {39, 0}, {39, 0}, {39, 0}, {39, 0}, {39, 1}, {38, 0}, {38, 0}, {38, 0}, {38, 0}, {38, 0}, }; const uint16_t speed_lookuptable_slow[256][2] PROGMEM = { {62500, 10417}, {52083, 7441}, {44642, 5580}, {39062, 4340}, {34722, 3472}, {31250, 2841}, {28409, 2368}, {26041, 2003}, {24038, 1717}, {22321, 1488}, {20833, 1302}, {19531, 1149}, {18382, 1021}, {17361, 914}, {16447, 822}, {15625, 745}, {14880, 676}, {14204, 618}, {13586, 566}, {13020, 520}, {12500, 481}, {12019, 445}, {11574, 414}, {11160, 385}, {10775, 359}, {10416, 336}, {10080, 315}, {9765, 296}, {9469, 278}, {9191, 263}, {8928, 248}, {8680, 235}, {8445, 222}, {8223, 211}, {8012, 200}, {7812, 191}, {7621, 181}, {7440, 173}, {7267, 165}, {7102, 158}, {6944, 151}, {6793, 145}, {6648, 138}, {6510, 133}, {6377, 127}, {6250, 123}, {6127, 118}, {6009, 113}, {5896, 109}, {5787, 106}, {5681, 101}, {5580, 98}, {5482, 95}, {5387, 91}, {5296, 88}, {5208, 86}, {5122, 82}, {5040, 80}, {4960, 78}, {4882, 75}, {4807, 73}, {4734, 70}, {4664, 69}, {4595, 67}, {4528, 64}, {4464, 63}, {4401, 61}, {4340, 60}, {4280, 58}, {4222, 56}, {4166, 55}, {4111, 53}, {4058, 52}, {4006, 51}, {3955, 49}, {3906, 48}, {3858, 48}, {3810, 45}, {3765, 45}, {3720, 44}, {3676, 43}, {3633, 42}, {3591, 40}, {3551, 40}, {3511, 39}, {3472, 38}, {3434, 38}, {3396, 36}, {3360, 36}, {3324, 35}, {3289, 34}, {3255, 34}, {3221, 33}, {3188, 32}, {3156, 31}, {3125, 31}, {3094, 31}, {3063, 30}, {3033, 29}, {3004, 28}, {2976, 28}, {2948, 28}, {2920, 27}, {2893, 27}, {2866, 26}, {2840, 25}, {2815, 25}, {2790, 25}, {2765, 24}, {2741, 24}, {2717, 24}, {2693, 23}, {2670, 22}, {2648, 22}, {2626, 22}, {2604, 22}, {2582, 21}, {2561, 21}, {2540, 20}, {2520, 20}, {2500, 20}, {2480, 20}, {2460, 19}, {2441, 19}, {2422, 19}, {2403, 18}, {2385, 18}, {2367, 18}, {2349, 17}, {2332, 18}, {2314, 17}, {2297, 16}, {2281, 17}, {2264, 16}, {2248, 16}, {2232, 16}, {2216, 16}, {2200, 15}, {2185, 15}, {2170, 15}, {2155, 15}, {2140, 15}, {2125, 14}, {2111, 14}, {2097, 14}, {2083, 14}, {2069, 14}, {2055, 13}, {2042, 13}, {2029, 13}, {2016, 13}, {2003, 13}, {1990, 13}, {1977, 12}, {1965, 12}, {1953, 13}, {1940, 11}, {1929, 12}, {1917, 12}, {1905, 12}, {1893, 11}, {1882, 11}, {1871, 11}, {1860, 11}, {1849, 11}, {1838, 11}, {1827, 11}, {1816, 10}, {1806, 11}, {1795, 10}, {1785, 10}, {1775, 10}, {1765, 10}, {1755, 10}, {1745, 9}, {1736, 10}, {1726, 9}, {1717, 10}, {1707, 9}, {1698, 9}, {1689, 9}, {1680, 9}, {1671, 9}, {1662, 9}, {1653, 9}, {1644, 8}, {1636, 9}, {1627, 8}, {1619, 9}, {1610, 8}, {1602, 8}, {1594, 8}, {1586, 8}, {1578, 8}, {1570, 8}, {1562, 8}, {1554, 7}, {1547, 8}, {1539, 8}, {1531, 7}, {1524, 8}, {1516, 7}, {1509, 7}, {1502, 7}, {1495, 7}, {1488, 7}, {1481, 7}, {1474, 7}, {1467, 7}, {1460, 7}, {1453, 7}, {1446, 6}, {1440, 7}, {1433, 7}, {1426, 6}, {1420, 6}, {1414, 7}, {1407, 6}, {1401, 6}, {1395, 7}, {1388, 6}, {1382, 6}, {1376, 6}, {1370, 6}, {1364, 6}, {1358, 6}, {1352, 6}, {1346, 5}, {1341, 6}, {1335, 6}, {1329, 5}, {1324, 6}, {1318, 5}, {1313, 6}, {1307, 5}, {1302, 6}, {1296, 5}, {1291, 5}, {1286, 6}, {1280, 5}, {1275, 5}, {1270, 5}, {1265, 5}, {1260, 5}, {1255, 5}, {1250, 5}, {1245, 5}, {1240, 5}, {1235, 5}, {1230, 5}, {1225, 5}, {1220, 5}, {1215, 4}, {1211, 5}, {1206, 5}, {1201, 5}, }; #endif #endif ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/speed_lookuptable.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
7,451
```objective-c /** * Russian * * LCD Menu Messages * Please note these are limited to 17 characters! * */ #ifndef LANGUAGE_RU_H #define LANGUAGE_RU_H #define LANGUAGE_RU #define WELCOME_MSG MACHINE_NAME "." #define MSG_SD_INSERTED " " #define MSG_SD_REMOVED " " #define MSG_MAIN " \003" #define MSG_AUTOSTART "" #define MSG_DISABLE_STEPPERS ". " #define MSG_AUTO_HOME "" #define MSG_SET_HOME_OFFSETS "Set home offsets" #define MSG_SET_ORIGIN " " #define MSG_PREHEAT_PLA " PLA" #define MSG_PREHEAT_PLA0 " PLA0" #define MSG_PREHEAT_PLA1 " PLA1" #define MSG_PREHEAT_PLA2 " PLA2" #define MSG_PREHEAT_PLA012 ". PLA " #define MSG_PREHEAT_PLA_BEDONLY ". PLA " #define MSG_PREHEAT_PLA_SETTINGS " PLA" #define MSG_PREHEAT_ABS " ABS" #define MSG_PREHEAT_ABS0 " ABS0" #define MSG_PREHEAT_ABS1 " ABS1" #define MSG_PREHEAT_ABS2 " ABS2" #define MSG_PREHEAT_ABS012 ". ABS " #define MSG_PREHEAT_ABS_BEDONLY ". ABS " #define MSG_PREHEAT_ABS_SETTINGS " ABS" #define MSG_COOLDOWN "" #define MSG_SWITCH_PS_ON "Switch Power On" #define MSG_SWITCH_PS_OFF "Switch Power Off" #define MSG_EXTRUDE "" #define MSG_RETRACT "" #define MSG_MOVE_AXIS " " #define MSG_MOVE_X "Move X" #define MSG_MOVE_Y "Move Y" #define MSG_MOVE_Z "Move Z" #define MSG_MOVE_E "Extruder" #define MSG_MOVE_E1 "Extruder2" #define MSG_MOVE_E2 "Extruder3" #define MSG_MOVE_01MM "Move 0.1mm" #define MSG_MOVE_1MM "Move 1mm" #define MSG_MOVE_10MM "Move 10mm" #define MSG_SPEED ":" #define MSG_NOZZLE "\002 :" #define MSG_NOZZLE1 "\002 2:" #define MSG_NOZZLE2 "\002 3:" #define MSG_BED "\002 :" #define MSG_FAN_SPEED ":" #define MSG_FLOW ":" #define MSG_FLOW0 " 0:" #define MSG_FLOW1 " 1:" #define MSG_FLOW2 " 2:" #define MSG_CONTROL " \003" #define MSG_MIN "\002 :" #define MSG_MAX "\002 :" #define MSG_FACTOR "\002 :" #define MSG_AUTOTEMP "Autotemp:" #define MSG_ON ". " #define MSG_OFF ". " #define MSG_PID_P "PID-P: " #define MSG_PID_I "PID-I: " #define MSG_PID_D "PID-D: " #define MSG_PID_C "PID-C: " #define MSG_ACC "Acc:" #define MSG_VXY_JERK "Vxy-jerk: " #define MSG_VZ_JERK "Vz-jerk" #define MSG_VE_JERK "Ve-jerk" #define MSG_VMAX "Vmax " #define MSG_X "x:" #define MSG_Y "y:" #define MSG_Z "z:" #define MSG_E "e:" #define MSG_VMIN "Vmin:" #define MSG_VTRAV_MIN "VTrav min:" #define MSG_AMAX "Amax " #define MSG_A_RETRACT "A-retract:" #define MSG_XSTEPS "X /mm:" #define MSG_YSTEPS "Y /mm:" #define MSG_ZSTEPS "Z /mm:" #define MSG_ESTEPS "E /mm:" #define MSG_TEMPERATURE " \x7E" #define MSG_MOTION " \x7E" #define MSG_VOLUMETRIC "Filament" #define MSG_VOLUMETRIC_ENABLED "E in mm3" #define MSG_FILAMENT_SIZE_EXTRUDER_0 "Fil. Dia. 1" #define MSG_FILAMENT_SIZE_EXTRUDER_1 "Fil. Dia. 2" #define MSG_FILAMENT_SIZE_EXTRUDER_2 "Fil. Dia. 3" #define MSG_CONTRAST "LCD contrast" #define MSG_STORE_EPROM " EPROM" #define MSG_LOAD_EPROM ". EPROM" #define MSG_RESTORE_FAILSAFE " " #define MSG_REFRESH "\004" #define MSG_WATCH " \003" #define MSG_PREPARE " \x7E" #define MSG_TUNE " \x7E" #define MSG_PAUSE_PRINT " " #define MSG_RESUME_PRINT ". " #define MSG_STOP_PRINT " " #define MSG_CARD_MENU " \x7E" #define MSG_NO_CARD " " #define MSG_DWELL "..." #define MSG_USERWAIT "" #define MSG_RESUMING "Resuming print" #define MSG_PRINT_ABORTED "Print aborted" #define MSG_NO_MOVE " ." #define MSG_KILLED "." #define MSG_STOPPED "." #define MSG_CONTROL_RETRACT " mm:" #define MSG_CONTROL_RETRACT_SWAP " mm:" #define MSG_CONTROL_RETRACTF " V:" #define MSG_CONTROL_RETRACT_ZLIFT " mm:" #define MSG_CONTROL_RETRACT_RECOVER " +mm:" #define MSG_CONTROL_RETRACT_RECOVER_SWAP " +mm:" #define MSG_CONTROL_RETRACT_RECOVERF " V:" #define MSG_AUTORETRACT ":" #define MSG_FILAMENTCHANGE "Change filament" #define MSG_INIT_SDCARD "Init. SD-Card" #define MSG_CNG_SDCARD "Change SD-Card" #define MSG_ZPROBE_OUT "Z probe out. bed" #define MSG_POSITION_UNKNOWN "Home X/Y before Z" #define MSG_ZPROBE_ZOFFSET "Z Offset" #define MSG_BABYSTEP_X "Babystep X" #define MSG_BABYSTEP_Y "Babystep Y" #define MSG_BABYSTEP_Z "Babystep Z" #define MSG_ENDSTOP_ABORT "Endstop abort" #define MSG_RECTRACT " \x7E" #ifdef DELTA_CALIBRATION_MENU #define MSG_DELTA_CALIBRATE "Delta Calibration" #define MSG_DELTA_CALIBRATE_X "Calibrate X" #define MSG_DELTA_CALIBRATE_Y "Calibrate Y" #define MSG_DELTA_CALIBRATE_Z "Calibrate Z" #define MSG_DELTA_CALIBRATE_CENTER "Calibrate Center" #endif // DELTA_CALIBRATION_MENU #endif // LANGUAGE_RU_H ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/language_ru.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
1,418
```c++ #include "qr_solve.h" #ifdef AUTO_BED_LEVELING_GRID #include <stdlib.h> #include <math.h> //# include "r8lib.h" int i4_min ( int i1, int i2 ) /******************************************************************************/ /* Purpose: I4_MIN returns the smaller of two I4's. Licensing: This code is distributed under the GNU LGPL license. Modified: 29 August 2006 Author: John Burkardt Parameters: Input, int I1, I2, two integers to be compared. Output, int I4_MIN, the smaller of I1 and I2. */ { int value; if ( i1 < i2 ) { value = i1; } else { value = i2; } return value; } double r8_epsilon ( void ) /******************************************************************************/ /* Purpose: R8_EPSILON returns the R8 round off unit. Discussion: R8_EPSILON is a number R which is a power of 2 with the property that, to the precision of the computer's arithmetic, 1 < 1 + R but 1 = ( 1 + R / 2 ) Licensing: This code is distributed under the GNU LGPL license. Modified: 01 September 2012 Author: John Burkardt Parameters: Output, double R8_EPSILON, the R8 round-off unit. */ { const double value = 2.220446049250313E-016; return value; } double r8_max ( double x, double y ) /******************************************************************************/ /* Purpose: R8_MAX returns the maximum of two R8's. Licensing: This code is distributed under the GNU LGPL license. Modified: 07 May 2006 Author: John Burkardt Parameters: Input, double X, Y, the quantities to compare. Output, double R8_MAX, the maximum of X and Y. */ { double value; if ( y < x ) { value = x; } else { value = y; } return value; } double r8_abs ( double x ) /******************************************************************************/ /* Purpose: R8_ABS returns the absolute value of an R8. Licensing: This code is distributed under the GNU LGPL license. Modified: 07 May 2006 Author: John Burkardt Parameters: Input, double X, the quantity whose absolute value is desired. Output, double R8_ABS, the absolute value of X. */ { double value; if ( 0.0 <= x ) { value = + x; } else { value = - x; } return value; } double r8_sign ( double x ) /******************************************************************************/ /* Purpose: R8_SIGN returns the sign of an R8. Licensing: This code is distributed under the GNU LGPL license. Modified: 08 May 2006 Author: John Burkardt Parameters: Input, double X, the number whose sign is desired. Output, double R8_SIGN, the sign of X. */ { double value; if ( x < 0.0 ) { value = - 1.0; } else { value = + 1.0; } return value; } double r8mat_amax ( int m, int n, double a[] ) /******************************************************************************/ /* Purpose: R8MAT_AMAX returns the maximum absolute value entry of an R8MAT. Discussion: An R8MAT is a doubly dimensioned array of R8 values, stored as a vector in column-major order. Licensing: This code is distributed under the GNU LGPL license. Modified: 07 September 2012 Author: John Burkardt Parameters: Input, int M, the number of rows in A. Input, int N, the number of columns in A. Input, double A[M*N], the M by N matrix. Output, double R8MAT_AMAX, the maximum absolute value entry of A. */ { int i; int j; double value; value = r8_abs ( a[0+0*m] ); for ( j = 0; j < n; j++ ) { for ( i = 0; i < m; i++ ) { if ( value < r8_abs ( a[i+j*m] ) ) { value = r8_abs ( a[i+j*m] ); } } } return value; } double *r8mat_copy_new ( int m, int n, double a1[] ) /******************************************************************************/ /* Purpose: R8MAT_COPY_NEW copies one R8MAT to a "new" R8MAT. Discussion: An R8MAT is a doubly dimensioned array of R8 values, stored as a vector in column-major order. Licensing: This code is distributed under the GNU LGPL license. Modified: 26 July 2008 Author: John Burkardt Parameters: Input, int M, N, the number of rows and columns. Input, double A1[M*N], the matrix to be copied. Output, double R8MAT_COPY_NEW[M*N], the copy of A1. */ { double *a2; int i; int j; a2 = ( double * ) malloc ( m * n * sizeof ( double ) ); for ( j = 0; j < n; j++ ) { for ( i = 0; i < m; i++ ) { a2[i+j*m] = a1[i+j*m]; } } return a2; } /******************************************************************************/ void daxpy ( int n, double da, double dx[], int incx, double dy[], int incy ) /******************************************************************************/ /* Purpose: DAXPY computes constant times a vector plus a vector. Discussion: This routine uses unrolled loops for increments equal to one. Licensing: This code is distributed under the GNU LGPL license. Modified: 30 March 2007 Author: C version by John Burkardt Reference: Jack Dongarra, Cleve Moler, Jim Bunch, Pete Stewart, LINPACK User's Guide, SIAM, 1979. Charles Lawson, Richard Hanson, David Kincaid, Fred Krogh, Basic Linear Algebra Subprograms for Fortran Usage, Algorithm 539, ACM Transactions on Mathematical Software, Volume 5, Number 3, September 1979, pages 308-323. Parameters: Input, int N, the number of elements in DX and DY. Input, double DA, the multiplier of DX. Input, double DX[*], the first vector. Input, int INCX, the increment between successive entries of DX. Input/output, double DY[*], the second vector. On output, DY[*] has been replaced by DY[*] + DA * DX[*]. Input, int INCY, the increment between successive entries of DY. */ { int i; int ix; int iy; int m; if ( n <= 0 ) { return; } if ( da == 0.0 ) { return; } /* Code for unequal increments or equal increments not equal to 1. */ if ( incx != 1 || incy != 1 ) { if ( 0 <= incx ) { ix = 0; } else { ix = ( - n + 1 ) * incx; } if ( 0 <= incy ) { iy = 0; } else { iy = ( - n + 1 ) * incy; } for ( i = 0; i < n; i++ ) { dy[iy] = dy[iy] + da * dx[ix]; ix = ix + incx; iy = iy + incy; } } /* Code for both increments equal to 1. */ else { m = n % 4; for ( i = 0; i < m; i++ ) { dy[i] = dy[i] + da * dx[i]; } for ( i = m; i < n; i = i + 4 ) { dy[i ] = dy[i ] + da * dx[i ]; dy[i+1] = dy[i+1] + da * dx[i+1]; dy[i+2] = dy[i+2] + da * dx[i+2]; dy[i+3] = dy[i+3] + da * dx[i+3]; } } return; } /******************************************************************************/ double ddot ( int n, double dx[], int incx, double dy[], int incy ) /******************************************************************************/ /* Purpose: DDOT forms the dot product of two vectors. Discussion: This routine uses unrolled loops for increments equal to one. Licensing: This code is distributed under the GNU LGPL license. Modified: 30 March 2007 Author: C version by John Burkardt Reference: Jack Dongarra, Cleve Moler, Jim Bunch, Pete Stewart, LINPACK User's Guide, SIAM, 1979. Charles Lawson, Richard Hanson, David Kincaid, Fred Krogh, Basic Linear Algebra Subprograms for Fortran Usage, Algorithm 539, ACM Transactions on Mathematical Software, Volume 5, Number 3, September 1979, pages 308-323. Parameters: Input, int N, the number of entries in the vectors. Input, double DX[*], the first vector. Input, int INCX, the increment between successive entries in DX. Input, double DY[*], the second vector. Input, int INCY, the increment between successive entries in DY. Output, double DDOT, the sum of the product of the corresponding entries of DX and DY. */ { double dtemp; int i; int ix; int iy; int m; dtemp = 0.0; if ( n <= 0 ) { return dtemp; } /* Code for unequal increments or equal increments not equal to 1. */ if ( incx != 1 || incy != 1 ) { if ( 0 <= incx ) { ix = 0; } else { ix = ( - n + 1 ) * incx; } if ( 0 <= incy ) { iy = 0; } else { iy = ( - n + 1 ) * incy; } for ( i = 0; i < n; i++ ) { dtemp = dtemp + dx[ix] * dy[iy]; ix = ix + incx; iy = iy + incy; } } /* Code for both increments equal to 1. */ else { m = n % 5; for ( i = 0; i < m; i++ ) { dtemp = dtemp + dx[i] * dy[i]; } for ( i = m; i < n; i = i + 5 ) { dtemp = dtemp + dx[i ] * dy[i ] + dx[i+1] * dy[i+1] + dx[i+2] * dy[i+2] + dx[i+3] * dy[i+3] + dx[i+4] * dy[i+4]; } } return dtemp; } /******************************************************************************/ double dnrm2 ( int n, double x[], int incx ) /******************************************************************************/ /* Purpose: DNRM2 returns the euclidean norm of a vector. Discussion: DNRM2 ( X ) = sqrt ( X' * X ) Licensing: This code is distributed under the GNU LGPL license. Modified: 30 March 2007 Author: C version by John Burkardt Reference: Jack Dongarra, Cleve Moler, Jim Bunch, Pete Stewart, LINPACK User's Guide, SIAM, 1979. Charles Lawson, Richard Hanson, David Kincaid, Fred Krogh, Basic Linear Algebra Subprograms for Fortran Usage, Algorithm 539, ACM Transactions on Mathematical Software, Volume 5, Number 3, September 1979, pages 308-323. Parameters: Input, int N, the number of entries in the vector. Input, double X[*], the vector whose norm is to be computed. Input, int INCX, the increment between successive entries of X. Output, double DNRM2, the Euclidean norm of X. */ { double absxi; int i; int ix; double norm; double scale; double ssq; double value; if ( n < 1 || incx < 1 ) { norm = 0.0; } else if ( n == 1 ) { norm = r8_abs ( x[0] ); } else { scale = 0.0; ssq = 1.0; ix = 0; for ( i = 0; i < n; i++ ) { if ( x[ix] != 0.0 ) { absxi = r8_abs ( x[ix] ); if ( scale < absxi ) { ssq = 1.0 + ssq * ( scale / absxi ) * ( scale / absxi ); scale = absxi; } else { ssq = ssq + ( absxi / scale ) * ( absxi / scale ); } } ix = ix + incx; } norm = scale * sqrt ( ssq ); } return norm; } /******************************************************************************/ void dqrank ( double a[], int lda, int m, int n, double tol, int *kr, int jpvt[], double qraux[] ) /******************************************************************************/ /* Purpose: DQRANK computes the QR factorization of a rectangular matrix. Discussion: This routine is used in conjunction with DQRLSS to solve overdetermined, underdetermined and singular linear systems in a least squares sense. DQRANK uses the LINPACK subroutine DQRDC to compute the QR factorization, with column pivoting, of an M by N matrix A. The numerical rank is determined using the tolerance TOL. Note that on output, ABS ( A(1,1) ) / ABS ( A(KR,KR) ) is an estimate of the condition number of the matrix of independent columns, and of R. This estimate will be <= 1/TOL. Licensing: This code is distributed under the GNU LGPL license. Modified: 21 April 2012 Author: C version by John Burkardt. Reference: Jack Dongarra, Cleve Moler, Jim Bunch, Pete Stewart, LINPACK User's Guide, SIAM, 1979, ISBN13: 978-0-898711-72-1, LC: QA214.L56. Parameters: Input/output, double A[LDA*N]. On input, the matrix whose decomposition is to be computed. On output, the information from DQRDC. The triangular matrix R of the QR factorization is contained in the upper triangle and information needed to recover the orthogonal matrix Q is stored below the diagonal in A and in the vector QRAUX. Input, int LDA, the leading dimension of A, which must be at least M. Input, int M, the number of rows of A. Input, int N, the number of columns of A. Input, double TOL, a relative tolerance used to determine the numerical rank. The problem should be scaled so that all the elements of A have roughly the same absolute accuracy, EPS. Then a reasonable value for TOL is roughly EPS divided by the magnitude of the largest element. Output, int *KR, the numerical rank. Output, int JPVT[N], the pivot information from DQRDC. Columns JPVT(1), ..., JPVT(KR) of the original matrix are linearly independent to within the tolerance TOL and the remaining columns are linearly dependent. Output, double QRAUX[N], will contain extra information defining the QR factorization. */ { int i; int j; int job; int k; double *work; for ( i = 0; i < n; i++ ) { jpvt[i] = 0; } work = ( double * ) malloc ( n * sizeof ( double ) ); job = 1; dqrdc ( a, lda, m, n, qraux, jpvt, work, job ); *kr = 0; k = i4_min ( m, n ); for ( j = 0; j < k; j++ ) { if ( r8_abs ( a[j+j*lda] ) <= tol * r8_abs ( a[0+0*lda] ) ) { return; } *kr = j + 1; } free ( work ); return; } /******************************************************************************/ void dqrdc ( double a[], int lda, int n, int p, double qraux[], int jpvt[], double work[], int job ) /******************************************************************************/ /* Purpose: DQRDC computes the QR factorization of a real rectangular matrix. Discussion: DQRDC uses Householder transformations. Column pivoting based on the 2-norms of the reduced columns may be performed at the user's option. Licensing: This code is distributed under the GNU LGPL license. Modified: 07 June 2005 Author: C version by John Burkardt. Reference: Jack Dongarra, Cleve Moler, Jim Bunch and Pete Stewart, LINPACK User's Guide, SIAM, (Society for Industrial and Applied Mathematics), 3600 University City Science Center, Philadelphia, PA, 19104-2688. ISBN 0-89871-172-X Parameters: Input/output, double A(LDA,P). On input, the N by P matrix whose decomposition is to be computed. On output, A contains in its upper triangle the upper triangular matrix R of the QR factorization. Below its diagonal A contains information from which the orthogonal part of the decomposition can be recovered. Note that if pivoting has been requested, the decomposition is not that of the original matrix A but that of A with its columns permuted as described by JPVT. Input, int LDA, the leading dimension of the array A. LDA must be at least N. Input, int N, the number of rows of the matrix A. Input, int P, the number of columns of the matrix A. Output, double QRAUX[P], contains further information required to recover the orthogonal part of the decomposition. Input/output, integer JPVT[P]. On input, JPVT contains integers that control the selection of the pivot columns. The K-th column A(*,K) of A is placed in one of three classes according to the value of JPVT(K). > 0, then A(K) is an initial column. = 0, then A(K) is a free column. < 0, then A(K) is a final column. Before the decomposition is computed, initial columns are moved to the beginning of the array A and final columns to the end. Both initial and final columns are frozen in place during the computation and only free columns are moved. At the K-th stage of the reduction, if A(*,K) is occupied by a free column it is interchanged with the free column of largest reduced norm. JPVT is not referenced if JOB == 0. On output, JPVT(K) contains the index of the column of the original matrix that has been interchanged into the K-th column, if pivoting was requested. Workspace, double WORK[P]. WORK is not referenced if JOB == 0. Input, int JOB, initiates column pivoting. 0, no pivoting is done. nonzero, pivoting is done. */ { int j; int jp; int l; int lup; int maxj; double maxnrm; double nrmxl; int pl; int pu; int swapj; double t; double tt; pl = 1; pu = 0; /* If pivoting is requested, rearrange the columns. */ if ( job != 0 ) { for ( j = 1; j <= p; j++ ) { swapj = ( 0 < jpvt[j-1] ); if ( jpvt[j-1] < 0 ) { jpvt[j-1] = -j; } else { jpvt[j-1] = j; } if ( swapj ) { if ( j != pl ) { dswap ( n, a+0+(pl-1)*lda, 1, a+0+(j-1), 1 ); } jpvt[j-1] = jpvt[pl-1]; jpvt[pl-1] = j; pl = pl + 1; } } pu = p; for ( j = p; 1 <= j; j-- ) { if ( jpvt[j-1] < 0 ) { jpvt[j-1] = -jpvt[j-1]; if ( j != pu ) { dswap ( n, a+0+(pu-1)*lda, 1, a+0+(j-1)*lda, 1 ); jp = jpvt[pu-1]; jpvt[pu-1] = jpvt[j-1]; jpvt[j-1] = jp; } pu = pu - 1; } } } /* Compute the norms of the free columns. */ for ( j = pl; j <= pu; j++ ) { qraux[j-1] = dnrm2 ( n, a+0+(j-1)*lda, 1 ); } for ( j = pl; j <= pu; j++ ) { work[j-1] = qraux[j-1]; } /* Perform the Householder reduction of A. */ lup = i4_min ( n, p ); for ( l = 1; l <= lup; l++ ) { /* Bring the column of largest norm into the pivot position. */ if ( pl <= l && l < pu ) { maxnrm = 0.0; maxj = l; for ( j = l; j <= pu; j++ ) { if ( maxnrm < qraux[j-1] ) { maxnrm = qraux[j-1]; maxj = j; } } if ( maxj != l ) { dswap ( n, a+0+(l-1)*lda, 1, a+0+(maxj-1)*lda, 1 ); qraux[maxj-1] = qraux[l-1]; work[maxj-1] = work[l-1]; jp = jpvt[maxj-1]; jpvt[maxj-1] = jpvt[l-1]; jpvt[l-1] = jp; } } /* Compute the Householder transformation for column L. */ qraux[l-1] = 0.0; if ( l != n ) { nrmxl = dnrm2 ( n-l+1, a+l-1+(l-1)*lda, 1 ); if ( nrmxl != 0.0 ) { if ( a[l-1+(l-1)*lda] != 0.0 ) { nrmxl = nrmxl * r8_sign ( a[l-1+(l-1)*lda] ); } dscal ( n-l+1, 1.0 / nrmxl, a+l-1+(l-1)*lda, 1 ); a[l-1+(l-1)*lda] = 1.0 + a[l-1+(l-1)*lda]; /* Apply the transformation to the remaining columns, updating the norms. */ for ( j = l + 1; j <= p; j++ ) { t = -ddot ( n-l+1, a+l-1+(l-1)*lda, 1, a+l-1+(j-1)*lda, 1 ) / a[l-1+(l-1)*lda]; daxpy ( n-l+1, t, a+l-1+(l-1)*lda, 1, a+l-1+(j-1)*lda, 1 ); if ( pl <= j && j <= pu ) { if ( qraux[j-1] != 0.0 ) { tt = 1.0 - pow ( r8_abs ( a[l-1+(j-1)*lda] ) / qraux[j-1], 2 ); tt = r8_max ( tt, 0.0 ); t = tt; tt = 1.0 + 0.05 * tt * pow ( qraux[j-1] / work[j-1], 2 ); if ( tt != 1.0 ) { qraux[j-1] = qraux[j-1] * sqrt ( t ); } else { qraux[j-1] = dnrm2 ( n-l, a+l+(j-1)*lda, 1 ); work[j-1] = qraux[j-1]; } } } } /* Save the transformation. */ qraux[l-1] = a[l-1+(l-1)*lda]; a[l-1+(l-1)*lda] = -nrmxl; } } } return; } /******************************************************************************/ int dqrls ( double a[], int lda, int m, int n, double tol, int *kr, double b[], double x[], double rsd[], int jpvt[], double qraux[], int itask ) /******************************************************************************/ /* Purpose: DQRLS factors and solves a linear system in the least squares sense. Discussion: The linear system may be overdetermined, underdetermined or singular. The solution is obtained using a QR factorization of the coefficient matrix. DQRLS can be efficiently used to solve several least squares problems with the same matrix A. The first system is solved with ITASK = 1. The subsequent systems are solved with ITASK = 2, to avoid the recomputation of the matrix factors. The parameters KR, JPVT, and QRAUX must not be modified between calls to DQRLS. DQRLS is used to solve in a least squares sense overdetermined, underdetermined and singular linear systems. The system is A*X approximates B where A is M by N. B is a given M-vector, and X is the N-vector to be computed. A solution X is found which minimimzes the sum of squares (2-norm) of the residual, A*X - B. The numerical rank of A is determined using the tolerance TOL. DQRLS uses the LINPACK subroutine DQRDC to compute the QR factorization, with column pivoting, of an M by N matrix A. Licensing: This code is distributed under the GNU LGPL license. Modified: 10 September 2012 Author: C version by John Burkardt. Reference: David Kahaner, Cleve Moler, Steven Nash, Numerical Methods and Software, Prentice Hall, 1989, ISBN: 0-13-627258-4, LC: TA345.K34. Parameters: Input/output, double A[LDA*N], an M by N matrix. On input, the matrix whose decomposition is to be computed. In a least squares data fitting problem, A(I,J) is the value of the J-th basis (model) function at the I-th data point. On output, A contains the output from DQRDC. The triangular matrix R of the QR factorization is contained in the upper triangle and information needed to recover the orthogonal matrix Q is stored below the diagonal in A and in the vector QRAUX. Input, int LDA, the leading dimension of A. Input, int M, the number of rows of A. Input, int N, the number of columns of A. Input, double TOL, a relative tolerance used to determine the numerical rank. The problem should be scaled so that all the elements of A have roughly the same absolute accuracy EPS. Then a reasonable value for TOL is roughly EPS divided by the magnitude of the largest element. Output, int *KR, the numerical rank. Input, double B[M], the right hand side of the linear system. Output, double X[N], a least squares solution to the linear system. Output, double RSD[M], the residual, B - A*X. RSD may overwrite B. Workspace, int JPVT[N], required if ITASK = 1. Columns JPVT(1), ..., JPVT(KR) of the original matrix are linearly independent to within the tolerance TOL and the remaining columns are linearly dependent. ABS ( A(1,1) ) / ABS ( A(KR,KR) ) is an estimate of the condition number of the matrix of independent columns, and of R. This estimate will be <= 1/TOL. Workspace, double QRAUX[N], required if ITASK = 1. Input, int ITASK. 1, DQRLS factors the matrix A and solves the least squares problem. 2, DQRLS assumes that the matrix A was factored with an earlier call to DQRLS, and only solves the least squares problem. Output, int DQRLS, error code. 0: no error -1: LDA < M (fatal error) -2: N < 1 (fatal error) -3: ITASK < 1 (fatal error) */ { int ind; if ( lda < m ) { /*fprintf ( stderr, "\n" ); fprintf ( stderr, "DQRLS - Fatal error!\n" ); fprintf ( stderr, " LDA < M.\n" );*/ ind = -1; return ind; } if ( n <= 0 ) { /*fprintf ( stderr, "\n" ); fprintf ( stderr, "DQRLS - Fatal error!\n" ); fprintf ( stderr, " N <= 0.\n" );*/ ind = -2; return ind; } if ( itask < 1 ) { /*fprintf ( stderr, "\n" ); fprintf ( stderr, "DQRLS - Fatal error!\n" ); fprintf ( stderr, " ITASK < 1.\n" );*/ ind = -3; return ind; } ind = 0; /* Factor the matrix. */ if ( itask == 1 ) { dqrank ( a, lda, m, n, tol, kr, jpvt, qraux ); } /* Solve the least-squares problem. */ dqrlss ( a, lda, m, n, *kr, b, x, rsd, jpvt, qraux ); return ind; } /******************************************************************************/ void dqrlss ( double a[], int lda, int m, int n, int kr, double b[], double x[], double rsd[], int jpvt[], double qraux[] ) /******************************************************************************/ /* Purpose: DQRLSS solves a linear system in a least squares sense. Discussion: DQRLSS must be preceded by a call to DQRANK. The system is to be solved is A * X = B where A is an M by N matrix with rank KR, as determined by DQRANK, B is a given M-vector, X is the N-vector to be computed. A solution X, with at most KR nonzero components, is found which minimizes the 2-norm of the residual (A*X-B). Once the matrix A has been formed, DQRANK should be called once to decompose it. Then, for each right hand side B, DQRLSS should be called once to obtain the solution and residual. Licensing: This code is distributed under the GNU LGPL license. Modified: 10 September 2012 Author: C version by John Burkardt Parameters: Input, double A[LDA*N], the QR factorization information from DQRANK. The triangular matrix R of the QR factorization is contained in the upper triangle and information needed to recover the orthogonal matrix Q is stored below the diagonal in A and in the vector QRAUX. Input, int LDA, the leading dimension of A, which must be at least M. Input, int M, the number of rows of A. Input, int N, the number of columns of A. Input, int KR, the rank of the matrix, as estimated by DQRANK. Input, double B[M], the right hand side of the linear system. Output, double X[N], a least squares solution to the linear system. Output, double RSD[M], the residual, B - A*X. RSD may overwrite B. Input, int JPVT[N], the pivot information from DQRANK. Columns JPVT[0], ..., JPVT[KR-1] of the original matrix are linearly independent to within the tolerance TOL and the remaining columns are linearly dependent. Input, double QRAUX[N], auxiliary information from DQRANK defining the QR factorization. */ { int i; int info; int j; int job; int k; double t; if ( kr != 0 ) { job = 110; info = dqrsl ( a, lda, m, kr, qraux, b, rsd, rsd, x, rsd, rsd, job ); } for ( i = 0; i < n; i++ ) { jpvt[i] = - jpvt[i]; } for ( i = kr; i < n; i++ ) { x[i] = 0.0; } for ( j = 1; j <= n; j++ ) { if ( jpvt[j-1] <= 0 ) { k = - jpvt[j-1]; jpvt[j-1] = k; while ( k != j ) { t = x[j-1]; x[j-1] = x[k-1]; x[k-1] = t; jpvt[k-1] = -jpvt[k-1]; k = jpvt[k-1]; } } } return; } /******************************************************************************/ int dqrsl ( double a[], int lda, int n, int k, double qraux[], double y[], double qy[], double qty[], double b[], double rsd[], double ab[], int job ) /******************************************************************************/ /* Purpose: DQRSL computes transformations, projections, and least squares solutions. Discussion: DQRSL requires the output of DQRDC. For K <= min(N,P), let AK be the matrix AK = ( A(JPVT[0]), A(JPVT(2)), ..., A(JPVT(K)) ) formed from columns JPVT[0], ..., JPVT(K) of the original N by P matrix A that was input to DQRDC. If no pivoting was done, AK consists of the first K columns of A in their original order. DQRDC produces a factored orthogonal matrix Q and an upper triangular matrix R such that AK = Q * (R) (0) This information is contained in coded form in the arrays A and QRAUX. The parameters QY, QTY, B, RSD, and AB are not referenced if their computation is not requested and in this case can be replaced by dummy variables in the calling program. To save storage, the user may in some cases use the same array for different parameters in the calling sequence. A frequently occurring example is when one wishes to compute any of B, RSD, or AB and does not need Y or QTY. In this case one may identify Y, QTY, and one of B, RSD, or AB, while providing separate arrays for anything else that is to be computed. Thus the calling sequence dqrsl ( a, lda, n, k, qraux, y, dum, y, b, y, dum, 110, info ) will result in the computation of B and RSD, with RSD overwriting Y. More generally, each item in the following list contains groups of permissible identifications for a single calling sequence. 1. (Y,QTY,B) (RSD) (AB) (QY) 2. (Y,QTY,RSD) (B) (AB) (QY) 3. (Y,QTY,AB) (B) (RSD) (QY) 4. (Y,QY) (QTY,B) (RSD) (AB) 5. (Y,QY) (QTY,RSD) (B) (AB) 6. (Y,QY) (QTY,AB) (B) (RSD) In any group the value returned in the array allocated to the group corresponds to the last member of the group. Licensing: This code is distributed under the GNU LGPL license. Modified: 07 June 2005 Author: C version by John Burkardt. Reference: Jack Dongarra, Cleve Moler, Jim Bunch and Pete Stewart, LINPACK User's Guide, SIAM, (Society for Industrial and Applied Mathematics), 3600 University City Science Center, Philadelphia, PA, 19104-2688. ISBN 0-89871-172-X Parameters: Input, double A[LDA*P], contains the output of DQRDC. Input, int LDA, the leading dimension of the array A. Input, int N, the number of rows of the matrix AK. It must have the same value as N in DQRDC. Input, int K, the number of columns of the matrix AK. K must not be greater than min(N,P), where P is the same as in the calling sequence to DQRDC. Input, double QRAUX[P], the auxiliary output from DQRDC. Input, double Y[N], a vector to be manipulated by DQRSL. Output, double QY[N], contains Q * Y, if requested. Output, double QTY[N], contains Q' * Y, if requested. Output, double B[K], the solution of the least squares problem minimize norm2 ( Y - AK * B), if its computation has been requested. Note that if pivoting was requested in DQRDC, the J-th component of B will be associated with column JPVT(J) of the original matrix A that was input into DQRDC. Output, double RSD[N], the least squares residual Y - AK * B, if its computation has been requested. RSD is also the orthogonal projection of Y onto the orthogonal complement of the column space of AK. Output, double AB[N], the least squares approximation Ak * B, if its computation has been requested. AB is also the orthogonal projection of Y onto the column space of A. Input, integer JOB, specifies what is to be computed. JOB has the decimal expansion ABCDE, with the following meaning: if A != 0, compute QY. if B != 0, compute QTY. if C != 0, compute QTY and B. if D != 0, compute QTY and RSD. if E != 0, compute QTY and AB. Note that a request to compute B, RSD, or AB automatically triggers the computation of QTY, for which an array must be provided in the calling sequence. Output, int DQRSL, is zero unless the computation of B has been requested and R is exactly singular. In this case, INFO is the index of the first zero diagonal element of R, and B is left unaltered. */ { int cab; int cb; int cqty; int cqy; int cr; int i; int info; int j; int jj; int ju; double t; double temp; /* Set INFO flag. */ info = 0; /* Determine what is to be computed. */ cqy = ( job / 10000 != 0 ); cqty = ( ( job % 10000 ) != 0 ); cb = ( ( job % 1000 ) / 100 != 0 ); cr = ( ( job % 100 ) / 10 != 0 ); cab = ( ( job % 10 ) != 0 ); ju = i4_min ( k, n-1 ); /* Special action when N = 1. */ if ( ju == 0 ) { if ( cqy ) { qy[0] = y[0]; } if ( cqty ) { qty[0] = y[0]; } if ( cab ) { ab[0] = y[0]; } if ( cb ) { if ( a[0+0*lda] == 0.0 ) { info = 1; } else { b[0] = y[0] / a[0+0*lda]; } } if ( cr ) { rsd[0] = 0.0; } return info; } /* Set up to compute QY or QTY. */ if ( cqy ) { for ( i = 1; i <= n; i++ ) { qy[i-1] = y[i-1]; } } if ( cqty ) { for ( i = 1; i <= n; i++ ) { qty[i-1] = y[i-1]; } } /* Compute QY. */ if ( cqy ) { for ( jj = 1; jj <= ju; jj++ ) { j = ju - jj + 1; if ( qraux[j-1] != 0.0 ) { temp = a[j-1+(j-1)*lda]; a[j-1+(j-1)*lda] = qraux[j-1]; t = -ddot ( n-j+1, a+j-1+(j-1)*lda, 1, qy+j-1, 1 ) / a[j-1+(j-1)*lda]; daxpy ( n-j+1, t, a+j-1+(j-1)*lda, 1, qy+j-1, 1 ); a[j-1+(j-1)*lda] = temp; } } } /* Compute Q'*Y. */ if ( cqty ) { for ( j = 1; j <= ju; j++ ) { if ( qraux[j-1] != 0.0 ) { temp = a[j-1+(j-1)*lda]; a[j-1+(j-1)*lda] = qraux[j-1]; t = -ddot ( n-j+1, a+j-1+(j-1)*lda, 1, qty+j-1, 1 ) / a[j-1+(j-1)*lda]; daxpy ( n-j+1, t, a+j-1+(j-1)*lda, 1, qty+j-1, 1 ); a[j-1+(j-1)*lda] = temp; } } } /* Set up to compute B, RSD, or AB. */ if ( cb ) { for ( i = 1; i <= k; i++ ) { b[i-1] = qty[i-1]; } } if ( cab ) { for ( i = 1; i <= k; i++ ) { ab[i-1] = qty[i-1]; } } if ( cr && k < n ) { for ( i = k+1; i <= n; i++ ) { rsd[i-1] = qty[i-1]; } } if ( cab && k+1 <= n ) { for ( i = k+1; i <= n; i++ ) { ab[i-1] = 0.0; } } if ( cr ) { for ( i = 1; i <= k; i++ ) { rsd[i-1] = 0.0; } } /* Compute B. */ if ( cb ) { for ( jj = 1; jj <= k; jj++ ) { j = k - jj + 1; if ( a[j-1+(j-1)*lda] == 0.0 ) { info = j; break; } b[j-1] = b[j-1] / a[j-1+(j-1)*lda]; if ( j != 1 ) { t = -b[j-1]; daxpy ( j-1, t, a+0+(j-1)*lda, 1, b, 1 ); } } } /* Compute RSD or AB as required. */ if ( cr || cab ) { for ( jj = 1; jj <= ju; jj++ ) { j = ju - jj + 1; if ( qraux[j-1] != 0.0 ) { temp = a[j-1+(j-1)*lda]; a[j-1+(j-1)*lda] = qraux[j-1]; if ( cr ) { t = -ddot ( n-j+1, a+j-1+(j-1)*lda, 1, rsd+j-1, 1 ) / a[j-1+(j-1)*lda]; daxpy ( n-j+1, t, a+j-1+(j-1)*lda, 1, rsd+j-1, 1 ); } if ( cab ) { t = -ddot ( n-j+1, a+j-1+(j-1)*lda, 1, ab+j-1, 1 ) / a[j-1+(j-1)*lda]; daxpy ( n-j+1, t, a+j-1+(j-1)*lda, 1, ab+j-1, 1 ); } a[j-1+(j-1)*lda] = temp; } } } return info; } /******************************************************************************/ /******************************************************************************/ void dscal ( int n, double sa, double x[], int incx ) /******************************************************************************/ /* Purpose: DSCAL scales a vector by a constant. Licensing: This code is distributed under the GNU LGPL license. Modified: 30 March 2007 Author: C version by John Burkardt Reference: Jack Dongarra, Cleve Moler, Jim Bunch, Pete Stewart, LINPACK User's Guide, SIAM, 1979. Charles Lawson, Richard Hanson, David Kincaid, Fred Krogh, Basic Linear Algebra Subprograms for Fortran Usage, Algorithm 539, ACM Transactions on Mathematical Software, Volume 5, Number 3, September 1979, pages 308-323. Parameters: Input, int N, the number of entries in the vector. Input, double SA, the multiplier. Input/output, double X[*], the vector to be scaled. Input, int INCX, the increment between successive entries of X. */ { int i; int ix; int m; if ( n <= 0 ) { } else if ( incx == 1 ) { m = n % 5; for ( i = 0; i < m; i++ ) { x[i] = sa * x[i]; } for ( i = m; i < n; i = i + 5 ) { x[i] = sa * x[i]; x[i+1] = sa * x[i+1]; x[i+2] = sa * x[i+2]; x[i+3] = sa * x[i+3]; x[i+4] = sa * x[i+4]; } } else { if ( 0 <= incx ) { ix = 0; } else { ix = ( - n + 1 ) * incx; } for ( i = 0; i < n; i++ ) { x[ix] = sa * x[ix]; ix = ix + incx; } } return; } /******************************************************************************/ void dswap ( int n, double x[], int incx, double y[], int incy ) /******************************************************************************/ /* Purpose: DSWAP interchanges two vectors. Licensing: This code is distributed under the GNU LGPL license. Modified: 30 March 2007 Author: C version by John Burkardt Reference: Jack Dongarra, Cleve Moler, Jim Bunch, Pete Stewart, LINPACK User's Guide, SIAM, 1979. Charles Lawson, Richard Hanson, David Kincaid, Fred Krogh, Basic Linear Algebra Subprograms for Fortran Usage, Algorithm 539, ACM Transactions on Mathematical Software, Volume 5, Number 3, September 1979, pages 308-323. Parameters: Input, int N, the number of entries in the vectors. Input/output, double X[*], one of the vectors to swap. Input, int INCX, the increment between successive entries of X. Input/output, double Y[*], one of the vectors to swap. Input, int INCY, the increment between successive elements of Y. */ { int i; int ix; int iy; int m; double temp; if ( n <= 0 ) { } else if ( incx == 1 && incy == 1 ) { m = n % 3; for ( i = 0; i < m; i++ ) { temp = x[i]; x[i] = y[i]; y[i] = temp; } for ( i = m; i < n; i = i + 3 ) { temp = x[i]; x[i] = y[i]; y[i] = temp; temp = x[i+1]; x[i+1] = y[i+1]; y[i+1] = temp; temp = x[i+2]; x[i+2] = y[i+2]; y[i+2] = temp; } } else { if ( 0 <= incx ) { ix = 0; } else { ix = ( - n + 1 ) * incx; } if ( 0 <= incy ) { iy = 0; } else { iy = ( - n + 1 ) * incy; } for ( i = 0; i < n; i++ ) { temp = x[ix]; x[ix] = y[iy]; y[iy] = temp; ix = ix + incx; iy = iy + incy; } } return; } /******************************************************************************/ /******************************************************************************/ double *qr_solve ( int m, int n, double a[], double b[] ) /******************************************************************************/ /* Purpose: QR_SOLVE solves a linear system in the least squares sense. Discussion: If the matrix A has full column rank, then the solution X should be the unique vector that minimizes the Euclidean norm of the residual. If the matrix A does not have full column rank, then the solution is not unique; the vector X will minimize the residual norm, but so will various other vectors. Licensing: This code is distributed under the GNU LGPL license. Modified: 11 September 2012 Author: John Burkardt Reference: David Kahaner, Cleve Moler, Steven Nash, Numerical Methods and Software, Prentice Hall, 1989, ISBN: 0-13-627258-4, LC: TA345.K34. Parameters: Input, int M, the number of rows of A. Input, int N, the number of columns of A. Input, double A[M*N], the matrix. Input, double B[M], the right hand side. Output, double QR_SOLVE[N], the least squares solution. */ { double *a_qr; int ind; int itask; int *jpvt; int kr; int lda; double *qraux; double *r; double tol; double *x; a_qr = r8mat_copy_new ( m, n, a ); lda = m; tol = r8_epsilon ( ) / r8mat_amax ( m, n, a_qr ); x = ( double * ) malloc ( n * sizeof ( double ) ); jpvt = ( int * ) malloc ( n * sizeof ( int ) ); qraux = ( double * ) malloc ( n * sizeof ( double ) ); r = ( double * ) malloc ( m * sizeof ( double ) ); itask = 1; ind = dqrls ( a_qr, lda, m, n, tol, &kr, b, x, r, jpvt, qraux, itask ); free ( a_qr ); free ( jpvt ); free ( qraux ); free ( r ); return x; } /******************************************************************************/ #endif ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/qr_solve.cpp
c++
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
12,327
```c++ /* vector_3.cpp - Vector library for bed leveling This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU You should have received a copy of the GNU Lesser General Public Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #include <math.h> #include "Marlin.h" #ifdef ENABLE_AUTO_BED_LEVELING #include "vector_3.h" vector_3::vector_3() : x(0), y(0), z(0) { } vector_3::vector_3(float x_, float y_, float z_) : x(x_), y(y_), z(z_) { } vector_3 vector_3::cross(vector_3 left, vector_3 right) { return vector_3(left.y * right.z - left.z * right.y, left.z * right.x - left.x * right.z, left.x * right.y - left.y * right.x); } vector_3 vector_3::operator+(vector_3 v) { return vector_3((x + v.x), (y + v.y), (z + v.z)); } vector_3 vector_3::operator-(vector_3 v) { return vector_3((x - v.x), (y - v.y), (z - v.z)); } vector_3 vector_3::get_normal() { vector_3 normalized = vector_3(x, y, z); normalized.normalize(); return normalized; } float vector_3::get_length() { float length = sqrt((x * x) + (y * y) + (z * z)); return length; } void vector_3::normalize() { float length = get_length(); x /= length; y /= length; z /= length; } void vector_3::apply_rotation(matrix_3x3 matrix) { float resultX = x * matrix.matrix[3*0+0] + y * matrix.matrix[3*1+0] + z * matrix.matrix[3*2+0]; float resultY = x * matrix.matrix[3*0+1] + y * matrix.matrix[3*1+1] + z * matrix.matrix[3*2+1]; float resultZ = x * matrix.matrix[3*0+2] + y * matrix.matrix[3*1+2] + z * matrix.matrix[3*2+2]; x = resultX; y = resultY; z = resultZ; } void vector_3::debug(char* title) { SERIAL_PROTOCOL(title); SERIAL_PROTOCOLPGM(" x: "); SERIAL_PROTOCOL(x); SERIAL_PROTOCOLPGM(" y: "); SERIAL_PROTOCOL(y); SERIAL_PROTOCOLPGM(" z: "); SERIAL_PROTOCOL(z); SERIAL_PROTOCOLPGM("\n"); } void apply_rotation_xyz(matrix_3x3 matrix, float &x, float& y, float& z) { vector_3 vector = vector_3(x, y, z); vector.apply_rotation(matrix); x = vector.x; y = vector.y; z = vector.z; } matrix_3x3 matrix_3x3::create_from_rows(vector_3 row_0, vector_3 row_1, vector_3 row_2) { //row_0.debug("row_0"); //row_1.debug("row_1"); //row_2.debug("row_2"); matrix_3x3 new_matrix; new_matrix.matrix[0] = row_0.x; new_matrix.matrix[1] = row_0.y; new_matrix.matrix[2] = row_0.z; new_matrix.matrix[3] = row_1.x; new_matrix.matrix[4] = row_1.y; new_matrix.matrix[5] = row_1.z; new_matrix.matrix[6] = row_2.x; new_matrix.matrix[7] = row_2.y; new_matrix.matrix[8] = row_2.z; //new_matrix.debug("new_matrix"); return new_matrix; } void matrix_3x3::set_to_identity() { matrix[0] = 1; matrix[1] = 0; matrix[2] = 0; matrix[3] = 0; matrix[4] = 1; matrix[5] = 0; matrix[6] = 0; matrix[7] = 0; matrix[8] = 1; } matrix_3x3 matrix_3x3::create_look_at(vector_3 target) { vector_3 z_row = target.get_normal(); vector_3 x_row = vector_3(1, 0, -target.x/target.z).get_normal(); vector_3 y_row = vector_3::cross(z_row, x_row).get_normal(); // x_row.debug("x_row"); // y_row.debug("y_row"); // z_row.debug("z_row"); // create the matrix already correctly transposed matrix_3x3 rot = matrix_3x3::create_from_rows(x_row, y_row, z_row); // rot.debug("rot"); return rot; } matrix_3x3 matrix_3x3::transpose(matrix_3x3 original) { matrix_3x3 new_matrix; new_matrix.matrix[0] = original.matrix[0]; new_matrix.matrix[1] = original.matrix[3]; new_matrix.matrix[2] = original.matrix[6]; new_matrix.matrix[3] = original.matrix[1]; new_matrix.matrix[4] = original.matrix[4]; new_matrix.matrix[5] = original.matrix[7]; new_matrix.matrix[6] = original.matrix[2]; new_matrix.matrix[7] = original.matrix[5]; new_matrix.matrix[8] = original.matrix[8]; return new_matrix; } void matrix_3x3::debug(char* title) { SERIAL_PROTOCOL(title); SERIAL_PROTOCOL("\n"); int count = 0; for(int i=0; i<3; i++) { for(int j=0; j<3; j++) { SERIAL_PROTOCOL(matrix[count]); SERIAL_PROTOCOLPGM(" "); count++; } SERIAL_PROTOCOLPGM("\n"); } } #endif // #ifdef ENABLE_AUTO_BED_LEVELING ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/vector_3.cpp
c++
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
1,417
```objective-c #ifndef CARDREADER_H #define CARDREADER_H #ifdef SDSUPPORT #define MAX_DIR_DEPTH 10 #include "SdFile.h" enum LsAction {LS_SerialPrint,LS_Count,LS_GetFilename}; class CardReader { public: CardReader(); void initsd(); void write_command(char *buf); //files auto[0-9].g on the sd card are performed in a row //this is to delay autostart and hence the initialisaiton of the sd card to some seconds after the normal init, so the device is available quick after a reset void checkautostart(bool x); void openFile(char* name,bool read,bool replace_current=true); void openLogFile(char* name); void removeFile(char* name); void closefile(bool store_location=false); void release(); void startFileprint(); void pauseSDPrint(); void getStatus(); void printingHasFinished(); void getfilename(uint16_t nr, const char* const match=NULL); uint16_t getnrfilenames(); void getAbsFilename(char *t); void ls(); void chdir(const char * relpath); void updir(); void setroot(); FORCE_INLINE bool isFileOpen() { return file.isOpen(); } FORCE_INLINE bool eof() { return sdpos>=filesize ;}; FORCE_INLINE int16_t get() { sdpos = file.curPosition();return (int16_t)file.read();}; FORCE_INLINE void setIndex(long index) {sdpos = index;file.seekSet(index);}; FORCE_INLINE uint8_t percentDone(){if(!isFileOpen()) return 0; if(filesize) return sdpos/((filesize+99)/100); else return 0;}; FORCE_INLINE char* getWorkDirName(){workDir.getFilename(filename);return filename;}; public: bool saving; bool logging; bool sdprinting ; bool cardOK ; char filename[13]; char longFilename[LONG_FILENAME_LENGTH]; bool filenameIsDir; int lastnr; //last number of the autostart; private: SdFile root,*curDir,workDir,workDirParents[MAX_DIR_DEPTH]; uint16_t workDirDepth; Sd2Card card; SdVolume volume; SdFile file; #define SD_PROCEDURE_DEPTH 1 #define MAXPATHNAMELENGTH (13*MAX_DIR_DEPTH+MAX_DIR_DEPTH+1) uint8_t file_subcall_ctr; uint32_t filespos[SD_PROCEDURE_DEPTH]; char filenames[SD_PROCEDURE_DEPTH][MAXPATHNAMELENGTH]; uint32_t filesize; //int16_t n; unsigned long autostart_atmillis; uint32_t sdpos ; bool autostart_stilltocheck; //the sd start is delayed, because otherwise the serial cannot answer fast enought to make contact with the hostsoftware. LsAction lsAction; //stored for recursion. int16_t nrFiles; //counter for the files in the current directory and recycled as position counter for getting the nrFiles'th name in the directory. char* diveDirName; void lsDive(const char *prepend, SdFile parent, const char * const match=NULL); }; extern CardReader card; #define IS_SD_PRINTING (card.sdprinting) #if (SDCARDDETECT > -1) # ifdef SDCARDDETECTINVERTED # define IS_SD_INSERTED (READ(SDCARDDETECT)!=0) # else # define IS_SD_INSERTED (READ(SDCARDDETECT)==0) # endif //SDCARDTETECTINVERTED #else //If we don't have a card detect line, aways asume the card is inserted # define IS_SD_INSERTED true #endif #else #define IS_SD_PRINTING (false) #endif //SDSUPPORT #endif ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/cardreader.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
846
```objective-c #ifndef THERMISTORTABLES_H_ #define THERMISTORTABLES_H_ #include "Marlin.h" #define OVERSAMPLENR 16 #if (THERMISTORHEATER_0 == 1) || (THERMISTORHEATER_1 == 1) || (THERMISTORHEATER_2 == 1) || (THERMISTORBED == 1) //100k bed thermistor const short temptable_1[][2] PROGMEM = { { 23*OVERSAMPLENR , 300 }, { 25*OVERSAMPLENR , 295 }, { 27*OVERSAMPLENR , 290 }, { 28*OVERSAMPLENR , 285 }, { 31*OVERSAMPLENR , 280 }, { 33*OVERSAMPLENR , 275 }, { 35*OVERSAMPLENR , 270 }, { 38*OVERSAMPLENR , 265 }, { 41*OVERSAMPLENR , 260 }, { 44*OVERSAMPLENR , 255 }, { 48*OVERSAMPLENR , 250 }, { 52*OVERSAMPLENR , 245 }, { 56*OVERSAMPLENR , 240 }, { 61*OVERSAMPLENR , 235 }, { 66*OVERSAMPLENR , 230 }, { 71*OVERSAMPLENR , 225 }, { 78*OVERSAMPLENR , 220 }, { 84*OVERSAMPLENR , 215 }, { 92*OVERSAMPLENR , 210 }, { 100*OVERSAMPLENR , 205 }, { 109*OVERSAMPLENR , 200 }, { 120*OVERSAMPLENR , 195 }, { 131*OVERSAMPLENR , 190 }, { 143*OVERSAMPLENR , 185 }, { 156*OVERSAMPLENR , 180 }, { 171*OVERSAMPLENR , 175 }, { 187*OVERSAMPLENR , 170 }, { 205*OVERSAMPLENR , 165 }, { 224*OVERSAMPLENR , 160 }, { 245*OVERSAMPLENR , 155 }, { 268*OVERSAMPLENR , 150 }, { 293*OVERSAMPLENR , 145 }, { 320*OVERSAMPLENR , 140 }, { 348*OVERSAMPLENR , 135 }, { 379*OVERSAMPLENR , 130 }, { 411*OVERSAMPLENR , 125 }, { 445*OVERSAMPLENR , 120 }, { 480*OVERSAMPLENR , 115 }, { 516*OVERSAMPLENR , 110 }, { 553*OVERSAMPLENR , 105 }, { 591*OVERSAMPLENR , 100 }, { 628*OVERSAMPLENR , 95 }, { 665*OVERSAMPLENR , 90 }, { 702*OVERSAMPLENR , 85 }, { 737*OVERSAMPLENR , 80 }, { 770*OVERSAMPLENR , 75 }, { 801*OVERSAMPLENR , 70 }, { 830*OVERSAMPLENR , 65 }, { 857*OVERSAMPLENR , 60 }, { 881*OVERSAMPLENR , 55 }, { 903*OVERSAMPLENR , 50 }, { 922*OVERSAMPLENR , 45 }, { 939*OVERSAMPLENR , 40 }, { 954*OVERSAMPLENR , 35 }, { 966*OVERSAMPLENR , 30 }, { 977*OVERSAMPLENR , 25 }, { 985*OVERSAMPLENR , 20 }, { 993*OVERSAMPLENR , 15 }, { 999*OVERSAMPLENR , 10 }, { 1004*OVERSAMPLENR , 5 }, { 1008*OVERSAMPLENR , 0 } //safety }; #endif #if (THERMISTORHEATER_0 == 2) || (THERMISTORHEATER_1 == 2) || (THERMISTORHEATER_2 == 2) || (THERMISTORBED == 2) //200k bed thermistor const short temptable_2[][2] PROGMEM = { //200k ATC Semitec 204GT-2 //Verified by linagee. Source: path_to_url // Calculated using 4.7kohm pullup, voltage divider math, and manufacturer provided temp/resistance {1*OVERSAMPLENR, 848}, {30*OVERSAMPLENR, 300}, //top rating 300C {34*OVERSAMPLENR, 290}, {39*OVERSAMPLENR, 280}, {46*OVERSAMPLENR, 270}, {53*OVERSAMPLENR, 260}, {63*OVERSAMPLENR, 250}, {74*OVERSAMPLENR, 240}, {87*OVERSAMPLENR, 230}, {104*OVERSAMPLENR, 220}, {124*OVERSAMPLENR, 210}, {148*OVERSAMPLENR, 200}, {176*OVERSAMPLENR, 190}, {211*OVERSAMPLENR, 180}, {252*OVERSAMPLENR, 170}, {301*OVERSAMPLENR, 160}, {357*OVERSAMPLENR, 150}, {420*OVERSAMPLENR, 140}, {489*OVERSAMPLENR, 130}, {562*OVERSAMPLENR, 120}, {636*OVERSAMPLENR, 110}, {708*OVERSAMPLENR, 100}, {775*OVERSAMPLENR, 90}, {835*OVERSAMPLENR, 80}, {884*OVERSAMPLENR, 70}, {924*OVERSAMPLENR, 60}, {955*OVERSAMPLENR, 50}, {977*OVERSAMPLENR, 40}, {993*OVERSAMPLENR, 30}, {1004*OVERSAMPLENR, 20}, {1012*OVERSAMPLENR, 10}, {1016*OVERSAMPLENR, 0}, }; #endif #if (THERMISTORHEATER_0 == 3) || (THERMISTORHEATER_1 == 3) || (THERMISTORHEATER_2 == 3) || (THERMISTORBED == 3) //mendel-parts const short temptable_3[][2] PROGMEM = { {1*OVERSAMPLENR,864}, {21*OVERSAMPLENR,300}, {25*OVERSAMPLENR,290}, {29*OVERSAMPLENR,280}, {33*OVERSAMPLENR,270}, {39*OVERSAMPLENR,260}, {46*OVERSAMPLENR,250}, {54*OVERSAMPLENR,240}, {64*OVERSAMPLENR,230}, {75*OVERSAMPLENR,220}, {90*OVERSAMPLENR,210}, {107*OVERSAMPLENR,200}, {128*OVERSAMPLENR,190}, {154*OVERSAMPLENR,180}, {184*OVERSAMPLENR,170}, {221*OVERSAMPLENR,160}, {265*OVERSAMPLENR,150}, {316*OVERSAMPLENR,140}, {375*OVERSAMPLENR,130}, {441*OVERSAMPLENR,120}, {513*OVERSAMPLENR,110}, {588*OVERSAMPLENR,100}, {734*OVERSAMPLENR,80}, {856*OVERSAMPLENR,60}, {938*OVERSAMPLENR,40}, {986*OVERSAMPLENR,20}, {1008*OVERSAMPLENR,0}, {1018*OVERSAMPLENR,-20} }; #endif #if (THERMISTORHEATER_0 == 4) || (THERMISTORHEATER_1 == 4) || (THERMISTORHEATER_2 == 4) || (THERMISTORBED == 4) //10k thermistor const short temptable_4[][2] PROGMEM = { {1*OVERSAMPLENR, 430}, {54*OVERSAMPLENR, 137}, {107*OVERSAMPLENR, 107}, {160*OVERSAMPLENR, 91}, {213*OVERSAMPLENR, 80}, {266*OVERSAMPLENR, 71}, {319*OVERSAMPLENR, 64}, {372*OVERSAMPLENR, 57}, {425*OVERSAMPLENR, 51}, {478*OVERSAMPLENR, 46}, {531*OVERSAMPLENR, 41}, {584*OVERSAMPLENR, 35}, {637*OVERSAMPLENR, 30}, {690*OVERSAMPLENR, 25}, {743*OVERSAMPLENR, 20}, {796*OVERSAMPLENR, 14}, {849*OVERSAMPLENR, 7}, {902*OVERSAMPLENR, 0}, {955*OVERSAMPLENR, -11}, {1008*OVERSAMPLENR, -35} }; #endif #if (THERMISTORHEATER_0 == 5) || (THERMISTORHEATER_1 == 5) || (THERMISTORHEATER_2 == 5) || (THERMISTORBED == 5) //100k ParCan thermistor (104GT-2) const short temptable_5[][2] PROGMEM = { // ATC Semitec 104GT-2 (Used in ParCan) // Verified by linagee. Source: path_to_url // Calculated using 4.7kohm pullup, voltage divider math, and manufacturer provided temp/resistance {1*OVERSAMPLENR, 713}, {17*OVERSAMPLENR, 300}, //top rating 300C {20*OVERSAMPLENR, 290}, {23*OVERSAMPLENR, 280}, {27*OVERSAMPLENR, 270}, {31*OVERSAMPLENR, 260}, {37*OVERSAMPLENR, 250}, {43*OVERSAMPLENR, 240}, {51*OVERSAMPLENR, 230}, {61*OVERSAMPLENR, 220}, {73*OVERSAMPLENR, 210}, {87*OVERSAMPLENR, 200}, {106*OVERSAMPLENR, 190}, {128*OVERSAMPLENR, 180}, {155*OVERSAMPLENR, 170}, {189*OVERSAMPLENR, 160}, {230*OVERSAMPLENR, 150}, {278*OVERSAMPLENR, 140}, {336*OVERSAMPLENR, 130}, {402*OVERSAMPLENR, 120}, {476*OVERSAMPLENR, 110}, {554*OVERSAMPLENR, 100}, {635*OVERSAMPLENR, 90}, {713*OVERSAMPLENR, 80}, {784*OVERSAMPLENR, 70}, {846*OVERSAMPLENR, 60}, {897*OVERSAMPLENR, 50}, {937*OVERSAMPLENR, 40}, {966*OVERSAMPLENR, 30}, {986*OVERSAMPLENR, 20}, {1000*OVERSAMPLENR, 10}, {1010*OVERSAMPLENR, 0} }; #endif #if (THERMISTORHEATER_0 == 6) || (THERMISTORHEATER_1 == 6) || (THERMISTORHEATER_2 == 6) || (THERMISTORBED == 6) // 100k Epcos thermistor const short temptable_6[][2] PROGMEM = { {1*OVERSAMPLENR, 350}, {28*OVERSAMPLENR, 250}, //top rating 250C {31*OVERSAMPLENR, 245}, {35*OVERSAMPLENR, 240}, {39*OVERSAMPLENR, 235}, {42*OVERSAMPLENR, 230}, {44*OVERSAMPLENR, 225}, {49*OVERSAMPLENR, 220}, {53*OVERSAMPLENR, 215}, {62*OVERSAMPLENR, 210}, {71*OVERSAMPLENR, 205}, //fitted graphically {78*OVERSAMPLENR, 200}, //fitted graphically {94*OVERSAMPLENR, 190}, {102*OVERSAMPLENR, 185}, {116*OVERSAMPLENR, 170}, {143*OVERSAMPLENR, 160}, {183*OVERSAMPLENR, 150}, {223*OVERSAMPLENR, 140}, {270*OVERSAMPLENR, 130}, {318*OVERSAMPLENR, 120}, {383*OVERSAMPLENR, 110}, {413*OVERSAMPLENR, 105}, {439*OVERSAMPLENR, 100}, {484*OVERSAMPLENR, 95}, {513*OVERSAMPLENR, 90}, {607*OVERSAMPLENR, 80}, {664*OVERSAMPLENR, 70}, {781*OVERSAMPLENR, 60}, {810*OVERSAMPLENR, 55}, {849*OVERSAMPLENR, 50}, {914*OVERSAMPLENR, 45}, {914*OVERSAMPLENR, 40}, {935*OVERSAMPLENR, 35}, {954*OVERSAMPLENR, 30}, {970*OVERSAMPLENR, 25}, {978*OVERSAMPLENR, 22}, {1008*OVERSAMPLENR, 3}, {1023*OVERSAMPLENR, 0} //to allow internal 0 degrees C }; #endif #if (THERMISTORHEATER_0 == 7) || (THERMISTORHEATER_1 == 7) || (THERMISTORHEATER_2 == 7) || (THERMISTORBED == 7) // 100k Honeywell 135-104LAG-J01 const short temptable_7[][2] PROGMEM = { {1*OVERSAMPLENR, 941}, {19*OVERSAMPLENR, 362}, {37*OVERSAMPLENR, 299}, //top rating 300C {55*OVERSAMPLENR, 266}, {73*OVERSAMPLENR, 245}, {91*OVERSAMPLENR, 229}, {109*OVERSAMPLENR, 216}, {127*OVERSAMPLENR, 206}, {145*OVERSAMPLENR, 197}, {163*OVERSAMPLENR, 190}, {181*OVERSAMPLENR, 183}, {199*OVERSAMPLENR, 177}, {217*OVERSAMPLENR, 171}, {235*OVERSAMPLENR, 166}, {253*OVERSAMPLENR, 162}, {271*OVERSAMPLENR, 157}, {289*OVERSAMPLENR, 153}, {307*OVERSAMPLENR, 149}, {325*OVERSAMPLENR, 146}, {343*OVERSAMPLENR, 142}, {361*OVERSAMPLENR, 139}, {379*OVERSAMPLENR, 135}, {397*OVERSAMPLENR, 132}, {415*OVERSAMPLENR, 129}, {433*OVERSAMPLENR, 126}, {451*OVERSAMPLENR, 123}, {469*OVERSAMPLENR, 121}, {487*OVERSAMPLENR, 118}, {505*OVERSAMPLENR, 115}, {523*OVERSAMPLENR, 112}, {541*OVERSAMPLENR, 110}, {559*OVERSAMPLENR, 107}, {577*OVERSAMPLENR, 105}, {595*OVERSAMPLENR, 102}, {613*OVERSAMPLENR, 99}, {631*OVERSAMPLENR, 97}, {649*OVERSAMPLENR, 94}, {667*OVERSAMPLENR, 92}, {685*OVERSAMPLENR, 89}, {703*OVERSAMPLENR, 86}, {721*OVERSAMPLENR, 84}, {739*OVERSAMPLENR, 81}, {757*OVERSAMPLENR, 78}, {775*OVERSAMPLENR, 75}, {793*OVERSAMPLENR, 72}, {811*OVERSAMPLENR, 69}, {829*OVERSAMPLENR, 66}, {847*OVERSAMPLENR, 62}, {865*OVERSAMPLENR, 59}, {883*OVERSAMPLENR, 55}, {901*OVERSAMPLENR, 51}, {919*OVERSAMPLENR, 46}, {937*OVERSAMPLENR, 41}, {955*OVERSAMPLENR, 35}, {973*OVERSAMPLENR, 27}, {991*OVERSAMPLENR, 17}, {1009*OVERSAMPLENR, 1}, {1023*OVERSAMPLENR, 0} //to allow internal 0 degrees C }; #endif #if (THERMISTORHEATER_0 == 71) || (THERMISTORHEATER_1 == 71) || (THERMISTORHEATER_2 == 71) || (THERMISTORBED == 71) // 100k Honeywell 135-104LAF-J01 // R0 = 100000 Ohm // T0 = 25 C // Beta = 3974 // R1 = 0 Ohm // R2 = 4700 Ohm const short temptable_71[][2] PROGMEM = { {35*OVERSAMPLENR, 300}, {51*OVERSAMPLENR, 270}, {54*OVERSAMPLENR, 265}, {58*OVERSAMPLENR, 260}, {59*OVERSAMPLENR, 258}, {61*OVERSAMPLENR, 256}, {63*OVERSAMPLENR, 254}, {64*OVERSAMPLENR, 252}, {66*OVERSAMPLENR, 250}, {67*OVERSAMPLENR, 249}, {68*OVERSAMPLENR, 248}, {69*OVERSAMPLENR, 247}, {70*OVERSAMPLENR, 246}, {71*OVERSAMPLENR, 245}, {72*OVERSAMPLENR, 244}, {73*OVERSAMPLENR, 243}, {74*OVERSAMPLENR, 242}, {75*OVERSAMPLENR, 241}, {76*OVERSAMPLENR, 240}, {77*OVERSAMPLENR, 239}, {78*OVERSAMPLENR, 238}, {79*OVERSAMPLENR, 237}, {80*OVERSAMPLENR, 236}, {81*OVERSAMPLENR, 235}, {82*OVERSAMPLENR, 234}, {84*OVERSAMPLENR, 233}, {85*OVERSAMPLENR, 232}, {86*OVERSAMPLENR, 231}, {87*OVERSAMPLENR, 230}, {89*OVERSAMPLENR, 229}, {90*OVERSAMPLENR, 228}, {91*OVERSAMPLENR, 227}, {92*OVERSAMPLENR, 226}, {94*OVERSAMPLENR, 225}, {95*OVERSAMPLENR, 224}, {97*OVERSAMPLENR, 223}, {98*OVERSAMPLENR, 222}, {99*OVERSAMPLENR, 221}, {101*OVERSAMPLENR, 220}, {102*OVERSAMPLENR, 219}, {104*OVERSAMPLENR, 218}, {106*OVERSAMPLENR, 217}, {107*OVERSAMPLENR, 216}, {109*OVERSAMPLENR, 215}, {110*OVERSAMPLENR, 214}, {112*OVERSAMPLENR, 213}, {114*OVERSAMPLENR, 212}, {115*OVERSAMPLENR, 211}, {117*OVERSAMPLENR, 210}, {119*OVERSAMPLENR, 209}, {121*OVERSAMPLENR, 208}, {123*OVERSAMPLENR, 207}, {125*OVERSAMPLENR, 206}, {126*OVERSAMPLENR, 205}, {128*OVERSAMPLENR, 204}, {130*OVERSAMPLENR, 203}, {132*OVERSAMPLENR, 202}, {134*OVERSAMPLENR, 201}, {136*OVERSAMPLENR, 200}, {139*OVERSAMPLENR, 199}, {141*OVERSAMPLENR, 198}, {143*OVERSAMPLENR, 197}, {145*OVERSAMPLENR, 196}, {147*OVERSAMPLENR, 195}, {150*OVERSAMPLENR, 194}, {152*OVERSAMPLENR, 193}, {154*OVERSAMPLENR, 192}, {157*OVERSAMPLENR, 191}, {159*OVERSAMPLENR, 190}, {162*OVERSAMPLENR, 189}, {164*OVERSAMPLENR, 188}, {167*OVERSAMPLENR, 187}, {170*OVERSAMPLENR, 186}, {172*OVERSAMPLENR, 185}, {175*OVERSAMPLENR, 184}, {178*OVERSAMPLENR, 183}, {181*OVERSAMPLENR, 182}, {184*OVERSAMPLENR, 181}, {187*OVERSAMPLENR, 180}, {190*OVERSAMPLENR, 179}, {193*OVERSAMPLENR, 178}, {196*OVERSAMPLENR, 177}, {199*OVERSAMPLENR, 176}, {202*OVERSAMPLENR, 175}, {205*OVERSAMPLENR, 174}, {208*OVERSAMPLENR, 173}, {212*OVERSAMPLENR, 172}, {215*OVERSAMPLENR, 171}, {219*OVERSAMPLENR, 170}, {237*OVERSAMPLENR, 165}, {256*OVERSAMPLENR, 160}, {300*OVERSAMPLENR, 150}, {351*OVERSAMPLENR, 140}, {470*OVERSAMPLENR, 120}, {504*OVERSAMPLENR, 115}, {538*OVERSAMPLENR, 110}, {552*OVERSAMPLENR, 108}, {566*OVERSAMPLENR, 106}, {580*OVERSAMPLENR, 104}, {594*OVERSAMPLENR, 102}, {608*OVERSAMPLENR, 100}, {622*OVERSAMPLENR, 98}, {636*OVERSAMPLENR, 96}, {650*OVERSAMPLENR, 94}, {664*OVERSAMPLENR, 92}, {678*OVERSAMPLENR, 90}, {712*OVERSAMPLENR, 85}, {745*OVERSAMPLENR, 80}, {758*OVERSAMPLENR, 78}, {770*OVERSAMPLENR, 76}, {783*OVERSAMPLENR, 74}, {795*OVERSAMPLENR, 72}, {806*OVERSAMPLENR, 70}, {818*OVERSAMPLENR, 68}, {829*OVERSAMPLENR, 66}, {840*OVERSAMPLENR, 64}, {850*OVERSAMPLENR, 62}, {860*OVERSAMPLENR, 60}, {870*OVERSAMPLENR, 58}, {879*OVERSAMPLENR, 56}, {888*OVERSAMPLENR, 54}, {897*OVERSAMPLENR, 52}, {905*OVERSAMPLENR, 50}, {924*OVERSAMPLENR, 45}, {940*OVERSAMPLENR, 40}, {955*OVERSAMPLENR, 35}, {967*OVERSAMPLENR, 30}, {970*OVERSAMPLENR, 29}, {972*OVERSAMPLENR, 28}, {974*OVERSAMPLENR, 27}, {976*OVERSAMPLENR, 26}, {978*OVERSAMPLENR, 25}, {980*OVERSAMPLENR, 24}, {982*OVERSAMPLENR, 23}, {984*OVERSAMPLENR, 22}, {985*OVERSAMPLENR, 21}, {987*OVERSAMPLENR, 20}, {995*OVERSAMPLENR, 15}, {1001*OVERSAMPLENR, 10}, {1006*OVERSAMPLENR, 5}, {1010*OVERSAMPLENR, 0}, }; #endif #if (THERMISTORHEATER_0 == 8) || (THERMISTORHEATER_1 == 8) || (THERMISTORHEATER_2 == 8) || (THERMISTORBED == 8) // 100k 0603 SMD Vishay NTCS0603E3104FXT (4.7k pullup) const short temptable_8[][2] PROGMEM = { {1*OVERSAMPLENR, 704}, {54*OVERSAMPLENR, 216}, {107*OVERSAMPLENR, 175}, {160*OVERSAMPLENR, 152}, {213*OVERSAMPLENR, 137}, {266*OVERSAMPLENR, 125}, {319*OVERSAMPLENR, 115}, {372*OVERSAMPLENR, 106}, {425*OVERSAMPLENR, 99}, {478*OVERSAMPLENR, 91}, {531*OVERSAMPLENR, 85}, {584*OVERSAMPLENR, 78}, {637*OVERSAMPLENR, 71}, {690*OVERSAMPLENR, 65}, {743*OVERSAMPLENR, 58}, {796*OVERSAMPLENR, 50}, {849*OVERSAMPLENR, 42}, {902*OVERSAMPLENR, 31}, {955*OVERSAMPLENR, 17}, {1008*OVERSAMPLENR, 0} }; #endif #if (THERMISTORHEATER_0 == 9) || (THERMISTORHEATER_1 == 9) || (THERMISTORHEATER_2 == 9) || (THERMISTORBED == 9) // 100k GE Sensing AL03006-58.2K-97-G1 (4.7k pullup) const short temptable_9[][2] PROGMEM = { {1*OVERSAMPLENR, 936}, {36*OVERSAMPLENR, 300}, {71*OVERSAMPLENR, 246}, {106*OVERSAMPLENR, 218}, {141*OVERSAMPLENR, 199}, {176*OVERSAMPLENR, 185}, {211*OVERSAMPLENR, 173}, {246*OVERSAMPLENR, 163}, {281*OVERSAMPLENR, 155}, {316*OVERSAMPLENR, 147}, {351*OVERSAMPLENR, 140}, {386*OVERSAMPLENR, 134}, {421*OVERSAMPLENR, 128}, {456*OVERSAMPLENR, 122}, {491*OVERSAMPLENR, 117}, {526*OVERSAMPLENR, 112}, {561*OVERSAMPLENR, 107}, {596*OVERSAMPLENR, 102}, {631*OVERSAMPLENR, 97}, {666*OVERSAMPLENR, 92}, {701*OVERSAMPLENR, 87}, {736*OVERSAMPLENR, 81}, {771*OVERSAMPLENR, 76}, {806*OVERSAMPLENR, 70}, {841*OVERSAMPLENR, 63}, {876*OVERSAMPLENR, 56}, {911*OVERSAMPLENR, 48}, {946*OVERSAMPLENR, 38}, {981*OVERSAMPLENR, 23}, {1005*OVERSAMPLENR, 5}, {1016*OVERSAMPLENR, 0} }; #endif #if (THERMISTORHEATER_0 == 10) || (THERMISTORHEATER_1 == 10) || (THERMISTORHEATER_2 == 10) || (THERMISTORBED == 10) // 100k RS thermistor 198-961 (4.7k pullup) const short temptable_10[][2] PROGMEM = { {1*OVERSAMPLENR, 929}, {36*OVERSAMPLENR, 299}, {71*OVERSAMPLENR, 246}, {106*OVERSAMPLENR, 217}, {141*OVERSAMPLENR, 198}, {176*OVERSAMPLENR, 184}, {211*OVERSAMPLENR, 173}, {246*OVERSAMPLENR, 163}, {281*OVERSAMPLENR, 154}, {316*OVERSAMPLENR, 147}, {351*OVERSAMPLENR, 140}, {386*OVERSAMPLENR, 134}, {421*OVERSAMPLENR, 128}, {456*OVERSAMPLENR, 122}, {491*OVERSAMPLENR, 117}, {526*OVERSAMPLENR, 112}, {561*OVERSAMPLENR, 107}, {596*OVERSAMPLENR, 102}, {631*OVERSAMPLENR, 97}, {666*OVERSAMPLENR, 91}, {701*OVERSAMPLENR, 86}, {736*OVERSAMPLENR, 81}, {771*OVERSAMPLENR, 76}, {806*OVERSAMPLENR, 70}, {841*OVERSAMPLENR, 63}, {876*OVERSAMPLENR, 56}, {911*OVERSAMPLENR, 48}, {946*OVERSAMPLENR, 38}, {981*OVERSAMPLENR, 23}, {1005*OVERSAMPLENR, 5}, {1016*OVERSAMPLENR, 0} }; #endif #if (THERMISTORHEATER_0 == 11) || (THERMISTORHEATER_1 == 11) || (THERMISTORHEATER_2 == 11) || (THERMISTORBED == 11) // QU-BD silicone bed QWG-104F-3950 thermistor const short temptable_11[][2] PROGMEM = { {1*OVERSAMPLENR, 938}, {31*OVERSAMPLENR, 314}, {41*OVERSAMPLENR, 290}, {51*OVERSAMPLENR, 272}, {61*OVERSAMPLENR, 258}, {71*OVERSAMPLENR, 247}, {81*OVERSAMPLENR, 237}, {91*OVERSAMPLENR, 229}, {101*OVERSAMPLENR, 221}, {111*OVERSAMPLENR, 215}, {121*OVERSAMPLENR, 209}, {131*OVERSAMPLENR, 204}, {141*OVERSAMPLENR, 199}, {151*OVERSAMPLENR, 195}, {161*OVERSAMPLENR, 190}, {171*OVERSAMPLENR, 187}, {181*OVERSAMPLENR, 183}, {191*OVERSAMPLENR, 179}, {201*OVERSAMPLENR, 176}, {221*OVERSAMPLENR, 170}, {241*OVERSAMPLENR, 165}, {261*OVERSAMPLENR, 160}, {281*OVERSAMPLENR, 155}, {301*OVERSAMPLENR, 150}, {331*OVERSAMPLENR, 144}, {361*OVERSAMPLENR, 139}, {391*OVERSAMPLENR, 133}, {421*OVERSAMPLENR, 128}, {451*OVERSAMPLENR, 123}, {491*OVERSAMPLENR, 117}, {531*OVERSAMPLENR, 111}, {571*OVERSAMPLENR, 105}, {611*OVERSAMPLENR, 100}, {641*OVERSAMPLENR, 95}, {681*OVERSAMPLENR, 90}, {711*OVERSAMPLENR, 85}, {751*OVERSAMPLENR, 79}, {791*OVERSAMPLENR, 72}, {811*OVERSAMPLENR, 69}, {831*OVERSAMPLENR, 65}, {871*OVERSAMPLENR, 57}, {881*OVERSAMPLENR, 55}, {901*OVERSAMPLENR, 51}, {921*OVERSAMPLENR, 45}, {941*OVERSAMPLENR, 39}, {971*OVERSAMPLENR, 28}, {981*OVERSAMPLENR, 23}, {991*OVERSAMPLENR, 17}, {1001*OVERSAMPLENR, 9}, {1021*OVERSAMPLENR, -27} }; #endif #if (THERMISTORHEATER_0 == 13) || (THERMISTORHEATER_1 == 13) || (THERMISTORHEATER_2 == 13) || (THERMISTORBED == 13) // Hisens thermistor B25/50 =3950 +/-1% const short temptable_13[][2] PROGMEM = { { 22.5*OVERSAMPLENR, 300 }, { 24.125*OVERSAMPLENR, 295 }, { 25.875*OVERSAMPLENR, 290 }, { 27.8125*OVERSAMPLENR, 285 }, { 29.9375*OVERSAMPLENR, 280 }, { 32.25*OVERSAMPLENR, 275 }, { 34.8125*OVERSAMPLENR, 270 }, { 37.625*OVERSAMPLENR, 265 }, { 40.6875*OVERSAMPLENR, 260 }, { 44.0625*OVERSAMPLENR, 255 }, { 47.75*OVERSAMPLENR, 250 }, { 51.8125*OVERSAMPLENR, 245 }, { 56.3125*OVERSAMPLENR, 240 }, { 61.25*OVERSAMPLENR, 235 }, { 66.75*OVERSAMPLENR, 230 }, { 72.8125*OVERSAMPLENR, 225 }, { 79.5*OVERSAMPLENR, 220 }, { 87*OVERSAMPLENR, 215 }, { 95.3125*OVERSAMPLENR, 210 }, { 104.1875*OVERSAMPLENR, 205 }, { 112.75*OVERSAMPLENR, 200 }, { 123.125*OVERSAMPLENR, 195 }, { 135.75*OVERSAMPLENR, 190 }, { 148.3125*OVERSAMPLENR, 185 }, { 163.8125*OVERSAMPLENR, 180 }, { 179*OVERSAMPLENR, 175 }, { 211.125*OVERSAMPLENR, 170 }, { 216.125*OVERSAMPLENR, 165 }, { 236.5625*OVERSAMPLENR, 160 }, { 258.5*OVERSAMPLENR, 155 }, { 279.875*OVERSAMPLENR, 150 }, { 305.375*OVERSAMPLENR, 145 }, { 333.25*OVERSAMPLENR, 140 }, { 362.5625*OVERSAMPLENR, 135 }, { 393.6875*OVERSAMPLENR, 130 }, { 425*OVERSAMPLENR, 125 }, { 460.625*OVERSAMPLENR, 120 }, { 495.1875*OVERSAMPLENR, 115 }, { 530.875*OVERSAMPLENR, 110 }, { 567.25*OVERSAMPLENR, 105 }, { 601.625*OVERSAMPLENR, 100 }, { 637.875*OVERSAMPLENR, 95 }, { 674.5625*OVERSAMPLENR, 90 }, { 710*OVERSAMPLENR, 85 }, { 744.125*OVERSAMPLENR, 80 }, { 775.9375*OVERSAMPLENR, 75 }, { 806.875*OVERSAMPLENR, 70 }, { 835.1875*OVERSAMPLENR, 65 }, { 861.125*OVERSAMPLENR, 60 }, { 884.375*OVERSAMPLENR, 55 }, { 904.5625*OVERSAMPLENR, 50 }, { 923.8125*OVERSAMPLENR, 45 }, { 940.375*OVERSAMPLENR, 40 }, { 954.625*OVERSAMPLENR, 35 }, { 966.875*OVERSAMPLENR, 30 }, { 977.0625*OVERSAMPLENR, 25 }, { 986*OVERSAMPLENR, 20 }, { 993.375*OVERSAMPLENR, 15 }, { 999.5*OVERSAMPLENR, 10 }, { 1004.5*OVERSAMPLENR, 5 }, { 1008.5*OVERSAMPLENR, 0 } }; #endif #if (THERMISTORHEATER_0 == 20) || (THERMISTORHEATER_1 == 20) || (THERMISTORHEATER_2 == 20) || (THERMISTORBED == 20) // PT100 with INA826 amp on Ultimaker v2.0 electronics /* The PT100 in the Ultimaker v2.0 electronics has a high sample value for a high temperature. This does not match the normal thermistor behaviour so we need to set the following defines */ #if (THERMISTORHEATER_0 == 20) # define HEATER_0_RAW_HI_TEMP 16383 # define HEATER_0_RAW_LO_TEMP 0 #endif #if (THERMISTORHEATER_1 == 20) # define HEATER_1_RAW_HI_TEMP 16383 # define HEATER_1_RAW_LO_TEMP 0 #endif #if (THERMISTORHEATER_2 == 20) # define HEATER_2_RAW_HI_TEMP 16383 # define HEATER_2_RAW_LO_TEMP 0 #endif #if (THERMISTORBED == 20) # define HEATER_BED_RAW_HI_TEMP 16383 # define HEATER_BED_RAW_LO_TEMP 0 #endif const short temptable_20[][2] PROGMEM = { { 0*OVERSAMPLENR , 0 }, { 227*OVERSAMPLENR , 1 }, { 236*OVERSAMPLENR , 10 }, { 245*OVERSAMPLENR , 20 }, { 253*OVERSAMPLENR , 30 }, { 262*OVERSAMPLENR , 40 }, { 270*OVERSAMPLENR , 50 }, { 279*OVERSAMPLENR , 60 }, { 287*OVERSAMPLENR , 70 }, { 295*OVERSAMPLENR , 80 }, { 304*OVERSAMPLENR , 90 }, { 312*OVERSAMPLENR , 100 }, { 320*OVERSAMPLENR , 110 }, { 329*OVERSAMPLENR , 120 }, { 337*OVERSAMPLENR , 130 }, { 345*OVERSAMPLENR , 140 }, { 353*OVERSAMPLENR , 150 }, { 361*OVERSAMPLENR , 160 }, { 369*OVERSAMPLENR , 170 }, { 377*OVERSAMPLENR , 180 }, { 385*OVERSAMPLENR , 190 }, { 393*OVERSAMPLENR , 200 }, { 401*OVERSAMPLENR , 210 }, { 409*OVERSAMPLENR , 220 }, { 417*OVERSAMPLENR , 230 }, { 424*OVERSAMPLENR , 240 }, { 432*OVERSAMPLENR , 250 }, { 440*OVERSAMPLENR , 260 }, { 447*OVERSAMPLENR , 270 }, { 455*OVERSAMPLENR , 280 }, { 463*OVERSAMPLENR , 290 }, { 470*OVERSAMPLENR , 300 }, { 478*OVERSAMPLENR , 310 }, { 485*OVERSAMPLENR , 320 }, { 493*OVERSAMPLENR , 330 }, { 500*OVERSAMPLENR , 340 }, { 507*OVERSAMPLENR , 350 }, { 515*OVERSAMPLENR , 360 }, { 522*OVERSAMPLENR , 370 }, { 529*OVERSAMPLENR , 380 }, { 537*OVERSAMPLENR , 390 }, { 544*OVERSAMPLENR , 400 }, { 614*OVERSAMPLENR , 500 }, { 681*OVERSAMPLENR , 600 }, { 744*OVERSAMPLENR , 700 }, { 805*OVERSAMPLENR , 800 }, { 862*OVERSAMPLENR , 900 }, { 917*OVERSAMPLENR , 1000 }, { 968*OVERSAMPLENR , 1100 } }; #endif #if (THERMISTORHEATER_0 == 51) || (THERMISTORHEATER_1 == 51) || (THERMISTORHEATER_2 == 51) || (THERMISTORBED == 51) // 100k EPCOS (WITH 1kohm RESISTOR FOR PULLUP, R9 ON SANGUINOLOLU! NOT FOR 4.7kohm PULLUP! THIS IS NOT NORMAL!) // Verified by linagee. // Calculated using 1kohm pullup, voltage divider math, and manufacturer provided temp/resistance // Advantage: Twice the resolution and better linearity from 150C to 200C const short temptable_51[][2] PROGMEM = { {1*OVERSAMPLENR, 350}, {190*OVERSAMPLENR, 250}, //top rating 250C {203*OVERSAMPLENR, 245}, {217*OVERSAMPLENR, 240}, {232*OVERSAMPLENR, 235}, {248*OVERSAMPLENR, 230}, {265*OVERSAMPLENR, 225}, {283*OVERSAMPLENR, 220}, {302*OVERSAMPLENR, 215}, {322*OVERSAMPLENR, 210}, {344*OVERSAMPLENR, 205}, {366*OVERSAMPLENR, 200}, {390*OVERSAMPLENR, 195}, {415*OVERSAMPLENR, 190}, {440*OVERSAMPLENR, 185}, {467*OVERSAMPLENR, 180}, {494*OVERSAMPLENR, 175}, {522*OVERSAMPLENR, 170}, {551*OVERSAMPLENR, 165}, {580*OVERSAMPLENR, 160}, {609*OVERSAMPLENR, 155}, {638*OVERSAMPLENR, 150}, {666*OVERSAMPLENR, 145}, {695*OVERSAMPLENR, 140}, {722*OVERSAMPLENR, 135}, {749*OVERSAMPLENR, 130}, {775*OVERSAMPLENR, 125}, {800*OVERSAMPLENR, 120}, {823*OVERSAMPLENR, 115}, {845*OVERSAMPLENR, 110}, {865*OVERSAMPLENR, 105}, {884*OVERSAMPLENR, 100}, {901*OVERSAMPLENR, 95}, {917*OVERSAMPLENR, 90}, {932*OVERSAMPLENR, 85}, {944*OVERSAMPLENR, 80}, {956*OVERSAMPLENR, 75}, {966*OVERSAMPLENR, 70}, {975*OVERSAMPLENR, 65}, {982*OVERSAMPLENR, 60}, {989*OVERSAMPLENR, 55}, {995*OVERSAMPLENR, 50}, {1000*OVERSAMPLENR, 45}, {1004*OVERSAMPLENR, 40}, {1007*OVERSAMPLENR, 35}, {1010*OVERSAMPLENR, 30}, {1013*OVERSAMPLENR, 25}, {1015*OVERSAMPLENR, 20}, {1017*OVERSAMPLENR, 15}, {1018*OVERSAMPLENR, 10}, {1019*OVERSAMPLENR, 5}, {1020*OVERSAMPLENR, 0}, {1021*OVERSAMPLENR, -5} }; #endif #if (THERMISTORHEATER_0 == 52) || (THERMISTORHEATER_1 == 52) || (THERMISTORHEATER_2 == 52) || (THERMISTORBED == 52) // 200k ATC Semitec 204GT-2 (WITH 1kohm RESISTOR FOR PULLUP, R9 ON SANGUINOLOLU! NOT FOR 4.7kohm PULLUP! THIS IS NOT NORMAL!) // Verified by linagee. Source: path_to_url // Calculated using 1kohm pullup, voltage divider math, and manufacturer provided temp/resistance // Advantage: More resolution and better linearity from 150C to 200C const short temptable_52[][2] PROGMEM = { {1*OVERSAMPLENR, 500}, {125*OVERSAMPLENR, 300}, //top rating 300C {142*OVERSAMPLENR, 290}, {162*OVERSAMPLENR, 280}, {185*OVERSAMPLENR, 270}, {211*OVERSAMPLENR, 260}, {240*OVERSAMPLENR, 250}, {274*OVERSAMPLENR, 240}, {312*OVERSAMPLENR, 230}, {355*OVERSAMPLENR, 220}, {401*OVERSAMPLENR, 210}, {452*OVERSAMPLENR, 200}, {506*OVERSAMPLENR, 190}, {563*OVERSAMPLENR, 180}, {620*OVERSAMPLENR, 170}, {677*OVERSAMPLENR, 160}, {732*OVERSAMPLENR, 150}, {783*OVERSAMPLENR, 140}, {830*OVERSAMPLENR, 130}, {871*OVERSAMPLENR, 120}, {906*OVERSAMPLENR, 110}, {935*OVERSAMPLENR, 100}, {958*OVERSAMPLENR, 90}, {976*OVERSAMPLENR, 80}, {990*OVERSAMPLENR, 70}, {1000*OVERSAMPLENR, 60}, {1008*OVERSAMPLENR, 50}, {1013*OVERSAMPLENR, 40}, {1017*OVERSAMPLENR, 30}, {1019*OVERSAMPLENR, 20}, {1021*OVERSAMPLENR, 10}, {1022*OVERSAMPLENR, 0} }; #endif #if (THERMISTORHEATER_0 == 55) || (THERMISTORHEATER_1 == 55) || (THERMISTORHEATER_2 == 55) || (THERMISTORBED == 55) // 100k ATC Semitec 104GT-2 (Used on ParCan) (WITH 1kohm RESISTOR FOR PULLUP, R9 ON SANGUINOLOLU! NOT FOR 4.7kohm PULLUP! THIS IS NOT NORMAL!) // Verified by linagee. Source: path_to_url // Calculated using 1kohm pullup, voltage divider math, and manufacturer provided temp/resistance // Advantage: More resolution and better linearity from 150C to 200C const short temptable_55[][2] PROGMEM = { {1*OVERSAMPLENR, 500}, {76*OVERSAMPLENR, 300}, {87*OVERSAMPLENR, 290}, {100*OVERSAMPLENR, 280}, {114*OVERSAMPLENR, 270}, {131*OVERSAMPLENR, 260}, {152*OVERSAMPLENR, 250}, {175*OVERSAMPLENR, 240}, {202*OVERSAMPLENR, 230}, {234*OVERSAMPLENR, 220}, {271*OVERSAMPLENR, 210}, {312*OVERSAMPLENR, 200}, {359*OVERSAMPLENR, 190}, {411*OVERSAMPLENR, 180}, {467*OVERSAMPLENR, 170}, {527*OVERSAMPLENR, 160}, {590*OVERSAMPLENR, 150}, {652*OVERSAMPLENR, 140}, {713*OVERSAMPLENR, 130}, {770*OVERSAMPLENR, 120}, {822*OVERSAMPLENR, 110}, {867*OVERSAMPLENR, 100}, {905*OVERSAMPLENR, 90}, {936*OVERSAMPLENR, 80}, {961*OVERSAMPLENR, 70}, {979*OVERSAMPLENR, 60}, {993*OVERSAMPLENR, 50}, {1003*OVERSAMPLENR, 40}, {1010*OVERSAMPLENR, 30}, {1015*OVERSAMPLENR, 20}, {1018*OVERSAMPLENR, 10}, {1020*OVERSAMPLENR, 0} }; #endif #if (THERMISTORHEATER_0 == 60) || (THERMISTORHEATER_1 == 60) || (THERMISTORHEATER_2 == 60) || (THERMISTORBED == 60) // Maker's Tool Works Kapton Bed Thermister // ./createTemperatureLookup.py --r0=100000 --t0=25 --r1=0 --r2=4700 --beta=3950 // r0: 100000 // t0: 25 // r1: 0 (parallel with rTherm) // r2: 4700 (series with rTherm) // beta: 3950 // min adc: 1 at 0.0048828125 V // max adc: 1023 at 4.9951171875 V const short temptable_60[][2] PROGMEM = { {51*OVERSAMPLENR, 272}, {61*OVERSAMPLENR, 258}, {71*OVERSAMPLENR, 247}, {81*OVERSAMPLENR, 237}, {91*OVERSAMPLENR, 229}, {101*OVERSAMPLENR, 221}, {131*OVERSAMPLENR, 204}, {161*OVERSAMPLENR, 190}, {191*OVERSAMPLENR, 179}, {231*OVERSAMPLENR, 167}, {271*OVERSAMPLENR, 157}, {311*OVERSAMPLENR, 148}, {351*OVERSAMPLENR, 140}, {381*OVERSAMPLENR, 135}, {411*OVERSAMPLENR, 130}, {441*OVERSAMPLENR, 125}, {451*OVERSAMPLENR, 123}, {461*OVERSAMPLENR, 122}, {471*OVERSAMPLENR, 120}, {481*OVERSAMPLENR, 119}, {491*OVERSAMPLENR, 117}, {501*OVERSAMPLENR, 116}, {511*OVERSAMPLENR, 114}, {521*OVERSAMPLENR, 113}, {531*OVERSAMPLENR, 111}, {541*OVERSAMPLENR, 110}, {551*OVERSAMPLENR, 108}, {561*OVERSAMPLENR, 107}, {571*OVERSAMPLENR, 105}, {581*OVERSAMPLENR, 104}, {591*OVERSAMPLENR, 102}, {601*OVERSAMPLENR, 101}, {611*OVERSAMPLENR, 100}, {621*OVERSAMPLENR, 98}, {631*OVERSAMPLENR, 97}, {641*OVERSAMPLENR, 95}, {651*OVERSAMPLENR, 94}, {661*OVERSAMPLENR, 92}, {671*OVERSAMPLENR, 91}, {681*OVERSAMPLENR, 90}, {691*OVERSAMPLENR, 88}, {701*OVERSAMPLENR, 87}, {711*OVERSAMPLENR, 85}, {721*OVERSAMPLENR, 84}, {731*OVERSAMPLENR, 82}, {741*OVERSAMPLENR, 81}, {751*OVERSAMPLENR, 79}, {761*OVERSAMPLENR, 77}, {771*OVERSAMPLENR, 76}, {781*OVERSAMPLENR, 74}, {791*OVERSAMPLENR, 72}, {801*OVERSAMPLENR, 71}, {811*OVERSAMPLENR, 69}, {821*OVERSAMPLENR, 67}, {831*OVERSAMPLENR, 65}, {841*OVERSAMPLENR, 63}, {851*OVERSAMPLENR, 62}, {861*OVERSAMPLENR, 60}, {871*OVERSAMPLENR, 57}, {881*OVERSAMPLENR, 55}, {891*OVERSAMPLENR, 53}, {901*OVERSAMPLENR, 51}, {911*OVERSAMPLENR, 48}, {921*OVERSAMPLENR, 45}, {931*OVERSAMPLENR, 42}, {941*OVERSAMPLENR, 39}, {951*OVERSAMPLENR, 36}, {961*OVERSAMPLENR, 32}, {981*OVERSAMPLENR, 23}, {991*OVERSAMPLENR, 17}, {1001*OVERSAMPLENR, 9}, {1008*OVERSAMPLENR, 0}, }; #endif #if (THERMISTORBED == 12) //100k 0603 SMD Vishay NTCS0603E3104FXT (4.7k pullup) (calibrated for Makibox hot bed) const short temptable_12[][2] PROGMEM = { {35*OVERSAMPLENR, 180}, //top rating 180C {211*OVERSAMPLENR, 140}, {233*OVERSAMPLENR, 135}, {261*OVERSAMPLENR, 130}, {290*OVERSAMPLENR, 125}, {328*OVERSAMPLENR, 120}, {362*OVERSAMPLENR, 115}, {406*OVERSAMPLENR, 110}, {446*OVERSAMPLENR, 105}, {496*OVERSAMPLENR, 100}, {539*OVERSAMPLENR, 95}, {585*OVERSAMPLENR, 90}, {629*OVERSAMPLENR, 85}, {675*OVERSAMPLENR, 80}, {718*OVERSAMPLENR, 75}, {758*OVERSAMPLENR, 70}, {793*OVERSAMPLENR, 65}, {822*OVERSAMPLENR, 60}, {841*OVERSAMPLENR, 55}, {875*OVERSAMPLENR, 50}, {899*OVERSAMPLENR, 45}, {926*OVERSAMPLENR, 40}, {946*OVERSAMPLENR, 35}, {962*OVERSAMPLENR, 30}, {977*OVERSAMPLENR, 25}, {987*OVERSAMPLENR, 20}, {995*OVERSAMPLENR, 15}, {1001*OVERSAMPLENR, 10}, {1010*OVERSAMPLENR, 0}, {1023*OVERSAMPLENR, -40}, }; #endif // Pt1000 and Pt100 handling // // Rt=R0*(1+a*T+b*T*T) [for T>0] // a=3.9083E-3, b=-5.775E-7 #define PtA 3.9083E-3 #define PtB -5.775E-7 #define PtRt(T,R0) ((R0)*(1.0+(PtA)*(T)+(PtB)*(T)*(T))) #define PtAdVal(T,R0,Rup) (short)(1024/(Rup/PtRt(T,R0)+1)) #define PtLine(T,R0,Rup) { PtAdVal(T,R0,Rup)*OVERSAMPLENR, T }, #if (THERMISTORHEATER_0 == 110) || (THERMISTORHEATER_1 == 110) || (THERMISTORHEATER_2 == 110) || (THERMISTORBED == 110) // Pt100 with 1k0 pullup const short temptable_110[][2] PROGMEM = { // only few values are needed as the curve is very flat PtLine(0,100,1000) PtLine(50,100,1000) PtLine(100,100,1000) PtLine(150,100,1000) PtLine(200,100,1000) PtLine(250,100,1000) PtLine(300,100,1000) }; #endif #if (THERMISTORHEATER_0 == 147) || (THERMISTORHEATER_1 == 147) || (THERMISTORHEATER_2 == 147) || (THERMISTORBED == 147) // Pt100 with 4k7 pullup const short temptable_147[][2] PROGMEM = { // only few values are needed as the curve is very flat PtLine(0,100,4700) PtLine(50,100,4700) PtLine(100,100,4700) PtLine(150,100,4700) PtLine(200,100,4700) PtLine(250,100,4700) PtLine(300,100,4700) }; #endif #if (THERMISTORHEATER_0 == 1010) || (THERMISTORHEATER_1 == 1010) || (THERMISTORHEATER_2 == 1010) || (THERMISTORBED == 1010) // Pt1000 with 1k0 pullup const short temptable_1010[][2] PROGMEM = { PtLine(0,1000,1000) PtLine(25,1000,1000) PtLine(50,1000,1000) PtLine(75,1000,1000) PtLine(100,1000,1000) PtLine(125,1000,1000) PtLine(150,1000,1000) PtLine(175,1000,1000) PtLine(200,1000,1000) PtLine(225,1000,1000) PtLine(250,1000,1000) PtLine(275,1000,1000) PtLine(300,1000,1000) }; #endif #if (THERMISTORHEATER_0 == 1047) || (THERMISTORHEATER_1 == 1047) || (THERMISTORHEATER_2 == 1047) || (THERMISTORBED == 1047) // Pt1000 with 4k7 pullup const short temptable_1047[][2] PROGMEM = { // only few values are needed as the curve is very flat PtLine(0,1000,4700) PtLine(50,1000,4700) PtLine(100,1000,4700) PtLine(150,1000,4700) PtLine(200,1000,4700) PtLine(250,1000,4700) PtLine(300,1000,4700) }; #endif #define _TT_NAME(_N) temptable_ ## _N #define TT_NAME(_N) _TT_NAME(_N) #ifdef THERMISTORHEATER_0 # define HEATER_0_TEMPTABLE TT_NAME(THERMISTORHEATER_0) # define HEATER_0_TEMPTABLE_LEN (sizeof(HEATER_0_TEMPTABLE)/sizeof(*HEATER_0_TEMPTABLE)) #else # ifdef HEATER_0_USES_THERMISTOR # error No heater 0 thermistor table specified # else // HEATER_0_USES_THERMISTOR # define HEATER_0_TEMPTABLE NULL # define HEATER_0_TEMPTABLE_LEN 0 # endif // HEATER_0_USES_THERMISTOR #endif //Set the high and low raw values for the heater, this indicates which raw value is a high or low temperature #ifndef HEATER_0_RAW_HI_TEMP # ifdef HEATER_0_USES_THERMISTOR //In case of a thermistor the highest temperature results in the lowest ADC value # define HEATER_0_RAW_HI_TEMP 0 # define HEATER_0_RAW_LO_TEMP 16383 # else //In case of an thermocouple the highest temperature results in the highest ADC value # define HEATER_0_RAW_HI_TEMP 16383 # define HEATER_0_RAW_LO_TEMP 0 # endif #endif #ifdef THERMISTORHEATER_1 # define HEATER_1_TEMPTABLE TT_NAME(THERMISTORHEATER_1) # define HEATER_1_TEMPTABLE_LEN (sizeof(HEATER_1_TEMPTABLE)/sizeof(*HEATER_1_TEMPTABLE)) #else # ifdef HEATER_1_USES_THERMISTOR # error No heater 1 thermistor table specified # else // HEATER_1_USES_THERMISTOR # define HEATER_1_TEMPTABLE NULL # define HEATER_1_TEMPTABLE_LEN 0 # endif // HEATER_1_USES_THERMISTOR #endif //Set the high and low raw values for the heater, this indicates which raw value is a high or low temperature #ifndef HEATER_1_RAW_HI_TEMP # ifdef HEATER_1_USES_THERMISTOR //In case of a thermistor the highest temperature results in the lowest ADC value # define HEATER_1_RAW_HI_TEMP 0 # define HEATER_1_RAW_LO_TEMP 16383 # else //In case of an thermocouple the highest temperature results in the highest ADC value # define HEATER_1_RAW_HI_TEMP 16383 # define HEATER_1_RAW_LO_TEMP 0 # endif #endif #ifdef THERMISTORHEATER_2 # define HEATER_2_TEMPTABLE TT_NAME(THERMISTORHEATER_2) # define HEATER_2_TEMPTABLE_LEN (sizeof(HEATER_2_TEMPTABLE)/sizeof(*HEATER_2_TEMPTABLE)) #else # ifdef HEATER_2_USES_THERMISTOR # error No heater 2 thermistor table specified # else // HEATER_2_USES_THERMISTOR # define HEATER_2_TEMPTABLE NULL # define HEATER_2_TEMPTABLE_LEN 0 # endif // HEATER_2_USES_THERMISTOR #endif //Set the high and low raw values for the heater, this indicates which raw value is a high or low temperature #ifndef HEATER_2_RAW_HI_TEMP # ifdef HEATER_2_USES_THERMISTOR //In case of a thermistor the highest temperature results in the lowest ADC value # define HEATER_2_RAW_HI_TEMP 0 # define HEATER_2_RAW_LO_TEMP 16383 # else //In case of an thermocouple the highest temperature results in the highest ADC value # define HEATER_2_RAW_HI_TEMP 16383 # define HEATER_2_RAW_LO_TEMP 0 # endif #endif #ifdef THERMISTORBED # define BEDTEMPTABLE TT_NAME(THERMISTORBED) # define BEDTEMPTABLE_LEN (sizeof(BEDTEMPTABLE)/sizeof(*BEDTEMPTABLE)) #else # ifdef BED_USES_THERMISTOR # error No bed thermistor table specified # endif // BED_USES_THERMISTOR #endif //Set the high and low raw values for the heater, this indicates which raw value is a high or low temperature #ifndef HEATER_BED_RAW_HI_TEMP # ifdef BED_USES_THERMISTOR //In case of a thermistor the highest temperature results in the lowest ADC value # define HEATER_BED_RAW_HI_TEMP 0 # define HEATER_BED_RAW_LO_TEMP 16383 # else //In case of an thermocouple the highest temperature results in the highest ADC value # define HEATER_BED_RAW_HI_TEMP 16383 # define HEATER_BED_RAW_LO_TEMP 0 # endif #endif #endif //THERMISTORTABLES_H_ ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/thermistortables.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
14,795
```objective-c /* Servo.h - Interrupt driven Servo library for Arduino using 16 bit timers- Version 2 This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU You should have received a copy of the GNU Lesser General Public Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ /* A servo is activated by creating an instance of the Servo class passing the desired pin to the attach() method. The servos are pulsed in the background using the value most recently written using the write() method Note that analogWrite of PWM on pins associated with the timer are disabled when the first servo is attached. Timers are seized as needed in groups of 12 servos - 24 servos use two timers, 48 servos will use four. The sequence used to seize timers is defined in timers.h The methods are: Servo - Class for manipulating servo motors connected to Arduino pins. attach(pin ) - Attaches a servo motor to an i/o pin. attach(pin, min, max ) - Attaches to a pin setting min and max values in microseconds default min is 544, max is 2400 write() - Sets the servo angle in degrees. (invalid angle that is valid as pulse in microseconds is treated as microseconds) writeMicroseconds() - Sets the servo pulse width in microseconds read() - Gets the last written servo pulse width as an angle between 0 and 180. readMicroseconds() - Gets the last written servo pulse width in microseconds. (was read_us() in first release) attached() - Returns true if there is a servo attached. detach() - Stops an attached servos from pulsing its i/o pin. */ #ifndef Servo_h #define Servo_h #include <inttypes.h> /* * Defines for 16 bit timers used with Servo library * * If _useTimerX is defined then TimerX is a 16 bit timer on the current board * timer16_Sequence_t enumerates the sequence that the timers should be allocated * _Nbr_16timers indicates how many 16 bit timers are available. * */ // Say which 16 bit timers can be used and in what order #if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) #define _useTimer5 //#define _useTimer1 #define _useTimer3 #define _useTimer4 //typedef enum { _timer5, _timer1, _timer3, _timer4, _Nbr_16timers } timer16_Sequence_t ; typedef enum { _timer5, _timer3, _timer4, _Nbr_16timers } timer16_Sequence_t ; #elif defined(__AVR_ATmega32U4__) //#define _useTimer1 #define _useTimer3 //typedef enum { _timer1, _Nbr_16timers } timer16_Sequence_t ; typedef enum { _timer3, _Nbr_16timers } timer16_Sequence_t ; #elif defined(__AVR_AT90USB646__) || defined(__AVR_AT90USB1286__) #define _useTimer3 //#define _useTimer1 //typedef enum { _timer3, _timer1, _Nbr_16timers } timer16_Sequence_t ; typedef enum { _timer3, _Nbr_16timers } timer16_Sequence_t ; #elif defined(__AVR_ATmega128__) ||defined(__AVR_ATmega1281__) || defined(__AVR_ATmega1284P__) ||defined(__AVR_ATmega2561__) #define _useTimer3 //#define _useTimer1 //typedef enum { _timer3, _timer1, _Nbr_16timers } timer16_Sequence_t ; typedef enum { _timer3, _Nbr_16timers } timer16_Sequence_t ; #else // everything else //#define _useTimer1 //typedef enum { _timer1, _Nbr_16timers } timer16_Sequence_t ; typedef enum { _Nbr_16timers } timer16_Sequence_t ; #endif #define Servo_VERSION 2 // software version of this library #define MIN_PULSE_WIDTH 544 // the shortest pulse sent to a servo #define MAX_PULSE_WIDTH 2400 // the longest pulse sent to a servo #define DEFAULT_PULSE_WIDTH 1500 // default pulse width when servo is attached #define REFRESH_INTERVAL 20000 // minimum time to refresh servos in microseconds #define SERVOS_PER_TIMER 12 // the maximum number of servos controlled by one timer #define MAX_SERVOS (_Nbr_16timers * SERVOS_PER_TIMER) #define INVALID_SERVO 255 // flag indicating an invalid servo index typedef struct { uint8_t nbr :6 ; // a pin number from 0 to 63 uint8_t isActive :1 ; // true if this channel is enabled, pin not pulsed if false } ServoPin_t ; typedef struct { ServoPin_t Pin; unsigned int ticks; } servo_t; class Servo { public: Servo(); uint8_t attach(int pin); // attach the given pin to the next free channel, sets pinMode, returns channel number or 0 if failure uint8_t attach(int pin, int min, int max); // as above but also sets min and max values for writes. void detach(); void write(int value); // if value is < 200 it is treated as an angle, otherwise as pulse width in microseconds void writeMicroseconds(int value); // Write pulse width in microseconds int read(); // returns current pulse width as an angle between 0 and 180 degrees int readMicroseconds(); // returns current pulse width in microseconds for this servo (was read_us() in first release) bool attached(); // return true if this servo is attached, otherwise false #if defined (ENABLE_AUTO_BED_LEVELING) && (PROBE_SERVO_DEACTIVATION_DELAY > 0) int pin; // store the hardware pin of the servo #endif private: uint8_t servoIndex; // index into the channel data for this servo int8_t min; // minimum is this value times 4 added to MIN_PULSE_WIDTH int8_t max; // maximum is this value times 4 added to MAX_PULSE_WIDTH }; #endif ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/Servo.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
1,471
```objective-c #ifndef PINS_H #define PINS_H #include "boards.h" #if !MB(5DPRINT) #define X_MS1_PIN -1 #define X_MS2_PIN -1 #define Y_MS1_PIN -1 #define Y_MS2_PIN -1 #define Z_MS1_PIN -1 #define Z_MS2_PIN -1 #define E0_MS1_PIN -1 #define E0_MS2_PIN -1 #define E1_MS1_PIN -1 #define E1_MS2_PIN -1 #define DIGIPOTSS_PIN -1 #endif /**************************************************************************************** * 5DPrint D8 Driver board * path_to_url ****************************************************************************************/ #if MB(5DPRINT) #define KNOWN_BOARD 1 #define AT90USB 1286 // Disable MarlinSerial etc. #ifndef __AVR_AT90USB1286__ #error Oops! Make sure you have 'Teensy++ 2.0' selected from the 'Tools -> Boards' menu. #endif #define LARGE_FLASH true #define X_STEP_PIN 0 #define X_DIR_PIN 1 #define X_ENABLE_PIN 23 #define X_STOP_PIN 37 #define Y_STEP_PIN 2 #define Y_DIR_PIN 3 #define Y_ENABLE_PIN 19 #define Y_STOP_PIN 36 #define Z_STEP_PIN 4 #define Z_DIR_PIN 5 #define Z_ENABLE_PIN 18 #define Z_STOP_PIN 39 #define E0_STEP_PIN 6 #define E0_DIR_PIN 7 #define E0_ENABLE_PIN 17 #define HEATER_0_PIN 21 // Extruder #define HEATER_1_PIN -1 #define HEATER_2_PIN -1 #define HEATER_BED_PIN 20 // Bed // You may need to change FAN_PIN to 16 because Marlin isn't using fastio.h // for the fan and Teensyduino uses a different pin mapping. #define FAN_PIN 16 // Fan #define TEMP_0_PIN 1 // Extruder / Analog pin numbering #define TEMP_BED_PIN 0 // Bed / Analog pin numbering #define TEMP_1_PIN -1 #define TEMP_2_PIN -1 #define SDPOWER -1 #define LED_PIN -1 #define PS_ON_PIN -1 #define KILL_PIN -1 #define ALARM_PIN -1 // The SDSS pin uses a different pin mapping from file Sd2PinMap.h #define SDSS 20 #ifndef SDSUPPORT // these pins are defined in the SD library if building with SD support #define SCK_PIN 9 #define MISO_PIN 11 #define MOSI_PIN 10 #endif // Microstepping pins // Note that the pin mapping is not from fastio.h // See Sd2PinMap.h for the pin configurations #define X_MS1_PIN 25 #define X_MS2_PIN 26 #define Y_MS1_PIN 9 #define Y_MS2_PIN 8 #define Z_MS1_PIN 7 #define Z_MS2_PIN 6 #define E0_MS1_PIN 5 #define E0_MS2_PIN 4 #endif // 5DPRINT /**************************************************************************************** * Leapfrog Driver board * ****************************************************************************************/ #if MB(LEAPFROG) // Leapfrog board #define KNOWN_BOARD 1 #ifndef __AVR_ATmega1280__ #ifndef __AVR_ATmega2560__ #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu. #endif #endif #define X_STEP_PIN 28 #define X_DIR_PIN 63 #define X_ENABLE_PIN 29 #define X_MIN_PIN 47 #define X_MAX_PIN -1 //2 //Max endstops default to disabled "-1", set to commented value to enable. #define Y_STEP_PIN 14 // A6 #define Y_DIR_PIN 15 // A0 #define Y_ENABLE_PIN 39 #define Y_MIN_PIN 48 #define Y_MAX_PIN -1 //15 #define Z_STEP_PIN 31 // A2 #define Z_DIR_PIN 32 // A6 #define Z_ENABLE_PIN 30 // A1 #define Z_MIN_PIN 49 #define Z_MAX_PIN -1 #define E0_STEP_PIN 34 //34 #define E0_DIR_PIN 35 //35 #define E0_ENABLE_PIN 33 //33 #define E1_STEP_PIN 37 //37 #define E1_DIR_PIN 40 //40 #define E1_ENABLE_PIN 36 //36 #define Y2_STEP_PIN 37 #define Y2_DIR_PIN 40 #define Y2_ENABLE_PIN 36 #define Z2_STEP_PIN 37 #define Z2_DIR_PIN 40 #define Z2_ENABLE_PIN 36 #define SDPOWER -1 #define SDSS 11 #define SDCARDDETECT -1 // 10 optional also used as mode pin #define LED_PIN 13 #define FAN_PIN 7 #define PS_ON_PIN -1 #define KILL_PIN -1 #define SOL1_PIN 16 #define SOL2_PIN 17 #define HEATER_0_PIN 9 #define HEATER_1_PIN 8 // 12 #define HEATER_2_PIN 11 //-1 // 13 #define TEMP_0_PIN 13 //D27 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! #define TEMP_1_PIN 15 // 1 #define TEMP_2_PIN -1 // 2 #define HEATER_BED_PIN 10 // 14/15 #define TEMP_BED_PIN 14 // 1,2 or I2C /* Unused (1) (2) (3) 4 5 6 7 8 9 10 11 12 13 (14) (15) (16) 17 (18) (19) (20) (21) (22) (23) 24 (25) (26) (27) 28 (29) (30) (31) */ #endif // LEAPFROG /**************************************************************************************** * * ****************************************************************************************/ #if MB(99) #define KNOWN_BOARD 1 #define X_STEP_PIN 2 #define X_DIR_PIN 3 #define X_ENABLE_PIN -1 #define X_STOP_PIN 16 #define Y_STEP_PIN 5 #define Y_DIR_PIN 6 #define Y_ENABLE_PIN -1 #define Y_STOP_PIN 67 #define Z_STEP_PIN 62 #define Z_DIR_PIN 63 #define Z_ENABLE_PIN -1 #define Z_STOP_PIN 59 #define E0_STEP_PIN 65 #define E0_DIR_PIN 66 #define E0_ENABLE_PIN -1 #define SDPOWER -1 #define SDSS 53 #define LED_PIN -1 #define FAN_PIN -1 #define PS_ON_PIN 9 #define KILL_PIN -1 #define HEATER_0_PIN 13 #define HEATER_1_PIN -1 #define HEATER_2_PIN -1 #define TEMP_0_PIN 6 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! #define TEMP_1_PIN -1 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! #define TEMP_2_PIN -1 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! #define HEATER_BED_PIN 4 #define TEMP_BED_PIN 10 #endif // 99 /**************************************************************************************** * Sethi 3D_1 pin assignment - www.sethi3d.com.br * ****************************************************************************************/ #if MB(SETHI) #define KNOWN_BOARD #if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__) && !defined(__AVR_ATmega1284P__) #error Oops! Make sure you have 'Sethi 3D' selected from the 'Tools -> Boards' menu. #endif #ifndef GEN7_VERSION #define GEN7_VERSION 12 // v1.x #endif //x axis pins #define X_STEP_PIN 19 #define X_DIR_PIN 18 #define X_ENABLE_PIN 24 #define X_STOP_PIN 2 //y axis pins #define Y_STEP_PIN 23 #define Y_DIR_PIN 22 #define Y_ENABLE_PIN 24 #define Y_STOP_PIN 0 //z axis pins #define Z_STEP_PIN 26 #define Z_DIR_PIN 25 #define Z_ENABLE_PIN 24 #define Z_MIN_PIN 1 #define Z_MAX_PIN 0 //extruder pins #define E0_STEP_PIN 28 #define E0_DIR_PIN 27 #define E0_ENABLE_PIN 24 #define TEMP_0_PIN 1 #define TEMP_1_PIN -1 #define TEMP_2_PIN -1 #define TEMP_BED_PIN 2 #define HEATER_0_PIN 4 #define HEATER_1_PIN -1 #define HEATER_2_PIN -1 #define HEATER_BED_PIN 3 #define KILL_PIN -1 #define SDPOWER -1 #define SDSS -1 // SCL pin of I2C header #define LED_PIN -1 #if (GEN7_VERSION >= 13) // Gen7 v1.3 removed the fan pin #define FAN_PIN -1 #else #define FAN_PIN 31 #endif #define PS_ON_PIN 15 //All these generations of Gen7 supply thermistor power //via PS_ON, so ignore bad thermistor readings #define BOGUS_TEMPERATURE_FAILSAFE_OVERRIDE //our pin for debugging. #define DEBUG_PIN 0 //our RS485 pins #define TX_ENABLE_PIN 12 #define RX_ENABLE_PIN 13 #endif // SETHI /**************************************************************************************** * Gen7 v1.1, v1.2, v1.3 pin assignment * ****************************************************************************************/ #if MB(GEN7_13) #define MOTHERBOARD BOARD_GEN7_12 #define GEN7_VERSION 13 // v1.3 #endif #if MB(GEN7_12) #define KNOWN_BOARD #if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__) && !defined(__AVR_ATmega1284P__) #error Oops! Make sure you have 'Gen7' selected from the 'Tools -> Boards' menu. #endif #ifndef GEN7_VERSION #define GEN7_VERSION 12 // v1.x #endif //x axis pins #define X_STEP_PIN 19 #define X_DIR_PIN 18 #define X_ENABLE_PIN 24 #define X_STOP_PIN 7 //y axis pins #define Y_STEP_PIN 23 #define Y_DIR_PIN 22 #define Y_ENABLE_PIN 24 #define Y_STOP_PIN 5 //z axis pins #define Z_STEP_PIN 26 #define Z_DIR_PIN 25 #define Z_ENABLE_PIN 24 #define Z_MIN_PIN 1 #define Z_MAX_PIN 0 //extruder pins #define E0_STEP_PIN 28 #define E0_DIR_PIN 27 #define E0_ENABLE_PIN 24 #define TEMP_0_PIN 1 #define TEMP_1_PIN -1 #define TEMP_2_PIN -1 #define TEMP_BED_PIN 2 #define HEATER_0_PIN 4 #define HEATER_1_PIN -1 #define HEATER_2_PIN -1 #define HEATER_BED_PIN 3 #define KILL_PIN -1 #define SDPOWER -1 #define SDSS -1 // SCL pin of I2C header #define LED_PIN -1 #if (GEN7_VERSION >= 13) // Gen7 v1.3 removed the fan pin #define FAN_PIN -1 #else #define FAN_PIN 31 #endif #define PS_ON_PIN 15 //All these generations of Gen7 supply thermistor power //via PS_ON, so ignore bad thermistor readings #define BOGUS_TEMPERATURE_FAILSAFE_OVERRIDE //our pin for debugging. #define DEBUG_PIN 0 //our RS485 pins #define TX_ENABLE_PIN 12 #define RX_ENABLE_PIN 13 #endif /**************************************************************************************** * Gen7 v1.4 pin assignment * ****************************************************************************************/ #if MB(GEN7_14) #define GEN7_VERSION 14 // v1.4 #endif #if MB(GEN7_14) #define KNOWN_BOARD #if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__) && !defined(__AVR_ATmega1284P__) #error Oops! Make sure you have 'Gen7' selected from the 'Tools -> Boards' menu. #endif #ifndef GEN7_VERSION #define GEN7_VERSION 14 // v1.x #endif //x axis pins #define X_STEP_PIN 29 #define X_DIR_PIN 28 #define X_ENABLE_PIN 25 #define X_STOP_PIN 0 //y axis pins #define Y_STEP_PIN 27 #define Y_DIR_PIN 26 #define Y_ENABLE_PIN 25 #define Y_STOP_PIN 1 //z axis pins #define Z_STEP_PIN 23 #define Z_DIR_PIN 22 #define Z_ENABLE_PIN 25 #define Z_STOP_PIN 2 //extruder pins #define E0_STEP_PIN 19 #define E0_DIR_PIN 18 #define E0_ENABLE_PIN 25 #define TEMP_0_PIN 1 #define TEMP_1_PIN -1 #define TEMP_2_PIN -1 #define TEMP_BED_PIN 0 #define HEATER_0_PIN 4 #define HEATER_1_PIN -1 #define HEATER_2_PIN -1 #define HEATER_BED_PIN 3 #define KILL_PIN -1 #define SDPOWER -1 #define SDSS -1 // SCL pin of I2C header #define LED_PIN -1 #define FAN_PIN -1 #define PS_ON_PIN 15 //our pin for debugging. #define DEBUG_PIN 0 //our RS485 pins #define TX_ENABLE_PIN 12 #define RX_ENABLE_PIN 13 #endif // GEN7 /****************************************************************************** * Gen7 Alfons3 pin assignment * ******************************************************************************/ /* These Pins are assigned for the modified GEN7 Board from Alfons3 Please review the pins and adjust it for your needs*/ #if MB(GEN7_CUSTOM) #define KNOWN_BOARD #if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__) && !defined(__AVR_ATmega1284P__) #error Oops! Make sure you have 'Gen7' selected from the 'Tools -> Boards' menu. #endif //x axis pins #define X_STEP_PIN 21 // different from standard GEN7 #define X_DIR_PIN 20 // different from standard GEN7 #define X_ENABLE_PIN 24 #define X_STOP_PIN 0 //y axis pins #define Y_STEP_PIN 23 #define Y_DIR_PIN 22 #define Y_ENABLE_PIN 24 #define Y_STOP_PIN 1 //z axis pins #define Z_STEP_PIN 26 #define Z_DIR_PIN 25 #define Z_ENABLE_PIN 24 #define Z_STOP_PIN 2 //extruder pins #define E0_STEP_PIN 28 #define E0_DIR_PIN 27 #define E0_ENABLE_PIN 24 #define TEMP_0_PIN 2 #define TEMP_1_PIN -1 #define TEMP_2_PIN -1 #define TEMP_BED_PIN 1 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 34 bed) #define HEATER_0_PIN 4 #define HEATER_1_PIN -1 #define HEATER_2_PIN -1 #define HEATER_BED_PIN 3 // (bed) #define SDPOWER -1 #define SDSS 31 // SCL pin of I2C header || CS Pin for SD Card support #define LED_PIN -1 #define FAN_PIN -1 #define PS_ON_PIN 19 //our pin for debugging. #define DEBUG_PIN -1 //our RS485 pins //#define TX_ENABLE_PIN 12 //#define RX_ENABLE_PIN 13 #define BEEPER -1 #define SDCARDDETECT -1 #define SUICIDE_PIN -1 //has to be defined; otherwise Power_off doesn't work #define KILL_PIN -1 //Pins for 4bit LCD Support #define LCD_PINS_RS 18 #define LCD_PINS_ENABLE 17 #define LCD_PINS_D4 16 #define LCD_PINS_D5 15 #define LCD_PINS_D6 13 #define LCD_PINS_D7 14 //buttons are directly attached #define BTN_EN1 11 #define BTN_EN2 10 #define BTN_ENC 12 //the click #endif // GEN7_CUSTOM /**************************************************************************************** * Arduino Mega pin assignment * ****************************************************************************************/ #if IS_RAMPS || MB(3DRAG) || MB(AZTEEG_X3) || MB(AZTEEG_X3_PRO) #define KNOWN_BOARD 1 //////////////////FIX THIS////////////// #ifndef __AVR_ATmega1280__ #ifndef __AVR_ATmega2560__ #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu. #endif #endif // uncomment one of the following lines for RAMPS v1.3 or v1.0, comment both for v1.2 or 1.1 // #define RAMPS_V_1_3 // #define RAMPS_V_1_0 #if (IS_RAMPS && !MB(RAMPS_OLD)) || MB(3DRAG) || MB(AZTEEG_X3) || MB(AZTEEG_X3_PRO) #define LARGE_FLASH true #if MB(3DRAG) #define X_STEP_PIN 54 #define X_DIR_PIN 55 #define X_ENABLE_PIN 38 #define X_MIN_PIN 3 #define X_MAX_PIN -1 //2 //Max endstops default to disabled "-1", set to commented value to enable. #define Y_STEP_PIN 60 #define Y_DIR_PIN 61 #define Y_ENABLE_PIN 56 #define Y_MIN_PIN 14 #define Y_MAX_PIN -1 //15 #define Z_STEP_PIN 46 #define Z_DIR_PIN 48 #define Z_ENABLE_PIN 63 #define Z_MIN_PIN 18 #define Z_MAX_PIN -1 #define Y2_STEP_PIN 36 #define Y2_DIR_PIN 34 #define Y2_ENABLE_PIN 30 #define Z2_STEP_PIN 36 #define Z2_DIR_PIN 34 #define Z2_ENABLE_PIN 30 #define E0_STEP_PIN 26 #define E0_DIR_PIN 28 #define E0_ENABLE_PIN 24 #define E1_STEP_PIN 36 #define E1_DIR_PIN 34 #define E1_ENABLE_PIN 30 #define SDPOWER -1 #define SDSS 25//53 #define LED_PIN 13 #define BEEPER 33 #else #define X_STEP_PIN 54 #define X_DIR_PIN 55 #define X_ENABLE_PIN 38 #define X_MIN_PIN 3 #define X_MAX_PIN 2 #define Y_STEP_PIN 60 #define Y_DIR_PIN 61 #define Y_ENABLE_PIN 56 #define Y_MIN_PIN 14 #define Y_MAX_PIN 15 #define Z_STEP_PIN 46 #define Z_DIR_PIN 48 #define Z_ENABLE_PIN 62 #define Z_MIN_PIN 18 #define Z_MAX_PIN 19 #define Y2_STEP_PIN 36 #define Y2_DIR_PIN 34 #define Y2_ENABLE_PIN 30 #define Z2_STEP_PIN 36 #define Z2_DIR_PIN 34 #define Z2_ENABLE_PIN 30 #define E0_STEP_PIN 26 #define E0_DIR_PIN 28 #define E0_ENABLE_PIN 24 #define E1_STEP_PIN 36 #define E1_DIR_PIN 34 #define E1_ENABLE_PIN 30 #if MB(RAMPS_13_EEB) //FMM added for Filament Extruder #ifdef FILAMENT_SENSOR //define analog pin for the filament width sensor input //Use the RAMPS 1.4 Analog input 5 on the AUX2 connector #define FILWIDTH_PIN 5 #endif #endif #if MB(AZTEEG_X3_PRO) #define E2_STEP_PIN 23 #define E2_DIR_PIN 25 #define E2_ENABLE_PIN 40 #define E3_STEP_PIN 27 #define E3_DIR_PIN 29 #define E3_ENABLE_PIN 41 #define E4_STEP_PIN 43 #define E4_DIR_PIN 37 #define E4_ENABLE_PIN 42 #endif #define SDPOWER -1 #define SDSS 53 #define LED_PIN 13 #endif #if MB(RAMPS_13_EFB) || MB(RAMPS_13_EFF) || MB(AZTEEG_X3) || MB(AZTEEG_X3_PRO) #define FAN_PIN 9 // (Sprinter config) #else #define FAN_PIN 4 // IO pin. Buffer needed #endif #if MB(3DRAG) || MB(RAMPS_13_EEF) #define FAN_PIN 8 #endif #if MB(RAMPS_13_EFF) #define CONTROLLERFAN_PIN -1 //Pin used for the fan to cool controller #endif #define PS_ON_PIN 12 #if defined(REPRAP_DISCOUNT_SMART_CONTROLLER) || defined(G3D_PANEL) #define KILL_PIN 41 #else #define KILL_PIN -1 #endif #if MB(RAMPS_13_EFF) #define HEATER_0_PIN 8 #else #define HEATER_0_PIN 10 // EXTRUDER 1 #endif #if MB(RAMPS_13_EFB) || MB(AZTEEG_X3) #define HEATER_1_PIN -1 #else #define HEATER_1_PIN 9 // EXTRUDER 2 (FAN On Sprinter) #endif #if MB(3DRAG) #define HEATER_0_PIN 10 #define HEATER_1_PIN 12 #define HEATER_2_PIN 6 #elif MB(AZTEEG_X3_PRO) #define HEATER_2_PIN 16 #define HEATER_3_PIN 17 #define HEATER_4_PIN 4 #define HEATER_5_PIN 5 #define HEATER_6_PIN 6 #define HEATER_7_PIN 11 #else #define HEATER_2_PIN -1 #endif #define TEMP_0_PIN 13 // ANALOG NUMBERING #define TEMP_1_PIN 15 // ANALOG NUMBERING #if MB(AZTEEG_X3_PRO) #define TEMP_2_PIN 12 // ANALOG NUMBERING #define TEMP_3_PIN 11 // ANALOG NUMBERING #define TEMP_4_PIN 10 // ANALOG NUMBERING #define TC1 4 // ANALOG NUMBERING Thermo couple on Azteeg X3Pro #define TC2 5 // ANALOG NUMBERING Thermo couple on Azteeg X3Pro #else #define TEMP_2_PIN -1 // ANALOG NUMBERING #endif #if MB(RAMPS_13_EFF) || MB(RAMPS_13_EEF) #define HEATER_BED_PIN -1 // NO BED #else #if MB(3DRAG) #define HEATER_BED_PIN 9 // BED #else #define HEATER_BED_PIN 8 // BED #endif #endif #define TEMP_BED_PIN 14 // ANALOG NUMBERING #ifdef NUM_SERVOS #define SERVO0_PIN 11 #if NUM_SERVOS > 1 #define SERVO1_PIN 6 #endif #if NUM_SERVOS > 2 #define SERVO2_PIN 5 #endif #if NUM_SERVOS > 3 #define SERVO3_PIN 4 #endif #endif #if MB(AZTEEG_X3_PRO) #define BEEPER 33 #endif #ifdef TEMP_STAT_LEDS #if MB(AZTEEG_X3) #define STAT_LED_RED 6 #define STAT_LED_BLUE 11 #endif #endif #ifdef ULTRA_LCD #ifdef NEWPANEL #define LCD_PINS_RS 16 #define LCD_PINS_ENABLE 17 #define LCD_PINS_D4 23 #define LCD_PINS_D5 25 #define LCD_PINS_D6 27 #define LCD_PINS_D7 29 #ifdef REPRAP_DISCOUNT_SMART_CONTROLLER #define BEEPER 37 #define BTN_EN1 31 #define BTN_EN2 33 #define BTN_ENC 35 #define SDCARDDETECT 49 #elif defined(LCD_I2C_PANELOLU2) #define BTN_EN1 47 //reverse if the encoder turns the wrong way. #define BTN_EN2 43 #define BTN_ENC 32 #define LCD_SDSS 53 #define SDCARDDETECT -1 #define KILL_PIN 41 #elif defined(LCD_I2C_VIKI) #define BTN_EN1 22 //reverse if the encoder turns the wrong way. #define BTN_EN2 7 #define BTN_ENC -1 #define LCD_SDSS 53 #define SDCARDDETECT 49 #else //arduino pin which triggers an piezzo beeper #define BEEPER 33 // Beeper on AUX-4 //buttons are directly attached using AUX-2 #ifdef REPRAPWORLD_KEYPAD #define BTN_EN1 64 // encoder #define BTN_EN2 59 // encoder #define BTN_ENC 63 // enter button #define SHIFT_OUT 40 // shift register #define SHIFT_CLK 44 // shift register #define SHIFT_LD 42 // shift register #else #define BTN_EN1 37 #define BTN_EN2 35 #define BTN_ENC 31 //the click #endif #ifdef G3D_PANEL #define SDCARDDETECT 49 #else #define SDCARDDETECT -1 // Ramps does not use this port #endif #endif #if MB(3DRAG) #define BEEPER -1 #define LCD_PINS_RS 27 #define LCD_PINS_ENABLE 29 #define LCD_PINS_D4 37 #define LCD_PINS_D5 35 #define LCD_PINS_D6 33 #define LCD_PINS_D7 31 //buttons #define BTN_EN1 16 #define BTN_EN2 17 #define BTN_ENC 23 //the click #endif #else //old style panel with shift register //arduino pin witch triggers an piezzo beeper #define BEEPER 33 //No Beeper added //buttons are attached to a shift register // Not wired this yet //#define SHIFT_CLK 38 //#define SHIFT_LD 42 //#define SHIFT_OUT 40 //#define SHIFT_EN 17 #define LCD_PINS_RS 16 #define LCD_PINS_ENABLE 17 #define LCD_PINS_D4 23 #define LCD_PINS_D5 25 #define LCD_PINS_D6 27 #define LCD_PINS_D7 29 #endif #endif //ULTRA_LCD #else // RAMPS_V_1_1 or RAMPS_V_1_2 as default (BOARD_RAMPS_OLD) #define X_STEP_PIN 26 #define X_DIR_PIN 28 #define X_ENABLE_PIN 24 #define X_MIN_PIN 3 #define X_MAX_PIN -1 //2 #define Y_STEP_PIN 38 #define Y_DIR_PIN 40 #define Y_ENABLE_PIN 36 #define Y_MIN_PIN 16 #define Y_MAX_PIN -1 //17 #define Z_STEP_PIN 44 #define Z_DIR_PIN 46 #define Z_ENABLE_PIN 42 #define Z_MIN_PIN 18 #define Z_MAX_PIN -1 //19 #define E0_STEP_PIN 32 #define E0_DIR_PIN 34 #define E0_ENABLE_PIN 30 #define SDPOWER 48 #define SDSS 53 #define LED_PIN 13 #define PS_ON_PIN -1 #define KILL_PIN -1 #ifdef RAMPS_V_1_0 // RAMPS_V_1_0 #define HEATER_0_PIN 12 // RAMPS 1.0 #define HEATER_BED_PIN -1 // RAMPS 1.0 #define FAN_PIN 11 // RAMPS 1.0 #else // RAMPS_V_1_1 or RAMPS_V_1_2 #define HEATER_0_PIN 10 // RAMPS 1.1 #define HEATER_BED_PIN 8 // RAMPS 1.1 #define FAN_PIN 9 // RAMPS 1.1 #endif #define HEATER_1_PIN -1 #define HEATER_2_PIN -1 #define TEMP_0_PIN 2 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! #define TEMP_1_PIN -1 #define TEMP_2_PIN -1 #define TEMP_BED_PIN 1 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! #endif // RAMPS_13_EFB || RAMPS_13_EEB || RAMPS_13_EFF || 3DRAG // SPI for Max6675 Thermocouple #ifndef SDSUPPORT // these pins are defined in the SD library if building with SD support #define SCK_PIN 52 #define MISO_PIN 50 #define MOSI_PIN 51 #define MAX6675_SS 66// Do not use pin 53 if there is even the remote possibility of using Dsplay/SD card #else #define MAX6675_SS 66// Do not use pin 49 as this is tied to the switch inside the SD card socket to detect if there is an SD card present #endif #endif // RAMPS_OLD || RAMPS_13_EFB || RAMPS_13_EEB || RAMPS_13_EFF || 3DRAG /**************************************************************************************** * Duemilanove w/ ATMega328P pin assignment * ****************************************************************************************/ #if MB(DUEMILANOVE_328P) #define KNOWN_BOARD 1 #ifndef __AVR_ATmega328P__ #error Oops! Make sure you have 'Arduino Duemilanove w/ ATMega328' selected from the 'Tools -> Boards' menu. #endif #define X_STEP_PIN 19 #define X_DIR_PIN 18 #define X_ENABLE_PIN -1 #define X_STOP_PIN 17 #define Y_STEP_PIN 10 #define Y_DIR_PIN 7 #define Y_ENABLE_PIN -1 #define Y_STOP_PIN 8 #define Z_STEP_PIN 13 #define Z_DIR_PIN 3 #define Z_ENABLE_PIN 2 #define Z_STOP_PIN 4 #define E0_STEP_PIN 11 #define E0_DIR_PIN 12 #define E0_ENABLE_PIN -1 #define SDPOWER -1 #define SDSS -1 #define LED_PIN -1 #define FAN_PIN 5 #define PS_ON_PIN -1 #define KILL_PIN -1 #define HEATER_0_PIN 6 #define HEATER_1_PIN -1 #define HEATER_2_PIN -1 #define TEMP_0_PIN 0 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! #define TEMP_1_PIN -1 #define TEMP_2_PIN -1 #define HEATER_BED_PIN -1 #define TEMP_BED_PIN -1 #endif // DUEMILANOVE_328P /**************************************************************************************** * Elefu RA Board Pin Assignments * ****************************************************************************************/ #if MB(ELEFU_3) #define KNOWN_BOARD 1 #ifndef __AVR_ATmega2560__ #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu. #endif #define X_STEP_PIN 49 #define X_DIR_PIN 13 #define X_ENABLE_PIN 48 #define X_MIN_PIN 35 #define X_MAX_PIN -1 //34 #define Y_STEP_PIN 11 #define Y_DIR_PIN 9 #define Y_ENABLE_PIN 12 #define Y_MIN_PIN 33 #define Y_MAX_PIN -1 //32 #define Z_STEP_PIN 7 #define Z_DIR_PIN 6 #define Z_ENABLE_PIN 8 #define Z_MIN_PIN 31 #define Z_MAX_PIN -1 //30 #define E2_STEP_PIN 43 #define E2_DIR_PIN 47 #define E2_ENABLE_PIN 42 #define E1_STEP_PIN 18 #define E1_DIR_PIN 19 #define E1_ENABLE_PIN 38 #define E0_STEP_PIN 40 #define E0_DIR_PIN 41 #define E0_ENABLE_PIN 37 #define SDPOWER -1 #define LED_PIN -1 //Use +12V Aux port for LED Ring #define FAN_PIN 16 //5V PWM #define PS_ON_PIN 10 //Set to -1 if using a manual switch on the PWRSW Connector #define SLEEP_WAKE_PIN 26 //This feature still needs work #define HEATER_0_PIN 45 //12V PWM1 #define HEATER_1_PIN 46 //12V PWM2 #define HEATER_2_PIN 17 //12V PWM3 #define HEATER_BED_PIN 44 //DOUBLE 12V PWM #define TEMP_0_PIN 3 //ANALOG NUMBERING #define TEMP_1_PIN 2 //ANALOG NUMBERING #define TEMP_2_PIN 1 //ANALOG NUMBERING #define TEMP_BED_PIN 0 //ANALOG NUMBERING #define BEEPER 36 #define KILL_PIN -1 // M240 Triggers a camera by emulating a Canon RC-1 Remote // Data from: path_to_url #define PHOTOGRAPH_PIN 29 #ifdef RA_CONTROL_PANEL #define SDSS 53 #define SDCARDDETECT 28 #define BTN_EN1 14 #define BTN_EN2 39 #define BTN_ENC 15 //the click #define BLEN_C 2 #define BLEN_B 1 #define BLEN_A 0 //encoder rotation values #define encrot0 0 #define encrot1 2 #define encrot2 3 #define encrot3 1 #endif //RA_CONTROL_PANEL #ifdef RA_DISCO //variables for which pins the TLC5947 is using #define TLC_CLOCK_PIN 25 #define TLC_BLANK_PIN 23 #define TLC_XLAT_PIN 22 #define TLC_DATA_PIN 24 //We also need to define pin to port number mapping for the 2560 to match the pins listed above. If you change the TLC pins, update this as well per the 2560 datasheet! //This currently only works with the RA Board. #define TLC_CLOCK_BIT 3 //bit 3 on port A #define TLC_CLOCK_PORT &PORTA //bit 3 on port A #define TLC_BLANK_BIT 1 //bit 1 on port A #define TLC_BLANK_PORT &PORTA //bit 1 on port A #define TLC_DATA_BIT 2 //bit 2 on port A #define TLC_DATA_PORT &PORTA //bit 2 on port A #define TLC_XLAT_BIT 0 //bit 0 on port A #define TLC_XLAT_PORT &PORTA //bit 0 on port A //change this to match your situation. Lots of TLCs takes up the arduino SRAM very quickly, so be careful //Leave it at at least 1 if you have enabled RA_LIGHTING //The number of TLC5947 boards chained together for use with the animation, additional ones will repeat the animation on them, but are not individually addressable and mimic those before them. You can leave the default at 2 even if you only have 1 TLC5947 module. #define NUM_TLCS 2 //These TRANS_ARRAY values let you change the order the LEDs on the lighting modules will animate for chase functions. //Modify them according to your specific situation. //NOTE: the array should be 8 long for every TLC you have. These defaults assume (2) TLCs. #define TRANS_ARRAY {0, 1, 2, 3, 4, 5, 6, 7, 15, 14, 13, 12, 11, 10, 9, 8} //forwards //#define TRANS_ARRAY {7, 6, 5, 4, 3, 2, 1, 0, 8, 9, 10, 11, 12, 13, 14, 15} //backwards #endif //RA_LIGHTING #endif // ELEFU_3 /**************************************************************************************** * Gen6 pin assignment * ****************************************************************************************/ #if MB(GEN6) || MB(GEN6_DELUXE) #define KNOWN_BOARD 1 #ifndef __AVR_ATmega644P__ #ifndef __AVR_ATmega1284P__ #error Oops! Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu. #endif #endif //x axis pins #define X_STEP_PIN 15 #define X_DIR_PIN 18 #define X_ENABLE_PIN 19 #define X_STOP_PIN 20 //y axis pins #define Y_STEP_PIN 23 #define Y_DIR_PIN 22 #define Y_ENABLE_PIN 24 #define Y_STOP_PIN 25 //z axis pins #define Z_STEP_PIN 27 #define Z_DIR_PIN 28 #define Z_ENABLE_PIN 29 #define Z_STOP_PIN 30 //extruder pins #define E0_STEP_PIN 4 //Edited @ EJE Electronics 20100715 #define E0_DIR_PIN 2 //Edited @ EJE Electronics 20100715 #define E0_ENABLE_PIN 3 //Added @ EJE Electronics 20100715 #define TEMP_0_PIN 5 //changed @ rkoeppl 20110410 #define TEMP_1_PIN -1 //changed @ rkoeppl 20110410 #define TEMP_2_PIN -1 //changed @ rkoeppl 20110410 #define HEATER_0_PIN 14 //changed @ rkoeppl 20110410 #define HEATER_1_PIN -1 #define HEATER_2_PIN -1 #if MB(GEN6) #define HEATER_BED_PIN -1 //changed @ rkoeppl 20110410 #define TEMP_BED_PIN -1 //changed @ rkoeppl 20110410 #else #define HEATER_BED_PIN 1 //changed @ rkoeppl 20110410 #define TEMP_BED_PIN 0 //changed @ rkoeppl 20110410 #endif #define SDPOWER -1 #define SDSS 17 #define LED_PIN -1 //changed @ rkoeppl 20110410 #define FAN_PIN -1 //changed @ rkoeppl 20110410 #define PS_ON_PIN -1 //changed @ rkoeppl 20110410 #define KILL_PIN -1 //changed @ drakelive 20120830 //our pin for debugging. #define DEBUG_PIN 0 //our RS485 pins #define TX_ENABLE_PIN 12 #define RX_ENABLE_PIN 13 #endif // GEN6 || GEN6_DELUXE /**************************************************************************************** * Sanguinololu pin assignment * ****************************************************************************************/ #if MB(STB_11) #define STB #endif #if MB(MELZI) || MB(MELZI_1284) #define MELZI #endif #if MB(AZTEEG_X1) #define AZTEEG_X1 #endif #if MB(SANGUINOLOLU_12) || MB(MELZI) || MB(STB_11) || MB(AZTEEG_X1) || MB(MELZI_1284) #undef MOTHERBOARD #define MOTHERBOARD BOARD_SANGUINOLOLU_11 #define SANGUINOLOLU_V_1_2 #if defined(__AVR_ATmega1284P__) #define LARGE_FLASH true #endif #endif #if MB(SANGUINOLOLU_11) #define KNOWN_BOARD 1 #ifndef __AVR_ATmega644P__ #ifndef __AVR_ATmega1284P__ #error Oops! Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu. #endif #endif #define X_STEP_PIN 15 #define X_DIR_PIN 21 #define X_STOP_PIN 18 #define Y_STEP_PIN 22 #define Y_DIR_PIN 23 #define Y_STOP_PIN 19 #define Z_STEP_PIN 3 #define Z_DIR_PIN 2 #define Z_STOP_PIN 20 #define E0_STEP_PIN 1 #define E0_DIR_PIN 0 #define LED_PIN -1 #define FAN_PIN -1 #if FAN_PIN == 12 || FAN_PIN ==13 #define FAN_SOFT_PWM #endif #ifdef MELZI #define LED_PIN 27 /* On some broken versions of the Sanguino libraries the pin definitions are wrong, which then needs LED_PIN as pin 28. But you better upgrade your Sanguino libraries! See #368. */ #define FAN_PIN 4 // Works for Panelolu2 too #endif #ifdef STB #define FAN_PIN 4 // Uncomment this if you have the first generation (V1.10) of STBs board #define LCD_PIN_BL 17 // LCD backlight LED #endif #ifdef AZTEEG_X1 #define FAN_PIN 4 #endif #ifdef NUM_SERVOS #define SERVO0_PIN -1 #if NUM_SERVOS > 1 #define SERVO1_PIN -1 #endif #if NUM_SERVOS > 2 #define SERVO2_PIN -1 #endif #if NUM_SERVOS > 3 #define SERVO3_PIN -1 #endif #endif #define PS_ON_PIN -1 #define KILL_PIN -1 #define HEATER_0_PIN 13 // (extruder) #define HEATER_1_PIN -1 #define HEATER_2_PIN -1 #ifdef SANGUINOLOLU_V_1_2 #define HEATER_BED_PIN 12 // (bed) #define X_ENABLE_PIN 14 #define Y_ENABLE_PIN 14 #define Z_ENABLE_PIN 26 #define E0_ENABLE_PIN 14 #ifdef LCD_I2C_PANELOLU2 #define FAN_PIN 4 // Uses Transistor1 (PWM) on Panelolu2's Sanguino Adapter Board to drive the fan #endif #else #define HEATER_BED_PIN 14 // (bed) #define X_ENABLE_PIN -1 #define Y_ENABLE_PIN -1 #define Z_ENABLE_PIN -1 #define E0_ENABLE_PIN -1 #endif #define TEMP_0_PIN 7 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 33 extruder) #define TEMP_1_PIN -1 #define TEMP_2_PIN -1 #define TEMP_BED_PIN 6 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 34 bed) #define SDPOWER -1 #define SDSS 31 /* On some broken versions of the Sanguino libraries the pin definitions are wrong, which then needs SDSS as pin 24. But you better upgrade your Sanguino libraries! See #368. */ //#define SDSS 24 #ifdef ULTRA_LCD #ifdef NEWPANEL //we have no buzzer installed #define BEEPER -1 //LCD Pins #ifdef DOGLCD // Pins for DOGM SPI LCD Support #define DOGLCD_A0 30 #define DOGLCD_CS 29 // GLCD features #define LCD_CONTRAST 1 // Uncomment screen orientation // #define LCD_SCREEN_ROT_0 // #define LCD_SCREEN_ROT_90 #define LCD_SCREEN_ROT_180 // #define LCD_SCREEN_ROT_270 #else // standard Hitachi LCD controller #define LCD_PINS_RS 4 #define LCD_PINS_ENABLE 17 #define LCD_PINS_D4 30 #define LCD_PINS_D5 29 #define LCD_PINS_D6 28 #define LCD_PINS_D7 27 #endif //The encoder and click button #define BTN_EN1 11 #define BTN_EN2 10 #ifdef LCD_I2C_PANELOLU2 #ifdef MELZI #define BTN_ENC 29 //the click switch #define LCD_SDSS 30 //to use the SD card reader on the Panelolu2 rather than the melzi board #else #define BTN_ENC 30 //the click switch #endif #else #define BTN_ENC 16 //the click switch #endif //Panelolu2 //not connected to a pin #define SDCARDDETECT -1 #endif //Newpanel #endif //Ultipanel #ifdef MAKRPANEL #define BEEPER 29 // Pins for DOGM SPI LCD Support #define DOGLCD_A0 30 #define DOGLCD_CS 17 #define LCD_PIN_BL 28 // backlight LED on PA3 // GLCD features #define LCD_CONTRAST 1 // Uncomment screen orientation #define LCD_SCREEN_ROT_0 // #define LCD_SCREEN_ROT_90 // #define LCD_SCREEN_ROT_180 // #define LCD_SCREEN_ROT_270 //The encoder and click button #define BTN_EN1 11 #define BTN_EN2 10 #define BTN_ENC 16 //the click switch //not connected to a pin #define SDCARDDETECT -1 #endif //Makrpanel #endif // SANGUINOLOLU_11 /***************************************************************** * Ultimaker pin assignment ******************************************************************/ #if MB(ULTIMAKER) #define KNOWN_BOARD #ifndef __AVR_ATmega1280__ #ifndef __AVR_ATmega2560__ #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu. #endif #endif #define LARGE_FLASH true #define X_STEP_PIN 25 #define X_DIR_PIN 23 #define X_MIN_PIN 22 #define X_MAX_PIN 24 #define X_ENABLE_PIN 27 #define Y_STEP_PIN 31 #define Y_DIR_PIN 33 #define Y_MIN_PIN 26 #define Y_MAX_PIN 28 #define Y_ENABLE_PIN 29 #define Z_STEP_PIN 37 #define Z_DIR_PIN 39 #define Z_MIN_PIN 30 #define Z_MAX_PIN 32 #define Z_ENABLE_PIN 35 #define HEATER_BED_PIN 4 #define TEMP_BED_PIN 10 #define HEATER_0_PIN 2 #define TEMP_0_PIN 8 #define HEATER_1_PIN 3 #define TEMP_1_PIN 9 #define HEATER_2_PIN -1 #define TEMP_2_PIN -1 #define E0_STEP_PIN 43 #define E0_DIR_PIN 45 #define E0_ENABLE_PIN 41 #define E1_STEP_PIN 49 #define E1_DIR_PIN 47 #define E1_ENABLE_PIN 48 #define SDPOWER -1 #define SDSS 53 #define LED_PIN 13 #define FAN_PIN 7 #define PS_ON_PIN 12 #define KILL_PIN -1 #define SUICIDE_PIN 54 //PIN that has to be turned on right after start, to keep power flowing. #define SERVO0_PIN 13 // untested #ifdef ULTRA_LCD #ifdef NEWPANEL //arduino pin witch triggers an piezzo beeper #define BEEPER 18 #define LCD_PINS_RS 20 #define LCD_PINS_ENABLE 17 #define LCD_PINS_D4 16 #define LCD_PINS_D5 21 #define LCD_PINS_D6 5 #define LCD_PINS_D7 6 //buttons are directly attached #define BTN_EN1 40 #define BTN_EN2 42 #define BTN_ENC 19 //the click #define SDCARDDETECT 38 #else //old style panel with shift register //arduino pin witch triggers an piezzo beeper #define BEEPER 18 //buttons are attached to a shift register #define SHIFT_CLK 38 #define SHIFT_LD 42 #define SHIFT_OUT 40 #define SHIFT_EN 17 #define LCD_PINS_RS 16 #define LCD_PINS_ENABLE 5 #define LCD_PINS_D4 6 #define LCD_PINS_D5 21 #define LCD_PINS_D6 20 #define LCD_PINS_D7 19 #define SDCARDDETECT -1 #endif #endif //ULTRA_LCD #endif // ULTIMAKER #if MB(ULTIMAKER_OLD) #define KNOWN_BOARD /***************************************************************** * Ultimaker pin assignment (Old electronics) ******************************************************************/ #ifndef __AVR_ATmega1280__ #ifndef __AVR_ATmega2560__ #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu. #endif #endif #define LARGE_FLASH true #define X_STEP_PIN 25 #define X_DIR_PIN 23 #define X_MIN_PIN 15 #define X_MAX_PIN 14 #define X_ENABLE_PIN 27 #define Y_STEP_PIN 31 #define Y_DIR_PIN 33 #define Y_MIN_PIN 17 #define Y_MAX_PIN 16 #define Y_ENABLE_PIN 29 #define Z_STEP_PIN 37 #define Z_DIR_PIN 39 #define Z_MIN_PIN 19 #define Z_MAX_PIN 18 #define Z_ENABLE_PIN 35 #define HEATER_BED_PIN -1 #define TEMP_BED_PIN -1 #define HEATER_0_PIN 2 #define TEMP_0_PIN 8 #define HEATER_1_PIN 1 #define TEMP_1_PIN 1 #define HEATER_2_PIN -1 #define TEMP_2_PIN -1 #define E0_STEP_PIN 43 #define E0_DIR_PIN 45 #define E0_ENABLE_PIN 41 #define E1_STEP_PIN -1 #define E1_DIR_PIN -1 #define E1_ENABLE_PIN -1 #define SDPOWER -1 #define SDSS -1 #define LED_PIN -1 #define FAN_PIN -1 #define PS_ON_PIN -1 #define KILL_PIN -1 #define SUICIDE_PIN -1 //PIN that has to be turned on right after start, to keep power flowing. #define LCD_PINS_RS 24 #define LCD_PINS_ENABLE 22 #define LCD_PINS_D4 36 #define LCD_PINS_D5 34 #define LCD_PINS_D6 32 #define LCD_PINS_D7 30 #endif // ULTIMAKER_OLD #if MB(ULTIMAIN_2) #define KNOWN_BOARD /***************************************************************** * Ultiboard v2.0 pin assignment ******************************************************************/ #ifndef __AVR_ATmega2560__ #error Oops! Make sure you have 'Arduino Mega 2560' selected from the 'Tools -> Boards' menu. #endif #define X_STEP_PIN 25 #define X_DIR_PIN 23 #define X_STOP_PIN 22 #define X_ENABLE_PIN 27 #define Y_STEP_PIN 32 #define Y_DIR_PIN 33 #define Y_STOP_PIN 26 #define Y_ENABLE_PIN 31 #define Z_STEP_PIN 35 #define Z_DIR_PIN 36 #define Z_STOP_PIN 29 #define Z_ENABLE_PIN 34 #define HEATER_BED_PIN 4 #define TEMP_BED_PIN 10 #define HEATER_0_PIN 2 #define TEMP_0_PIN 8 #define HEATER_1_PIN 3 #define TEMP_1_PIN 9 #define HEATER_2_PIN -1 #define TEMP_2_PIN -1 #define E0_STEP_PIN 42 #define E0_DIR_PIN 43 #define E0_ENABLE_PIN 37 #define E1_STEP_PIN 49 #define E1_DIR_PIN 47 #define E1_ENABLE_PIN 48 #define SDPOWER -1 #define SDSS 53 #define LED_PIN 8 #define FAN_PIN 7 #define PS_ON_PIN -1 #define KILL_PIN -1 #define SUICIDE_PIN -1 //PIN that has to be turned on right after start, to keep power flowing. #define SAFETY_TRIGGERED_PIN 28 //PIN to detect the safety circuit has triggered #define MAIN_VOLTAGE_MEASURE_PIN 14 //Analogue PIN to measure the main voltage, with a 100k - 4k7 resitor divider. #define MOTOR_CURRENT_PWM_XY_PIN 44 #define MOTOR_CURRENT_PWM_Z_PIN 45 #define MOTOR_CURRENT_PWM_E_PIN 46 //Motor current PWM conversion, PWM value = MotorCurrentSetting * 255 / range #define MOTOR_CURRENT_PWM_RANGE 2000 #define DEFAULT_PWM_MOTOR_CURRENT {1300, 1300, 1250} //arduino pin witch triggers an piezzo beeper #define BEEPER 18 #define LCD_PINS_RS 20 #define LCD_PINS_ENABLE 15 #define LCD_PINS_D4 14 #define LCD_PINS_D5 21 #define LCD_PINS_D6 5 #define LCD_PINS_D7 6 //buttons are directly attached #define BTN_EN1 40 #define BTN_EN2 41 #define BTN_ENC 19 //the click #define BLEN_C 2 #define BLEN_B 1 #define BLEN_A 0 #define SDCARDDETECT 39 #endif // ULTIMAIN_2 /**************************************************************************************** * RUMBA pin assignment * ****************************************************************************************/ #if MB(RUMBA) #define KNOWN_BOARD 1 #ifndef __AVR_ATmega2560__ #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu. #endif #define X_STEP_PIN 17 #define X_DIR_PIN 16 #define X_ENABLE_PIN 48 #define X_MIN_PIN 37 #define X_MAX_PIN 36 #define Y_STEP_PIN 54 #define Y_DIR_PIN 47 #define Y_ENABLE_PIN 55 #define Y_MIN_PIN 35 #define Y_MAX_PIN 34 #define Z_STEP_PIN 57 #define Z_DIR_PIN 56 #define Z_ENABLE_PIN 62 #define Z_MIN_PIN 33 #define Z_MAX_PIN 32 #define E0_STEP_PIN 23 #define E0_DIR_PIN 22 #define E0_ENABLE_PIN 24 #define E1_STEP_PIN 26 #define E1_DIR_PIN 25 #define E1_ENABLE_PIN 27 #define E2_STEP_PIN 29 #define E2_DIR_PIN 28 #define E2_ENABLE_PIN 39 #define LED_PIN 13 #define FAN_PIN 7 //additional FAN1 PIN (e.g. useful for electronics fan or light on/off) on PIN 8 #define PS_ON_PIN 45 #define KILL_PIN 46 #if (TEMP_SENSOR_0==0) #define TEMP_0_PIN -1 #define HEATER_0_PIN -1 #else #define HEATER_0_PIN 2 // EXTRUDER 1 #if (TEMP_SENSOR_0==-1) #define TEMP_0_PIN 6 // ANALOG NUMBERING - connector *K1* on RUMBA thermocouple ADD ON is used #else #define TEMP_0_PIN 15 // ANALOG NUMBERING - default connector for thermistor *T0* on rumba board is used #endif #endif #if (TEMP_SENSOR_1==0) #define TEMP_1_PIN -1 #define HEATER_1_PIN -1 #else #define HEATER_1_PIN 3 // EXTRUDER 2 #if (TEMP_SENSOR_1==-1) #define TEMP_1_PIN 5 // ANALOG NUMBERING - connector *K2* on RUMBA thermocouple ADD ON is used #else #define TEMP_1_PIN 14 // ANALOG NUMBERING - default connector for thermistor *T1* on rumba board is used #endif #endif #if (TEMP_SENSOR_2==0) #define TEMP_2_PIN -1 #define HEATER_2_PIN -1 #else #define HEATER_2_PIN 6 // EXTRUDER 3 #if (TEMP_SENSOR_2==-1) #define TEMP_2_PIN 7 // ANALOG NUMBERING - connector *K3* on RUMBA thermocouple ADD ON is used <-- this can not be used when TEMP_SENSOR_BED is defined as thermocouple #else #define TEMP_2_PIN 13 // ANALOG NUMBERING - default connector for thermistor *T2* on rumba board is used #endif #endif //optional for extruder 4 or chamber: #define TEMP_X_PIN 12 // ANALOG NUMBERING - default connector for thermistor *T3* on rumba board is used //optional FAN1 can be used as 4th heater output: #define HEATER_3_PIN 8 // EXTRUDER 4 #if (TEMP_SENSOR_BED==0) #define TEMP_BED_PIN -1 #define HEATER_BED_PIN -1 #else #define HEATER_BED_PIN 9 // BED #if (TEMP_SENSOR_BED==-1) #define TEMP_BED_PIN 7 // ANALOG NUMBERING - connector *K3* on RUMBA thermocouple ADD ON is used <-- this can not be used when TEMP_SENSOR_2 is defined as thermocouple #else #define TEMP_BED_PIN 11 // ANALOG NUMBERING - default connector for thermistor *THB* on rumba board is used #endif #endif #define SDPOWER -1 #define SDSS 53 #define SDCARDDETECT 49 #define BEEPER 44 #define LCD_PINS_RS 19 #define LCD_PINS_ENABLE 42 #define LCD_PINS_D4 18 #define LCD_PINS_D5 38 #define LCD_PINS_D6 41 #define LCD_PINS_D7 40 #define BTN_EN1 11 #define BTN_EN2 12 #define BTN_ENC 43 #endif // RUMBA /**************************************************************************************** * Teensylu 0.7 / Printrboard pin assignments (AT90USB1286) * Requires the Teensyduino software with Teensy++ 2.0 selected in Arduino IDE! path_to_url * See path_to_url for more info ****************************************************************************************/ #if MB(TEENSYLU) || MB(PRINTRBOARD) #define KNOWN_BOARD 1 #define AT90USB 1286 // Disable MarlinSerial etc. #ifndef __AVR_AT90USB1286__ #error Oops! Make sure you have 'Teensy++ 2.0' selected from the 'Tools -> Boards' menu. #endif #ifdef AT90USBxx_TEENSYPP_ASSIGNMENTS // use Teensyduino Teensy++2.0 pin assignments instead of Marlin traditional. #error These Teensylu/Printrboard assignments depend on traditional Marlin assignments, not AT90USBxx_TEENSYPP_ASSIGNMENTS in fastio.h #endif #define LARGE_FLASH true #define X_STEP_PIN 0 #define X_DIR_PIN 1 #define X_ENABLE_PIN 39 #define Y_STEP_PIN 2 #define Y_DIR_PIN 3 #define Y_ENABLE_PIN 38 #define Z_STEP_PIN 4 #define Z_DIR_PIN 5 #define Z_ENABLE_PIN 23 #define E0_STEP_PIN 6 #define E0_DIR_PIN 7 #define E0_ENABLE_PIN 19 #define HEATER_0_PIN 21 // Extruder #define HEATER_1_PIN -1 #define HEATER_2_PIN -1 #define HEATER_BED_PIN 20 // Bed #define FAN_PIN 22 // Fan // You may need to change FAN_PIN to 16 because Marlin isn't using fastio.h // for the fan and Teensyduino uses a different pin mapping. #if MB(TEENSYLU) // Teensylu #define X_STOP_PIN 13 #define Y_STOP_PIN 14 #define Z_STOP_PIN 15 #define TEMP_0_PIN 7 // Extruder / Analog pin numbering #define TEMP_BED_PIN 6 // Bed / Analog pin numbering #else // Printrboard #define X_STOP_PIN 35 #define Y_STOP_PIN 8 #define Z_STOP_PIN 36 #define TEMP_0_PIN 1 // Extruder / Analog pin numbering #define TEMP_BED_PIN 0 // Bed / Analog pin numbering #ifdef FILAMENT_SENSOR #define FILWIDTH_PIN 2 #endif //FILAMENT_SENSOR #endif #define TEMP_1_PIN -1 #define TEMP_2_PIN -1 #define SDPOWER -1 #define SDSS 8 #define LED_PIN -1 #define PS_ON_PIN -1 #define KILL_PIN -1 #define ALARM_PIN -1 #ifndef SDSUPPORT // these pins are defined in the SD library if building with SD support #define SCK_PIN 9 #define MISO_PIN 11 #define MOSI_PIN 10 #endif #endif // TEENSYLU || PRINTRBOARD /**************************************************************************************** * Brainwave 1.0 pin assignments (AT90USB646) * Requires hardware bundle for Arduino: path_to_url ****************************************************************************************/ #if MB(BRAINWAVE) #define KNOWN_BOARD 1 #define AT90USB 646 // Disable MarlinSerial etc. #ifndef __AVR_AT90USB646__ #error Oops! Make sure you have 'Brainwave' selected from the 'Tools -> Boards' menu. #endif #define X_STEP_PIN 27 #define X_DIR_PIN 29 #define X_ENABLE_PIN 28 #define X_STOP_PIN 7 #define X_ATT_PIN 26 #define Y_STEP_PIN 31 #define Y_DIR_PIN 33 #define Y_ENABLE_PIN 32 #define Y_STOP_PIN 6 #define Y_ATT_PIN 30 #define Z_STEP_PIN 17 #define Z_DIR_PIN 19 #define Z_ENABLE_PIN 18 #define Z_STOP_PIN 5 #define Z_ATT_PIN 16 #define E0_STEP_PIN 21 #define E0_DIR_PIN 23 #define E0_ENABLE_PIN 22 #define E0_ATT_PIN 20 #define HEATER_0_PIN 4 // Extruder #define HEATER_1_PIN -1 #define HEATER_2_PIN -1 #define HEATER_BED_PIN 38 // Bed #define FAN_PIN 3 // Fan #define TEMP_0_PIN 7 // Extruder / Analog pin numbering #define TEMP_1_PIN -1 #define TEMP_2_PIN -1 #define TEMP_BED_PIN 6 // Bed / Analog pin numbering #define SDPOWER -1 #define SDSS -1 #define LED_PIN 39 #define PS_ON_PIN -1 #define KILL_PIN -1 #define ALARM_PIN -1 #ifndef SDSUPPORT // these pins are defined in the SD library if building with SD support #define SCK_PIN 9 #define MISO_PIN 11 #define MOSI_PIN 10 #endif #endif // BRAINWAVE // // SAV Mk-I // your_sha256_hash------------------- /**************************************************************************************** * SAV MkI pin assignments (AT90USB1286) * Requires the Teensyduino software with Teensy++ 2.0 selected in Arduino IDE! path_to_url RepRap Clone Wars project board. ****************************************************************************************/ #if MB(SAV_MKI) // SAV Mk-I #define KNOWN_BOARD 1 #define AT90USB 1286 // Disable MarlinSerial etc. #ifndef __AVR_AT90USB1286__ #error Oops! Make sure you have 'Teensy++ 2.0' selected from the 'Tools -> Boards' menu. #endif #define LARGE_FLASH true #define X_STEP_PIN 0 #define X_DIR_PIN 1 #define X_ENABLE_PIN 39 #define Y_STEP_PIN 2 #define Y_DIR_PIN 3 #define Y_ENABLE_PIN 38 #define Z_STEP_PIN 4 #define Z_DIR_PIN 5 #define Z_ENABLE_PIN 23 #define E0_STEP_PIN 6 #define E0_DIR_PIN 7 #define E0_ENABLE_PIN 19 #define HEATER_0_PIN 21 // Extruder #define HEATER_1_PIN -1 #define HEATER_2_PIN -1 #define HEATER_BED_PIN 20 // Bed #define FAN_PIN 16 // Fan -- from Teensyduino environment. // For the fan and Teensyduino uses a different pin mapping. #define X_STOP_PIN 13 #define Y_STOP_PIN 14 #define Z_STOP_PIN 15 // #define Z_STOP_PIN 36 // For inductive sensor. #define TEMP_0_PIN 7 // Extruder / Analog pin numbering #define TEMP_BED_PIN 6 // Bed / Analog pin numbering #define TEMP_1_PIN -1 #define TEMP_2_PIN -1 #define SDPOWER -1 #define SDSS 20 // PB0 - 8 in marlin env. #define LED_PIN -1 #define PS_ON_PIN -1 #define ALARM_PIN -1 #define SDCARDDETECT -1 #ifndef SDSUPPORT // these pins are defined in the SD library if building with SD support #define SCK_PIN 9 #define MISO_PIN 11 #define MOSI_PIN 10 #endif #define BEEPER -1 #define LCD_PINS_RS -1 #define LCD_PINS_ENABLE -1 #define LCD_PINS_D4 -1 #define LCD_PINS_D5 -1 #define LCD_PINS_D6 -1 #define LCD_PINS_D7 -1 #ifdef SAV_3DLCD // For LCD SHIFT register LCD #define SR_DATA_PIN 1 #define SR_CLK_PIN 0 #define BTN_EN1 41 #define BTN_EN2 40 #define BTN_ENC 12 #define KILL_PIN 42 // A2 = 42 - teensy = 40 #define HOME_PIN -1 // A4 = marlin 44 - teensy = 42 #ifdef NUM_SERVOS #define SERVO0_PIN 41 // In teensy's pin definition for pinMode (in Servo.cpp) #endif #endif #endif // SAV_MKI /**************************************************************************************** * Teensy++ 2.0 Breadboard pin assignments (AT90USB1286) * Requires the Teensyduino software with Teensy++ 2.0 selected in Arduino IDE! path_to_url * See path_to_url for more info * CLI build: DEFINES=AT90USBxx_TEENSYPP_ASSIGNMENTS HARDWARE_MOTHERBOARD=84 make * ****************************************************************************************/ #if MB(TEENSY2) #define KNOWN_BOARD 1 #define AT90USB 1286 // Disable MarlinSerial etc. #ifndef __AVR_AT90USB1286__ #error Oops! Make sure you have 'Teensy++ 2.0' selected from the 'Tools -> Boards' menu. #endif #define LARGE_FLASH true /* DaveX plan for Teensylu/printrboard-type pinouts (ref teensylu & sprinter) for a TeensyBreadboard: USB GND GND |-----#####-----| +5V ATX +5SB ATX PS_ON PWM 27 |b7 ##### b6| 26 PWM* Stepper Enable PWM 0 |d0 b5| 25 PWM* PWM 1 |d1 b4| 24 PWM X_MIN 2 |d2 b3| 23 MISO_PIN Y_MIN 3 |d3 b2| 22 MOSI_PIN Z_MIN 4 |d4 * * b1| 21 SCK_PIN 5 |d5 e e b0| 20 SDSS LED 6 |d6 5 4 e7| 19 7 |d7 e6| 18 LCD RS 8 |e0 | GND LCD EN 9 |e1 a4 a0 R| AREF LCD D4 10 |c0 a5 a1 f0| 38 A0 ENC_1 LCD D5 11 |c1 a6 a2 f1| 39 A1 ENC_2 LCD D6 12 |c2 a7 a3 f2| 40 A2 ENC_CLK LCD D6 13 |c3 f3| 41 A3 Bed Heat PWM 14 |c4 V G R f4| 42 A4 Extruder Heat PWM 15 |c5 c n S f5| 43 A5 Fan PWM 16 |c6 c d T f6| 44 A6 Bed TC 17 |c7 * * * f7| 45 A7 Extruder TC * 4.7k * +5 ----------------- Interior E4: 36, INT4 Interior E5: 37, INT5 Interior PA0-7: 28-35 -- Printrboard and Teensylu use these pins for step & direction: T++ PA Signal Marlin Z STEP 32 a4 a0 28 X STEP Z DIR 33 a5 a1 29 X DIR E STEP 34 a6 a2 30 Y STEP E DIR 35 a7 a3 31 Y DIR */ #ifndef AT90USBxx_TEENSYPP_ASSIGNMENTS // use Teensyduino Teensy++2.0 pin assignments instead of Marlin alphabetical. #error Uncomment #define AT90USBxx_TEENSYPP_ASSIGNMENTS in fastio.h for this config // or build from command line with: DEFINES=AT90USBxx_TEENSYPP_ASSIGNMENTS HARDWARE_MOTHERBOARD=84 make #endif #define X_STEP_PIN 28 // 0 Marlin #define X_DIR_PIN 29 // 1 Marlin #define X_ENABLE_PIN 26 #define Y_STEP_PIN 30 // 2 Marlin #define Y_DIR_PIN 31 // 3 #define Y_ENABLE_PIN 26 // Shared w/x #define Z_STEP_PIN 32 // 4 #define Z_DIR_PIN 33 // 5 #define Z_ENABLE_PIN 26 // Shared w/x #define E0_STEP_PIN 34 // 6 #define E0_DIR_PIN 35 // 7 #define E0_ENABLE_PIN 26 // Shared w/x #define HEATER_0_PIN 15 // 21 // Extruder #define HEATER_1_PIN -1 #define HEATER_2_PIN -1 #define HEATER_BED_PIN 14 // 20 // Bed #define FAN_PIN 16 // 22 // Fan #define X_STOP_PIN 2 #define Y_STOP_PIN 3 #define Z_STOP_PIN 4 #define TEMP_0_PIN 7 // Extruder / Analog pin numbering #define TEMP_BED_PIN 6 // Bed / Analog pin numbering #define TEMP_1_PIN -1 #define TEMP_2_PIN -1 #define SDPOWER -1 #define SDCARDDETECT -1 #define SDSS 20 // 8 #define LED_PIN 6 #define PS_ON_PIN 27 #define KILL_PIN -1 #define ALARM_PIN -1 #ifndef SDSUPPORT // these pins are defined in the SD library if building with SD support #define SCK_PIN 21 // 9 #define MISO_PIN 23 // 11 #define MOSI_PIN 22 // 10 #endif #ifdef ULTIPANEL #define LCD_PINS_RS 8 #define LCD_PINS_ENABLE 9 #define LCD_PINS_D4 10 #define LCD_PINS_D5 11 #define LCD_PINS_D6 12 #define LCD_PINS_D7 13 #define BTN_EN1 38 #define BTN_EN2 39 #define BTN_ENC 40 #endif #endif // TEENSY2 /**************************************************************************************** * Gen3+ pin assignment * ****************************************************************************************/ #if MB(GEN3_PLUS) #define MOTHERBOARD BOARD_SANGUINOLOLU_11 /*TODO: Figure out, Why is this done?*/ #define KNOWN_BOARD 1 #ifndef __AVR_ATmega644P__ #ifndef __AVR_ATmega1284P__ #error Oops! Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu. #endif #endif #define X_STEP_PIN 15 #define X_DIR_PIN 18 #define X_STOP_PIN 20 #define Y_STEP_PIN 23 #define Y_DIR_PIN 22 #define Y_STOP_PIN 25 #define Z_STEP_PIN 27 #define Z_DIR_PIN 28 #define Z_STOP_PIN 30 #define E0_STEP_PIN 17 #define E0_DIR_PIN 21 #define LED_PIN -1 #define FAN_PIN -1 #define PS_ON_PIN 14 #define KILL_PIN -1 #define HEATER_0_PIN 12 // (extruder) #define HEATER_BED_PIN 16 // (bed) #define X_ENABLE_PIN 19 #define Y_ENABLE_PIN 24 #define Z_ENABLE_PIN 29 #define E0_ENABLE_PIN 13 #define TEMP_0_PIN 0 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 33 extruder) #define TEMP_1_PIN -1 #define TEMP_2_PIN -1 #define TEMP_BED_PIN 5 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 34 bed) #define SDPOWER -1 #define SDSS 4 #define HEATER_2_PIN -1 #endif // GEN3_PLUS /**************************************************************************************** * Gen3 Monolithic Electronics * ****************************************************************************************/ #if MB(GEN3_MONOLITHIC) #define KNOWN_BOARD 1 #ifndef __AVR_ATmega644P__ #error Oops! Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu. #endif #define DEBUG_PIN 0 // x axis #define X_STEP_PIN 15 #define X_DIR_PIN 18 #define X_MIN_PIN 20 //Alex Checar #define X_STOP_PIN 20 #define X_ENABLE_PIN 24 //actually uses Y_enable_pin #define X_MAX_PIN -1 // y axes #define Y_STEP_PIN 23 #define Y_DIR_PIN 22 #define Y_MIN_PIN 25 //Alex Checar #define Y_STOP_PIN 25 #define Y_ENABLE_PIN 24 //shared with X_enable_pin #define Y_MAX_PIN -1 // z axes #define Z_STEP_PIN 27 #define Z_DIR_PIN 28 #define Z_MIN_PIN 30 //Alex Checar #define Z_STOP_PIN 30 #define Z_ENABLE_PIN 29 #define Z_MAX_PIN -1 //extruder pins #define E0_STEP_PIN 12 #define E0_DIR_PIN 17 #define E0_ENABLE_PIN 3 #define HEATER_0_PIN 16 #define TEMP_0_PIN 0 #define FAN_PIN -1 //bed pins #define HEATER_BED_PIN -1 #define TEMP_BED_PIN -1 #define SDSS -1 #define SDPOWER -1 #define LED_PIN -1 //pin for controlling the PSU. #define PS_ON_PIN 14 //Alex, Do this work on the card? //Alex extras from Gen3+ #define KILL_PIN -1 #define TEMP_1_PIN -1 #define TEMP_2_PIN -1 #define HEATER_2_PIN -1 #endif // GEN3_MONOLITHIC /**************************************************************************************** * Open Motion controller with enable based extruders * * ATMega644 * * +---\/---+ * (D 0) PB0 1| |40 PA0 (AI 0 / D31) * (D 1) PB1 2| |39 PA1 (AI 1 / D30) * INT2 (D 2) PB2 3| |38 PA2 (AI 2 / D29) * PWM (D 3) PB3 4| |37 PA3 (AI 3 / D28) * PWM (D 4) PB4 5| |36 PA4 (AI 4 / D27) * MOSI (D 5) PB5 6| |35 PA5 (AI 5 / D26) * MISO (D 6) PB6 7| |34 PA6 (AI 6 / D25) * SCK (D 7) PB7 8| |33 PA7 (AI 7 / D24) * RST 9| |32 AREF * VCC 10| |31 GND * GND 11| |30 AVCC * XTAL2 12| |29 PC7 (D 23) * XTAL1 13| |28 PC6 (D 22) * RX0 (D 8) PD0 14| |27 PC5 (D 21) TDI * TX0 (D 9) PD1 15| |26 PC4 (D 20) TDO * INT0 RX1 (D 10) PD2 16| |25 PC3 (D 19) TMS * INT1 TX1 (D 11) PD3 17| |24 PC2 (D 18) TCK * PWM (D 12) PD4 18| |23 PC1 (D 17) SDA * PWM (D 13) PD5 19| |22 PC0 (D 16) SCL * PWM (D 14) PD6 20| |21 PD7 (D 15) PWM * +--------+ * ****************************************************************************************/ #if MB(OMCA_A) //Alpha OMCA board #define KNOWN_BOARD 1 #ifndef __AVR_ATmega644__ #error Oops! Make sure you have 'SanguinoA' selected from the 'Tools -> Boards' menu. #endif #define X_STEP_PIN 21 #define X_DIR_PIN 20 #define X_ENABLE_PIN 24 #define X_STOP_PIN 0 #define Y_STEP_PIN 23 #define Y_DIR_PIN 22 #define Y_ENABLE_PIN 24 #define Y_STOP_PIN 1 #define Z_STEP_PIN 26 #define Z_DIR_PIN 25 #define Z_ENABLE_PIN 24 #define Z_STOP_PIN 2 #define E0_STEP_PIN 28 #define E0_DIR_PIN 27 #define E0_ENABLE_PIN 24 #define E1_STEP_PIN -1 // 19 #define E1_DIR_PIN -1 // 18 #define E1_ENABLE_PIN 24 #define E2_STEP_PIN -1 // 17 #define E2_DIR_PIN -1 // 16 #define E2_ENABLE_PIN 24 #define SDPOWER -1 #define SDSS 11 #define SDCARDDETECT -1 // 10 optional also used as mode pin #define LED_PIN -1 #define FAN_PIN 3 #define PS_ON_PIN -1 #define KILL_PIN -1 #define HEATER_0_PIN 4 #define HEATER_1_PIN -1 // 12 #define HEATER_2_PIN -1 // 13 #define TEMP_0_PIN 0 //D27 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! #define TEMP_1_PIN -1 // 1 #define TEMP_2_PIN -1 // 2 #define HEATER_BED_PIN -1 // 14/15 #define TEMP_BED_PIN -1 // 1,2 or I2C /* Unused (1) (2) (3) 4 5 6 7 8 9 10 11 12 13 (14) (15) (16) 17 (18) (19) (20) (21) (22) (23) 24 (25) (26) (27) 28 (29) (30) (31) */ #endif // OMCA_A #if MB(OMCA) // Final OMCA board -- REF path_to_url #define KNOWN_BOARD 1 #if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__) #error Oops! Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu. (Final OMCA board) #endif #define X_STEP_PIN 26 #define X_DIR_PIN 25 #define X_ENABLE_PIN 10 #define X_STOP_PIN 0 #define Y_STEP_PIN 28 #define Y_DIR_PIN 27 #define Y_ENABLE_PIN 10 #define Y_STOP_PIN 1 #define Z_STEP_PIN 23 #define Z_DIR_PIN 22 #define Z_ENABLE_PIN 10 #define Z_STOP_PIN 2 #define E0_STEP_PIN 24 #define E0_DIR_PIN 21 #define E0_ENABLE_PIN 10 /* future proofing */ #define __FS 20 #define __FD 19 #define __GS 18 #define __GD 13 #define UNUSED_PWM 14 /* PWM on LEFT connector */ #define E1_STEP_PIN -1 // 21 #define E1_DIR_PIN -1 // 20 #define E1_ENABLE_PIN -1 // 19 #define E2_STEP_PIN -1 // 21 #define E2_DIR_PIN -1 // 20 #define E2_ENABLE_PIN -1 // 18 #define SDPOWER -1 #define SDSS 11 #define SDCARDDETECT -1 // 10 optional also used as mode pin #define LED_PIN -1 #define FAN_PIN 14 /* PWM on MIDDLE connector */ #define PS_ON_PIN -1 #define KILL_PIN -1 #define HEATER_0_PIN 3 /*DONE PWM on RIGHT connector */ #define HEATER_1_PIN -1 #define HEATER_2_PIN -1 #define HEATER_1_PIN -1 #define HEATER_2_PIN -1 #define TEMP_0_PIN 0 // ANALOG INPUT NUMBERING #define TEMP_1_PIN 1 // ANALOG #define TEMP_2_PIN -1 // 2 #define HEATER_BED_PIN 4 #define TEMP_BED_PIN 2 // 1,2 or I2C #define I2C_SCL 16 #define I2C_SDA 17 #endif // OMCA /***************************************************************** * Rambo Pin Assignments ******************************************************************/ #if MB(RAMBO) #define KNOWN_BOARD #ifndef __AVR_ATmega2560__ #error Oops! Make sure you have 'Arduino Mega 2560' selected from the 'Tools -> Boards' menu. #endif #define LARGE_FLASH true #define X_STEP_PIN 37 #define X_DIR_PIN 48 #define X_MIN_PIN 12 #define X_MAX_PIN 24 #define X_ENABLE_PIN 29 #define X_MS1_PIN 40 #define X_MS2_PIN 41 #define Y_STEP_PIN 36 #define Y_DIR_PIN 49 #define Y_MIN_PIN 11 #define Y_MAX_PIN 23 #define Y_ENABLE_PIN 28 #define Y_MS1_PIN 69 #define Y_MS2_PIN 39 #define Z_STEP_PIN 35 #define Z_DIR_PIN 47 #define Z_MIN_PIN 10 #define Z_MAX_PIN 30 #define Z_ENABLE_PIN 27 #define Z_MS1_PIN 68 #define Z_MS2_PIN 67 #define HEATER_BED_PIN 3 #define TEMP_BED_PIN 2 #define HEATER_0_PIN 9 #define TEMP_0_PIN 0 #define HEATER_1_PIN 7 #define TEMP_1_PIN 1 #ifdef BARICUDA #define HEATER_2_PIN 6 #else #define HEATER_2_PIN -1 #endif #define TEMP_2_PIN -1 #define E0_STEP_PIN 34 #define E0_DIR_PIN 43 #define E0_ENABLE_PIN 26 #define E0_MS1_PIN 65 #define E0_MS2_PIN 66 #define E1_STEP_PIN 33 #define E1_DIR_PIN 42 #define E1_ENABLE_PIN 25 #define E1_MS1_PIN 63 #define E1_MS2_PIN 64 #define DIGIPOTSS_PIN 38 #define DIGIPOT_CHANNELS {4,5,3,0,1} // X Y Z E0 E1 digipot channels to stepper driver mapping #define SDPOWER -1 #define SDSS 53 #define LED_PIN 13 #define FAN_PIN 8 #define PS_ON_PIN 4 #define KILL_PIN -1 //80 with Smart Controller LCD #define SUICIDE_PIN -1 //PIN that has to be turned on right after start, to keep power flowing. #ifdef ULTRA_LCD #define KILL_PIN 80 #ifdef NEWPANEL //arduino pin which triggers an piezzo beeper #define BEEPER 79 // Beeper on AUX-4 #define LCD_PINS_RS 70 #define LCD_PINS_ENABLE 71 #define LCD_PINS_D4 72 #define LCD_PINS_D5 73 #define LCD_PINS_D6 74 #define LCD_PINS_D7 75 //buttons are directly attached using AUX-2 #define BTN_EN1 76 #define BTN_EN2 77 #define BTN_ENC 78 //the click #define BLEN_C 2 #define BLEN_B 1 #define BLEN_A 0 #define SDCARDDETECT 81 // Ramps does not use this port //encoder rotation values #define encrot0 0 #define encrot1 2 #define encrot2 3 #define encrot3 1 #else //old style panel with shift register //arduino pin witch triggers an piezzo beeper #define BEEPER 33 No Beeper added //buttons are attached to a shift register // Not wired this yet // #define SHIFT_CLK 38 // #define SHIFT_LD 42 // #define SHIFT_OUT 40 // #define SHIFT_EN 17 #define LCD_PINS_RS 75 #define LCD_PINS_ENABLE 17 #define LCD_PINS_D4 23 #define LCD_PINS_D5 25 #define LCD_PINS_D6 27 #define LCD_PINS_D7 29 //encoder rotation values #define encrot0 0 #define encrot1 2 #define encrot2 3 #define encrot3 1 //bits in the shift register that carry the buttons for: // left up center down right red #define BL_LE 7 #define BL_UP 6 #define BL_MI 5 #define BL_DW 4 #define BL_RI 3 #define BL_ST 2 #define BLEN_B 1 #define BLEN_A 0 #endif #endif //ULTRA_LCD #ifdef FILAMENT_SENSOR //Filip added pin for Filament sensor analog input #define FILWIDTH_PIN 3 #endif //FILAMENT_SENSOR #endif // RAMBO /**************************************************************************************** * MegaTronics * ****************************************************************************************/ #if MB(MEGATRONICS) #define KNOWN_BOARD 1 #ifndef __AVR_ATmega2560__ #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu. #endif #define LARGE_FLASH true #define X_STEP_PIN 26 #define X_DIR_PIN 28 #define X_ENABLE_PIN 24 #define X_MIN_PIN 41 #define X_MAX_PIN 37 #define Y_STEP_PIN 60 // A6 #define Y_DIR_PIN 61 // A7 #define Y_ENABLE_PIN 22 #define Y_MIN_PIN 14 #define Y_MAX_PIN 15 #define Z_STEP_PIN 54 // A0 #define Z_DIR_PIN 55 // A1 #define Z_ENABLE_PIN 56 // A2 #define Z_MIN_PIN 18 #define Z_MAX_PIN 19 #define E0_STEP_PIN 31 #define E0_DIR_PIN 32 #define E0_ENABLE_PIN 38 #define E1_STEP_PIN 34 #define E1_DIR_PIN 36 #define E1_ENABLE_PIN 30 #define SDPOWER -1 #define SDSS 53 #define LED_PIN 13 #define FAN_PIN 7 // IO pin. Buffer needed #define PS_ON_PIN 12 #define KILL_PIN -1 #define HEATER_0_PIN 9 // EXTRUDER 1 #define HEATER_1_PIN 8 // EXTRUDER 2 (FAN On Sprinter) #define HEATER_2_PIN -1 #if TEMP_SENSOR_0 == -1 #define TEMP_0_PIN 8 // ANALOG NUMBERING #else #define TEMP_0_PIN 13 // ANALOG NUMBERING #endif #define TEMP_1_PIN 15 // ANALOG NUMBERING #define TEMP_2_PIN -1 // ANALOG NUMBERING #define HEATER_BED_PIN 10 // BED #define TEMP_BED_PIN 14 // ANALOG NUMBERING #define BEEPER 33 // Beeper on AUX-4 #ifdef ULTRA_LCD #ifdef NEWPANEL //arduino pin which triggers an piezzo beeper #define LCD_PINS_RS 16 #define LCD_PINS_ENABLE 17 #define LCD_PINS_D4 23 #define LCD_PINS_D5 25 #define LCD_PINS_D6 27 #define LCD_PINS_D7 29 //buttons are directly attached using AUX-2 #define BTN_EN1 59 #define BTN_EN2 64 #define BTN_ENC 43 //the click #define BLEN_C 2 #define BLEN_B 1 #define BLEN_A 0 #define SDCARDDETECT -1 // Ramps does not use this port //encoder rotation values #define encrot0 0 #define encrot1 2 #define encrot2 3 #define encrot3 1 #endif #endif //ULTRA_LCD #endif // MEGATRONICS /**************************************************************************************** * MegaTronics v2.0 * ****************************************************************************************/ #if MB(MEGATRONICS_2) #define KNOWN_BOARD 1 #ifndef __AVR_ATmega2560__ #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu. #endif #define LARGE_FLASH true #define X_STEP_PIN 26 #define X_DIR_PIN 27 #define X_ENABLE_PIN 25 #define X_MIN_PIN 37 #define X_MAX_PIN 40 //2 //Max endstops default to disabled "-1", set to commented value to enable. #define Y_STEP_PIN 4 // A6 #define Y_DIR_PIN 54 // A0 #define Y_ENABLE_PIN 5 #define Y_MIN_PIN 41 #define Y_MAX_PIN 38 //15 #define Z_STEP_PIN 56 // A2 #define Z_DIR_PIN 60 // A6 #define Z_ENABLE_PIN 55 // A1 #define Z_MIN_PIN 18 #define Z_MAX_PIN 19 #define E0_STEP_PIN 35 #define E0_DIR_PIN 36 #define E0_ENABLE_PIN 34 #define E1_STEP_PIN 29 #define E1_DIR_PIN 39 #define E1_ENABLE_PIN 28 #define E2_STEP_PIN 23 #define E2_DIR_PIN 24 #define E2_ENABLE_PIN 22 #define SDPOWER -1 #define SDSS 53 #define LED_PIN 13 #define FAN_PIN 7 #define FAN2_PIN 6 #define PS_ON_PIN 12 #define KILL_PIN -1 #define HEATER_0_PIN 9 // EXTRUDER 1 #define HEATER_1_PIN 8 // EXTRUDER 2 #define HEATER_2_PIN -1 #if TEMP_SENSOR_0 == -1 #define TEMP_0_PIN 4 // ANALOG NUMBERING #else #define TEMP_0_PIN 13 // ANALOG NUMBERING #endif #if TEMP_SENSOR_1 == -1 #define TEMP_1_PIN 8 // ANALOG NUMBERING #else #define TEMP_1_PIN 15 // ANALOG NUMBERING #endif #define TEMP_2_PIN -1 // ANALOG NUMBERING #define HEATER_BED_PIN 10 // BED #if TEMP_SENSOR_BED == -1 #define TEMP_BED_PIN 8 // ANALOG NUMBERING #else #define TEMP_BED_PIN 14 // ANALOG NUMBERING #endif #define BEEPER 64 #define LCD_PINS_RS 14 #define LCD_PINS_ENABLE 15 #define LCD_PINS_D4 30 #define LCD_PINS_D5 31 #define LCD_PINS_D6 32 #define LCD_PINS_D7 33 //buttons are directly attached using keypad #define BTN_EN1 61 #define BTN_EN2 59 #define BTN_ENC 43 //the click #define BLEN_C 2 #define BLEN_B 1 #define BLEN_A 0 #define SDCARDDETECT -1 // Megatronics does not use this port //encoder rotation values #define encrot0 0 #define encrot1 2 #define encrot2 3 #define encrot3 1 #endif // MEGATRONICS_2 /**************************************************************************************** * Minitronics v1.0 * ****************************************************************************************/ #if MB(MEGATRONICS_1) #define KNOWN_BOARD 1 #ifndef __AVR_ATmega1281__ #error Oops! Make sure you have 'Minitronics ' selected from the 'Tools -> Boards' menu. #endif #define LARGE_FLASH true #define X_STEP_PIN 48 #define X_DIR_PIN 47 #define X_ENABLE_PIN 49 #define X_MIN_PIN 5 #define X_MAX_PIN -1 //2 //Max endstops default to disabled "-1", set to commented value to enable. #define Y_STEP_PIN 39 // A6 #define Y_DIR_PIN 40 // A0 #define Y_ENABLE_PIN 38 #define Y_MIN_PIN 2 #define Y_MAX_PIN -1 //15 #define Z_STEP_PIN 42 // A2 #define Z_DIR_PIN 43 // A6 #define Z_ENABLE_PIN 41 // A1 #define Z_MIN_PIN 6 #define Z_MAX_PIN -1 #define E0_STEP_PIN 45 #define E0_DIR_PIN 44 #define E0_ENABLE_PIN 27 #define E1_STEP_PIN 36 #define E1_DIR_PIN 35 #define E1_ENABLE_PIN 37 #define E2_STEP_PIN -1 #define E2_DIR_PIN -1 #define E2_ENABLE_PIN -1 #define SDPOWER -1 #define SDSS 16 #define LED_PIN 46 #define FAN_PIN 9 #define FAN2_PIN -1 #define PS_ON_PIN -1 #define KILL_PIN -1 #define HEATER_0_PIN 7 // EXTRUDER 1 #define HEATER_1_PIN 8 // EXTRUDER 2 #define HEATER_2_PIN -1 #define TEMP_0_PIN 7 // ANALOG NUMBERING #define TEMP_1_PIN 6 // ANALOG NUMBERING #define TEMP_2_PIN -1 // ANALOG NUMBERING #define HEATER_BED_PIN 3 // BED #define TEMP_BED_PIN 6 // ANALOG NUMBERING #define BEEPER -1 #define LCD_PINS_RS -1 #define LCD_PINS_ENABLE -1 #define LCD_PINS_D4 -1 #define LCD_PINS_D5 -1 #define LCD_PINS_D6 -1 #define LCD_PINS_D7 -1 //buttons are directly attached using keypad #define BTN_EN1 -1 #define BTN_EN2 -1 #define BTN_ENC -1 //the click #define BLEN_C 2 #define BLEN_B 1 #define BLEN_A 0 #define SDCARDDETECT -1 // Megatronics does not use this port //encoder rotation values #define encrot0 0 #define encrot1 2 #define encrot2 3 #define encrot3 1 #endif // MEGATRONICS_1 /**************************************************************************************** * Cheaptronic v1.0 * ****************************************************************************************/ #if MB(CHEAPTRONIC) #define KNOWN_BOARD 1 #ifndef __AVR_ATmega2560__ #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu. #endif #define LARGE_FLASH true //X motor stepper #define X_STEP_PIN 14 #define X_DIR_PIN 15 #define X_ENABLE_PIN 24 //X endstop #define X_MIN_PIN 3 #define X_MAX_PIN -1 //Y motor stepper #define Y_STEP_PIN 35 #define Y_DIR_PIN 36 #define Y_ENABLE_PIN 31 //Y endstop #define Y_MIN_PIN 2 #define Y_MAX_PIN -1 //Z motor stepper #define Z_STEP_PIN 40 #define Z_DIR_PIN 41 #define Z_ENABLE_PIN 37 //Z endstop #define Z_MIN_PIN 5 #define Z_MAX_PIN -1 //Extruder 0 stepper #define E0_STEP_PIN 26 #define E0_DIR_PIN 28 #define E0_ENABLE_PIN 25 //Extruder 1 stepper #define E1_STEP_PIN 33 #define E1_DIR_PIN 34 #define E1_ENABLE_PIN 30 #define SDPOWER -1 #define SDSS -1 #define LED_PIN -1 //FAN #define FAN_PIN -1 #define PS_ON_PIN -1 #define KILL_PIN -1 #define HEATER_0_PIN 19 // EXTRUDER 1 #define HEATER_1_PIN 23 // EXTRUDER 2 //HeatedBad #define HEATER_BED_PIN 22 //Cheaptronic v1.0 hasent EXTRUDER 3 #define HEATER_2_PIN -1 //Temperature sensors #define TEMP_0_PIN 15 #define TEMP_1_PIN 14 #define TEMP_2_PIN -1 #define TEMP_BED_PIN 13 //Cheaptronic v1.0 dont support LCD #define LCD_PINS_RS -1 #define LCD_PINS_ENABLE -1 #define LCD_PINS_D4 -1 #define LCD_PINS_D5 -1 #define LCD_PINS_D6 -1 #define LCD_PINS_D7 -1 //Cheaptronic v1.0 dont support keypad #define BTN_EN1 -1 #define BTN_EN2 -1 #define BTN_ENC -1 #define BLEN_C 2 #define BLEN_B 1 #define BLEN_A 0 //Cheaptronic v1.0 does not use this port #define SDCARDDETECT -1 //encoder rotation values #define encrot0 0 #define encrot1 2 #define encrot2 3 #define encrot3 1 #endif // CHEAPTRONIC #ifndef KNOWN_BOARD #error Unknown MOTHERBOARD value in configuration.h #endif //List of pins which to ignore when asked to change by gcode, 0 and 1 are RX and TX, do not mess with those! #define _E0_PINS E0_STEP_PIN, E0_DIR_PIN, E0_ENABLE_PIN, HEATER_0_PIN, #if EXTRUDERS > 1 #define _E1_PINS E1_STEP_PIN, E1_DIR_PIN, E1_ENABLE_PIN, HEATER_1_PIN, #else #define _E1_PINS #endif #if EXTRUDERS > 2 #define _E2_PINS E2_STEP_PIN, E2_DIR_PIN, E2_ENABLE_PIN, HEATER_2_PIN, #else #define _E2_PINS #endif #ifdef X_STOP_PIN #if X_HOME_DIR < 0 #define X_MIN_PIN X_STOP_PIN #define X_MAX_PIN -1 #else #define X_MIN_PIN -1 #define X_MAX_PIN X_STOP_PIN #endif #endif #ifdef Y_STOP_PIN #if Y_HOME_DIR < 0 #define Y_MIN_PIN Y_STOP_PIN #define Y_MAX_PIN -1 #else #define Y_MIN_PIN -1 #define Y_MAX_PIN Y_STOP_PIN #endif #endif #ifdef Z_STOP_PIN #if Z_HOME_DIR < 0 #define Z_MIN_PIN Z_STOP_PIN #define Z_MAX_PIN -1 #else #define Z_MIN_PIN -1 #define Z_MAX_PIN Z_STOP_PIN #endif #endif #ifdef DISABLE_MAX_ENDSTOPS #define X_MAX_PIN -1 #define Y_MAX_PIN -1 #define Z_MAX_PIN -1 #endif #ifdef DISABLE_MIN_ENDSTOPS #define X_MIN_PIN -1 #define Y_MIN_PIN -1 #define Z_MIN_PIN -1 #endif #define SENSITIVE_PINS {0, 1, X_STEP_PIN, X_DIR_PIN, X_ENABLE_PIN, X_MIN_PIN, X_MAX_PIN, Y_STEP_PIN, Y_DIR_PIN, Y_ENABLE_PIN, Y_MIN_PIN, Y_MAX_PIN, Z_STEP_PIN, Z_DIR_PIN, Z_ENABLE_PIN, Z_MIN_PIN, Z_MAX_PIN, PS_ON_PIN, \ HEATER_BED_PIN, FAN_PIN, \ _E0_PINS _E1_PINS _E2_PINS \ analogInputToDigitalPin(TEMP_0_PIN), analogInputToDigitalPin(TEMP_1_PIN), analogInputToDigitalPin(TEMP_2_PIN), analogInputToDigitalPin(TEMP_BED_PIN) } #endif //__PINS_H ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/pins.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
23,964
```objective-c /* Arduino SdFat Library * * This file is part of the Arduino SdFat Library * * This Library is free software: you can redistribute it and/or modify * (at your option) any later version. * * This Library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * along with the Arduino SdFat Library. If not, see * <path_to_url */ /** * \file * \brief configuration definitions */ #include "Marlin.h" #ifdef SDSUPPORT #ifndef SdFatConfig_h #define SdFatConfig_h #include <stdint.h> //your_sha256_hash-------------- /** * To use multiple SD cards set USE_MULTIPLE_CARDS nonzero. * * Using multiple cards costs 400 - 500 bytes of flash. * * Each card requires about 550 bytes of SRAM so use of a Mega is recommended. */ #define USE_MULTIPLE_CARDS 0 //your_sha256_hash-------------- /** * Call flush for endl if ENDL_CALLS_FLUSH is nonzero * * The standard for iostreams is to call flush. This is very costly for * SdFat. Each call to flush causes 2048 bytes of I/O to the SD. * * SdFat has a single 512 byte buffer for SD I/O so it must write the current * data block to the SD, read the directory block from the SD, update the * directory entry, write the directory block to the SD and read the data * block back into the buffer. * * The SD flash memory controller is not designed for this many rewrites * so performance may be reduced by more than a factor of 100. * * If ENDL_CALLS_FLUSH is zero, you must call flush and/or close to force * all data to be written to the SD. */ #define ENDL_CALLS_FLUSH 0 //your_sha256_hash-------------- /** * Allow use of deprecated functions if ALLOW_DEPRECATED_FUNCTIONS is nonzero */ #define ALLOW_DEPRECATED_FUNCTIONS 1 //your_sha256_hash-------------- /** * Allow FAT12 volumes if FAT12_SUPPORT is nonzero. * FAT12 has not been well tested. */ #define FAT12_SUPPORT 0 //your_sha256_hash-------------- /** * SPI init rate for SD initialization commands. Must be 5 (F_CPU/64) * or 6 (F_CPU/128). */ #define SPI_SD_INIT_RATE 5 //your_sha256_hash-------------- /** * Set the SS pin high for hardware SPI. If SS is chip select for another SPI * device this will disable that device during the SD init phase. */ #define SET_SPI_SS_HIGH 1 //your_sha256_hash-------------- /** * Define MEGA_SOFT_SPI nonzero to use software SPI on Mega Arduinos. * Pins used are SS 10, MOSI 11, MISO 12, and SCK 13. * * MEGA_SOFT_SPI allows an unmodified Adafruit GPS Shield to be used * on Mega Arduinos. Software SPI works well with GPS Shield V1.1 * but many SD cards will fail with GPS Shield V1.0. */ #define MEGA_SOFT_SPI 0 //your_sha256_hash-------------- /** * Set USE_SOFTWARE_SPI nonzero to always use software SPI. */ #define USE_SOFTWARE_SPI 0 // define software SPI pins so Mega can use unmodified 168/328 shields /** Software SPI chip select pin for the SD */ uint8_t const SOFT_SPI_CS_PIN = 10; /** Software SPI Master Out Slave In pin */ uint8_t const SOFT_SPI_MOSI_PIN = 11; /** Software SPI Master In Slave Out pin */ uint8_t const SOFT_SPI_MISO_PIN = 12; /** Software SPI Clock pin */ uint8_t const SOFT_SPI_SCK_PIN = 13; //your_sha256_hash-------------- /** * The __cxa_pure_virtual function is an error handler that is invoked when * a pure virtual function is called. */ #define USE_CXA_PURE_VIRTUAL 1 /** * Defines for long (vfat) filenames */ /** Number of VFAT entries used. Every entry has 13 UTF-16 characters */ #define MAX_VFAT_ENTRIES (2) /** Number of UTF-16 characters per entry */ #define FILENAME_LENGTH 13 /** Total size of the buffer used to store the long filenames */ #define LONG_FILENAME_LENGTH (13*MAX_VFAT_ENTRIES+1) #endif // SdFatConfig_h #endif ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/SdFatConfig.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
961
```c++ /* stepper.c - stepper motor driver: executes motion plans using stepper motors Part of Grbl Grbl is free software: you can redistribute it and/or modify (at your option) any later version. Grbl is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the along with Grbl. If not, see <path_to_url */ /* The timer calculations of this module informed by the 'RepRap cartesian firmware' by Zack Smith and Philipp Tiefenbacher. */ #include "Marlin.h" #include "stepper.h" #include "planner.h" #include "temperature.h" #include "ultralcd.h" #include "language.h" #include "cardreader.h" #include "speed_lookuptable.h" #if defined(DIGIPOTSS_PIN) && DIGIPOTSS_PIN > -1 #include <SPI.h> #endif //=========================================================================== //=============================public variables ============================ //=========================================================================== block_t *current_block; // A pointer to the block currently being traced //=========================================================================== //=============================private variables ============================ //=========================================================================== //static makes it inpossible to be called from outside of this file by extern.! // Variables used by The Stepper Driver Interrupt static unsigned char out_bits; // The next stepping-bits to be output static long counter_x, // Counter variables for the bresenham line tracer counter_y, counter_z, counter_e; volatile static unsigned long step_events_completed; // The number of step events executed in the current block #ifdef ADVANCE static long advance_rate, advance, final_advance = 0; static long old_advance = 0; static long e_steps[3]; #endif static long acceleration_time, deceleration_time; //static unsigned long accelerate_until, decelerate_after, acceleration_rate, initial_rate, final_rate, nominal_rate; static unsigned short acc_step_rate; // needed for deccelaration start point static char step_loops; static unsigned short OCR1A_nominal; static unsigned short step_loops_nominal; volatile long endstops_trigsteps[3]={0,0,0}; volatile long endstops_stepsTotal,endstops_stepsDone; static volatile bool endstop_x_hit=false; static volatile bool endstop_y_hit=false; static volatile bool endstop_z_hit=false; #ifdef ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED bool abort_on_endstop_hit = false; #endif #ifdef MOTOR_CURRENT_PWM_XY_PIN int motor_current_setting[3] = DEFAULT_PWM_MOTOR_CURRENT; #endif static bool old_x_min_endstop=false; static bool old_x_max_endstop=false; static bool old_y_min_endstop=false; static bool old_y_max_endstop=false; static bool old_z_min_endstop=false; static bool old_z_max_endstop=false; static bool check_endstops = true; volatile long count_position[NUM_AXIS] = { 0, 0, 0, 0}; volatile signed char count_direction[NUM_AXIS] = { 1, 1, 1, 1}; //=========================================================================== //=============================functions ============================ //=========================================================================== #define CHECK_ENDSTOPS if(check_endstops) // intRes = intIn1 * intIn2 >> 16 // uses: // r26 to store 0 // r27 to store the byte 1 of the 24 bit result #define MultiU16X8toH16(intRes, charIn1, intIn2) \ asm volatile ( \ "clr r26 \n\t" \ "mul %A1, %B2 \n\t" \ "movw %A0, r0 \n\t" \ "mul %A1, %A2 \n\t" \ "add %A0, r1 \n\t" \ "adc %B0, r26 \n\t" \ "lsr r0 \n\t" \ "adc %A0, r26 \n\t" \ "adc %B0, r26 \n\t" \ "clr r1 \n\t" \ : \ "=&r" (intRes) \ : \ "d" (charIn1), \ "d" (intIn2) \ : \ "r26" \ ) // intRes = longIn1 * longIn2 >> 24 // uses: // r26 to store 0 // r27 to store the byte 1 of the 48bit result #define MultiU24X24toH16(intRes, longIn1, longIn2) \ asm volatile ( \ "clr r26 \n\t" \ "mul %A1, %B2 \n\t" \ "mov r27, r1 \n\t" \ "mul %B1, %C2 \n\t" \ "movw %A0, r0 \n\t" \ "mul %C1, %C2 \n\t" \ "add %B0, r0 \n\t" \ "mul %C1, %B2 \n\t" \ "add %A0, r0 \n\t" \ "adc %B0, r1 \n\t" \ "mul %A1, %C2 \n\t" \ "add r27, r0 \n\t" \ "adc %A0, r1 \n\t" \ "adc %B0, r26 \n\t" \ "mul %B1, %B2 \n\t" \ "add r27, r0 \n\t" \ "adc %A0, r1 \n\t" \ "adc %B0, r26 \n\t" \ "mul %C1, %A2 \n\t" \ "add r27, r0 \n\t" \ "adc %A0, r1 \n\t" \ "adc %B0, r26 \n\t" \ "mul %B1, %A2 \n\t" \ "add r27, r1 \n\t" \ "adc %A0, r26 \n\t" \ "adc %B0, r26 \n\t" \ "lsr r27 \n\t" \ "adc %A0, r26 \n\t" \ "adc %B0, r26 \n\t" \ "clr r1 \n\t" \ : \ "=&r" (intRes) \ : \ "d" (longIn1), \ "d" (longIn2) \ : \ "r26" , "r27" \ ) // Some useful constants #define ENABLE_STEPPER_DRIVER_INTERRUPT() TIMSK1 |= (1<<OCIE1A) #define DISABLE_STEPPER_DRIVER_INTERRUPT() TIMSK1 &= ~(1<<OCIE1A) void checkHitEndstops() { if( endstop_x_hit || endstop_y_hit || endstop_z_hit) { SERIAL_ECHO_START; SERIAL_ECHOPGM(MSG_ENDSTOPS_HIT); if(endstop_x_hit) { SERIAL_ECHOPAIR(" X:",(float)endstops_trigsteps[X_AXIS]/axis_steps_per_unit[X_AXIS]); LCD_MESSAGEPGM(MSG_ENDSTOPS_HIT "X"); } if(endstop_y_hit) { SERIAL_ECHOPAIR(" Y:",(float)endstops_trigsteps[Y_AXIS]/axis_steps_per_unit[Y_AXIS]); LCD_MESSAGEPGM(MSG_ENDSTOPS_HIT "Y"); } if(endstop_z_hit) { SERIAL_ECHOPAIR(" Z:",(float)endstops_trigsteps[Z_AXIS]/axis_steps_per_unit[Z_AXIS]); LCD_MESSAGEPGM(MSG_ENDSTOPS_HIT "Z"); } SERIAL_ECHOLN(""); endstop_x_hit=false; endstop_y_hit=false; endstop_z_hit=false; #if defined(ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED) && defined(SDSUPPORT) if (abort_on_endstop_hit) { card.sdprinting = false; card.closefile(); quickStop(); setTargetHotend0(0); setTargetHotend1(0); setTargetHotend2(0); } #endif } } void endstops_hit_on_purpose() { endstop_x_hit=false; endstop_y_hit=false; endstop_z_hit=false; } void enable_endstops(bool check) { check_endstops = check; } // __________________________ // /| |\ _________________ ^ // / | | \ /| |\ | // / | | \ / | | \ s // / | | | | | \ p // / | | | | | \ e // +-----+------------------------+---+--+---------------+----+ e // | BLOCK 1 | BLOCK 2 | d // // time -----> // // The trapezoid is the shape the speed curve over time. It starts at block->initial_rate, accelerates // first block->accelerate_until step_events_completed, then keeps going at constant speed until // step_events_completed reaches block->decelerate_after after which it decelerates until the trapezoid generator is reset. // The slope of acceleration is calculated with the leib ramp alghorithm. void st_wake_up() { // TCNT1 = 0; ENABLE_STEPPER_DRIVER_INTERRUPT(); } void step_wait(){ for(int8_t i=0; i < 6; i++){ } } FORCE_INLINE unsigned short calc_timer(unsigned short step_rate) { unsigned short timer; if(step_rate > MAX_STEP_FREQUENCY) step_rate = MAX_STEP_FREQUENCY; if(step_rate > 20000) { // If steprate > 20kHz >> step 4 times step_rate = (step_rate >> 2)&0x3fff; step_loops = 4; } else if(step_rate > 10000) { // If steprate > 10kHz >> step 2 times step_rate = (step_rate >> 1)&0x7fff; step_loops = 2; } else { step_loops = 1; } if(step_rate < (F_CPU/500000)) step_rate = (F_CPU/500000); step_rate -= (F_CPU/500000); // Correct for minimal speed if(step_rate >= (8*256)){ // higher step rate unsigned short table_address = (unsigned short)&speed_lookuptable_fast[(unsigned char)(step_rate>>8)][0]; unsigned char tmp_step_rate = (step_rate & 0x00ff); unsigned short gain = (unsigned short)pgm_read_word_near(table_address+2); MultiU16X8toH16(timer, tmp_step_rate, gain); timer = (unsigned short)pgm_read_word_near(table_address) - timer; } else { // lower step rates unsigned short table_address = (unsigned short)&speed_lookuptable_slow[0][0]; table_address += ((step_rate)>>1) & 0xfffc; timer = (unsigned short)pgm_read_word_near(table_address); timer -= (((unsigned short)pgm_read_word_near(table_address+2) * (unsigned char)(step_rate & 0x0007))>>3); } if(timer < 100) { timer = 100; MYSERIAL.print(MSG_STEPPER_TOO_HIGH); MYSERIAL.println(step_rate); }//(20kHz this should never happen) return timer; } // Initializes the trapezoid generator from the current block. Called whenever a new // block begins. FORCE_INLINE void trapezoid_generator_reset() { #ifdef ADVANCE advance = current_block->initial_advance; final_advance = current_block->final_advance; // Do E steps + advance steps e_steps[current_block->active_extruder] += ((advance >>8) - old_advance); old_advance = advance >>8; #endif deceleration_time = 0; // step_rate to timer interval OCR1A_nominal = calc_timer(current_block->nominal_rate); // make a note of the number of step loops required at nominal speed step_loops_nominal = step_loops; acc_step_rate = current_block->initial_rate; acceleration_time = calc_timer(acc_step_rate); OCR1A = acceleration_time; // SERIAL_ECHO_START; // SERIAL_ECHOPGM("advance :"); // SERIAL_ECHO(current_block->advance/256.0); // SERIAL_ECHOPGM("advance rate :"); // SERIAL_ECHO(current_block->advance_rate/256.0); // SERIAL_ECHOPGM("initial advance :"); // SERIAL_ECHO(current_block->initial_advance/256.0); // SERIAL_ECHOPGM("final advance :"); // SERIAL_ECHOLN(current_block->final_advance/256.0); } // "The Stepper Driver Interrupt" - This timer interrupt is the workhorse. // It pops blocks from the block_buffer and executes them by pulsing the stepper pins appropriately. ISR(TIMER1_COMPA_vect) { // If there is no current block, attempt to pop one from the buffer if (current_block == NULL) { // Anything in the buffer? current_block = plan_get_current_block(); if (current_block != NULL) { current_block->busy = true; trapezoid_generator_reset(); counter_x = -(current_block->step_event_count >> 1); counter_y = counter_x; counter_z = counter_x; counter_e = counter_x; step_events_completed = 0; #ifdef Z_LATE_ENABLE if(current_block->steps_z > 0) { enable_z(); OCR1A = 2000; //1ms wait return; } #endif // #ifdef ADVANCE // e_steps[current_block->active_extruder] = 0; // #endif } else { OCR1A=2000; // 1kHz. } } if (current_block != NULL) { // Set directions TO DO This should be done once during init of trapezoid. Endstops -> interrupt out_bits = current_block->direction_bits; // Set the direction bits (X_AXIS=A_AXIS and Y_AXIS=B_AXIS for COREXY) if((out_bits & (1<<X_AXIS))!=0){ #ifdef DUAL_X_CARRIAGE if (extruder_duplication_enabled){ WRITE(X_DIR_PIN, INVERT_X_DIR); WRITE(X2_DIR_PIN, INVERT_X_DIR); } else{ if (current_block->active_extruder != 0) WRITE(X2_DIR_PIN, INVERT_X_DIR); else WRITE(X_DIR_PIN, INVERT_X_DIR); } #else WRITE(X_DIR_PIN, INVERT_X_DIR); #endif count_direction[X_AXIS]=-1; } else{ #ifdef DUAL_X_CARRIAGE if (extruder_duplication_enabled){ WRITE(X_DIR_PIN, !INVERT_X_DIR); WRITE(X2_DIR_PIN, !INVERT_X_DIR); } else{ if (current_block->active_extruder != 0) WRITE(X2_DIR_PIN, !INVERT_X_DIR); else WRITE(X_DIR_PIN, !INVERT_X_DIR); } #else WRITE(X_DIR_PIN, !INVERT_X_DIR); #endif count_direction[X_AXIS]=1; } if((out_bits & (1<<Y_AXIS))!=0){ WRITE(Y_DIR_PIN, INVERT_Y_DIR); #ifdef Y_DUAL_STEPPER_DRIVERS WRITE(Y2_DIR_PIN, !(INVERT_Y_DIR == INVERT_Y2_VS_Y_DIR)); #endif count_direction[Y_AXIS]=-1; } else{ WRITE(Y_DIR_PIN, !INVERT_Y_DIR); #ifdef Y_DUAL_STEPPER_DRIVERS WRITE(Y2_DIR_PIN, (INVERT_Y_DIR == INVERT_Y2_VS_Y_DIR)); #endif count_direction[Y_AXIS]=1; } // Set direction en check limit switches #ifndef COREXY if ((out_bits & (1<<X_AXIS)) != 0) { // stepping along -X axis #else if ((((out_bits & (1<<X_AXIS)) != 0)&&(out_bits & (1<<Y_AXIS)) != 0)) { //-X occurs for -A and -B #endif CHECK_ENDSTOPS { #ifdef DUAL_X_CARRIAGE // with 2 x-carriages, endstops are only checked in the homing direction for the active extruder if ((current_block->active_extruder == 0 && X_HOME_DIR == -1) || (current_block->active_extruder != 0 && X2_HOME_DIR == -1)) #endif { #if defined(X_MIN_PIN) && X_MIN_PIN > -1 bool x_min_endstop=(READ(X_MIN_PIN) != X_MIN_ENDSTOP_INVERTING); if(x_min_endstop && old_x_min_endstop && (current_block->steps_x > 0)) { endstops_trigsteps[X_AXIS] = count_position[X_AXIS]; endstop_x_hit=true; step_events_completed = current_block->step_event_count; } old_x_min_endstop = x_min_endstop; #endif } } } else { // +direction CHECK_ENDSTOPS { #ifdef DUAL_X_CARRIAGE // with 2 x-carriages, endstops are only checked in the homing direction for the active extruder if ((current_block->active_extruder == 0 && X_HOME_DIR == 1) || (current_block->active_extruder != 0 && X2_HOME_DIR == 1)) #endif { #if defined(X_MAX_PIN) && X_MAX_PIN > -1 bool x_max_endstop=(READ(X_MAX_PIN) != X_MAX_ENDSTOP_INVERTING); if(x_max_endstop && old_x_max_endstop && (current_block->steps_x > 0)){ endstops_trigsteps[X_AXIS] = count_position[X_AXIS]; endstop_x_hit=true; step_events_completed = current_block->step_event_count; } old_x_max_endstop = x_max_endstop; #endif } } } #ifndef COREXY if ((out_bits & (1<<Y_AXIS)) != 0) { // -direction #else if ((((out_bits & (1<<X_AXIS)) != 0)&&(out_bits & (1<<Y_AXIS)) == 0)) { // -Y occurs for -A and +B #endif CHECK_ENDSTOPS { #if defined(Y_MIN_PIN) && Y_MIN_PIN > -1 bool y_min_endstop=(READ(Y_MIN_PIN) != Y_MIN_ENDSTOP_INVERTING); if(y_min_endstop && old_y_min_endstop && (current_block->steps_y > 0)) { endstops_trigsteps[Y_AXIS] = count_position[Y_AXIS]; endstop_y_hit=true; step_events_completed = current_block->step_event_count; } old_y_min_endstop = y_min_endstop; #endif } } else { // +direction CHECK_ENDSTOPS { #if defined(Y_MAX_PIN) && Y_MAX_PIN > -1 bool y_max_endstop=(READ(Y_MAX_PIN) != Y_MAX_ENDSTOP_INVERTING); if(y_max_endstop && old_y_max_endstop && (current_block->steps_y > 0)){ endstops_trigsteps[Y_AXIS] = count_position[Y_AXIS]; endstop_y_hit=true; step_events_completed = current_block->step_event_count; } old_y_max_endstop = y_max_endstop; #endif } } if ((out_bits & (1<<Z_AXIS)) != 0) { // -direction WRITE(Z_DIR_PIN,INVERT_Z_DIR); #ifdef Z_DUAL_STEPPER_DRIVERS WRITE(Z2_DIR_PIN,INVERT_Z_DIR); #endif count_direction[Z_AXIS]=-1; CHECK_ENDSTOPS { #if defined(Z_MIN_PIN) && Z_MIN_PIN > -1 bool z_min_endstop=(READ(Z_MIN_PIN) != Z_MIN_ENDSTOP_INVERTING); if(z_min_endstop && old_z_min_endstop && (current_block->steps_z > 0)) { endstops_trigsteps[Z_AXIS] = count_position[Z_AXIS]; endstop_z_hit=true; step_events_completed = current_block->step_event_count; } old_z_min_endstop = z_min_endstop; #endif } } else { // +direction WRITE(Z_DIR_PIN,!INVERT_Z_DIR); #ifdef Z_DUAL_STEPPER_DRIVERS WRITE(Z2_DIR_PIN,!INVERT_Z_DIR); #endif count_direction[Z_AXIS]=1; CHECK_ENDSTOPS { #if defined(Z_MAX_PIN) && Z_MAX_PIN > -1 bool z_max_endstop=(READ(Z_MAX_PIN) != Z_MAX_ENDSTOP_INVERTING); if(z_max_endstop && old_z_max_endstop && (current_block->steps_z > 0)) { endstops_trigsteps[Z_AXIS] = count_position[Z_AXIS]; endstop_z_hit=true; step_events_completed = current_block->step_event_count; } old_z_max_endstop = z_max_endstop; #endif } } #ifndef ADVANCE if ((out_bits & (1<<E_AXIS)) != 0) { // -direction REV_E_DIR(); count_direction[E_AXIS]=-1; } else { // +direction NORM_E_DIR(); count_direction[E_AXIS]=1; } #endif //!ADVANCE for(int8_t i=0; i < step_loops; i++) { // Take multiple steps per interrupt (For high speed moves) #ifndef AT90USB MSerial.checkRx(); // Check for serial chars. #endif #ifdef ADVANCE counter_e += current_block->steps_e; if (counter_e > 0) { counter_e -= current_block->step_event_count; if ((out_bits & (1<<E_AXIS)) != 0) { // - direction e_steps[current_block->active_extruder]--; } else { e_steps[current_block->active_extruder]++; } } #endif //ADVANCE counter_x += current_block->steps_x; #ifdef CONFIG_STEPPERS_TOSHIBA /* The toshiba stepper controller require much longer pulses * tjerfore we 'stage' decompose the pulses between high, and * low instead of doing each in turn. The extra tests add enough * lag to allow it work with without needing NOPs */ if (counter_x > 0) { WRITE(X_STEP_PIN, HIGH); } counter_y += current_block->steps_y; if (counter_y > 0) { WRITE(Y_STEP_PIN, HIGH); } counter_z += current_block->steps_z; if (counter_z > 0) { WRITE(Z_STEP_PIN, HIGH); } #ifndef ADVANCE counter_e += current_block->steps_e; if (counter_e > 0) { WRITE_E_STEP(HIGH); } #endif //!ADVANCE if (counter_x > 0) { counter_x -= current_block->step_event_count; count_position[X_AXIS]+=count_direction[X_AXIS]; WRITE(X_STEP_PIN, LOW); } if (counter_y > 0) { counter_y -= current_block->step_event_count; count_position[Y_AXIS]+=count_direction[Y_AXIS]; WRITE(Y_STEP_PIN, LOW); } if (counter_z > 0) { counter_z -= current_block->step_event_count; count_position[Z_AXIS]+=count_direction[Z_AXIS]; WRITE(Z_STEP_PIN, LOW); } #ifndef ADVANCE if (counter_e > 0) { counter_e -= current_block->step_event_count; count_position[E_AXIS]+=count_direction[E_AXIS]; WRITE_E_STEP(LOW); } #endif //!ADVANCE #else if (counter_x > 0) { #ifdef DUAL_X_CARRIAGE if (extruder_duplication_enabled){ WRITE(X_STEP_PIN, !INVERT_X_STEP_PIN); WRITE(X2_STEP_PIN, !INVERT_X_STEP_PIN); } else { if (current_block->active_extruder != 0) WRITE(X2_STEP_PIN, !INVERT_X_STEP_PIN); else WRITE(X_STEP_PIN, !INVERT_X_STEP_PIN); } #else WRITE(X_STEP_PIN, !INVERT_X_STEP_PIN); #endif counter_x -= current_block->step_event_count; count_position[X_AXIS]+=count_direction[X_AXIS]; #ifdef DUAL_X_CARRIAGE if (extruder_duplication_enabled){ WRITE(X_STEP_PIN, INVERT_X_STEP_PIN); WRITE(X2_STEP_PIN, INVERT_X_STEP_PIN); } else { if (current_block->active_extruder != 0) WRITE(X2_STEP_PIN, INVERT_X_STEP_PIN); else WRITE(X_STEP_PIN, INVERT_X_STEP_PIN); } #else WRITE(X_STEP_PIN, INVERT_X_STEP_PIN); #endif } counter_y += current_block->steps_y; if (counter_y > 0) { WRITE(Y_STEP_PIN, !INVERT_Y_STEP_PIN); #ifdef Y_DUAL_STEPPER_DRIVERS WRITE(Y2_STEP_PIN, !INVERT_Y_STEP_PIN); #endif counter_y -= current_block->step_event_count; count_position[Y_AXIS]+=count_direction[Y_AXIS]; WRITE(Y_STEP_PIN, INVERT_Y_STEP_PIN); #ifdef Y_DUAL_STEPPER_DRIVERS WRITE(Y2_STEP_PIN, INVERT_Y_STEP_PIN); #endif } counter_z += current_block->steps_z; if (counter_z > 0) { WRITE(Z_STEP_PIN, !INVERT_Z_STEP_PIN); #ifdef Z_DUAL_STEPPER_DRIVERS WRITE(Z2_STEP_PIN, !INVERT_Z_STEP_PIN); #endif counter_z -= current_block->step_event_count; count_position[Z_AXIS]+=count_direction[Z_AXIS]; WRITE(Z_STEP_PIN, INVERT_Z_STEP_PIN); #ifdef Z_DUAL_STEPPER_DRIVERS WRITE(Z2_STEP_PIN, INVERT_Z_STEP_PIN); #endif } #ifndef ADVANCE counter_e += current_block->steps_e; if (counter_e > 0) { WRITE_E_STEP(!INVERT_E_STEP_PIN); counter_e -= current_block->step_event_count; count_position[E_AXIS]+=count_direction[E_AXIS]; WRITE_E_STEP(INVERT_E_STEP_PIN); } #endif //!ADVANCE #endif step_events_completed += 1; if(step_events_completed >= current_block->step_event_count) break; } // Calculare new timer value unsigned short timer; unsigned short step_rate; if (step_events_completed <= (unsigned long int)current_block->accelerate_until) { MultiU24X24toH16(acc_step_rate, acceleration_time, current_block->acceleration_rate); acc_step_rate += current_block->initial_rate; // upper limit if(acc_step_rate > current_block->nominal_rate) acc_step_rate = current_block->nominal_rate; // step_rate to timer interval timer = calc_timer(acc_step_rate); OCR1A = timer; acceleration_time += timer; #ifdef ADVANCE for(int8_t i=0; i < step_loops; i++) { advance += advance_rate; } //if(advance > current_block->advance) advance = current_block->advance; // Do E steps + advance steps e_steps[current_block->active_extruder] += ((advance >>8) - old_advance); old_advance = advance >>8; #endif } else if (step_events_completed > (unsigned long int)current_block->decelerate_after) { MultiU24X24toH16(step_rate, deceleration_time, current_block->acceleration_rate); if(step_rate > acc_step_rate) { // Check step_rate stays positive step_rate = current_block->final_rate; } else { step_rate = acc_step_rate - step_rate; // Decelerate from aceleration end point. } // lower limit if(step_rate < current_block->final_rate) step_rate = current_block->final_rate; // step_rate to timer interval timer = calc_timer(step_rate); OCR1A = timer; deceleration_time += timer; #ifdef ADVANCE for(int8_t i=0; i < step_loops; i++) { advance -= advance_rate; } if(advance < final_advance) advance = final_advance; // Do E steps + advance steps e_steps[current_block->active_extruder] += ((advance >>8) - old_advance); old_advance = advance >>8; #endif //ADVANCE } else { OCR1A = OCR1A_nominal; // ensure we're running at the correct step rate, even if we just came off an acceleration step_loops = step_loops_nominal; } // If current block is finished, reset pointer if (step_events_completed >= current_block->step_event_count) { current_block = NULL; plan_discard_current_block(); } } } #ifdef ADVANCE unsigned char old_OCR0A; // Timer interrupt for E. e_steps is set in the main routine; // Timer 0 is shared with millies ISR(TIMER0_COMPA_vect) { old_OCR0A += 52; // ~10kHz interrupt (250000 / 26 = 9615kHz) OCR0A = old_OCR0A; // Set E direction (Depends on E direction + advance) for(unsigned char i=0; i<4;i++) { if (e_steps[0] != 0) { WRITE(E0_STEP_PIN, INVERT_E_STEP_PIN); if (e_steps[0] < 0) { WRITE(E0_DIR_PIN, INVERT_E0_DIR); e_steps[0]++; WRITE(E0_STEP_PIN, !INVERT_E_STEP_PIN); } else if (e_steps[0] > 0) { WRITE(E0_DIR_PIN, !INVERT_E0_DIR); e_steps[0]--; WRITE(E0_STEP_PIN, !INVERT_E_STEP_PIN); } } #if EXTRUDERS > 1 if (e_steps[1] != 0) { WRITE(E1_STEP_PIN, INVERT_E_STEP_PIN); if (e_steps[1] < 0) { WRITE(E1_DIR_PIN, INVERT_E1_DIR); e_steps[1]++; WRITE(E1_STEP_PIN, !INVERT_E_STEP_PIN); } else if (e_steps[1] > 0) { WRITE(E1_DIR_PIN, !INVERT_E1_DIR); e_steps[1]--; WRITE(E1_STEP_PIN, !INVERT_E_STEP_PIN); } } #endif #if EXTRUDERS > 2 if (e_steps[2] != 0) { WRITE(E2_STEP_PIN, INVERT_E_STEP_PIN); if (e_steps[2] < 0) { WRITE(E2_DIR_PIN, INVERT_E2_DIR); e_steps[2]++; WRITE(E2_STEP_PIN, !INVERT_E_STEP_PIN); } else if (e_steps[2] > 0) { WRITE(E2_DIR_PIN, !INVERT_E2_DIR); e_steps[2]--; WRITE(E2_STEP_PIN, !INVERT_E_STEP_PIN); } } #endif } } #endif // ADVANCE void st_init() { digipot_init(); //Initialize Digipot Motor Current microstep_init(); //Initialize Microstepping Pins //Initialize Dir Pins #if defined(X_DIR_PIN) && X_DIR_PIN > -1 SET_OUTPUT(X_DIR_PIN); #endif #if defined(X2_DIR_PIN) && X2_DIR_PIN > -1 SET_OUTPUT(X2_DIR_PIN); #endif #if defined(Y_DIR_PIN) && Y_DIR_PIN > -1 SET_OUTPUT(Y_DIR_PIN); #if defined(Y_DUAL_STEPPER_DRIVERS) && defined(Y2_DIR_PIN) && (Y2_DIR_PIN > -1) SET_OUTPUT(Y2_DIR_PIN); #endif #endif #if defined(Z_DIR_PIN) && Z_DIR_PIN > -1 SET_OUTPUT(Z_DIR_PIN); #if defined(Z_DUAL_STEPPER_DRIVERS) && defined(Z2_DIR_PIN) && (Z2_DIR_PIN > -1) SET_OUTPUT(Z2_DIR_PIN); #endif #endif #if defined(E0_DIR_PIN) && E0_DIR_PIN > -1 SET_OUTPUT(E0_DIR_PIN); #endif #if defined(E1_DIR_PIN) && (E1_DIR_PIN > -1) SET_OUTPUT(E1_DIR_PIN); #endif #if defined(E2_DIR_PIN) && (E2_DIR_PIN > -1) SET_OUTPUT(E2_DIR_PIN); #endif //Initialize Enable Pins - steppers default to disabled. #if defined(X_ENABLE_PIN) && X_ENABLE_PIN > -1 SET_OUTPUT(X_ENABLE_PIN); if(!X_ENABLE_ON) WRITE(X_ENABLE_PIN,HIGH); #endif #if defined(X2_ENABLE_PIN) && X2_ENABLE_PIN > -1 SET_OUTPUT(X2_ENABLE_PIN); if(!X_ENABLE_ON) WRITE(X2_ENABLE_PIN,HIGH); #endif #if defined(Y_ENABLE_PIN) && Y_ENABLE_PIN > -1 SET_OUTPUT(Y_ENABLE_PIN); if(!Y_ENABLE_ON) WRITE(Y_ENABLE_PIN,HIGH); #if defined(Y_DUAL_STEPPER_DRIVERS) && defined(Y2_ENABLE_PIN) && (Y2_ENABLE_PIN > -1) SET_OUTPUT(Y2_ENABLE_PIN); if(!Y_ENABLE_ON) WRITE(Y2_ENABLE_PIN,HIGH); #endif #endif #if defined(Z_ENABLE_PIN) && Z_ENABLE_PIN > -1 SET_OUTPUT(Z_ENABLE_PIN); if(!Z_ENABLE_ON) WRITE(Z_ENABLE_PIN,HIGH); #if defined(Z_DUAL_STEPPER_DRIVERS) && defined(Z2_ENABLE_PIN) && (Z2_ENABLE_PIN > -1) SET_OUTPUT(Z2_ENABLE_PIN); if(!Z_ENABLE_ON) WRITE(Z2_ENABLE_PIN,HIGH); #endif #endif #if defined(E0_ENABLE_PIN) && (E0_ENABLE_PIN > -1) SET_OUTPUT(E0_ENABLE_PIN); if(!E_ENABLE_ON) WRITE(E0_ENABLE_PIN,HIGH); #endif #if defined(E1_ENABLE_PIN) && (E1_ENABLE_PIN > -1) SET_OUTPUT(E1_ENABLE_PIN); if(!E_ENABLE_ON) WRITE(E1_ENABLE_PIN,HIGH); #endif #if defined(E2_ENABLE_PIN) && (E2_ENABLE_PIN > -1) SET_OUTPUT(E2_ENABLE_PIN); if(!E_ENABLE_ON) WRITE(E2_ENABLE_PIN,HIGH); #endif //endstops and pullups #if defined(X_MIN_PIN) && X_MIN_PIN > -1 SET_INPUT(X_MIN_PIN); #ifdef ENDSTOPPULLUP_XMIN WRITE(X_MIN_PIN,HIGH); #endif #endif #if defined(Y_MIN_PIN) && Y_MIN_PIN > -1 SET_INPUT(Y_MIN_PIN); #ifdef ENDSTOPPULLUP_YMIN WRITE(Y_MIN_PIN,HIGH); #endif #endif #if defined(Z_MIN_PIN) && Z_MIN_PIN > -1 SET_INPUT(Z_MIN_PIN); #ifdef ENDSTOPPULLUP_ZMIN WRITE(Z_MIN_PIN,HIGH); #endif #endif #if defined(X_MAX_PIN) && X_MAX_PIN > -1 SET_INPUT(X_MAX_PIN); #ifdef ENDSTOPPULLUP_XMAX WRITE(X_MAX_PIN,HIGH); #endif #endif #if defined(Y_MAX_PIN) && Y_MAX_PIN > -1 SET_INPUT(Y_MAX_PIN); #ifdef ENDSTOPPULLUP_YMAX WRITE(Y_MAX_PIN,HIGH); #endif #endif #if defined(Z_MAX_PIN) && Z_MAX_PIN > -1 SET_INPUT(Z_MAX_PIN); #ifdef ENDSTOPPULLUP_ZMAX WRITE(Z_MAX_PIN,HIGH); #endif #endif //Initialize Step Pins #if defined(X_STEP_PIN) && (X_STEP_PIN > -1) SET_OUTPUT(X_STEP_PIN); WRITE(X_STEP_PIN,INVERT_X_STEP_PIN); disable_x(); #endif #if defined(X2_STEP_PIN) && (X2_STEP_PIN > -1) SET_OUTPUT(X2_STEP_PIN); WRITE(X2_STEP_PIN,INVERT_X_STEP_PIN); disable_x(); #endif #if defined(Y_STEP_PIN) && (Y_STEP_PIN > -1) SET_OUTPUT(Y_STEP_PIN); WRITE(Y_STEP_PIN,INVERT_Y_STEP_PIN); #if defined(Y_DUAL_STEPPER_DRIVERS) && defined(Y2_STEP_PIN) && (Y2_STEP_PIN > -1) SET_OUTPUT(Y2_STEP_PIN); WRITE(Y2_STEP_PIN,INVERT_Y_STEP_PIN); #endif disable_y(); #endif #if defined(Z_STEP_PIN) && (Z_STEP_PIN > -1) SET_OUTPUT(Z_STEP_PIN); WRITE(Z_STEP_PIN,INVERT_Z_STEP_PIN); #if defined(Z_DUAL_STEPPER_DRIVERS) && defined(Z2_STEP_PIN) && (Z2_STEP_PIN > -1) SET_OUTPUT(Z2_STEP_PIN); WRITE(Z2_STEP_PIN,INVERT_Z_STEP_PIN); #endif disable_z(); #endif #if defined(E0_STEP_PIN) && (E0_STEP_PIN > -1) SET_OUTPUT(E0_STEP_PIN); WRITE(E0_STEP_PIN,INVERT_E_STEP_PIN); disable_e0(); #endif #if defined(E1_STEP_PIN) && (E1_STEP_PIN > -1) SET_OUTPUT(E1_STEP_PIN); WRITE(E1_STEP_PIN,INVERT_E_STEP_PIN); disable_e1(); #endif #if defined(E2_STEP_PIN) && (E2_STEP_PIN > -1) SET_OUTPUT(E2_STEP_PIN); WRITE(E2_STEP_PIN,INVERT_E_STEP_PIN); disable_e2(); #endif // waveform generation = 0100 = CTC TCCR1B &= ~(1<<WGM13); TCCR1B |= (1<<WGM12); TCCR1A &= ~(1<<WGM11); TCCR1A &= ~(1<<WGM10); // output mode = 00 (disconnected) TCCR1A &= ~(3<<COM1A0); TCCR1A &= ~(3<<COM1B0); // Set the timer pre-scaler // Generally we use a divider of 8, resulting in a 2MHz timer // frequency on a 16MHz MCU. If you are going to change this, be // sure to regenerate speed_lookuptable.h with // create_speed_lookuptable.py TCCR1B = (TCCR1B & ~(0x07<<CS10)) | (2<<CS10); OCR1A = 0x4000; TCNT1 = 0; ENABLE_STEPPER_DRIVER_INTERRUPT(); #ifdef ADVANCE #if defined(TCCR0A) && defined(WGM01) TCCR0A &= ~(1<<WGM01); TCCR0A &= ~(1<<WGM00); #endif e_steps[0] = 0; e_steps[1] = 0; e_steps[2] = 0; TIMSK0 |= (1<<OCIE0A); #endif //ADVANCE enable_endstops(true); // Start with endstops active. After homing they can be disabled sei(); } // Block until all buffered steps are executed void st_synchronize() { while( blocks_queued()) { manage_heater(); manage_inactivity(); lcd_update(); } } void st_set_position(const long &x, const long &y, const long &z, const long &e) { CRITICAL_SECTION_START; count_position[X_AXIS] = x; count_position[Y_AXIS] = y; count_position[Z_AXIS] = z; count_position[E_AXIS] = e; CRITICAL_SECTION_END; } void st_set_e_position(const long &e) { CRITICAL_SECTION_START; count_position[E_AXIS] = e; CRITICAL_SECTION_END; } long st_get_position(uint8_t axis) { long count_pos; CRITICAL_SECTION_START; count_pos = count_position[axis]; CRITICAL_SECTION_END; return count_pos; } #ifdef ENABLE_AUTO_BED_LEVELING float st_get_position_mm(uint8_t axis) { float steper_position_in_steps = st_get_position(axis); return steper_position_in_steps / axis_steps_per_unit[axis]; } #endif // ENABLE_AUTO_BED_LEVELING void finishAndDisableSteppers() { st_synchronize(); disable_x(); disable_y(); disable_z(); disable_e0(); disable_e1(); disable_e2(); } void quickStop() { DISABLE_STEPPER_DRIVER_INTERRUPT(); while(blocks_queued()) plan_discard_current_block(); current_block = NULL; ENABLE_STEPPER_DRIVER_INTERRUPT(); } #ifdef BABYSTEPPING void babystep(const uint8_t axis,const bool direction) { //MUST ONLY BE CALLED BY A ISR, it depends on that no other ISR interrupts this //store initial pin states switch(axis) { case X_AXIS: { enable_x(); uint8_t old_x_dir_pin= READ(X_DIR_PIN); //if dualzstepper, both point to same direction. //setup new step WRITE(X_DIR_PIN,(INVERT_X_DIR)^direction); #ifdef DUAL_X_CARRIAGE WRITE(X2_DIR_PIN,(INVERT_X_DIR)^direction); #endif //perform step WRITE(X_STEP_PIN, !INVERT_X_STEP_PIN); #ifdef DUAL_X_CARRIAGE WRITE(X2_STEP_PIN, !INVERT_X_STEP_PIN); #endif { float x=1./float(axis+1)/float(axis+2); //wait a tiny bit } WRITE(X_STEP_PIN, INVERT_X_STEP_PIN); #ifdef DUAL_X_CARRIAGE WRITE(X2_STEP_PIN, INVERT_X_STEP_PIN); #endif //get old pin state back. WRITE(X_DIR_PIN,old_x_dir_pin); #ifdef DUAL_X_CARRIAGE WRITE(X2_DIR_PIN,old_x_dir_pin); #endif } break; case Y_AXIS: { enable_y(); uint8_t old_y_dir_pin= READ(Y_DIR_PIN); //if dualzstepper, both point to same direction. //setup new step WRITE(Y_DIR_PIN,(INVERT_Y_DIR)^direction); #ifdef DUAL_Y_CARRIAGE WRITE(Y2_DIR_PIN,(INVERT_Y_DIR)^direction); #endif //perform step WRITE(Y_STEP_PIN, !INVERT_Y_STEP_PIN); #ifdef DUAL_Y_CARRIAGE WRITE(Y2_STEP_PIN, !INVERT_Y_STEP_PIN); #endif { float x=1./float(axis+1)/float(axis+2); //wait a tiny bit } WRITE(Y_STEP_PIN, INVERT_Y_STEP_PIN); #ifdef DUAL_Y_CARRIAGE WRITE(Y2_STEP_PIN, INVERT_Y_STEP_PIN); #endif //get old pin state back. WRITE(Y_DIR_PIN,old_y_dir_pin); #ifdef DUAL_Y_CARRIAGE WRITE(Y2_DIR_PIN,old_y_dir_pin); #endif } break; #ifndef DELTA case Z_AXIS: { enable_z(); uint8_t old_z_dir_pin= READ(Z_DIR_PIN); //if dualzstepper, both point to same direction. //setup new step WRITE(Z_DIR_PIN,(INVERT_Z_DIR)^direction^BABYSTEP_INVERT_Z); #ifdef Z_DUAL_STEPPER_DRIVERS WRITE(Z2_DIR_PIN,(INVERT_Z_DIR)^direction^BABYSTEP_INVERT_Z); #endif //perform step WRITE(Z_STEP_PIN, !INVERT_Z_STEP_PIN); #ifdef Z_DUAL_STEPPER_DRIVERS WRITE(Z2_STEP_PIN, !INVERT_Z_STEP_PIN); #endif //wait a tiny bit { float x=1./float(axis+1); //absolutely useless } WRITE(Z_STEP_PIN, INVERT_Z_STEP_PIN); #ifdef Z_DUAL_STEPPER_DRIVERS WRITE(Z2_STEP_PIN, INVERT_Z_STEP_PIN); #endif //get old pin state back. WRITE(Z_DIR_PIN,old_z_dir_pin); #ifdef Z_DUAL_STEPPER_DRIVERS WRITE(Z2_DIR_PIN,old_z_dir_pin); #endif } break; #else //DELTA case Z_AXIS: { enable_x(); enable_y(); enable_z(); uint8_t old_x_dir_pin= READ(X_DIR_PIN); uint8_t old_y_dir_pin= READ(Y_DIR_PIN); uint8_t old_z_dir_pin= READ(Z_DIR_PIN); //setup new step WRITE(X_DIR_PIN,(INVERT_X_DIR)^direction^BABYSTEP_INVERT_Z); WRITE(Y_DIR_PIN,(INVERT_Y_DIR)^direction^BABYSTEP_INVERT_Z); WRITE(Z_DIR_PIN,(INVERT_Z_DIR)^direction^BABYSTEP_INVERT_Z); //perform step WRITE(X_STEP_PIN, !INVERT_X_STEP_PIN); WRITE(Y_STEP_PIN, !INVERT_Y_STEP_PIN); WRITE(Z_STEP_PIN, !INVERT_Z_STEP_PIN); //wait a tiny bit { float x=1./float(axis+1); //absolutely useless } WRITE(X_STEP_PIN, INVERT_X_STEP_PIN); WRITE(Y_STEP_PIN, INVERT_Y_STEP_PIN); WRITE(Z_STEP_PIN, INVERT_Z_STEP_PIN); //get old pin state back. WRITE(X_DIR_PIN,old_x_dir_pin); WRITE(Y_DIR_PIN,old_y_dir_pin); WRITE(Z_DIR_PIN,old_z_dir_pin); } break; #endif default: break; } } #endif //BABYSTEPPING void digitalPotWrite(int address, int value) // From Arduino DigitalPotControl example { #if defined(DIGIPOTSS_PIN) && DIGIPOTSS_PIN > -1 digitalWrite(DIGIPOTSS_PIN,LOW); // take the SS pin low to select the chip SPI.transfer(address); // send in the address and value via SPI: SPI.transfer(value); digitalWrite(DIGIPOTSS_PIN,HIGH); // take the SS pin high to de-select the chip: //delay(10); #endif } void digipot_init() //Initialize Digipot Motor Current { #if defined(DIGIPOTSS_PIN) && DIGIPOTSS_PIN > -1 const uint8_t digipot_motor_current[] = DIGIPOT_MOTOR_CURRENT; SPI.begin(); pinMode(DIGIPOTSS_PIN, OUTPUT); for(int i=0;i<=4;i++) //digitalPotWrite(digipot_ch[i], digipot_motor_current[i]); digipot_current(i,digipot_motor_current[i]); #endif #ifdef MOTOR_CURRENT_PWM_XY_PIN pinMode(MOTOR_CURRENT_PWM_XY_PIN, OUTPUT); pinMode(MOTOR_CURRENT_PWM_Z_PIN, OUTPUT); pinMode(MOTOR_CURRENT_PWM_E_PIN, OUTPUT); digipot_current(0, motor_current_setting[0]); digipot_current(1, motor_current_setting[1]); digipot_current(2, motor_current_setting[2]); //Set timer5 to 31khz so the PWM of the motor power is as constant as possible. (removes a buzzing noise) TCCR5B = (TCCR5B & ~(_BV(CS50) | _BV(CS51) | _BV(CS52))) | _BV(CS50); #endif } void digipot_current(uint8_t driver, int current) { #if defined(DIGIPOTSS_PIN) && DIGIPOTSS_PIN > -1 const uint8_t digipot_ch[] = DIGIPOT_CHANNELS; digitalPotWrite(digipot_ch[driver], current); #endif #ifdef MOTOR_CURRENT_PWM_XY_PIN if (driver == 0) analogWrite(MOTOR_CURRENT_PWM_XY_PIN, (long)current * 255L / (long)MOTOR_CURRENT_PWM_RANGE); if (driver == 1) analogWrite(MOTOR_CURRENT_PWM_Z_PIN, (long)current * 255L / (long)MOTOR_CURRENT_PWM_RANGE); if (driver == 2) analogWrite(MOTOR_CURRENT_PWM_E_PIN, (long)current * 255L / (long)MOTOR_CURRENT_PWM_RANGE); #endif } void microstep_init() { const uint8_t microstep_modes[] = MICROSTEP_MODES; #if defined(E1_MS1_PIN) && E1_MS1_PIN > -1 pinMode(E1_MS1_PIN,OUTPUT); pinMode(E1_MS2_PIN,OUTPUT); #endif #if defined(X_MS1_PIN) && X_MS1_PIN > -1 pinMode(X_MS1_PIN,OUTPUT); pinMode(X_MS2_PIN,OUTPUT); pinMode(Y_MS1_PIN,OUTPUT); pinMode(Y_MS2_PIN,OUTPUT); pinMode(Z_MS1_PIN,OUTPUT); pinMode(Z_MS2_PIN,OUTPUT); pinMode(E0_MS1_PIN,OUTPUT); pinMode(E0_MS2_PIN,OUTPUT); for(int i=0;i<=4;i++) microstep_mode(i,microstep_modes[i]); #endif } void microstep_ms(uint8_t driver, int8_t ms1, int8_t ms2) { if(ms1 > -1) switch(driver) { case 0: digitalWrite( X_MS1_PIN,ms1); break; case 1: digitalWrite( Y_MS1_PIN,ms1); break; case 2: digitalWrite( Z_MS1_PIN,ms1); break; case 3: digitalWrite(E0_MS1_PIN,ms1); break; #if defined(E1_MS1_PIN) && E1_MS1_PIN > -1 case 4: digitalWrite(E1_MS1_PIN,ms1); break; #endif } if(ms2 > -1) switch(driver) { case 0: digitalWrite( X_MS2_PIN,ms2); break; case 1: digitalWrite( Y_MS2_PIN,ms2); break; case 2: digitalWrite( Z_MS2_PIN,ms2); break; case 3: digitalWrite(E0_MS2_PIN,ms2); break; #if defined(E1_MS2_PIN) && E1_MS2_PIN > -1 case 4: digitalWrite(E1_MS2_PIN,ms2); break; #endif } } void microstep_mode(uint8_t driver, uint8_t stepping_mode) { switch(stepping_mode) { case 1: microstep_ms(driver,MICROSTEP1); break; case 2: microstep_ms(driver,MICROSTEP2); break; case 4: microstep_ms(driver,MICROSTEP4); break; case 8: microstep_ms(driver,MICROSTEP8); break; case 16: microstep_ms(driver,MICROSTEP16); break; } } void microstep_readings() { SERIAL_PROTOCOLPGM("MS1,MS2 Pins\n"); SERIAL_PROTOCOLPGM("X: "); SERIAL_PROTOCOL( digitalRead(X_MS1_PIN)); SERIAL_PROTOCOLLN( digitalRead(X_MS2_PIN)); SERIAL_PROTOCOLPGM("Y: "); SERIAL_PROTOCOL( digitalRead(Y_MS1_PIN)); SERIAL_PROTOCOLLN( digitalRead(Y_MS2_PIN)); SERIAL_PROTOCOLPGM("Z: "); SERIAL_PROTOCOL( digitalRead(Z_MS1_PIN)); SERIAL_PROTOCOLLN( digitalRead(Z_MS2_PIN)); SERIAL_PROTOCOLPGM("E0: "); SERIAL_PROTOCOL( digitalRead(E0_MS1_PIN)); SERIAL_PROTOCOLLN( digitalRead(E0_MS2_PIN)); #if defined(E1_MS1_PIN) && E1_MS1_PIN > -1 SERIAL_PROTOCOLPGM("E1: "); SERIAL_PROTOCOL( digitalRead(E1_MS1_PIN)); SERIAL_PROTOCOLLN( digitalRead(E1_MS2_PIN)); #endif } ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/stepper.cpp
c++
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
11,823
```objective-c /** * Portuguese * * LCD Menu Messages * Please note these are limited to 17 characters! * */ #ifndef LANGUAGE_PT_H #define LANGUAGE_PT_H #define WELCOME_MSG MACHINE_NAME " pronto." #define MSG_SD_INSERTED "Cartao inserido" #define MSG_SD_REMOVED "Cartao removido" #define MSG_MAIN " Menu principal \003" #define MSG_AUTOSTART "Autostart" #define MSG_DISABLE_STEPPERS " Parar motores" #define MSG_AUTO_HOME "Ir para origen" #define MSG_SET_HOME_OFFSETS "def. orig. offset" #define MSG_SET_ORIGIN "Estabelecer orig." #define MSG_PREHEAT_PLA "Pre-aquecer PLA" #define MSG_PREHEAT_PLA0 " pre-aquecer PLA 1" #define MSG_PREHEAT_PLA1 " pre-aquecer PLA 2" #define MSG_PREHEAT_PLA2 " pre-aquecer PLA 3" #define MSG_PREHEAT_PLA012 " pre-aq. PLA Tudo" #define MSG_PREHEAT_PLA_BEDONLY " pre-aq. PLA \002Base" #define MSG_PREHEAT_PLA_SETTINGS "Config. PLA" #define MSG_PREHEAT_ABS "Pre-aquecer ABS" #define MSG_PREHEAT_ABS0 " pre-aquecer ABS 1" #define MSG_PREHEAT_ABS1 " pre-aquecer ABS 2" #define MSG_PREHEAT_ABS2 " pre-aquecer ABS 3" #define MSG_PREHEAT_ABS012 " pre-aq. ABS Tudo" #define MSG_PREHEAT_ABS_BEDONLY " pre-aq. ABS \002Base" #define MSG_PREHEAT_ABS_SETTINGS "Config. ABS" #define MSG_COOLDOWN "Esfriar" #define MSG_SWITCH_PS_ON "Interruptor On" #define MSG_SWITCH_PS_OFF "Interruptor Off" #define MSG_EXTRUDE "Extrudar" #define MSG_RETRACT "Retrair" #define MSG_MOVE_AXIS "Mover eixo \x7E" #define MSG_MOVE_X "Mover X" #define MSG_MOVE_Y "Mover Y" #define MSG_MOVE_Z "Mover Z" #define MSG_MOVE_E "Extrusor" #define MSG_MOVE_E1 "Extrusor2" #define MSG_MOVE_E2 "Extrusor3" #define MSG_MOVE_01MM "Mover 0.1mm" #define MSG_MOVE_1MM "Mover 1mm" #define MSG_MOVE_10MM "Mover 10mm" #define MSG_SPEED "Velocidade:" #define MSG_NOZZLE "\002Nozzle:" #define MSG_NOZZLE1 "\002Nozzle2:" #define MSG_NOZZLE2 "\002Nozzle3:" #define MSG_BED "\002Base:" #define MSG_FAN_SPEED "Velocidade vento." #define MSG_FLOW "Fluxo:" #define MSG_FLOW0 "Fluxo0:" #define MSG_FLOW1 "Fluxo1:" #define MSG_FLOW2 "Fluxo2:" #define MSG_CONTROL "Controle \003" #define MSG_MIN "\002 Min:" #define MSG_MAX "\002 Max:" #define MSG_FACTOR "\002 Fact:" #define MSG_AUTOTEMP "Autotemp:" #define MSG_ON "On " #define MSG_OFF "Off" #define MSG_PID_P "PID-P: " #define MSG_PID_I "PID-I: " #define MSG_PID_D "PID-D: " #define MSG_PID_C "PID-C: " #define MSG_ACC "Acc:" #define MSG_VXY_JERK "Vxy-jerk: " #define MSG_VZ_JERK "Vz-jerk" #define MSG_VE_JERK "Ve-jerk" #define MSG_VMAX " Vmax " #define MSG_X "x:" #define MSG_Y "y:" #define MSG_Z "z:" #define MSG_E "e:" #define MSG_VMIN "Vmin:" #define MSG_VTRAV_MIN "VTrav min:" #define MSG_AMAX "Amax " #define MSG_A_RETRACT "A-retract:" #define MSG_XSTEPS "Xpasso/mm:" #define MSG_YSTEPS "Ypasso/mm:" #define MSG_ZSTEPS "Zpasso/mm:" #define MSG_ESTEPS "Epasso/mm:" #define MSG_TEMPERATURE "Temperatura" #define MSG_MOTION "Movimento" #define MSG_VOLUMETRIC "Filamento" #define MSG_VOLUMETRIC_ENABLED "E in mm3" #define MSG_FILAMENT_SIZE_EXTRUDER_0 "Fil. Dia. 1" #define MSG_FILAMENT_SIZE_EXTRUDER_1 "Fil. Dia. 2" #define MSG_FILAMENT_SIZE_EXTRUDER_2 "Fil. Dia. 3" #define MSG_CONTRAST "Contraste" #define MSG_STORE_EPROM "Guardar memoria" #define MSG_LOAD_EPROM "Carregar memoria" #define MSG_RESTORE_FAILSAFE "Rest. de emergen." #define MSG_REFRESH "\004Recarregar" #define MSG_WATCH "Monitorar \003" #define MSG_PREPARE "Preparar \x7E" #define MSG_TUNE "Tune \x7E" #define MSG_PAUSE_PRINT "Pausar impressao" #define MSG_RESUME_PRINT "Resumir impressao" #define MSG_STOP_PRINT "Parar impressao" #define MSG_CARD_MENU "Menu cartao SD" #define MSG_NO_CARD "Sem cartao SD" #define MSG_DWELL "Repouso..." #define MSG_USERWAIT "Esperando ordem" #define MSG_RESUMING "Resum. impressao" #define MSG_PRINT_ABORTED "impress. abortada" #define MSG_NO_MOVE "Sem movimento" #define MSG_KILLED "PARADA DE EMERG." #define MSG_STOPPED "PARADA. " #define MSG_CONTROL_RETRACT " Retrair mm:" #define MSG_CONTROL_RETRACT_SWAP "Troca Retrair mm:" #define MSG_CONTROL_RETRACTF " Retrair V:" #define MSG_CONTROL_RETRACT_ZLIFT " Levantar mm:" #define MSG_CONTROL_RETRACT_RECOVER " DesRet +mm:" #define MSG_CONTROL_RETRACT_RECOVER_SWAP "Troca DesRet +mm:" #define MSG_CONTROL_RETRACT_RECOVERF " DesRet V:" #define MSG_AUTORETRACT " Auto Retr.:" #define MSG_FILAMENTCHANGE "Trocar filamento" #define MSG_INIT_SDCARD "Cartao SD Inic." #define MSG_CNG_SDCARD "Cartao SD trocado" #define MSG_ZPROBE_OUT "Son. fora da mesa" #define MSG_POSITION_UNKNOWN "XY antes de Z" #define MSG_ZPROBE_ZOFFSET "Z Offset" #define MSG_BABYSTEP_X "Babystep X" #define MSG_BABYSTEP_Y "Babystep Y" #define MSG_BABYSTEP_Z "Babystep Z" #define MSG_ENDSTOP_ABORT "Endstop abort" #define MSG_RECTRACT "Retrair" #define MSG_MAIN_WIDE "Menu Principal \003" #define MSG_PREPARE_ALT "Preparar \003" #define MSG_CONTROL_ARROW "Controle \x7E" #define MSG_RETRACT_ARROW "Retrair \x7E" #define MSG_STEPPER_RELEASED "Iniciado." #ifdef DELTA_CALIBRATION_MENU #define MSG_DELTA_CALIBRATE "Calibracao Delta" #define MSG_DELTA_CALIBRATE_X "Calibrar X" #define MSG_DELTA_CALIBRATE_Y "Calibrar Y" #define MSG_DELTA_CALIBRATE_Z "Calibrar Z" #define MSG_DELTA_CALIBRATE_CENTER "Calibrar Centro" #endif // DELTA_CALIBRATION_MENU #endif // LANGUAGE_PT_H ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/language_pt.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
1,715
```objective-c /* Arduino Sd2Card Library * * This file is part of the Arduino Sd2Card Library * * This Library is free software: you can redistribute it and/or modify * (at your option) any later version. * * This Library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * along with the Arduino Sd2Card Library. If not, see * <path_to_url */ #include "Marlin.h" #ifdef SDSUPPORT #ifndef SdInfo_h #define SdInfo_h #include <stdint.h> // Based on the document: // // SD Specifications // Part 1 // Physical Layer // Simplified Specification // Version 3.01 // May 18, 2010 // // path_to_url //your_sha256_hash-------------- // SD card commands /** GO_IDLE_STATE - init card in spi mode if CS low */ uint8_t const CMD0 = 0X00; /** SEND_IF_COND - verify SD Memory Card interface operating condition.*/ uint8_t const CMD8 = 0X08; /** SEND_CSD - read the Card Specific Data (CSD register) */ uint8_t const CMD9 = 0X09; /** SEND_CID - read the card identification information (CID register) */ uint8_t const CMD10 = 0X0A; /** STOP_TRANSMISSION - end multiple block read sequence */ uint8_t const CMD12 = 0X0C; /** SEND_STATUS - read the card status register */ uint8_t const CMD13 = 0X0D; /** READ_SINGLE_BLOCK - read a single data block from the card */ uint8_t const CMD17 = 0X11; /** READ_MULTIPLE_BLOCK - read a multiple data blocks from the card */ uint8_t const CMD18 = 0X12; /** WRITE_BLOCK - write a single data block to the card */ uint8_t const CMD24 = 0X18; /** WRITE_MULTIPLE_BLOCK - write blocks of data until a STOP_TRANSMISSION */ uint8_t const CMD25 = 0X19; /** ERASE_WR_BLK_START - sets the address of the first block to be erased */ uint8_t const CMD32 = 0X20; /** ERASE_WR_BLK_END - sets the address of the last block of the continuous range to be erased*/ uint8_t const CMD33 = 0X21; /** ERASE - erase all previously selected blocks */ uint8_t const CMD38 = 0X26; /** APP_CMD - escape for application specific command */ uint8_t const CMD55 = 0X37; /** READ_OCR - read the OCR register of a card */ uint8_t const CMD58 = 0X3A; /** SET_WR_BLK_ERASE_COUNT - Set the number of write blocks to be pre-erased before writing */ uint8_t const ACMD23 = 0X17; /** SD_SEND_OP_COMD - Sends host capacity support information and activates the card's initialization process */ uint8_t const ACMD41 = 0X29; //your_sha256_hash-------------- /** status for card in the ready state */ uint8_t const R1_READY_STATE = 0X00; /** status for card in the idle state */ uint8_t const R1_IDLE_STATE = 0X01; /** status bit for illegal command */ uint8_t const R1_ILLEGAL_COMMAND = 0X04; /** start data token for read or write single block*/ uint8_t const DATA_START_BLOCK = 0XFE; /** stop token for write multiple blocks*/ uint8_t const STOP_TRAN_TOKEN = 0XFD; /** start data token for write multiple blocks*/ uint8_t const WRITE_MULTIPLE_TOKEN = 0XFC; /** mask for data response tokens after a write block operation */ uint8_t const DATA_RES_MASK = 0X1F; /** write data accepted token */ uint8_t const DATA_RES_ACCEPTED = 0X05; //your_sha256_hash-------------- /** Card IDentification (CID) register */ typedef struct CID { // byte 0 /** Manufacturer ID */ unsigned char mid; // byte 1-2 /** OEM/Application ID */ char oid[2]; // byte 3-7 /** Product name */ char pnm[5]; // byte 8 /** Product revision least significant digit */ unsigned char prv_m : 4; /** Product revision most significant digit */ unsigned char prv_n : 4; // byte 9-12 /** Product serial number */ uint32_t psn; // byte 13 /** Manufacturing date year low digit */ unsigned char mdt_year_high : 4; /** not used */ unsigned char reserved : 4; // byte 14 /** Manufacturing date month */ unsigned char mdt_month : 4; /** Manufacturing date year low digit */ unsigned char mdt_year_low :4; // byte 15 /** not used always 1 */ unsigned char always1 : 1; /** CRC7 checksum */ unsigned char crc : 7; }cid_t; //your_sha256_hash-------------- /** CSD for version 1.00 cards */ typedef struct CSDV1 { // byte 0 unsigned char reserved1 : 6; unsigned char csd_ver : 2; // byte 1 unsigned char taac; // byte 2 unsigned char nsac; // byte 3 unsigned char tran_speed; // byte 4 unsigned char ccc_high; // byte 5 unsigned char read_bl_len : 4; unsigned char ccc_low : 4; // byte 6 unsigned char c_size_high : 2; unsigned char reserved2 : 2; unsigned char dsr_imp : 1; unsigned char read_blk_misalign :1; unsigned char write_blk_misalign : 1; unsigned char read_bl_partial : 1; // byte 7 unsigned char c_size_mid; // byte 8 unsigned char vdd_r_curr_max : 3; unsigned char vdd_r_curr_min : 3; unsigned char c_size_low :2; // byte 9 unsigned char c_size_mult_high : 2; unsigned char vdd_w_cur_max : 3; unsigned char vdd_w_curr_min : 3; // byte 10 unsigned char sector_size_high : 6; unsigned char erase_blk_en : 1; unsigned char c_size_mult_low : 1; // byte 11 unsigned char wp_grp_size : 7; unsigned char sector_size_low : 1; // byte 12 unsigned char write_bl_len_high : 2; unsigned char r2w_factor : 3; unsigned char reserved3 : 2; unsigned char wp_grp_enable : 1; // byte 13 unsigned char reserved4 : 5; unsigned char write_partial : 1; unsigned char write_bl_len_low : 2; // byte 14 unsigned char reserved5: 2; unsigned char file_format : 2; unsigned char tmp_write_protect : 1; unsigned char perm_write_protect : 1; unsigned char copy : 1; /** Indicates the file format on the card */ unsigned char file_format_grp : 1; // byte 15 unsigned char always1 : 1; unsigned char crc : 7; }csd1_t; //your_sha256_hash-------------- /** CSD for version 2.00 cards */ typedef struct CSDV2 { // byte 0 unsigned char reserved1 : 6; unsigned char csd_ver : 2; // byte 1 /** fixed to 0X0E */ unsigned char taac; // byte 2 /** fixed to 0 */ unsigned char nsac; // byte 3 unsigned char tran_speed; // byte 4 unsigned char ccc_high; // byte 5 /** This field is fixed to 9h, which indicates READ_BL_LEN=512 Byte */ unsigned char read_bl_len : 4; unsigned char ccc_low : 4; // byte 6 /** not used */ unsigned char reserved2 : 4; unsigned char dsr_imp : 1; /** fixed to 0 */ unsigned char read_blk_misalign :1; /** fixed to 0 */ unsigned char write_blk_misalign : 1; /** fixed to 0 - no partial read */ unsigned char read_bl_partial : 1; // byte 7 /** not used */ unsigned char reserved3 : 2; /** high part of card size */ unsigned char c_size_high : 6; // byte 8 /** middle part of card size */ unsigned char c_size_mid; // byte 9 /** low part of card size */ unsigned char c_size_low; // byte 10 /** sector size is fixed at 64 KB */ unsigned char sector_size_high : 6; /** fixed to 1 - erase single is supported */ unsigned char erase_blk_en : 1; /** not used */ unsigned char reserved4 : 1; // byte 11 unsigned char wp_grp_size : 7; /** sector size is fixed at 64 KB */ unsigned char sector_size_low : 1; // byte 12 /** write_bl_len fixed for 512 byte blocks */ unsigned char write_bl_len_high : 2; /** fixed value of 2 */ unsigned char r2w_factor : 3; /** not used */ unsigned char reserved5 : 2; /** fixed value of 0 - no write protect groups */ unsigned char wp_grp_enable : 1; // byte 13 unsigned char reserved6 : 5; /** always zero - no partial block read*/ unsigned char write_partial : 1; /** write_bl_len fixed for 512 byte blocks */ unsigned char write_bl_len_low : 2; // byte 14 unsigned char reserved7: 2; /** Do not use always 0 */ unsigned char file_format : 2; unsigned char tmp_write_protect : 1; unsigned char perm_write_protect : 1; unsigned char copy : 1; /** Do not use always 0 */ unsigned char file_format_grp : 1; // byte 15 /** not used always 1 */ unsigned char always1 : 1; /** checksum */ unsigned char crc : 7; }csd2_t; //your_sha256_hash-------------- /** union of old and new style CSD register */ union csd_t { csd1_t v1; csd2_t v2; }; #endif // SdInfo_h #endif ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/SdInfo.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
2,393
```objective-c /* temperature.h - temperature controller Part of Marlin Grbl is free software: you can redistribute it and/or modify (at your option) any later version. Grbl is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the along with Grbl. If not, see <path_to_url */ #ifndef temperature_h #define temperature_h #include "Marlin.h" #include "planner.h" #ifdef PID_ADD_EXTRUSION_RATE #include "stepper.h" #endif // public functions void tp_init(); //initialize the heating void manage_heater(); //it is critical that this is called periodically. #ifdef FILAMENT_SENSOR // For converting raw Filament Width to milimeters float analog2widthFil(); // For converting raw Filament Width to an extrusion ratio int widthFil_to_size_ratio(); #endif // low level conversion routines // do not use these routines and variables outside of temperature.cpp extern int target_temperature[EXTRUDERS]; extern float current_temperature[EXTRUDERS]; #ifdef SHOW_TEMP_ADC_VALUES extern int current_temperature_raw[EXTRUDERS]; extern int current_temperature_bed_raw; #endif extern int target_temperature_bed; extern float current_temperature_bed; #ifdef TEMP_SENSOR_1_AS_REDUNDANT extern float redundant_temperature; #endif #if defined(CONTROLLERFAN_PIN) && CONTROLLERFAN_PIN > -1 extern unsigned char soft_pwm_bed; #endif #ifdef PIDTEMP extern float Kp,Ki,Kd,Kc; float scalePID_i(float i); float scalePID_d(float d); float unscalePID_i(float i); float unscalePID_d(float d); #endif #ifdef PIDTEMPBED extern float bedKp,bedKi,bedKd; #endif #ifdef BABYSTEPPING extern volatile int babystepsTodo[3]; #endif //high level conversion routines, for use outside of temperature.cpp //inline so that there is no performance decrease. //deg=degreeCelsius FORCE_INLINE float degHotend(uint8_t extruder) { return current_temperature[extruder]; }; #ifdef SHOW_TEMP_ADC_VALUES FORCE_INLINE float rawHotendTemp(uint8_t extruder) { return current_temperature_raw[extruder]; }; FORCE_INLINE float rawBedTemp() { return current_temperature_bed_raw; }; #endif FORCE_INLINE float degBed() { return current_temperature_bed; }; FORCE_INLINE float degTargetHotend(uint8_t extruder) { return target_temperature[extruder]; }; FORCE_INLINE float degTargetBed() { return target_temperature_bed; }; FORCE_INLINE void setTargetHotend(const float &celsius, uint8_t extruder) { target_temperature[extruder] = celsius; }; FORCE_INLINE void setTargetBed(const float &celsius) { target_temperature_bed = celsius; }; FORCE_INLINE bool isHeatingHotend(uint8_t extruder){ return target_temperature[extruder] > current_temperature[extruder]; }; FORCE_INLINE bool isHeatingBed() { return target_temperature_bed > current_temperature_bed; }; FORCE_INLINE bool isCoolingHotend(uint8_t extruder) { return target_temperature[extruder] < current_temperature[extruder]; }; FORCE_INLINE bool isCoolingBed() { return target_temperature_bed < current_temperature_bed; }; #define degHotend0() degHotend(0) #define degTargetHotend0() degTargetHotend(0) #define setTargetHotend0(_celsius) setTargetHotend((_celsius), 0) #define isHeatingHotend0() isHeatingHotend(0) #define isCoolingHotend0() isCoolingHotend(0) #if EXTRUDERS > 1 #define degHotend1() degHotend(1) #define degTargetHotend1() degTargetHotend(1) #define setTargetHotend1(_celsius) setTargetHotend((_celsius), 1) #define isHeatingHotend1() isHeatingHotend(1) #define isCoolingHotend1() isCoolingHotend(1) #else #define setTargetHotend1(_celsius) do{}while(0) #endif #if EXTRUDERS > 2 #define degHotend2() degHotend(2) #define degTargetHotend2() degTargetHotend(2) #define setTargetHotend2(_celsius) setTargetHotend((_celsius), 2) #define isHeatingHotend2() isHeatingHotend(2) #define isCoolingHotend2() isCoolingHotend(2) #else #define setTargetHotend2(_celsius) do{}while(0) #endif #if EXTRUDERS > 3 #error Invalid number of extruders #endif int getHeaterPower(int heater); void disable_heater(); void setWatch(); void updatePID(); #if defined (THERMAL_RUNAWAY_PROTECTION_PERIOD) && THERMAL_RUNAWAY_PROTECTION_PERIOD > 0 void thermal_runaway_protection(int *state, unsigned long *timer, float temperature, float target_temperature, int heater_id, int period_seconds, int hysteresis_degc); static int thermal_runaway_state_machine[3]; // = {0,0,0}; static unsigned long thermal_runaway_timer[3]; // = {0,0,0}; static bool thermal_runaway = false; #if TEMP_SENSOR_BED != 0 static int thermal_runaway_bed_state_machine; static unsigned long thermal_runaway_bed_timer; #endif #endif FORCE_INLINE void autotempShutdown(){ #ifdef AUTOTEMP if(autotemp_enabled) { autotemp_enabled=false; if(degTargetHotend(active_extruder)>autotemp_min) setTargetHotend(0,active_extruder); } #endif } void PID_autotune(float temp, int extruder, int ncycles); void setExtruderAutoFanState(int pin, bool state); void checkExtruderAutoFans(); #endif ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/temperature.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
1,336
```objective-c /* This code contributed by Triffid_Hunter and modified by Kliment why double up on these macros? see path_to_url */ #ifndef _FASTIO_ARDUINO_H #define _FASTIO_ARDUINO_H #include <avr/io.h> /* utility functions */ #ifndef MASK /// MASKING- returns \f$2^PIN\f$ #define MASK(PIN) (1 << PIN) #endif /* magic I/O routines now you can simply SET_OUTPUT(STEP); WRITE(STEP, 1); WRITE(STEP, 0); */ /// Read a pin #define _READ(IO) ((bool)(DIO ## IO ## _RPORT & MASK(DIO ## IO ## _PIN))) /// write to a pin // On some boards pins > 0x100 are used. These are not converted to atomic actions. An critical section is needed. #define _WRITE_NC(IO, v) do { if (v) {DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0) #define _WRITE_C(IO, v) do { if (v) { \ CRITICAL_SECTION_START; \ {DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); }\ CRITICAL_SECTION_END; \ }\ else {\ CRITICAL_SECTION_START; \ {DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }\ CRITICAL_SECTION_END; \ }\ }\ while (0) #define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0) /// toggle a pin #define _TOGGLE(IO) do {DIO ## IO ## _RPORT = MASK(DIO ## IO ## _PIN); } while (0) /// set pin as input #define _SET_INPUT(IO) do {DIO ## IO ## _DDR &= ~MASK(DIO ## IO ## _PIN); } while (0) /// set pin as output #define _SET_OUTPUT(IO) do {DIO ## IO ## _DDR |= MASK(DIO ## IO ## _PIN); } while (0) /// check if pin is an input #define _GET_INPUT(IO) ((DIO ## IO ## _DDR & MASK(DIO ## IO ## _PIN)) == 0) /// check if pin is an output #define _GET_OUTPUT(IO) ((DIO ## IO ## _DDR & MASK(DIO ## IO ## _PIN)) != 0) /// check if pin is an timer #define _GET_TIMER(IO) ((DIO ## IO ## _PWM) // why double up on these macros? see path_to_url /// Read a pin wrapper #define READ(IO) _READ(IO) /// Write to a pin wrapper #define WRITE(IO, v) _WRITE(IO, v) /// toggle a pin wrapper #define TOGGLE(IO) _TOGGLE(IO) /// set pin as input wrapper #define SET_INPUT(IO) _SET_INPUT(IO) /// set pin as output wrapper #define SET_OUTPUT(IO) _SET_OUTPUT(IO) /// check if pin is an input wrapper #define GET_INPUT(IO) _GET_INPUT(IO) /// check if pin is an output wrapper #define GET_OUTPUT(IO) _GET_OUTPUT(IO) /// check if pin is an timer wrapper #define GET_TIMER(IO) _GET_TIMER(IO) /* ports and functions added as necessary or if I feel like it- not a comprehensive list! */ #if defined (__AVR_ATmega168__) || defined (__AVR_ATmega328__) || defined (__AVR_ATmega328P__) // UART #define RXD DIO0 #define TXD DIO1 // SPI #define SCK DIO13 #define MISO DIO12 #define MOSI DIO11 #define SS DIO10 // TWI (I2C) #define SCL AIO5 #define SDA AIO4 // timers and PWM #define OC0A DIO6 #define OC0B DIO5 #define OC1A DIO9 #define OC1B DIO10 #define OC2A DIO11 #define OC2B DIO3 #define DEBUG_LED AIO5 /* pins */ #define DIO0_PIN PIND0 #define DIO0_RPORT PIND #define DIO0_WPORT PORTD #define DIO0_DDR DDRD #define DIO0_PWM NULL #define DIO1_PIN PIND1 #define DIO1_RPORT PIND #define DIO1_WPORT PORTD #define DIO1_DDR DDRD #define DIO1_PWM NULL #define DIO2_PIN PIND2 #define DIO2_RPORT PIND #define DIO2_WPORT PORTD #define DIO2_DDR DDRD #define DIO2_PWM NULL #define DIO3_PIN PIND3 #define DIO3_RPORT PIND #define DIO3_WPORT PORTD #define DIO3_DDR DDRD #define DIO3_PWM &OCR2B #define DIO4_PIN PIND4 #define DIO4_RPORT PIND #define DIO4_WPORT PORTD #define DIO4_DDR DDRD #define DIO4_PWM NULL #define DIO5_PIN PIND5 #define DIO5_RPORT PIND #define DIO5_WPORT PORTD #define DIO5_DDR DDRD #define DIO5_PWM &OCR0B #define DIO6_PIN PIND6 #define DIO6_RPORT PIND #define DIO6_WPORT PORTD #define DIO6_DDR DDRD #define DIO6_PWM &OCR0A #define DIO7_PIN PIND7 #define DIO7_RPORT PIND #define DIO7_WPORT PORTD #define DIO7_DDR DDRD #define DIO7_PWM NULL #define DIO8_PIN PINB0 #define DIO8_RPORT PINB #define DIO8_WPORT PORTB #define DIO8_DDR DDRB #define DIO8_PWM NULL #define DIO9_PIN PINB1 #define DIO9_RPORT PINB #define DIO9_WPORT PORTB #define DIO9_DDR DDRB #define DIO9_PWM NULL #define DIO10_PIN PINB2 #define DIO10_RPORT PINB #define DIO10_WPORT PORTB #define DIO10_DDR DDRB #define DIO10_PWM NULL #define DIO11_PIN PINB3 #define DIO11_RPORT PINB #define DIO11_WPORT PORTB #define DIO11_DDR DDRB #define DIO11_PWM &OCR2A #define DIO12_PIN PINB4 #define DIO12_RPORT PINB #define DIO12_WPORT PORTB #define DIO12_DDR DDRB #define DIO12_PWM NULL #define DIO13_PIN PINB5 #define DIO13_RPORT PINB #define DIO13_WPORT PORTB #define DIO13_DDR DDRB #define DIO13_PWM NULL #define DIO14_PIN PINC0 #define DIO14_RPORT PINC #define DIO14_WPORT PORTC #define DIO14_DDR DDRC #define DIO14_PWM NULL #define DIO15_PIN PINC1 #define DIO15_RPORT PINC #define DIO15_WPORT PORTC #define DIO15_DDR DDRC #define DIO15_PWM NULL #define DIO16_PIN PINC2 #define DIO16_RPORT PINC #define DIO16_WPORT PORTC #define DIO16_DDR DDRC #define DIO16_PWM NULL #define DIO17_PIN PINC3 #define DIO17_RPORT PINC #define DIO17_WPORT PORTC #define DIO17_DDR DDRC #define DIO17_PWM NULL #define DIO18_PIN PINC4 #define DIO18_RPORT PINC #define DIO18_WPORT PORTC #define DIO18_DDR DDRC #define DIO18_PWM NULL #define DIO19_PIN PINC5 #define DIO19_RPORT PINC #define DIO19_WPORT PORTC #define DIO19_DDR DDRC #define DIO19_PWM NULL #define DIO20_PIN PINC6 #define DIO20_RPORT PINC #define DIO20_WPORT PORTC #define DIO20_DDR DDRC #define DIO20_PWM NULL #define DIO21_PIN PINC7 #define DIO21_RPORT PINC #define DIO21_WPORT PORTC #define DIO21_DDR DDRC #define DIO21_PWM NULL #undef PB0 #define PB0_PIN PINB0 #define PB0_RPORT PINB #define PB0_WPORT PORTB #define PB0_DDR DDRB #define PB0_PWM NULL #undef PB1 #define PB1_PIN PINB1 #define PB1_RPORT PINB #define PB1_WPORT PORTB #define PB1_DDR DDRB #define PB1_PWM NULL #undef PB2 #define PB2_PIN PINB2 #define PB2_RPORT PINB #define PB2_WPORT PORTB #define PB2_DDR DDRB #define PB2_PWM NULL #undef PB3 #define PB3_PIN PINB3 #define PB3_RPORT PINB #define PB3_WPORT PORTB #define PB3_DDR DDRB #define PB3_PWM &OCR2A #undef PB4 #define PB4_PIN PINB4 #define PB4_RPORT PINB #define PB4_WPORT PORTB #define PB4_DDR DDRB #define PB4_PWM NULL #undef PB5 #define PB5_PIN PINB5 #define PB5_RPORT PINB #define PB5_WPORT PORTB #define PB5_DDR DDRB #define PB5_PWM NULL #undef PB6 #define PB6_PIN PINB6 #define PB6_RPORT PINB #define PB6_WPORT PORTB #define PB6_DDR DDRB #define PB6_PWM NULL #undef PB7 #define PB7_PIN PINB7 #define PB7_RPORT PINB #define PB7_WPORT PORTB #define PB7_DDR DDRB #define PB7_PWM NULL #undef PC0 #define PC0_PIN PINC0 #define PC0_RPORT PINC #define PC0_WPORT PORTC #define PC0_DDR DDRC #define PC0_PWM NULL #undef PC1 #define PC1_PIN PINC1 #define PC1_RPORT PINC #define PC1_WPORT PORTC #define PC1_DDR DDRC #define PC1_PWM NULL #undef PC2 #define PC2_PIN PINC2 #define PC2_RPORT PINC #define PC2_WPORT PORTC #define PC2_DDR DDRC #define PC2_PWM NULL #undef PC3 #define PC3_PIN PINC3 #define PC3_RPORT PINC #define PC3_WPORT PORTC #define PC3_DDR DDRC #define PC3_PWM NULL #undef PC4 #define PC4_PIN PINC4 #define PC4_RPORT PINC #define PC4_WPORT PORTC #define PC4_DDR DDRC #define PC4_PWM NULL #undef PC5 #define PC5_PIN PINC5 #define PC5_RPORT PINC #define PC5_WPORT PORTC #define PC5_DDR DDRC #define PC5_PWM NULL #undef PC6 #define PC6_PIN PINC6 #define PC6_RPORT PINC #define PC6_WPORT PORTC #define PC6_DDR DDRC #define PC6_PWM NULL #undef PC7 #define PC7_PIN PINC7 #define PC7_RPORT PINC #define PC7_WPORT PORTC #define PC7_DDR DDRC #define PC7_PWM NULL #undef PD0 #define PD0_PIN PIND0 #define PD0_RPORT PIND #define PD0_WPORT PORTD #define PD0_DDR DDRD #define PD0_PWM NULL #undef PD1 #define PD1_PIN PIND1 #define PD1_RPORT PIND #define PD1_WPORT PORTD #define PD1_DDR DDRD #define PD1_PWM NULL #undef PD2 #define PD2_PIN PIND2 #define PD2_RPORT PIND #define PD2_WPORT PORTD #define PD2_DDR DDRD #define PD2_PWM NULL #undef PD3 #define PD3_PIN PIND3 #define PD3_RPORT PIND #define PD3_WPORT PORTD #define PD3_DDR DDRD #define PD3_PWM &OCR2B #undef PD4 #define PD4_PIN PIND4 #define PD4_RPORT PIND #define PD4_WPORT PORTD #define PD4_DDR DDRD #define PD4_PWM NULL #undef PD5 #define PD5_PIN PIND5 #define PD5_RPORT PIND #define PD5_WPORT PORTD #define PD5_DDR DDRD #define PD5_PWM &OCR0B #undef PD6 #define PD6_PIN PIND6 #define PD6_RPORT PIND #define PD6_WPORT PORTD #define PD6_DDR DDRD #define PD6_PWM &OCR0A #undef PD7 #define PD7_PIN PIND7 #define PD7_RPORT PIND #define PD7_WPORT PORTD #define PD7_DDR DDRD #define PD7_PWM NULL #endif /* _AVR_ATmega{168,328,328P}__ */ #if defined (__AVR_ATmega644__) || defined (__AVR_ATmega644P__) || defined (__AVR_ATmega644PA__) || defined (__AVR_ATmega1284P__) // UART #define RXD DIO8 #define TXD DIO9 #define RXD0 DIO8 #define TXD0 DIO9 #define RXD1 DIO10 #define TXD1 DIO11 // SPI #define SCK DIO7 #define MISO DIO6 #define MOSI DIO5 #define SS DIO4 // TWI (I2C) #define SCL DIO16 #define SDA DIO17 // timers and PWM #define OC0A DIO3 #define OC0B DIO4 #define OC1A DIO13 #define OC1B DIO12 #define OC2A DIO15 #define OC2B DIO14 #define DEBUG_LED DIO0 /* pins */ #define DIO0_PIN PINB0 #define DIO0_RPORT PINB #define DIO0_WPORT PORTB #define DIO0_DDR DDRB #define DIO0_PWM NULL #define DIO1_PIN PINB1 #define DIO1_RPORT PINB #define DIO1_WPORT PORTB #define DIO1_DDR DDRB #define DIO1_PWM NULL #define DIO2_PIN PINB2 #define DIO2_RPORT PINB #define DIO2_WPORT PORTB #define DIO2_DDR DDRB #define DIO2_PWM NULL #define DIO3_PIN PINB3 #define DIO3_RPORT PINB #define DIO3_WPORT PORTB #define DIO3_DDR DDRB #define DIO3_PWM OCR0A #define DIO4_PIN PINB4 #define DIO4_RPORT PINB #define DIO4_WPORT PORTB #define DIO4_DDR DDRB #define DIO4_PWM OCR0B #define DIO5_PIN PINB5 #define DIO5_RPORT PINB #define DIO5_WPORT PORTB #define DIO5_DDR DDRB #define DIO5_PWM NULL #define DIO6_PIN PINB6 #define DIO6_RPORT PINB #define DIO6_WPORT PORTB #define DIO6_DDR DDRB #define DIO6_PWM NULL #define DIO7_PIN PINB7 #define DIO7_RPORT PINB #define DIO7_WPORT PORTB #define DIO7_DDR DDRB #define DIO7_PWM NULL #define DIO8_PIN PIND0 #define DIO8_RPORT PIND #define DIO8_WPORT PORTD #define DIO8_DDR DDRD #define DIO8_PWM NULL #define DIO9_PIN PIND1 #define DIO9_RPORT PIND #define DIO9_WPORT PORTD #define DIO9_DDR DDRD #define DIO9_PWM NULL #define DIO10_PIN PIND2 #define DIO10_RPORT PIND #define DIO10_WPORT PORTD #define DIO10_DDR DDRD #define DIO10_PWM NULL #define DIO11_PIN PIND3 #define DIO11_RPORT PIND #define DIO11_WPORT PORTD #define DIO11_DDR DDRD #define DIO11_PWM NULL #define DIO12_PIN PIND4 #define DIO12_RPORT PIND #define DIO12_WPORT PORTD #define DIO12_DDR DDRD #define DIO12_PWM OCR1B #define DIO13_PIN PIND5 #define DIO13_RPORT PIND #define DIO13_WPORT PORTD #define DIO13_DDR DDRD #define DIO13_PWM OCR1A #define DIO14_PIN PIND6 #define DIO14_RPORT PIND #define DIO14_WPORT PORTD #define DIO14_DDR DDRD #define DIO14_PWM OCR2B #define DIO15_PIN PIND7 #define DIO15_RPORT PIND #define DIO15_WPORT PORTD #define DIO15_DDR DDRD #define DIO15_PWM OCR2A #define DIO16_PIN PINC0 #define DIO16_RPORT PINC #define DIO16_WPORT PORTC #define DIO16_DDR DDRC #define DIO16_PWM NULL #define DIO17_PIN PINC1 #define DIO17_RPORT PINC #define DIO17_WPORT PORTC #define DIO17_DDR DDRC #define DIO17_PWM NULL #define DIO18_PIN PINC2 #define DIO18_RPORT PINC #define DIO18_WPORT PORTC #define DIO18_DDR DDRC #define DIO18_PWM NULL #define DIO19_PIN PINC3 #define DIO19_RPORT PINC #define DIO19_WPORT PORTC #define DIO19_DDR DDRC #define DIO19_PWM NULL #define DIO20_PIN PINC4 #define DIO20_RPORT PINC #define DIO20_WPORT PORTC #define DIO20_DDR DDRC #define DIO20_PWM NULL #define DIO21_PIN PINC5 #define DIO21_RPORT PINC #define DIO21_WPORT PORTC #define DIO21_DDR DDRC #define DIO21_PWM NULL #define DIO22_PIN PINC6 #define DIO22_RPORT PINC #define DIO22_WPORT PORTC #define DIO22_DDR DDRC #define DIO22_PWM NULL #define DIO23_PIN PINC7 #define DIO23_RPORT PINC #define DIO23_WPORT PORTC #define DIO23_DDR DDRC #define DIO23_PWM NULL #define DIO24_PIN PINA7 #define DIO24_RPORT PINA #define DIO24_WPORT PORTA #define DIO24_DDR DDRA #define DIO24_PWM NULL #define DIO25_PIN PINA6 #define DIO25_RPORT PINA #define DIO25_WPORT PORTA #define DIO25_DDR DDRA #define DIO25_PWM NULL #define DIO26_PIN PINA5 #define DIO26_RPORT PINA #define DIO26_WPORT PORTA #define DIO26_DDR DDRA #define DIO26_PWM NULL #define DIO27_PIN PINA4 #define DIO27_RPORT PINA #define DIO27_WPORT PORTA #define DIO27_DDR DDRA #define DIO27_PWM NULL #define DIO28_PIN PINA3 #define DIO28_RPORT PINA #define DIO28_WPORT PORTA #define DIO28_DDR DDRA #define DIO28_PWM NULL #define DIO29_PIN PINA2 #define DIO29_RPORT PINA #define DIO29_WPORT PORTA #define DIO29_DDR DDRA #define DIO29_PWM NULL #define DIO30_PIN PINA1 #define DIO30_RPORT PINA #define DIO30_WPORT PORTA #define DIO30_DDR DDRA #define DIO30_PWM NULL #define DIO31_PIN PINA0 #define DIO31_RPORT PINA #define DIO31_WPORT PORTA #define DIO31_DDR DDRA #define DIO31_PWM NULL #define AIO0_PIN PINA0 #define AIO0_RPORT PINA #define AIO0_WPORT PORTA #define AIO0_DDR DDRA #define AIO0_PWM NULL #define AIO1_PIN PINA1 #define AIO1_RPORT PINA #define AIO1_WPORT PORTA #define AIO1_DDR DDRA #define AIO1_PWM NULL #define AIO2_PIN PINA2 #define AIO2_RPORT PINA #define AIO2_WPORT PORTA #define AIO2_DDR DDRA #define AIO2_PWM NULL #define AIO3_PIN PINA3 #define AIO3_RPORT PINA #define AIO3_WPORT PORTA #define AIO3_DDR DDRA #define AIO3_PWM NULL #define AIO4_PIN PINA4 #define AIO4_RPORT PINA #define AIO4_WPORT PORTA #define AIO4_DDR DDRA #define AIO4_PWM NULL #define AIO5_PIN PINA5 #define AIO5_RPORT PINA #define AIO5_WPORT PORTA #define AIO5_DDR DDRA #define AIO5_PWM NULL #define AIO6_PIN PINA6 #define AIO6_RPORT PINA #define AIO6_WPORT PORTA #define AIO6_DDR DDRA #define AIO6_PWM NULL #define AIO7_PIN PINA7 #define AIO7_RPORT PINA #define AIO7_WPORT PORTA #define AIO7_DDR DDRA #define AIO7_PWM NULL #undef PA0 #define PA0_PIN PINA0 #define PA0_RPORT PINA #define PA0_WPORT PORTA #define PA0_DDR DDRA #define PA0_PWM NULL #undef PA1 #define PA1_PIN PINA1 #define PA1_RPORT PINA #define PA1_WPORT PORTA #define PA1_DDR DDRA #define PA1_PWM NULL #undef PA2 #define PA2_PIN PINA2 #define PA2_RPORT PINA #define PA2_WPORT PORTA #define PA2_DDR DDRA #define PA2_PWM NULL #undef PA3 #define PA3_PIN PINA3 #define PA3_RPORT PINA #define PA3_WPORT PORTA #define PA3_DDR DDRA #define PA3_PWM NULL #undef PA4 #define PA4_PIN PINA4 #define PA4_RPORT PINA #define PA4_WPORT PORTA #define PA4_DDR DDRA #define PA4_PWM NULL #undef PA5 #define PA5_PIN PINA5 #define PA5_RPORT PINA #define PA5_WPORT PORTA #define PA5_DDR DDRA #define PA5_PWM NULL #undef PA6 #define PA6_PIN PINA6 #define PA6_RPORT PINA #define PA6_WPORT PORTA #define PA6_DDR DDRA #define PA6_PWM NULL #undef PA7 #define PA7_PIN PINA7 #define PA7_RPORT PINA #define PA7_WPORT PORTA #define PA7_DDR DDRA #define PA7_PWM NULL #undef PB0 #define PB0_PIN PINB0 #define PB0_RPORT PINB #define PB0_WPORT PORTB #define PB0_DDR DDRB #define PB0_PWM NULL #undef PB1 #define PB1_PIN PINB1 #define PB1_RPORT PINB #define PB1_WPORT PORTB #define PB1_DDR DDRB #define PB1_PWM NULL #undef PB2 #define PB2_PIN PINB2 #define PB2_RPORT PINB #define PB2_WPORT PORTB #define PB2_DDR DDRB #define PB2_PWM NULL #undef PB3 #define PB3_PIN PINB3 #define PB3_RPORT PINB #define PB3_WPORT PORTB #define PB3_DDR DDRB #define PB3_PWM OCR0A #undef PB4 #define PB4_PIN PINB4 #define PB4_RPORT PINB #define PB4_WPORT PORTB #define PB4_DDR DDRB #define PB4_PWM OCR0B #undef PB5 #define PB5_PIN PINB5 #define PB5_RPORT PINB #define PB5_WPORT PORTB #define PB5_DDR DDRB #define PB5_PWM NULL #undef PB6 #define PB6_PIN PINB6 #define PB6_RPORT PINB #define PB6_WPORT PORTB #define PB6_DDR DDRB #define PB6_PWM NULL #undef PB7 #define PB7_PIN PINB7 #define PB7_RPORT PINB #define PB7_WPORT PORTB #define PB7_DDR DDRB #define PB7_PWM NULL #undef PC0 #define PC0_PIN PINC0 #define PC0_RPORT PINC #define PC0_WPORT PORTC #define PC0_DDR DDRC #define PC0_PWM NULL #undef PC1 #define PC1_PIN PINC1 #define PC1_RPORT PINC #define PC1_WPORT PORTC #define PC1_DDR DDRC #define PC1_PWM NULL #undef PC2 #define PC2_PIN PINC2 #define PC2_RPORT PINC #define PC2_WPORT PORTC #define PC2_DDR DDRC #define PC2_PWM NULL #undef PC3 #define PC3_PIN PINC3 #define PC3_RPORT PINC #define PC3_WPORT PORTC #define PC3_DDR DDRC #define PC3_PWM NULL #undef PC4 #define PC4_PIN PINC4 #define PC4_RPORT PINC #define PC4_WPORT PORTC #define PC4_DDR DDRC #define PC4_PWM NULL #undef PC5 #define PC5_PIN PINC5 #define PC5_RPORT PINC #define PC5_WPORT PORTC #define PC5_DDR DDRC #define PC5_PWM NULL #undef PC6 #define PC6_PIN PINC6 #define PC6_RPORT PINC #define PC6_WPORT PORTC #define PC6_DDR DDRC #define PC6_PWM NULL #undef PC7 #define PC7_PIN PINC7 #define PC7_RPORT PINC #define PC7_WPORT PORTC #define PC7_DDR DDRC #define PC7_PWM NULL #undef PD0 #define PD0_PIN PIND0 #define PD0_RPORT PIND #define PD0_WPORT PORTD #define PD0_DDR DDRD #define PD0_PWM NULL #undef PD1 #define PD1_PIN PIND1 #define PD1_RPORT PIND #define PD1_WPORT PORTD #define PD1_DDR DDRD #define PD1_PWM NULL #undef PD2 #define PD2_PIN PIND2 #define PD2_RPORT PIND #define PD2_WPORT PORTD #define PD2_DDR DDRD #define PD2_PWM NULL #undef PD3 #define PD3_PIN PIND3 #define PD3_RPORT PIND #define PD3_WPORT PORTD #define PD3_DDR DDRD #define PD3_PWM NULL #undef PD4 #define PD4_PIN PIND4 #define PD4_RPORT PIND #define PD4_WPORT PORTD #define PD4_DDR DDRD #define PD4_PWM NULL #undef PD5 #define PD5_PIN PIND5 #define PD5_RPORT PIND #define PD5_WPORT PORTD #define PD5_DDR DDRD #define PD5_PWM NULL #undef PD6 #define PD6_PIN PIND6 #define PD6_RPORT PIND #define PD6_WPORT PORTD #define PD6_DDR DDRD #define PD6_PWM OCR2B #undef PD7 #define PD7_PIN PIND7 #define PD7_RPORT PIND #define PD7_WPORT PORTD #define PD7_DDR DDRD #define PD7_PWM OCR2A #endif /* _AVR_ATmega{644,644P,644PA}__ */ #if defined (__AVR_ATmega1280__) || defined (__AVR_ATmega2560__) // UART #define RXD DIO0 #define TXD DIO1 // SPI #define SCK DIO52 #define MISO DIO50 #define MOSI DIO51 #define SS DIO53 // TWI (I2C) #define SCL DIO21 #define SDA DIO20 // timers and PWM #define OC0A DIO13 #define OC0B DIO4 #define OC1A DIO11 #define OC1B DIO12 #define OC2A DIO10 #define OC2B DIO9 #define OC3A DIO5 #define OC3B DIO2 #define OC3C DIO3 #define OC4A DIO6 #define OC4B DIO7 #define OC4C DIO8 #define OC5A DIO46 #define OC5B DIO45 #define OC5C DIO44 // change for your board #define DEBUG_LED DIO21 /* pins */ #define DIO0_PIN PINE0 #define DIO0_RPORT PINE #define DIO0_WPORT PORTE #define DIO0_DDR DDRE #define DIO0_PWM NULL #define DIO1_PIN PINE1 #define DIO1_RPORT PINE #define DIO1_WPORT PORTE #define DIO1_DDR DDRE #define DIO1_PWM NULL #define DIO2_PIN PINE4 #define DIO2_RPORT PINE #define DIO2_WPORT PORTE #define DIO2_DDR DDRE #define DIO2_PWM &OCR3BL #define DIO3_PIN PINE5 #define DIO3_RPORT PINE #define DIO3_WPORT PORTE #define DIO3_DDR DDRE #define DIO3_PWM &OCR3CL #define DIO4_PIN PING5 #define DIO4_RPORT PING #define DIO4_WPORT PORTG #define DIO4_DDR DDRG #define DIO4_PWM &OCR0B #define DIO5_PIN PINE3 #define DIO5_RPORT PINE #define DIO5_WPORT PORTE #define DIO5_DDR DDRE #define DIO5_PWM &OCR3AL #define DIO6_PIN PINH3 #define DIO6_RPORT PINH #define DIO6_WPORT PORTH #define DIO6_DDR DDRH #define DIO6_PWM &OCR4AL #define DIO7_PIN PINH4 #define DIO7_RPORT PINH #define DIO7_WPORT PORTH #define DIO7_DDR DDRH #define DIO7_PWM &OCR4BL #define DIO8_PIN PINH5 #define DIO8_RPORT PINH #define DIO8_WPORT PORTH #define DIO8_DDR DDRH #define DIO8_PWM &OCR4CL #define DIO9_PIN PINH6 #define DIO9_RPORT PINH #define DIO9_WPORT PORTH #define DIO9_DDR DDRH #define DIO9_PWM &OCR2B #define DIO10_PIN PINB4 #define DIO10_RPORT PINB #define DIO10_WPORT PORTB #define DIO10_DDR DDRB #define DIO10_PWM &OCR2A #define DIO11_PIN PINB5 #define DIO11_RPORT PINB #define DIO11_WPORT PORTB #define DIO11_DDR DDRB #define DIO11_PWM NULL #define DIO12_PIN PINB6 #define DIO12_RPORT PINB #define DIO12_WPORT PORTB #define DIO12_DDR DDRB #define DIO12_PWM NULL #define DIO13_PIN PINB7 #define DIO13_RPORT PINB #define DIO13_WPORT PORTB #define DIO13_DDR DDRB #define DIO13_PWM &OCR0A #define DIO14_PIN PINJ1 #define DIO14_RPORT PINJ #define DIO14_WPORT PORTJ #define DIO14_DDR DDRJ #define DIO14_PWM NULL #define DIO15_PIN PINJ0 #define DIO15_RPORT PINJ #define DIO15_WPORT PORTJ #define DIO15_DDR DDRJ #define DIO15_PWM NULL #define DIO16_PIN PINH1 #define DIO16_RPORT PINH #define DIO16_WPORT PORTH #define DIO16_DDR DDRH #define DIO16_PWM NULL #define DIO17_PIN PINH0 #define DIO17_RPORT PINH #define DIO17_WPORT PORTH #define DIO17_DDR DDRH #define DIO17_PWM NULL #define DIO18_PIN PIND3 #define DIO18_RPORT PIND #define DIO18_WPORT PORTD #define DIO18_DDR DDRD #define DIO18_PWM NULL #define DIO19_PIN PIND2 #define DIO19_RPORT PIND #define DIO19_WPORT PORTD #define DIO19_DDR DDRD #define DIO19_PWM NULL #define DIO20_PIN PIND1 #define DIO20_RPORT PIND #define DIO20_WPORT PORTD #define DIO20_DDR DDRD #define DIO20_PWM NULL #define DIO21_PIN PIND0 #define DIO21_RPORT PIND #define DIO21_WPORT PORTD #define DIO21_DDR DDRD #define DIO21_PWM NULL #define DIO22_PIN PINA0 #define DIO22_RPORT PINA #define DIO22_WPORT PORTA #define DIO22_DDR DDRA #define DIO22_PWM NULL #define DIO23_PIN PINA1 #define DIO23_RPORT PINA #define DIO23_WPORT PORTA #define DIO23_DDR DDRA #define DIO23_PWM NULL #define DIO24_PIN PINA2 #define DIO24_RPORT PINA #define DIO24_WPORT PORTA #define DIO24_DDR DDRA #define DIO24_PWM NULL #define DIO25_PIN PINA3 #define DIO25_RPORT PINA #define DIO25_WPORT PORTA #define DIO25_DDR DDRA #define DIO25_PWM NULL #define DIO26_PIN PINA4 #define DIO26_RPORT PINA #define DIO26_WPORT PORTA #define DIO26_DDR DDRA #define DIO26_PWM NULL #define DIO27_PIN PINA5 #define DIO27_RPORT PINA #define DIO27_WPORT PORTA #define DIO27_DDR DDRA #define DIO27_PWM NULL #define DIO28_PIN PINA6 #define DIO28_RPORT PINA #define DIO28_WPORT PORTA #define DIO28_DDR DDRA #define DIO28_PWM NULL #define DIO29_PIN PINA7 #define DIO29_RPORT PINA #define DIO29_WPORT PORTA #define DIO29_DDR DDRA #define DIO29_PWM NULL #define DIO30_PIN PINC7 #define DIO30_RPORT PINC #define DIO30_WPORT PORTC #define DIO30_DDR DDRC #define DIO30_PWM NULL #define DIO31_PIN PINC6 #define DIO31_RPORT PINC #define DIO31_WPORT PORTC #define DIO31_DDR DDRC #define DIO31_PWM NULL #define DIO32_PIN PINC5 #define DIO32_RPORT PINC #define DIO32_WPORT PORTC #define DIO32_DDR DDRC #define DIO32_PWM NULL #define DIO33_PIN PINC4 #define DIO33_RPORT PINC #define DIO33_WPORT PORTC #define DIO33_DDR DDRC #define DIO33_PWM NULL #define DIO34_PIN PINC3 #define DIO34_RPORT PINC #define DIO34_WPORT PORTC #define DIO34_DDR DDRC #define DIO34_PWM NULL #define DIO35_PIN PINC2 #define DIO35_RPORT PINC #define DIO35_WPORT PORTC #define DIO35_DDR DDRC #define DIO35_PWM NULL #define DIO36_PIN PINC1 #define DIO36_RPORT PINC #define DIO36_WPORT PORTC #define DIO36_DDR DDRC #define DIO36_PWM NULL #define DIO37_PIN PINC0 #define DIO37_RPORT PINC #define DIO37_WPORT PORTC #define DIO37_DDR DDRC #define DIO37_PWM NULL #define DIO38_PIN PIND7 #define DIO38_RPORT PIND #define DIO38_WPORT PORTD #define DIO38_DDR DDRD #define DIO38_PWM NULL #define DIO39_PIN PING2 #define DIO39_RPORT PING #define DIO39_WPORT PORTG #define DIO39_DDR DDRG #define DIO39_PWM NULL #define DIO40_PIN PING1 #define DIO40_RPORT PING #define DIO40_WPORT PORTG #define DIO40_DDR DDRG #define DIO40_PWM NULL #define DIO41_PIN PING0 #define DIO41_RPORT PING #define DIO41_WPORT PORTG #define DIO41_DDR DDRG #define DIO41_PWM NULL #define DIO42_PIN PINL7 #define DIO42_RPORT PINL #define DIO42_WPORT PORTL #define DIO42_DDR DDRL #define DIO42_PWM NULL #define DIO43_PIN PINL6 #define DIO43_RPORT PINL #define DIO43_WPORT PORTL #define DIO43_DDR DDRL #define DIO43_PWM NULL #define DIO44_PIN PINL5 #define DIO44_RPORT PINL #define DIO44_WPORT PORTL #define DIO44_DDR DDRL #define DIO44_PWM &OCR5CL #define DIO45_PIN PINL4 #define DIO45_RPORT PINL #define DIO45_WPORT PORTL #define DIO45_DDR DDRL #define DIO45_PWM &OCR5BL #define DIO46_PIN PINL3 #define DIO46_RPORT PINL #define DIO46_WPORT PORTL #define DIO46_DDR DDRL #define DIO46_PWM &OCR5AL #define DIO47_PIN PINL2 #define DIO47_RPORT PINL #define DIO47_WPORT PORTL #define DIO47_DDR DDRL #define DIO47_PWM NULL #define DIO48_PIN PINL1 #define DIO48_RPORT PINL #define DIO48_WPORT PORTL #define DIO48_DDR DDRL #define DIO48_PWM NULL #define DIO49_PIN PINL0 #define DIO49_RPORT PINL #define DIO49_WPORT PORTL #define DIO49_DDR DDRL #define DIO49_PWM NULL #define DIO50_PIN PINB3 #define DIO50_RPORT PINB #define DIO50_WPORT PORTB #define DIO50_DDR DDRB #define DIO50_PWM NULL #define DIO51_PIN PINB2 #define DIO51_RPORT PINB #define DIO51_WPORT PORTB #define DIO51_DDR DDRB #define DIO51_PWM NULL #define DIO52_PIN PINB1 #define DIO52_RPORT PINB #define DIO52_WPORT PORTB #define DIO52_DDR DDRB #define DIO52_PWM NULL #define DIO53_PIN PINB0 #define DIO53_RPORT PINB #define DIO53_WPORT PORTB #define DIO53_DDR DDRB #define DIO53_PWM NULL #define DIO54_PIN PINF0 #define DIO54_RPORT PINF #define DIO54_WPORT PORTF #define DIO54_DDR DDRF #define DIO54_PWM NULL #define DIO55_PIN PINF1 #define DIO55_RPORT PINF #define DIO55_WPORT PORTF #define DIO55_DDR DDRF #define DIO55_PWM NULL #define DIO56_PIN PINF2 #define DIO56_RPORT PINF #define DIO56_WPORT PORTF #define DIO56_DDR DDRF #define DIO56_PWM NULL #define DIO57_PIN PINF3 #define DIO57_RPORT PINF #define DIO57_WPORT PORTF #define DIO57_DDR DDRF #define DIO57_PWM NULL #define DIO58_PIN PINF4 #define DIO58_RPORT PINF #define DIO58_WPORT PORTF #define DIO58_DDR DDRF #define DIO58_PWM NULL #define DIO59_PIN PINF5 #define DIO59_RPORT PINF #define DIO59_WPORT PORTF #define DIO59_DDR DDRF #define DIO59_PWM NULL #define DIO60_PIN PINF6 #define DIO60_RPORT PINF #define DIO60_WPORT PORTF #define DIO60_DDR DDRF #define DIO60_PWM NULL #define DIO61_PIN PINF7 #define DIO61_RPORT PINF #define DIO61_WPORT PORTF #define DIO61_DDR DDRF #define DIO61_PWM NULL #define DIO62_PIN PINK0 #define DIO62_RPORT PINK #define DIO62_WPORT PORTK #define DIO62_DDR DDRK #define DIO62_PWM NULL #define DIO63_PIN PINK1 #define DIO63_RPORT PINK #define DIO63_WPORT PORTK #define DIO63_DDR DDRK #define DIO63_PWM NULL #define DIO64_PIN PINK2 #define DIO64_RPORT PINK #define DIO64_WPORT PORTK #define DIO64_DDR DDRK #define DIO64_PWM NULL #define DIO65_PIN PINK3 #define DIO65_RPORT PINK #define DIO65_WPORT PORTK #define DIO65_DDR DDRK #define DIO65_PWM NULL #define DIO66_PIN PINK4 #define DIO66_RPORT PINK #define DIO66_WPORT PORTK #define DIO66_DDR DDRK #define DIO66_PWM NULL #define DIO67_PIN PINK5 #define DIO67_RPORT PINK #define DIO67_WPORT PORTK #define DIO67_DDR DDRK #define DIO67_PWM NULL #define DIO68_PIN PINK6 #define DIO68_RPORT PINK #define DIO68_WPORT PORTK #define DIO68_DDR DDRK #define DIO68_PWM NULL #define DIO69_PIN PINK7 #define DIO69_RPORT PINK #define DIO69_WPORT PORTK #define DIO69_DDR DDRK #define DIO69_PWM NULL #define DIO70_PIN PING4 #define DIO70_RPORT PING #define DIO70_WPORT PORTG #define DIO70_DDR DDRG #define DIO70_PWM NULL #define DIO71_PIN PING3 #define DIO71_RPORT PING #define DIO71_WPORT PORTG #define DIO71_DDR DDRG #define DIO71_PWM NULL #define DIO72_PIN PINJ2 #define DIO72_RPORT PINJ #define DIO72_WPORT PORTJ #define DIO72_DDR DDRJ #define DIO72_PWM NULL #define DIO73_PIN PINJ3 #define DIO73_RPORT PINJ #define DIO73_WPORT PORTJ #define DIO73_DDR DDRJ #define DIO73_PWM NULL #define DIO74_PIN PINJ7 #define DIO74_RPORT PINJ #define DIO74_WPORT PORTJ #define DIO74_DDR DDRJ #define DIO74_PWM NULL #define DIO75_PIN PINJ4 #define DIO75_RPORT PINJ #define DIO75_WPORT PORTJ #define DIO75_DDR DDRJ #define DIO75_PWM NULL #define DIO76_PIN PINJ5 #define DIO76_RPORT PINJ #define DIO76_WPORT PORTJ #define DIO76_DDR DDRJ #define DIO76_PWM NULL #define DIO77_PIN PINJ6 #define DIO77_RPORT PINJ #define DIO77_WPORT PORTJ #define DIO77_DDR DDRJ #define DIO77_PWM NULL #define DIO78_PIN PINE2 #define DIO78_RPORT PINE #define DIO78_WPORT PORTE #define DIO78_DDR DDRE #define DIO78_PWM NULL #define DIO79_PIN PINE6 #define DIO79_RPORT PINE #define DIO79_WPORT PORTE #define DIO79_DDR DDRE #define DIO79_PWM NULL #define DIO80_PIN PINE7 #define DIO80_RPORT PINE #define DIO80_WPORT PORTE #define DIO80_DDR DDRE #define DIO80_PWM NULL #define DIO81_PIN PIND4 #define DIO81_RPORT PIND #define DIO81_WPORT PORTD #define DIO81_DDR DDRD #define DIO81_PWM NULL #define DIO82_PIN PIND5 #define DIO82_RPORT PIND #define DIO82_WPORT PORTD #define DIO82_DDR DDRD #define DIO82_PWM NULL #define DIO83_PIN PIND6 #define DIO83_RPORT PIND #define DIO83_WPORT PORTD #define DIO83_DDR DDRD #define DIO83_PWM NULL #define DIO84_PIN PINH2 #define DIO84_RPORT PINH #define DIO84_WPORT PORTH #define DIO84_DDR DDRH #define DIO84_PWM NULL #define DIO85_PIN PINH7 #define DIO85_RPORT PINH #define DIO85_WPORT PORTH #define DIO85_DDR DDRH #define DIO85_PWM NULL #undef PA0 #define PA0_PIN PINA0 #define PA0_RPORT PINA #define PA0_WPORT PORTA #define PA0_DDR DDRA #define PA0_PWM NULL #undef PA1 #define PA1_PIN PINA1 #define PA1_RPORT PINA #define PA1_WPORT PORTA #define PA1_DDR DDRA #define PA1_PWM NULL #undef PA2 #define PA2_PIN PINA2 #define PA2_RPORT PINA #define PA2_WPORT PORTA #define PA2_DDR DDRA #define PA2_PWM NULL #undef PA3 #define PA3_PIN PINA3 #define PA3_RPORT PINA #define PA3_WPORT PORTA #define PA3_DDR DDRA #define PA3_PWM NULL #undef PA4 #define PA4_PIN PINA4 #define PA4_RPORT PINA #define PA4_WPORT PORTA #define PA4_DDR DDRA #define PA4_PWM NULL #undef PA5 #define PA5_PIN PINA5 #define PA5_RPORT PINA #define PA5_WPORT PORTA #define PA5_DDR DDRA #define PA5_PWM NULL #undef PA6 #define PA6_PIN PINA6 #define PA6_RPORT PINA #define PA6_WPORT PORTA #define PA6_DDR DDRA #define PA6_PWM NULL #undef PA7 #define PA7_PIN PINA7 #define PA7_RPORT PINA #define PA7_WPORT PORTA #define PA7_DDR DDRA #define PA7_PWM NULL #undef PB0 #define PB0_PIN PINB0 #define PB0_RPORT PINB #define PB0_WPORT PORTB #define PB0_DDR DDRB #define PB0_PWM NULL #undef PB1 #define PB1_PIN PINB1 #define PB1_RPORT PINB #define PB1_WPORT PORTB #define PB1_DDR DDRB #define PB1_PWM NULL #undef PB2 #define PB2_PIN PINB2 #define PB2_RPORT PINB #define PB2_WPORT PORTB #define PB2_DDR DDRB #define PB2_PWM NULL #undef PB3 #define PB3_PIN PINB3 #define PB3_RPORT PINB #define PB3_WPORT PORTB #define PB3_DDR DDRB #define PB3_PWM NULL #undef PB4 #define PB4_PIN PINB4 #define PB4_RPORT PINB #define PB4_WPORT PORTB #define PB4_DDR DDRB #define PB4_PWM &OCR2A #undef PB5 #define PB5_PIN PINB5 #define PB5_RPORT PINB #define PB5_WPORT PORTB #define PB5_DDR DDRB #define PB5_PWM NULL #undef PB6 #define PB6_PIN PINB6 #define PB6_RPORT PINB #define PB6_WPORT PORTB #define PB6_DDR DDRB #define PB6_PWM NULL #undef PB7 #define PB7_PIN PINB7 #define PB7_RPORT PINB #define PB7_WPORT PORTB #define PB7_DDR DDRB #define PB7_PWM &OCR0A #undef PC0 #define PC0_PIN PINC0 #define PC0_RPORT PINC #define PC0_WPORT PORTC #define PC0_DDR DDRC #define PC0_PWM NULL #undef PC1 #define PC1_PIN PINC1 #define PC1_RPORT PINC #define PC1_WPORT PORTC #define PC1_DDR DDRC #define PC1_PWM NULL #undef PC2 #define PC2_PIN PINC2 #define PC2_RPORT PINC #define PC2_WPORT PORTC #define PC2_DDR DDRC #define PC2_PWM NULL #undef PC3 #define PC3_PIN PINC3 #define PC3_RPORT PINC #define PC3_WPORT PORTC #define PC3_DDR DDRC #define PC3_PWM NULL #undef PC4 #define PC4_PIN PINC4 #define PC4_RPORT PINC #define PC4_WPORT PORTC #define PC4_DDR DDRC #define PC4_PWM NULL #undef PC5 #define PC5_PIN PINC5 #define PC5_RPORT PINC #define PC5_WPORT PORTC #define PC5_DDR DDRC #define PC5_PWM NULL #undef PC6 #define PC6_PIN PINC6 #define PC6_RPORT PINC #define PC6_WPORT PORTC #define PC6_DDR DDRC #define PC6_PWM NULL #undef PC7 #define PC7_PIN PINC7 #define PC7_RPORT PINC #define PC7_WPORT PORTC #define PC7_DDR DDRC #define PC7_PWM NULL #undef PD0 #define PD0_PIN PIND0 #define PD0_RPORT PIND #define PD0_WPORT PORTD #define PD0_DDR DDRD #define PD0_PWM NULL #undef PD1 #define PD1_PIN PIND1 #define PD1_RPORT PIND #define PD1_WPORT PORTD #define PD1_DDR DDRD #define PD1_PWM NULL #undef PD2 #define PD2_PIN PIND2 #define PD2_RPORT PIND #define PD2_WPORT PORTD #define PD2_DDR DDRD #define PD2_PWM NULL #undef PD3 #define PD3_PIN PIND3 #define PD3_RPORT PIND #define PD3_WPORT PORTD #define PD3_DDR DDRD #define PD3_PWM NULL #undef PD4 #define PD4_PIN PIND4 #define PD4_RPORT PIND #define PD4_WPORT PORTD #define PD4_DDR DDRD #define PD4_PWM NULL #undef PD5 #define PD5_PIN PIND5 #define PD5_RPORT PIND #define PD5_WPORT PORTD #define PD5_DDR DDRD #define PD5_PWM NULL #undef PD6 #define PD6_PIN PIND6 #define PD6_RPORT PIND #define PD6_WPORT PORTD #define PD6_DDR DDRD #define PD6_PWM NULL #undef PD7 #define PD7_PIN PIND7 #define PD7_RPORT PIND #define PD7_WPORT PORTD #define PD7_DDR DDRD #define PD7_PWM NULL #undef PE0 #define PE0_PIN PINE0 #define PE0_RPORT PINE #define PE0_WPORT PORTE #define PE0_DDR DDRE #define PE0_PWM NULL #undef PE1 #define PE1_PIN PINE1 #define PE1_RPORT PINE #define PE1_WPORT PORTE #define PE1_DDR DDRE #define PE1_PWM NULL #undef PE2 #define PE2_PIN PINE2 #define PE2_RPORT PINE #define PE2_WPORT PORTE #define PE2_DDR DDRE #define PE2_PWM NULL #undef PE3 #define PE3_PIN PINE3 #define PE3_RPORT PINE #define PE3_WPORT PORTE #define PE3_DDR DDRE #define PE3_PWM &OCR3AL #undef PE4 #define PE4_PIN PINE4 #define PE4_RPORT PINE #define PE4_WPORT PORTE #define PE4_DDR DDRE #define PE4_PWM &OCR3BL #undef PE5 #define PE5_PIN PINE5 #define PE5_RPORT PINE #define PE5_WPORT PORTE #define PE5_DDR DDRE #define PE5_PWM &OCR3CL #undef PE6 #define PE6_PIN PINE6 #define PE6_RPORT PINE #define PE6_WPORT PORTE #define PE6_DDR DDRE #define PE6_PWM NULL #undef PE7 #define PE7_PIN PINE7 #define PE7_RPORT PINE #define PE7_WPORT PORTE #define PE7_DDR DDRE #define PE7_PWM NULL #undef PF0 #define PF0_PIN PINF0 #define PF0_RPORT PINF #define PF0_WPORT PORTF #define PF0_DDR DDRF #define PF0_PWM NULL #undef PF1 #define PF1_PIN PINF1 #define PF1_RPORT PINF #define PF1_WPORT PORTF #define PF1_DDR DDRF #define PF1_PWM NULL #undef PF2 #define PF2_PIN PINF2 #define PF2_RPORT PINF #define PF2_WPORT PORTF #define PF2_DDR DDRF #define PF2_PWM NULL #undef PF3 #define PF3_PIN PINF3 #define PF3_RPORT PINF #define PF3_WPORT PORTF #define PF3_DDR DDRF #define PF3_PWM NULL #undef PF4 #define PF4_PIN PINF4 #define PF4_RPORT PINF #define PF4_WPORT PORTF #define PF4_DDR DDRF #define PF4_PWM NULL #undef PF5 #define PF5_PIN PINF5 #define PF5_RPORT PINF #define PF5_WPORT PORTF #define PF5_DDR DDRF #define PF5_PWM NULL #undef PF6 #define PF6_PIN PINF6 #define PF6_RPORT PINF #define PF6_WPORT PORTF #define PF6_DDR DDRF #define PF6_PWM NULL #undef PF7 #define PF7_PIN PINF7 #define PF7_RPORT PINF #define PF7_WPORT PORTF #define PF7_DDR DDRF #define PF7_PWM NULL #undef PG0 #define PG0_PIN PING0 #define PG0_RPORT PING #define PG0_WPORT PORTG #define PG0_DDR DDRG #define PG0_PWM NULL #undef PG1 #define PG1_PIN PING1 #define PG1_RPORT PING #define PG1_WPORT PORTG #define PG1_DDR DDRG #define PG1_PWM NULL #undef PG2 #define PG2_PIN PING2 #define PG2_RPORT PING #define PG2_WPORT PORTG #define PG2_DDR DDRG #define PG2_PWM NULL #undef PG3 #define PG3_PIN PING3 #define PG3_RPORT PING #define PG3_WPORT PORTG #define PG3_DDR DDRG #define PG3_PWM NULL #undef PG4 #define PG4_PIN PING4 #define PG4_RPORT PING #define PG4_WPORT PORTG #define PG4_DDR DDRG #define PG4_PWM NULL #undef PG5 #define PG5_PIN PING5 #define PG5_RPORT PING #define PG5_WPORT PORTG #define PG5_DDR DDRG #define PG5_PWM &OCR0B #undef PG6 #define PG6_PIN PING6 #define PG6_RPORT PING #define PG6_WPORT PORTG #define PG6_DDR DDRG #define PG6_PWM NULL #undef PG7 #define PG7_PIN PING7 #define PG7_RPORT PING #define PG7_WPORT PORTG #define PG7_DDR DDRG #define PG7_PWM NULL #undef PH0 #define PH0_PIN PINH0 #define PH0_RPORT PINH #define PH0_WPORT PORTH #define PH0_DDR DDRH #define PH0_PWM NULL #undef PH1 #define PH1_PIN PINH1 #define PH1_RPORT PINH #define PH1_WPORT PORTH #define PH1_DDR DDRH #define PH1_PWM NULL #undef PH2 #define PH2_PIN PINH2 #define PH2_RPORT PINH #define PH2_WPORT PORTH #define PH2_DDR DDRH #define PH2_PWM NULL #undef PH3 #define PH3_PIN PINH3 #define PH3_RPORT PINH #define PH3_WPORT PORTH #define PH3_DDR DDRH #define PH3_PWM &OCR4AL #undef PH4 #define PH4_PIN PINH4 #define PH4_RPORT PINH #define PH4_WPORT PORTH #define PH4_DDR DDRH #define PH4_PWM &OCR4BL #undef PH5 #define PH5_PIN PINH5 #define PH5_RPORT PINH #define PH5_WPORT PORTH #define PH5_DDR DDRH #define PH5_PWM &OCR4CL #undef PH6 #define PH6_PIN PINH6 #define PH6_RPORT PINH #define PH6_WPORT PORTH #define PH6_DDR DDRH #define PH6_PWM &OCR2B #undef PH7 #define PH7_PIN PINH7 #define PH7_RPORT PINH #define PH7_WPORT PORTH #define PH7_DDR DDRH #define PH7_PWM NULL #undef PJ0 #define PJ0_PIN PINJ0 #define PJ0_RPORT PINJ #define PJ0_WPORT PORTJ #define PJ0_DDR DDRJ #define PJ0_PWM NULL #undef PJ1 #define PJ1_PIN PINJ1 #define PJ1_RPORT PINJ #define PJ1_WPORT PORTJ #define PJ1_DDR DDRJ #define PJ1_PWM NULL #undef PJ2 #define PJ2_PIN PINJ2 #define PJ2_RPORT PINJ #define PJ2_WPORT PORTJ #define PJ2_DDR DDRJ #define PJ2_PWM NULL #undef PJ3 #define PJ3_PIN PINJ3 #define PJ3_RPORT PINJ #define PJ3_WPORT PORTJ #define PJ3_DDR DDRJ #define PJ3_PWM NULL #undef PJ4 #define PJ4_PIN PINJ4 #define PJ4_RPORT PINJ #define PJ4_WPORT PORTJ #define PJ4_DDR DDRJ #define PJ4_PWM NULL #undef PJ5 #define PJ5_PIN PINJ5 #define PJ5_RPORT PINJ #define PJ5_WPORT PORTJ #define PJ5_DDR DDRJ #define PJ5_PWM NULL #undef PJ6 #define PJ6_PIN PINJ6 #define PJ6_RPORT PINJ #define PJ6_WPORT PORTJ #define PJ6_DDR DDRJ #define PJ6_PWM NULL #undef PJ7 #define PJ7_PIN PINJ7 #define PJ7_RPORT PINJ #define PJ7_WPORT PORTJ #define PJ7_DDR DDRJ #define PJ7_PWM NULL #undef PK0 #define PK0_PIN PINK0 #define PK0_RPORT PINK #define PK0_WPORT PORTK #define PK0_DDR DDRK #define PK0_PWM NULL #undef PK1 #define PK1_PIN PINK1 #define PK1_RPORT PINK #define PK1_WPORT PORTK #define PK1_DDR DDRK #define PK1_PWM NULL #undef PK2 #define PK2_PIN PINK2 #define PK2_RPORT PINK #define PK2_WPORT PORTK #define PK2_DDR DDRK #define PK2_PWM NULL #undef PK3 #define PK3_PIN PINK3 #define PK3_RPORT PINK #define PK3_WPORT PORTK #define PK3_DDR DDRK #define PK3_PWM NULL #undef PK4 #define PK4_PIN PINK4 #define PK4_RPORT PINK #define PK4_WPORT PORTK #define PK4_DDR DDRK #define PK4_PWM NULL #undef PK5 #define PK5_PIN PINK5 #define PK5_RPORT PINK #define PK5_WPORT PORTK #define PK5_DDR DDRK #define PK5_PWM NULL #undef PK6 #define PK6_PIN PINK6 #define PK6_RPORT PINK #define PK6_WPORT PORTK #define PK6_DDR DDRK #define PK6_PWM NULL #undef PK7 #define PK7_PIN PINK7 #define PK7_RPORT PINK #define PK7_WPORT PORTK #define PK7_DDR DDRK #define PK7_PWM NULL #undef PL0 #define PL0_PIN PINL0 #define PL0_RPORT PINL #define PL0_WPORT PORTL #define PL0_DDR DDRL #define PL0_PWM NULL #undef PL1 #define PL1_PIN PINL1 #define PL1_RPORT PINL #define PL1_WPORT PORTL #define PL1_DDR DDRL #define PL1_PWM NULL #undef PL2 #define PL2_PIN PINL2 #define PL2_RPORT PINL #define PL2_WPORT PORTL #define PL2_DDR DDRL #define PL2_PWM NULL #undef PL3 #define PL3_PIN PINL3 #define PL3_RPORT PINL #define PL3_WPORT PORTL #define PL3_DDR DDRL #define PL3_PWM &OCR5AL #undef PL4 #define PL4_PIN PINL4 #define PL4_RPORT PINL #define PL4_WPORT PORTL #define PL4_DDR DDRL #define PL4_PWM &OCR5BL #undef PL5 #define PL5_PIN PINL5 #define PL5_RPORT PINL #define PL5_WPORT PORTL #define PL5_DDR DDRL #define PL5_PWM &OCR5CL #undef PL6 #define PL6_PIN PINL6 #define PL6_RPORT PINL #define PL6_WPORT PORTL #define PL6_DDR DDRL #define PL6_PWM NULL #undef PL7 #define PL7_PIN PINL7 #define PL7_RPORT PINL #define PL7_WPORT PORTL #define PL7_DDR DDRL #define PL7_PWM NULL #endif #if defined (__AVR_AT90USB1287__) || defined (__AVR_AT90USB1286__) || defined (__AVR_AT90USB646__) || defined(__AVR_AT90USB647__) // SPI #define SCK DIO9 #define MISO DIO11 #define MOSI DIO10 #define SS DIO8 // change for your board #define DEBUG_LED DIO31 /* led D5 red */ /* pins */ //#define AT90USBxx_TEENSYPP_ASSIGNMENTS // Use Teensy++ 2.0 assignments #ifndef AT90USBxx_TEENSYPP_ASSIGNMENTS // Use traditional Marlin pin assignments #define DIO0_PIN PINA0 #define DIO0_RPORT PINA #define DIO0_WPORT PORTA #define DIO0_PWM NULL #define DIO0_DDR DDRA #define DIO1_PIN PINA1 #define DIO1_RPORT PINA #define DIO1_WPORT PORTA #define DIO1_PWM NULL #define DIO1_DDR DDRA #define DIO2_PIN PINA2 #define DIO2_RPORT PINA #define DIO2_WPORT PORTA #define DIO2_PWM NULL #define DIO2_DDR DDRA #define DIO3_PIN PINA3 #define DIO3_RPORT PINA #define DIO3_WPORT PORTA #define DIO3_PWM NULL #define DIO3_DDR DDRA #define DIO4_PIN PINA4 #define DIO4_RPORT PINA #define DIO4_WPORT PORTA #define DIO4_PWM NULL #define DIO4_DDR DDRA #define DIO5_PIN PINA5 #define DIO5_RPORT PINA #define DIO5_WPORT PORTA #define DIO5_PWM NULL #define DIO5_DDR DDRA #define DIO6_PIN PINA6 #define DIO6_RPORT PINA #define DIO6_WPORT PORTA #define DIO6_PWM NULL #define DIO6_DDR DDRA #define DIO7_PIN PINA7 #define DIO7_RPORT PINA #define DIO7_WPORT PORTA #define DIO7_PWM NULL #define DIO7_DDR DDRA #define DIO8_PIN PINB0 #define DIO8_RPORT PINB #define DIO8_WPORT PORTB #define DIO8_PWM NULL #define DIO8_DDR DDRB #define DIO9_PIN PINB1 #define DIO9_RPORT PINB #define DIO9_WPORT PORTB #define DIO9_PWM NULL #define DIO9_DDR DDRB #define DIO10_PIN PINB2 #define DIO10_RPORT PINB #define DIO10_WPORT PORTB #define DIO10_PWM NULL #define DIO10_DDR DDRB #define DIO11_PIN PINB3 #define DIO11_RPORT PINB #define DIO11_WPORT PORTB #define DIO11_PWM NULL #define DIO11_DDR DDRB #define DIO12_PIN PINB4 #define DIO12_RPORT PINB #define DIO12_WPORT PORTB #define DIO12_PWM NULL #define DIO12_DDR DDRB #define DIO13_PIN PINB5 #define DIO13_RPORT PINB #define DIO13_WPORT PORTB #define DIO13_PWM NULL #define DIO13_DDR DDRB #define DIO14_PIN PINB6 #define DIO14_RPORT PINB #define DIO14_WPORT PORTB #define DIO14_PWM NULL #define DIO14_DDR DDRB #define DIO15_PIN PINB7 #define DIO15_RPORT PINB #define DIO15_WPORT PORTB #define DIO15_PWM NULL #define DIO15_DDR DDRB #define DIO16_PIN PINC0 #define DIO16_RPORT PINC #define DIO16_WPORT PORTC #define DIO16_PWM NULL #define DIO16_DDR DDRC #define DIO17_PIN PINC1 #define DIO17_RPORT PINC #define DIO17_WPORT PORTC #define DIO17_PWM NULL #define DIO17_DDR DDRC #define DIO18_PIN PINC2 #define DIO18_RPORT PINC #define DIO18_WPORT PORTC #define DIO18_PWM NULL #define DIO18_DDR DDRC #define DIO19_PIN PINC3 #define DIO19_RPORT PINC #define DIO19_WPORT PORTC #define DIO19_PWM NULL #define DIO19_DDR DDRC #define DIO20_PIN PINC4 #define DIO20_RPORT PINC #define DIO20_WPORT PORTC #define DIO20_PWM NULL #define DIO20_DDR DDRC #define DIO21_PIN PINC5 #define DIO21_RPORT PINC #define DIO21_WPORT PORTC #define DIO21_PWM NULL #define DIO21_DDR DDRC #define DIO22_PIN PINC6 #define DIO22_RPORT PINC #define DIO22_WPORT PORTC #define DIO22_PWM NULL #define DIO22_DDR DDRC #define DIO23_PIN PINC7 #define DIO23_RPORT PINC #define DIO23_WPORT PORTC #define DIO23_PWM NULL #define DIO23_DDR DDRC #define DIO24_PIN PIND0 #define DIO24_RPORT PIND #define DIO24_WPORT PORTD #define DIO24_PWM NULL #define DIO24_DDR DDRD #define DIO25_PIN PIND1 #define DIO25_RPORT PIND #define DIO25_WPORT PORTD #define DIO25_PWM NULL #define DIO25_DDR DDRD #define DIO26_PIN PIND2 #define DIO26_RPORT PIND #define DIO26_WPORT PORTD #define DIO26_PWM NULL #define DIO26_DDR DDRD #define DIO27_PIN PIND3 #define DIO27_RPORT PIND #define DIO27_WPORT PORTD #define DIO27_PWM NULL #define DIO27_DDR DDRD #define DIO28_PIN PIND4 #define DIO28_RPORT PIND #define DIO28_WPORT PORTD #define DIO28_PWM NULL #define DIO28_DDR DDRD #define DIO29_PIN PIND5 #define DIO29_RPORT PIND #define DIO29_WPORT PORTD #define DIO29_PWM NULL #define DIO29_DDR DDRD #define DIO30_PIN PIND6 #define DIO30_RPORT PIND #define DIO30_WPORT PORTD #define DIO30_PWM NULL #define DIO30_DDR DDRD #define DIO31_PIN PIND7 #define DIO31_RPORT PIND #define DIO31_WPORT PORTD #define DIO31_PWM NULL #define DIO31_DDR DDRD #define DIO32_PIN PINE0 #define DIO32_RPORT PINE #define DIO32_WPORT PORTE #define DIO32_PWM NULL #define DIO32_DDR DDRE #define DIO33_PIN PINE1 #define DIO33_RPORT PINE #define DIO33_WPORT PORTE #define DIO33_PWM NULL #define DIO33_DDR DDRE #define DIO34_PIN PINE2 #define DIO34_RPORT PINE #define DIO34_WPORT PORTE #define DIO34_PWM NULL #define DIO34_DDR DDRE #define DIO35_PIN PINE3 #define DIO35_RPORT PINE #define DIO35_WPORT PORTE #define DIO35_PWM NULL #define DIO35_DDR DDRE #define DIO36_PIN PINE4 #define DIO36_RPORT PINE #define DIO36_WPORT PORTE #define DIO36_PWM NULL #define DIO36_DDR DDRE #define DIO37_PIN PINE5 #define DIO37_RPORT PINE #define DIO37_WPORT PORTE #define DIO37_PWM NULL #define DIO37_DDR DDRE #define DIO38_PIN PINE6 #define DIO38_RPORT PINE #define DIO38_WPORT PORTE #define DIO38_PWM NULL #define DIO38_DDR DDRE #define DIO39_PIN PINE7 #define DIO39_RPORT PINE #define DIO39_WPORT PORTE #define DIO39_PWM NULL #define DIO39_DDR DDRE #define AIO0_PIN PINF0 #define AIO0_RPORT PINF #define AIO0_WPORT PORTF #define AIO0_PWM NULL #define AIO0_DDR DDRF #define AIO1_PIN PINF1 #define AIO1_RPORT PINF #define AIO1_WPORT PORTF #define AIO1_PWM NULL #define AIO1_DDR DDRF #define AIO2_PIN PINF2 #define AIO2_RPORT PINF #define AIO2_WPORT PORTF #define AIO2_PWM NULL #define AIO2_DDR DDRF #define AIO3_PIN PINF3 #define AIO3_RPORT PINF #define AIO3_WPORT PORTF #define AIO3_PWM NULL #define AIO3_DDR DDRF #define AIO4_PIN PINF4 #define AIO4_RPORT PINF #define AIO4_WPORT PORTF #define AIO4_PWM NULL #define AIO4_DDR DDRF #define AIO5_PIN PINF5 #define AIO5_RPORT PINF #define AIO5_WPORT PORTF #define AIO5_PWM NULL #define AIO5_DDR DDRF #define AIO6_PIN PINF6 #define AIO6_RPORT PINF #define AIO6_WPORT PORTF #define AIO6_PWM NULL #define AIO6_DDR DDRF #define AIO7_PIN PINF7 #define AIO7_RPORT PINF #define AIO7_WPORT PORTF #define AIO7_PWM NULL #define AIO7_DDR DDRF #define DIO40_PIN PINF0 #define DIO40_RPORT PINF #define DIO40_WPORT PORTF #define DIO40_PWM NULL #define DIO40_DDR DDRF #define DIO41_PIN PINF1 #define DIO41_RPORT PINF #define DIO41_WPORT PORTF #define DIO41_PWM NULL #define DIO41_DDR DDRF #define DIO42_PIN PINF2 #define DIO42_RPORT PINF #define DIO42_WPORT PORTF #define DIO42_PWM NULL #define DIO42_DDR DDRF #define DIO43_PIN PINF3 #define DIO43_RPORT PINF #define DIO43_WPORT PORTF #define DIO43_PWM NULL #define DIO43_DDR DDRF #define DIO44_PIN PINF4 #define DIO44_RPORT PINF #define DIO44_WPORT PORTF #define DIO44_PWM NULL #define DIO44_DDR DDRF #define DIO45_PIN PINF5 #define DIO45_RPORT PINF #define DIO45_WPORT PORTF #define DIO45_PWM NULL #define DIO45_DDR DDRF #define DIO46_PIN PINF6 #define DIO46_RPORT PINF #define DIO46_WPORT PORTF #define DIO46_PWM NULL #define DIO46_DDR DDRF #define DIO47_PIN PINF7 #define DIO47_RPORT PINF #define DIO47_WPORT PORTF #define DIO47_PWM NULL #define DIO47_DDR DDRF #undef PA0 #define PA0_PIN PINA0 #define PA0_RPORT PINA #define PA0_WPORT PORTA #define PA0_PWM NULL #define PA0_DDR DDRA #undef PA1 #define PA1_PIN PINA1 #define PA1_RPORT PINA #define PA1_WPORT PORTA #define PA1_PWM NULL #define PA1_DDR DDRA #undef PA2 #define PA2_PIN PINA2 #define PA2_RPORT PINA #define PA2_WPORT PORTA #define PA2_PWM NULL #define PA2_DDR DDRA #undef PA3 #define PA3_PIN PINA3 #define PA3_RPORT PINA #define PA3_WPORT PORTA #define PA3_PWM NULL #define PA3_DDR DDRA #undef PA4 #define PA4_PIN PINA4 #define PA4_RPORT PINA #define PA4_WPORT PORTA #define PA4_PWM NULL #define PA4_DDR DDRA #undef PA5 #define PA5_PIN PINA5 #define PA5_RPORT PINA #define PA5_WPORT PORTA #define PA5_PWM NULL #define PA5_DDR DDRA #undef PA6 #define PA6_PIN PINA6 #define PA6_RPORT PINA #define PA6_WPORT PORTA #define PA6_PWM NULL #define PA6_DDR DDRA #undef PA7 #define PA7_PIN PINA7 #define PA7_RPORT PINA #define PA7_WPORT PORTA #define PA7_PWM NULL #define PA7_DDR DDRA #undef PB0 #define PB0_PIN PINB0 #define PB0_RPORT PINB #define PB0_WPORT PORTB #define PB0_PWM NULL #define PB0_DDR DDRB #undef PB1 #define PB1_PIN PINB1 #define PB1_RPORT PINB #define PB1_WPORT PORTB #define PB1_PWM NULL #define PB1_DDR DDRB #undef PB2 #define PB2_PIN PINB2 #define PB2_RPORT PINB #define PB2_WPORT PORTB #define PB2_PWM NULL #define PB2_DDR DDRB #undef PB3 #define PB3_PIN PINB3 #define PB3_RPORT PINB #define PB3_WPORT PORTB #define PB3_PWM NULL #define PB3_DDR DDRB #undef PB4 #define PB4_PIN PINB4 #define PB4_RPORT PINB #define PB4_WPORT PORTB #define PB4_PWM NULL #define PB4_DDR DDRB #undef PB5 #define PB5_PIN PINB5 #define PB5_RPORT PINB #define PB5_WPORT PORTB #define PB5_PWM NULL #define PB5_DDR DDRB #undef PB6 #define PB6_PIN PINB6 #define PB6_RPORT PINB #define PB6_WPORT PORTB #define PB6_PWM NULL #define PB6_DDR DDRB #undef PB7 #define PB7_PIN PINB7 #define PB7_RPORT PINB #define PB7_WPORT PORTB #define PB7_PWM NULL #define PB7_DDR DDRB #undef PC0 #define PC0_PIN PINC0 #define PC0_RPORT PINC #define PC0_WPORT PORTC #define PC0_PWM NULL #define PC0_DDR DDRC #undef PC1 #define PC1_PIN PINC1 #define PC1_RPORT PINC #define PC1_WPORT PORTC #define PC1_PWM NULL #define PC1_DDR DDRC #undef PC2 #define PC2_PIN PINC2 #define PC2_RPORT PINC #define PC2_WPORT PORTC #define PC2_PWM NULL #define PC2_DDR DDRC #undef PC3 #define PC3_PIN PINC3 #define PC3_RPORT PINC #define PC3_WPORT PORTC #define PC3_PWM NULL #define PC3_DDR DDRC #undef PC4 #define PC4_PIN PINC4 #define PC4_RPORT PINC #define PC4_WPORT PORTC #define PC4_PWM NULL #define PC4_DDR DDRC #undef PC5 #define PC5_PIN PINC5 #define PC5_RPORT PINC #define PC5_WPORT PORTC #define PC5_PWM NULL #define PC5_DDR DDRC #undef PC6 #define PC6_PIN PINC6 #define PC6_RPORT PINC #define PC6_WPORT PORTC #define PC6_PWM NULL #define PC6_DDR DDRC #undef PC7 #define PC7_PIN PINC7 #define PC7_RPORT PINC #define PC7_WPORT PORTC #define PC7_PWM NULL #define PC7_DDR DDRC #undef PD0 #define PD0_PIN PIND0 #define PD0_RPORT PIND #define PD0_WPORT PORTD #define PD0_PWM NULL #define PD0_DDR DDRD #undef PD1 #define PD1_PIN PIND1 #define PD1_RPORT PIND #define PD1_WPORT PORTD #define PD1_PWM NULL #define PD1_DDR DDRD #undef PD2 #define PD2_PIN PIND2 #define PD2_RPORT PIND #define PD2_WPORT PORTD #define PD2_PWM NULL #define PD2_DDR DDRD #undef PD3 #define PD3_PIN PIND3 #define PD3_RPORT PIND #define PD3_WPORT PORTD #define PD3_PWM NULL #define PD3_DDR DDRD #undef PD4 #define PD4_PIN PIND4 #define PD4_RPORT PIND #define PD4_WPORT PORTD #define PD4_PWM NULL #define PD4_DDR DDRD #undef PD5 #define PD5_PIN PIND5 #define PD5_RPORT PIND #define PD5_WPORT PORTD #define PD5_PWM NULL #define PD5_DDR DDRD #undef PD6 #define PD6_PIN PIND6 #define PD6_RPORT PIND #define PD6_WPORT PORTD #define PD6_PWM NULL #define PD6_DDR DDRD #undef PD7 #define PD7_PIN PIND7 #define PD7_RPORT PIND #define PD7_WPORT PORTD #define PD7_PWM NULL #define PD7_DDR DDRD #undef PE0 #define PE0_PIN PINE0 #define PE0_RPORT PINE #define PE0_WPORT PORTE #define PE0_PWM NULL #define PE0_DDR DDRE #undef PE1 #define PE1_PIN PINE1 #define PE1_RPORT PINE #define PE1_WPORT PORTE #define PE1_PWM NULL #define PE1_DDR DDRE #undef PE2 #define PE2_PIN PINE2 #define PE2_RPORT PINE #define PE2_WPORT PORTE #define PE2_PWM NULL #define PE2_DDR DDRE #undef PE3 #define PE3_PIN PINE3 #define PE3_RPORT PINE #define PE3_WPORT PORTE #define PE3_PWM NULL #define PE3_DDR DDRE #undef PE4 #define PE4_PIN PINE4 #define PE4_RPORT PINE #define PE4_WPORT PORTE #define PE4_PWM NULL #define PE4_DDR DDRE #undef PE5 #define PE5_PIN PINE5 #define PE5_RPORT PINE #define PE5_WPORT PORTE #define PE5_PWM NULL #define PE5_DDR DDRE #undef PE6 #define PE6_PIN PINE6 #define PE6_RPORT PINE #define PE6_WPORT PORTE #define PE6_PWM NULL #define PE6_DDR DDRE #undef PE7 #define PE7_PIN PINE7 #define PE7_RPORT PINE #define PE7_WPORT PORTE #define PE7_PWM NULL #define PE7_DDR DDRE #undef PF0 #define PF0_PIN PINF0 #define PF0_RPORT PINF #define PF0_WPORT PORTF #define PF0_PWM NULL #define PF0_DDR DDRF #undef PF1 #define PF1_PIN PINF1 #define PF1_RPORT PINF #define PF1_WPORT PORTF #define PF1_PWM NULL #define PF1_DDR DDRF #undef PF2 #define PF2_PIN PINF2 #define PF2_RPORT PINF #define PF2_WPORT PORTF #define PF2_PWM NULL #define PF2_DDR DDRF #undef PF3 #define PF3_PIN PINF3 #define PF3_RPORT PINF #define PF3_WPORT PORTF #define PF3_PWM NULL #define PF3_DDR DDRF #undef PF4 #define PF4_PIN PINF4 #define PF4_RPORT PINF #define PF4_WPORT PORTF #define PF4_PWM NULL #define PF4_DDR DDRF #undef PF5 #define PF5_PIN PINF5 #define PF5_RPORT PINF #define PF5_WPORT PORTF #define PF5_PWM NULL #define PF5_DDR DDRF #undef PF6 #define PF6_PIN PINF6 #define PF6_RPORT PINF #define PF6_WPORT PORTF #define PF6_PWM NULL #define PF6_DDR DDRF #undef PF7 #define PF7_PIN PINF7 #define PF7_RPORT PINF #define PF7_WPORT PORTF #define PF7_PWM NULL #define PF7_DDR DDRF #else // AT90USBxx_TEENSYPP_ASSIGNMENTS -- Use Teensyduino Teensy++2.0 assignments. /* AT90USB 51 50 49 48 47 46 45 44 10 11 12 13 14 15 16 17 35 36 37 38 39 40 41 42 25 26 27 28 29 30 31 32 33 34 43 09 18 19 01 02 61 60 59 58 57 56 55 54 Port A0 A1 A2 A3 A4 A5 A6 A7 B0 B1 B2 B3 B4 B5 B6 B7 C0 C1 C2 C3 C4 C5 C6 C7 D0 D1 D2 D3 D4 D5 D6 D7 E0 E1 E2 E3 E4 E5 E6 E7 F0 F1 F2 F3 F4 F5 F6 F7 Marlin 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 Teensy 28 29 30 31 32 33 34 35 20 21 22 23 24 25 26 27 10 11 12 13 14 15 16 17 00 01 02 03 04 05 06 07 08 09(46*47)36 37 18 19 38 39 40 41 42 43 44 45 The pins 46 and 47 are not supported by Teensyduino, but are supported below. */ #define DIO0_PIN PIND0 #define DIO0_RPORT PIND #define DIO0_WPORT PORTD #define DIO0_PWM NULL #define DIO0_DDR DDRD #define DIO1_PIN PIND1 #define DIO1_RPORT PIND #define DIO1_WPORT PORTD #define DIO1_PWM NULL #define DIO1_DDR DDRD #define DIO2_PIN PIND2 #define DIO2_RPORT PIND #define DIO2_WPORT PORTD #define DIO2_PWM NULL #define DIO2_DDR DDRD #define DIO3_PIN PIND3 #define DIO3_RPORT PIND #define DIO3_WPORT PORTD #define DIO3_PWM NULL #define DIO3_DDR DDRD #define DIO4_PIN PIND4 #define DIO4_RPORT PIND #define DIO4_WPORT PORTD #define DIO4_PWM NULL #define DIO4_DDR DDRD #define DIO5_PIN PIND5 #define DIO5_RPORT PIND #define DIO5_WPORT PORTD #define DIO5_PWM NULL #define DIO5_DDR DDRD #define DIO6_PIN PIND6 #define DIO6_RPORT PIND #define DIO6_WPORT PORTD #define DIO6_PWM NULL #define DIO6_DDR DDRD #define DIO7_PIN PIND7 #define DIO7_RPORT PIND #define DIO7_WPORT PORTD #define DIO7_PWM NULL #define DIO7_DDR DDRD #define DIO8_PIN PINE0 #define DIO8_RPORT PINE #define DIO8_WPORT PORTE #define DIO8_PWM NULL #define DIO8_DDR DDRE #define DIO9_PIN PINE1 #define DIO9_RPORT PINE #define DIO9_WPORT PORTE #define DIO9_PWM NULL #define DIO9_DDR DDRE #define DIO10_PIN PINC0 #define DIO10_RPORT PINC #define DIO10_WPORT PORTC #define DIO10_PWM NULL #define DIO10_DDR DDRC #define DIO11_PIN PINC1 #define DIO11_RPORT PINC #define DIO11_WPORT PORTC #define DIO11_PWM NULL #define DIO11_DDR DDRC #define DIO12_PIN PINC2 #define DIO12_RPORT PINC #define DIO12_WPORT PORTC #define DIO12_PWM NULL #define DIO12_DDR DDRC #define DIO13_PIN PINC3 #define DIO13_RPORT PINC #define DIO13_WPORT PORTC #define DIO13_PWM NULL #define DIO13_DDR DDRC #define DIO14_PIN PINC4 #define DIO14_RPORT PINC #define DIO14_WPORT PORTC #define DIO14_PWM NULL #define DIO14_DDR DDRC #define DIO15_PIN PINC5 #define DIO15_RPORT PINC #define DIO15_WPORT PORTC #define DIO15_PWM NULL #define DIO15_DDR DDRC #define DIO16_PIN PINC6 #define DIO16_RPORT PINC #define DIO16_WPORT PORTC #define DIO16_PWM NULL #define DIO16_DDR DDRC #define DIO17_PIN PINC7 #define DIO17_RPORT PINC #define DIO17_WPORT PORTC #define DIO17_PWM NULL #define DIO17_DDR DDRC #define DIO18_PIN PINE6 #define DIO18_RPORT PINE #define DIO18_WPORT PORTE #define DIO18_PWM NULL #define DIO18_DDR DDRE #define DIO19_PIN PINE7 #define DIO19_RPORT PINE #define DIO19_WPORT PORTE #define DIO19_PWM NULL #define DIO19_DDR DDRE #define DIO20_PIN PINB0 #define DIO20_RPORT PINB #define DIO20_WPORT PORTB #define DIO20_PWM NULL #define DIO20_DDR DDRB #define DIO21_PIN PINB1 #define DIO21_RPORT PINB #define DIO21_WPORT PORTB #define DIO21_PWM NULL #define DIO21_DDR DDRB #define DIO22_PIN PINB2 #define DIO22_RPORT PINB #define DIO22_WPORT PORTB #define DIO22_PWM NULL #define DIO22_DDR DDRB #define DIO23_PIN PINB3 #define DIO23_RPORT PINB #define DIO23_WPORT PORTB #define DIO23_PWM NULL #define DIO23_DDR DDRB #define DIO24_PIN PINB4 #define DIO24_RPORT PINB #define DIO24_WPORT PORTB #define DIO24_PWM NULL #define DIO24_DDR DDRB #define DIO25_PIN PINB5 #define DIO25_RPORT PINB #define DIO25_WPORT PORTB #define DIO25_PWM NULL #define DIO25_DDR DDRB #define DIO26_PIN PINB6 #define DIO26_RPORT PINB #define DIO26_WPORT PORTB #define DIO26_PWM NULL #define DIO26_DDR DDRB #define DIO27_PIN PINB7 #define DIO27_RPORT PINB #define DIO27_WPORT PORTB #define DIO27_PWM NULL #define DIO27_DDR DDRB #define DIO28_PIN PINA0 #define DIO28_RPORT PINA #define DIO28_WPORT PORTA #define DIO28_PWM NULL #define DIO28_DDR DDRA #define DIO29_PIN PINA1 #define DIO29_RPORT PINA #define DIO29_WPORT PORTA #define DIO29_PWM NULL #define DIO29_DDR DDRA #define DIO30_PIN PINA2 #define DIO30_RPORT PINA #define DIO30_WPORT PORTA #define DIO30_PWM NULL #define DIO30_DDR DDRA #define DIO31_PIN PINA3 #define DIO31_RPORT PINA #define DIO31_WPORT PORTA #define DIO31_PWM NULL #define DIO31_DDR DDRA #define DIO32_PIN PINA4 #define DIO32_RPORT PINA #define DIO32_WPORT PORTA #define DIO32_PWM NULL #define DIO32_DDR DDRA #define DIO33_PIN PINA5 #define DIO33_RPORT PINA #define DIO33_WPORT PORTA #define DIO33_PWM NULL #define DIO33_DDR DDRA #define DIO34_PIN PINA6 #define DIO34_RPORT PINA #define DIO34_WPORT PORTA #define DIO34_PWM NULL #define DIO34_DDR DDRA #define DIO35_PIN PINA7 #define DIO35_RPORT PINA #define DIO35_WPORT PORTA #define DIO35_PWM NULL #define DIO35_DDR DDRA #define DIO36_PIN PINE4 #define DIO36_RPORT PINE #define DIO36_WPORT PORTE #define DIO36_PWM NULL #define DIO36_DDR DDRE #define DIO37_PIN PINE5 #define DIO37_RPORT PINE #define DIO37_WPORT PORTE #define DIO37_PWM NULL #define DIO37_DDR DDRE #define DIO38_PIN PINF0 #define DIO38_RPORT PINF #define DIO38_WPORT PORTF #define DIO38_PWM NULL #define DIO38_DDR DDRF #define DIO39_PIN PINF1 #define DIO39_RPORT PINF #define DIO39_WPORT PORTF #define DIO39_PWM NULL #define DIO39_DDR DDRF #define DIO40_PIN PINF2 #define DIO40_RPORT PINF #define DIO40_WPORT PORTF #define DIO40_PWM NULL #define DIO40_DDR DDRF #define DIO41_PIN PINF3 #define DIO41_RPORT PINF #define DIO41_WPORT PORTF #define DIO41_PWM NULL #define DIO41_DDR DDRF #define DIO42_PIN PINF4 #define DIO42_RPORT PINF #define DIO42_WPORT PORTF #define DIO42_PWM NULL #define DIO42_DDR DDRF #define DIO43_PIN PINF5 #define DIO43_RPORT PINF #define DIO43_WPORT PORTF #define DIO43_PWM NULL #define DIO43_DDR DDRF #define DIO44_PIN PINF6 #define DIO44_RPORT PINF #define DIO44_WPORT PORTF #define DIO44_PWM NULL #define DIO44_DDR DDRF #define DIO45_PIN PINF7 #define DIO45_RPORT PINF #define DIO45_WPORT PORTF #define DIO45_PWM NULL #define DIO45_DDR DDRF #define AIO0_PIN PINF0 #define AIO0_RPORT PINF #define AIO0_WPORT PORTF #define AIO0_PWM NULL #define AIO0_DDR DDRF #define AIO1_PIN PINF1 #define AIO1_RPORT PINF #define AIO1_WPORT PORTF #define AIO1_PWM NULL #define AIO1_DDR DDRF #define AIO2_PIN PINF2 #define AIO2_RPORT PINF #define AIO2_WPORT PORTF #define AIO2_PWM NULL #define AIO2_DDR DDRF #define AIO3_PIN PINF3 #define AIO3_RPORT PINF #define AIO3_WPORT PORTF #define AIO3_PWM NULL #define AIO3_DDR DDRF #define AIO4_PIN PINF4 #define AIO4_RPORT PINF #define AIO4_WPORT PORTF #define AIO4_PWM NULL #define AIO4_DDR DDRF #define AIO5_PIN PINF5 #define AIO5_RPORT PINF #define AIO5_WPORT PORTF #define AIO5_PWM NULL #define AIO5_DDR DDRF #define AIO6_PIN PINF6 #define AIO6_RPORT PINF #define AIO6_WPORT PORTF #define AIO6_PWM NULL #define AIO6_DDR DDRF #define AIO7_PIN PINF7 #define AIO7_RPORT PINF #define AIO7_WPORT PORTF #define AIO7_PWM NULL #define AIO7_DDR DDRF //-- Begin not supported by Teensyduino //-- don't use Arduino functions on these pins pinMode/digitalWrite/etc #define DIO46_PIN PINE2 #define DIO46_RPORT PINE #define DIO46_WPORT PORTE #define DIO46_PWM NULL #define DIO46_DDR DDRE #define DIO47_PIN PINE3 #define DIO47_RPORT PINE #define DIO47_WPORT PORTE #define DIO47_PWM NULL #define DIO47_DDR DDRE //-- end not supported by Teensyduino #undef PA0 #define PA0_PIN PINA0 #define PA0_RPORT PINA #define PA0_WPORT PORTA #define PA0_PWM NULL #define PA0_DDR DDRA #undef PA1 #define PA1_PIN PINA1 #define PA1_RPORT PINA #define PA1_WPORT PORTA #define PA1_PWM NULL #define PA1_DDR DDRA #undef PA2 #define PA2_PIN PINA2 #define PA2_RPORT PINA #define PA2_WPORT PORTA #define PA2_PWM NULL #define PA2_DDR DDRA #undef PA3 #define PA3_PIN PINA3 #define PA3_RPORT PINA #define PA3_WPORT PORTA #define PA3_PWM NULL #define PA3_DDR DDRA #undef PA4 #define PA4_PIN PINA4 #define PA4_RPORT PINA #define PA4_WPORT PORTA #define PA4_PWM NULL #define PA4_DDR DDRA #undef PA5 #define PA5_PIN PINA5 #define PA5_RPORT PINA #define PA5_WPORT PORTA #define PA5_PWM NULL #define PA5_DDR DDRA #undef PA6 #define PA6_PIN PINA6 #define PA6_RPORT PINA #define PA6_WPORT PORTA #define PA6_PWM NULL #define PA6_DDR DDRA #undef PA7 #define PA7_PIN PINA7 #define PA7_RPORT PINA #define PA7_WPORT PORTA #define PA7_PWM NULL #define PA7_DDR DDRA #undef PB0 #define PB0_PIN PINB0 #define PB0_RPORT PINB #define PB0_WPORT PORTB #define PB0_PWM NULL #define PB0_DDR DDRB #undef PB1 #define PB1_PIN PINB1 #define PB1_RPORT PINB #define PB1_WPORT PORTB #define PB1_PWM NULL #define PB1_DDR DDRB #undef PB2 #define PB2_PIN PINB2 #define PB2_RPORT PINB #define PB2_WPORT PORTB #define PB2_PWM NULL #define PB2_DDR DDRB #undef PB3 #define PB3_PIN PINB3 #define PB3_RPORT PINB #define PB3_WPORT PORTB #define PB3_PWM NULL #define PB3_DDR DDRB #undef PB4 #define PB4_PIN PINB4 #define PB4_RPORT PINB #define PB4_WPORT PORTB #define PB4_PWM NULL #define PB4_DDR DDRB #undef PB5 #define PB5_PIN PINB5 #define PB5_RPORT PINB #define PB5_WPORT PORTB #define PB5_PWM NULL #define PB5_DDR DDRB #undef PB6 #define PB6_PIN PINB6 #define PB6_RPORT PINB #define PB6_WPORT PORTB #define PB6_PWM NULL #define PB6_DDR DDRB #undef PB7 #define PB7_PIN PINB7 #define PB7_RPORT PINB #define PB7_WPORT PORTB #define PB7_PWM NULL #define PB7_DDR DDRB #undef PC0 #define PC0_PIN PINC0 #define PC0_RPORT PINC #define PC0_WPORT PORTC #define PC0_PWM NULL #define PC0_DDR DDRC #undef PC1 #define PC1_PIN PINC1 #define PC1_RPORT PINC #define PC1_WPORT PORTC #define PC1_PWM NULL #define PC1_DDR DDRC #undef PC2 #define PC2_PIN PINC2 #define PC2_RPORT PINC #define PC2_WPORT PORTC #define PC2_PWM NULL #define PC2_DDR DDRC #undef PC3 #define PC3_PIN PINC3 #define PC3_RPORT PINC #define PC3_WPORT PORTC #define PC3_PWM NULL #define PC3_DDR DDRC #undef PC4 #define PC4_PIN PINC4 #define PC4_RPORT PINC #define PC4_WPORT PORTC #define PC4_PWM NULL #define PC4_DDR DDRC #undef PC5 #define PC5_PIN PINC5 #define PC5_RPORT PINC #define PC5_WPORT PORTC #define PC5_PWM NULL #define PC5_DDR DDRC #undef PC6 #define PC6_PIN PINC6 #define PC6_RPORT PINC #define PC6_WPORT PORTC #define PC6_PWM NULL #define PC6_DDR DDRC #undef PC7 #define PC7_PIN PINC7 #define PC7_RPORT PINC #define PC7_WPORT PORTC #define PC7_PWM NULL #define PC7_DDR DDRC #undef PD0 #define PD0_PIN PIND0 #define PD0_RPORT PIND #define PD0_WPORT PORTD #define PD0_PWM NULL #define PD0_DDR DDRD #undef PD1 #define PD1_PIN PIND1 #define PD1_RPORT PIND #define PD1_WPORT PORTD #define PD1_PWM NULL #define PD1_DDR DDRD #undef PD2 #define PD2_PIN PIND2 #define PD2_RPORT PIND #define PD2_WPORT PORTD #define PD2_PWM NULL #define PD2_DDR DDRD #undef PD3 #define PD3_PIN PIND3 #define PD3_RPORT PIND #define PD3_WPORT PORTD #define PD3_PWM NULL #define PD3_DDR DDRD #undef PD4 #define PD4_PIN PIND4 #define PD4_RPORT PIND #define PD4_WPORT PORTD #define PD4_PWM NULL #define PD4_DDR DDRD #undef PD5 #define PD5_PIN PIND5 #define PD5_RPORT PIND #define PD5_WPORT PORTD #define PD5_PWM NULL #define PD5_DDR DDRD #undef PD6 #define PD6_PIN PIND6 #define PD6_RPORT PIND #define PD6_WPORT PORTD #define PD6_PWM NULL #define PD6_DDR DDRD #undef PD7 #define PD7_PIN PIND7 #define PD7_RPORT PIND #define PD7_WPORT PORTD #define PD7_PWM NULL #define PD7_DDR DDRD #undef PE0 #define PE0_PIN PINE0 #define PE0_RPORT PINE #define PE0_WPORT PORTE #define PE0_PWM NULL #define PE0_DDR DDRE #undef PE1 #define PE1_PIN PINE1 #define PE1_RPORT PINE #define PE1_WPORT PORTE #define PE1_PWM NULL #define PE1_DDR DDRE #undef PE2 #define PE2_PIN PINE2 #define PE2_RPORT PINE #define PE2_WPORT PORTE #define PE2_PWM NULL #define PE2_DDR DDRE #undef PE3 #define PE3_PIN PINE3 #define PE3_RPORT PINE #define PE3_WPORT PORTE #define PE3_PWM NULL #define PE3_DDR DDRE #undef PE4 #define PE4_PIN PINE4 #define PE4_RPORT PINE #define PE4_WPORT PORTE #define PE4_PWM NULL #define PE4_DDR DDRE #undef PE5 #define PE5_PIN PINE5 #define PE5_RPORT PINE #define PE5_WPORT PORTE #define PE5_PWM NULL #define PE5_DDR DDRE #undef PE6 #define PE6_PIN PINE6 #define PE6_RPORT PINE #define PE6_WPORT PORTE #define PE6_PWM NULL #define PE6_DDR DDRE #undef PE7 #define PE7_PIN PINE7 #define PE7_RPORT PINE #define PE7_WPORT PORTE #define PE7_PWM NULL #define PE7_DDR DDRE #undef PF0 #define PF0_PIN PINF0 #define PF0_RPORT PINF #define PF0_WPORT PORTF #define PF0_PWM NULL #define PF0_DDR DDRF #undef PF1 #define PF1_PIN PINF1 #define PF1_RPORT PINF #define PF1_WPORT PORTF #define PF1_PWM NULL #define PF1_DDR DDRF #undef PF2 #define PF2_PIN PINF2 #define PF2_RPORT PINF #define PF2_WPORT PORTF #define PF2_PWM NULL #define PF2_DDR DDRF #undef PF3 #define PF3_PIN PINF3 #define PF3_RPORT PINF #define PF3_WPORT PORTF #define PF3_PWM NULL #define PF3_DDR DDRF #undef PF4 #define PF4_PIN PINF4 #define PF4_RPORT PINF #define PF4_WPORT PORTF #define PF4_PWM NULL #define PF4_DDR DDRF #undef PF5 #define PF5_PIN PINF5 #define PF5_RPORT PINF #define PF5_WPORT PORTF #define PF5_PWM NULL #define PF5_DDR DDRF #undef PF6 #define PF6_PIN PINF6 #define PF6_RPORT PINF #define PF6_WPORT PORTF #define PF6_PWM NULL #define PF6_DDR DDRF #undef PF7 #define PF7_PIN PINF7 #define PF7_RPORT PINF #define PF7_WPORT PORTF #define PF7_PWM NULL #define PF7_DDR DDRF #endif // AT90USBxx_TEENSYPP_ASSIGNMENTS Teensyduino assignments #endif // __AVR_AT90usbxxx__ #if defined (__AVR_ATmega1281__) || defined (__AVR_ATmega2561__) // UART #define RXD DIO0 #define TXD DIO1 // SPI #define SCK DIO10 #define MISO DIO12 #define MOSI DIO11 #define SS DIO16 // TWI (I2C) #define SCL DIO17 #define SDA DIO18 // timers and PWM #define OC0A DIO9 #define OC0B DIO4 #define OC1A DIO7 #define OC1B DIO8 #define OC2A DIO6 #define OC3A DIO5 #define OC3B DIO2 #define OC3C DIO3 // change for your board #define DEBUG_LED DIO46 /* pins */ #define DIO0_PIN PINE0 #define DIO0_RPORT PINE #define DIO0_WPORT PORTE #define DIO0_DDR DDRE #define DIO0_PWM NULL #define DIO1_PIN PINE1 #define DIO1_RPORT PINE #define DIO1_WPORT PORTE #define DIO1_DDR DDRE #define DIO1_PWM NULL #define DIO2_PIN PINE4 #define DIO2_RPORT PINE #define DIO2_WPORT PORTE #define DIO2_DDR DDRE #define DIO2_PWM &OCR3BL #define DIO3_PIN PINE5 #define DIO3_RPORT PINE #define DIO3_WPORT PORTE #define DIO3_DDR DDRE #define DIO3_PWM &OCR3CL #define DIO4_PIN PING5 #define DIO4_RPORT PING #define DIO4_WPORT PORTG #define DIO4_DDR DDRG #define DIO4_PWM &OCR0B #define DIO5_PIN PINE3 #define DIO5_RPORT PINE #define DIO5_WPORT PORTE #define DIO5_DDR DDRE #define DIO5_PWM &OCR3AL #define DIO6_PIN PINB4 #define DIO6_RPORT PINB #define DIO6_WPORT PORTB #define DIO6_DDR DDRB #define DIO6_PWM &OCR2AL #define DIO7_PIN PINB5 #define DIO7_RPORT PINB #define DIO7_WPORT PORTB #define DIO7_DDR DDRB #define DIO7_PWM &OCR1AL #define DIO8_PIN PINB6 #define DIO8_RPORT PINB #define DIO8_WPORT PORTB #define DIO8_DDR DDRB #define DIO8_PWM &OCR1BL #define DIO9_PIN PINB7 #define DIO9_RPORT PINB #define DIO9_WPORT PORTB #define DIO9_DDR DDRB #define DIO9_PWM &OCR0AL #define DIO10_PIN PINB1 #define DIO10_RPORT PINB #define DIO10_WPORT PORTB #define DIO10_DDR DDRB #define DIO10_PWM NULL #define DIO11_PIN PINB2 #define DIO11_RPORT PINB #define DIO11_WPORT PORTB #define DIO11_DDR DDRB #define DIO11_PWM NULL #define DIO12_PIN PINB3 #define DIO12_RPORT PINB #define DIO12_WPORT PORTB #define DIO12_DDR DDRB #define DIO12_PWM NULL #define DIO13_PIN PINE2 #define DIO13_RPORT PINE #define DIO13_WPORT PORTE #define DIO13_DDR DDRE #define DIO13_PWM NULL #define DIO14_PIN PINE6 #define DIO14_RPORT PINE #define DIO14_WPORT PORTE #define DIO14_DDR DDRE #define DIO14_PWM NULL #define DIO15_PIN PINE7 #define DIO15_RPORT PINE #define DIO15_WPORT PORTE #define DIO15_DDR DDRE #define DIO15_PWM NULL #define DIO16_PIN PINB0 #define DIO16_RPORT PINB #define DIO16_WPORT PORTB #define DIO16_DDR DDRB #define DIO16_PWM NULL #define DIO17_PIN PIND0 #define DIO17_RPORT PIND #define DIO17_WPORT PORTD #define DIO17_DDR DDRD #define DIO17_PWM NULL #define DIO18_PIN PIND1 #define DIO18_RPORT PIND #define DIO18_WPORT PORTD #define DIO18_DDR DDRD #define DIO18_PWM NULL #define DIO19_PIN PIND2 #define DIO19_RPORT PIND #define DIO19_WPORT PORTD #define DIO19_DDR DDRD #define DIO19_PWM NULL #define DIO20_PIN PIND3 #define DIO20_RPORT PIND #define DIO20_WPORT PORTD #define DIO20_DDR DDRD #define DIO20_PWM NULL #define DIO21_PIN PIND4 #define DIO21_RPORT PIND #define DIO21_WPORT PORTD #define DIO21_DDR DDRD #define DIO21_PWM NULL #define DIO22_PIN PIND5 #define DIO22_RPORT PIND #define DIO22_WPORT PORTD #define DIO22_DDR DDRD #define DIO22_PWM NULL #define DIO23_PIN PIND6 #define DIO23_RPORT PIND #define DIO23_WPORT PORTD #define DIO23_DDR DDRD #define DIO23_PWM NULL #define DIO24_PIN PIND7 #define DIO24_RPORT PIND #define DIO24_WPORT PORTD #define DIO24_DDR DDRD #define DIO24_PWM NULL #define DIO25_PIN PING0 #define DIO25_RPORT PING #define DIO25_WPORT PORTG #define DIO25_DDR DDRG #define DIO25_PWM NULL #define DIO26_PIN PING1 #define DIO26_RPORT PING #define DIO26_WPORT PORTG #define DIO26_DDR DDRG #define DIO26_PWM NULL #define DIO27_PIN PING2 #define DIO27_RPORT PING #define DIO27_WPORT PORTG #define DIO27_DDR DDRG #define DIO27_PWM NULL #define DIO28_PIN PING3 #define DIO28_RPORT PING #define DIO28_WPORT PORTG #define DIO28_DDR DDRG #define DIO28_PWM NULL #define DIO29_PIN PING4 #define DIO29_RPORT PING #define DIO29_WPORT PORTG #define DIO29_DDR DDRG #define DIO29_PWM NULL #define DIO30_PIN PINC0 #define DIO30_RPORT PINC #define DIO30_WPORT PORTC #define DIO30_DDR DDRC #define DIO30_PWM NULL #define DIO31_PIN PINC1 #define DIO31_RPORT PINC #define DIO31_WPORT PORTC #define DIO31_DDR DDRC #define DIO31_PWM NULL #define DIO32_PIN PINC2 #define DIO32_RPORT PINC #define DIO32_WPORT PORTC #define DIO32_DDR DDRC #define DIO32_PWM NULL #define DIO33_PIN PINC3 #define DIO33_RPORT PINC #define DIO33_WPORT PORTC #define DIO33_DDR DDRC #define DIO33_PWM NULL #define DIO34_PIN PINC4 #define DIO34_RPORT PINC #define DIO34_WPORT PORTC #define DIO34_DDR DDRC #define DIO34_PWM NULL #define DIO35_PIN PINC5 #define DIO35_RPORT PINC #define DIO35_WPORT PORTC #define DIO35_DDR DDRC #define DIO35_PWM NULL #define DIO36_PIN PINC6 #define DIO36_RPORT PINC #define DIO36_WPORT PORTC #define DIO36_DDR DDRC #define DIO36_PWM NULL #define DIO37_PIN PINC7 #define DIO37_RPORT PINC #define DIO37_WPORT PORTC #define DIO37_DDR DDRC #define DIO37_PWM NULL #define DIO38_PIN PINA0 #define DIO38_RPORT PINA #define DIO38_WPORT PORTA #define DIO38_DDR DDRA #define DIO38_PWM NULL #define DIO39_PIN PINA1 #define DIO39_RPORT PINA #define DIO39_WPORT PORTA #define DIO39_DDR DDRA #define DIO39_PWM NULL #define DIO40_PIN PINA2 #define DIO40_RPORT PINA #define DIO40_WPORT PORTA #define DIO40_DDR DDRA #define DIO40_PWM NULL #define DIO41_PIN PINA3 #define DIO41_RPORT PINA #define DIO41_WPORT PORTA #define DIO41_DDR DDRA #define DIO41_PWM NULL #define DIO42_PIN PINA4 #define DIO42_RPORT PINA #define DIO42_WPORT PORTA #define DIO42_DDR DDRA #define DIO42_PWM NULL #define DIO43_PIN PINA5 #define DIO43_RPORT PINA #define DIO43_WPORT PORTA #define DIO43_DDR DDRA #define DIO43_PWM NULL #define DIO44_PIN PINA6 #define DIO44_RPORT PINA #define DIO44_WPORT PORTA #define DIO44_DDR DDRA #define DIO44_PWM NULL #define DIO45_PIN PINA7 #define DIO45_RPORT PINA #define DIO45_WPORT PORTA #define DIO45_DDR DDRA #define DIO45_PWM NULL #define DIO46_PIN PINF0 #define DIO46_RPORT PINF #define DIO46_WPORT PORTF #define DIO46_DDR DDRF #define DIO46_PWM NULL #define DIO47_PIN PINF1 #define DIO47_RPORT PINF #define DIO47_WPORT PORTF #define DIO47_DDR DDRF #define DIO47_PWM NULL #define DIO48_PIN PINF2 #define DIO48_RPORT PINF #define DIO48_WPORT PORTF #define DIO48_DDR DDRF #define DIO48_PWM NULL #define DIO49_PIN PINF3 #define DIO49_RPORT PINF #define DIO49_WPORT PORTF #define DIO49_DDR DDRF #define DIO49_PWM NULL #define DIO50_PIN PINF4 #define DIO50_RPORT PINF #define DIO50_WPORT PORTF #define DIO50_DDR DDRF #define DIO50_PWM NULL #define DIO51_PIN PINF5 #define DIO51_RPORT PINF #define DIO51_WPORT PORTF #define DIO51_DDR DDRF #define DIO51_PWM NULL #define DIO52_PIN PINF6 #define DIO52_RPORT PINF #define DIO52_WPORT PORTF #define DIO52_DDR DDRF #define DIO52_PWM NULL #define DIO53_PIN PINF7 #define DIO53_RPORT PINF #define DIO53_WPORT PORTF #define DIO53_DDR DDRF #define DIO53_PWM NULL #undef PA0 #define PA0_PIN PINA0 #define PA0_RPORT PINA #define PA0_WPORT PORTA #define PA0_DDR DDRA #define PA0_PWM NULL #undef PA1 #define PA1_PIN PINA1 #define PA1_RPORT PINA #define PA1_WPORT PORTA #define PA1_DDR DDRA #define PA1_PWM NULL #undef PA2 #define PA2_PIN PINA2 #define PA2_RPORT PINA #define PA2_WPORT PORTA #define PA2_DDR DDRA #define PA2_PWM NULL #undef PA3 #define PA3_PIN PINA3 #define PA3_RPORT PINA #define PA3_WPORT PORTA #define PA3_DDR DDRA #define PA3_PWM NULL #undef PA4 #define PA4_PIN PINA4 #define PA4_RPORT PINA #define PA4_WPORT PORTA #define PA4_DDR DDRA #define PA4_PWM NULL #undef PA5 #define PA5_PIN PINA5 #define PA5_RPORT PINA #define PA5_WPORT PORTA #define PA5_DDR DDRA #define PA5_PWM NULL #undef PA6 #define PA6_PIN PINA6 #define PA6_RPORT PINA #define PA6_WPORT PORTA #define PA6_DDR DDRA #define PA6_PWM NULL #undef PA7 #define PA7_PIN PINA7 #define PA7_RPORT PINA #define PA7_WPORT PORTA #define PA7_DDR DDRA #define PA7_PWM NULL #undef PB0 #define PB0_PIN PINB0 #define PB0_RPORT PINB #define PB0_WPORT PORTB #define PB0_DDR DDRB #define PB0_PWM NULL #undef PB1 #define PB1_PIN PINB1 #define PB1_RPORT PINB #define PB1_WPORT PORTB #define PB1_DDR DDRB #define PB1_PWM NULL #undef PB2 #define PB2_PIN PINB2 #define PB2_RPORT PINB #define PB2_WPORT PORTB #define PB2_DDR DDRB #define PB2_PWM NULL #undef PB3 #define PB3_PIN PINB3 #define PB3_RPORT PINB #define PB3_WPORT PORTB #define PB3_DDR DDRB #define PB3_PWM NULL #undef PB4 #define PB4_PIN PINB4 #define PB4_RPORT PINB #define PB4_WPORT PORTB #define PB4_DDR DDRB #define PB4_PWM &OCR2A #undef PB5 #define PB5_PIN PINB5 #define PB5_RPORT PINB #define PB5_WPORT PORTB #define PB5_DDR DDRB #define PB5_PWM NULL #undef PB6 #define PB6_PIN PINB6 #define PB6_RPORT PINB #define PB6_WPORT PORTB #define PB6_DDR DDRB #define PB6_PWM NULL #undef PB7 #define PB7_PIN PINB7 #define PB7_RPORT PINB #define PB7_WPORT PORTB #define PB7_DDR DDRB #define PB7_PWM &OCR0A #undef PC0 #define PC0_PIN PINC0 #define PC0_RPORT PINC #define PC0_WPORT PORTC #define PC0_DDR DDRC #define PC0_PWM NULL #undef PC1 #define PC1_PIN PINC1 #define PC1_RPORT PINC #define PC1_WPORT PORTC #define PC1_DDR DDRC #define PC1_PWM NULL #undef PC2 #define PC2_PIN PINC2 #define PC2_RPORT PINC #define PC2_WPORT PORTC #define PC2_DDR DDRC #define PC2_PWM NULL #undef PC3 #define PC3_PIN PINC3 #define PC3_RPORT PINC #define PC3_WPORT PORTC #define PC3_DDR DDRC #define PC3_PWM NULL #undef PC4 #define PC4_PIN PINC4 #define PC4_RPORT PINC #define PC4_WPORT PORTC #define PC4_DDR DDRC #define PC4_PWM NULL #undef PC5 #define PC5_PIN PINC5 #define PC5_RPORT PINC #define PC5_WPORT PORTC #define PC5_DDR DDRC #define PC5_PWM NULL #undef PC6 #define PC6_PIN PINC6 #define PC6_RPORT PINC #define PC6_WPORT PORTC #define PC6_DDR DDRC #define PC6_PWM NULL #undef PC7 #define PC7_PIN PINC7 #define PC7_RPORT PINC #define PC7_WPORT PORTC #define PC7_DDR DDRC #define PC7_PWM NULL #undef PD0 #define PD0_PIN PIND0 #define PD0_RPORT PIND #define PD0_WPORT PORTD #define PD0_DDR DDRD #define PD0_PWM NULL #undef PD1 #define PD1_PIN PIND1 #define PD1_RPORT PIND #define PD1_WPORT PORTD #define PD1_DDR DDRD #define PD1_PWM NULL #undef PD2 #define PD2_PIN PIND2 #define PD2_RPORT PIND #define PD2_WPORT PORTD #define PD2_DDR DDRD #define PD2_PWM NULL #undef PD3 #define PD3_PIN PIND3 #define PD3_RPORT PIND #define PD3_WPORT PORTD #define PD3_DDR DDRD #define PD3_PWM NULL #undef PD4 #define PD4_PIN PIND4 #define PD4_RPORT PIND #define PD4_WPORT PORTD #define PD4_DDR DDRD #define PD4_PWM NULL #undef PD5 #define PD5_PIN PIND5 #define PD5_RPORT PIND #define PD5_WPORT PORTD #define PD5_DDR DDRD #define PD5_PWM NULL #undef PD6 #define PD6_PIN PIND6 #define PD6_RPORT PIND #define PD6_WPORT PORTD #define PD6_DDR DDRD #define PD6_PWM NULL #undef PD7 #define PD7_PIN PIND7 #define PD7_RPORT PIND #define PD7_WPORT PORTD #define PD7_DDR DDRD #define PD7_PWM NULL #undef PE0 #define PE0_PIN PINE0 #define PE0_RPORT PINE #define PE0_WPORT PORTE #define PE0_DDR DDRE #define PE0_PWM NULL #undef PE1 #define PE1_PIN PINE1 #define PE1_RPORT PINE #define PE1_WPORT PORTE #define PE1_DDR DDRE #define PE1_PWM NULL #undef PE2 #define PE2_PIN PINE2 #define PE2_RPORT PINE #define PE2_WPORT PORTE #define PE2_DDR DDRE #define PE2_PWM NULL #undef PE3 #define PE3_PIN PINE3 #define PE3_RPORT PINE #define PE3_WPORT PORTE #define PE3_DDR DDRE #define PE3_PWM &OCR3AL #undef PE4 #define PE4_PIN PINE4 #define PE4_RPORT PINE #define PE4_WPORT PORTE #define PE4_DDR DDRE #define PE4_PWM &OCR3BL #undef PE5 #define PE5_PIN PINE5 #define PE5_RPORT PINE #define PE5_WPORT PORTE #define PE5_DDR DDRE #define PE5_PWM &OCR3CL #undef PE6 #define PE6_PIN PINE6 #define PE6_RPORT PINE #define PE6_WPORT PORTE #define PE6_DDR DDRE #define PE6_PWM NULL #undef PE7 #define PE7_PIN PINE7 #define PE7_RPORT PINE #define PE7_WPORT PORTE #define PE7_DDR DDRE #define PE7_PWM NULL #undef PF0 #define PF0_PIN PINF0 #define PF0_RPORT PINF #define PF0_WPORT PORTF #define PF0_DDR DDRF #define PF0_PWM NULL #undef PF1 #define PF1_PIN PINF1 #define PF1_RPORT PINF #define PF1_WPORT PORTF #define PF1_DDR DDRF #define PF1_PWM NULL #undef PF2 #define PF2_PIN PINF2 #define PF2_RPORT PINF #define PF2_WPORT PORTF #define PF2_DDR DDRF #define PF2_PWM NULL #undef PF3 #define PF3_PIN PINF3 #define PF3_RPORT PINF #define PF3_WPORT PORTF #define PF3_DDR DDRF #define PF3_PWM NULL #undef PF4 #define PF4_PIN PINF4 #define PF4_RPORT PINF #define PF4_WPORT PORTF #define PF4_DDR DDRF #define PF4_PWM NULL #undef PF5 #define PF5_PIN PINF5 #define PF5_RPORT PINF #define PF5_WPORT PORTF #define PF5_DDR DDRF #define PF5_PWM NULL #undef PF6 #define PF6_PIN PINF6 #define PF6_RPORT PINF #define PF6_WPORT PORTF #define PF6_DDR DDRF #define PF6_PWM NULL #undef PF7 #define PF7_PIN PINF7 #define PF7_RPORT PINF #define PF7_WPORT PORTF #define PF7_DDR DDRF #define PF7_PWM NULL #undef PG0 #define PG0_PIN PING0 #define PG0_RPORT PING #define PG0_WPORT PORTG #define PG0_DDR DDRG #define PG0_PWM NULL #undef PG1 #define PG1_PIN PING1 #define PG1_RPORT PING #define PG1_WPORT PORTG #define PG1_DDR DDRG #define PG1_PWM NULL #undef PG2 #define PG2_PIN PING2 #define PG2_RPORT PING #define PG2_WPORT PORTG #define PG2_DDR DDRG #define PG2_PWM NULL #undef PG3 #define PG3_PIN PING3 #define PG3_RPORT PING #define PG3_WPORT PORTG #define PG3_DDR DDRG #define PG3_PWM NULL #undef PG4 #define PG4_PIN PING4 #define PG4_RPORT PING #define PG4_WPORT PORTG #define PG4_DDR DDRG #define PG4_PWM NULL #undef PG5 #define PG5_PIN PING5 #define PG5_RPORT PING #define PG5_WPORT PORTG #define PG5_DDR DDRG #define PG5_PWM &OCR0B #endif #ifndef DIO0_PIN #error pins for this chip not defined in arduino.h! If you write an appropriate pin definition and have this firmware work on your chip, please submit a pull request #endif #endif /* _FASTIO_ARDUINO_H */ ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/fastio.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
30,312
```c++ /* Arduino SdFat Library * * This file is part of the Arduino SdFat Library * * This Library is free software: you can redistribute it and/or modify * (at your option) any later version. * * This Library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * along with the Arduino SdFat Library. If not, see * <path_to_url */ #include "Marlin.h" #ifdef SDSUPPORT #include "SdFatUtil.h" //your_sha256_hash-------------- /** Amount of free RAM * \return The number of free bytes. */ #ifdef __arm__ extern "C" char* sbrk(int incr); int SdFatUtil::FreeRam() { char top; return &top - reinterpret_cast<char*>(sbrk(0)); } #else // __arm__ extern char *__brkval; extern char __bss_end; /** Amount of free RAM * \return The number of free bytes. */ int SdFatUtil::FreeRam() { char top; return __brkval ? &top - __brkval : &top - &__bss_end; } #endif // __arm //your_sha256_hash-------------- /** %Print a string in flash memory. * * \param[in] pr Print object for output. * \param[in] str Pointer to string stored in flash memory. */ void SdFatUtil::print_P( PGM_P str) { for (uint8_t c; (c = pgm_read_byte(str)); str++) MYSERIAL.write(c); } //your_sha256_hash-------------- /** %Print a string in flash memory followed by a CR/LF. * * \param[in] pr Print object for output. * \param[in] str Pointer to string stored in flash memory. */ void SdFatUtil::println_P( PGM_P str) { print_P( str); MYSERIAL.println(); } //your_sha256_hash-------------- /** %Print a string in flash memory to Serial. * * \param[in] str Pointer to string stored in flash memory. */ void SdFatUtil::SerialPrint_P(PGM_P str) { print_P(str); } //your_sha256_hash-------------- /** %Print a string in flash memory to Serial followed by a CR/LF. * * \param[in] str Pointer to string stored in flash memory. */ void SdFatUtil::SerialPrintln_P(PGM_P str) { println_P( str); } #endif ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/SdFatUtil.cpp
c++
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
558
```objective-c #define START_BMPWIDTH 60 //Width in pixels - path_to_url #define START_BMPHEIGHT 64 //Height in pixels #define START_BMPBYTEWIDTH 8 //Width in bytes const unsigned char start_bmp[574] PROGMEM = { //AVR-GCC, WinAVR 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f, 0x0f,0xff,0xff,0xff,0xff,0xff,0xff,0xef, 0x30,0x00,0x00,0x00,0x00,0x00,0x7f,0xff, 0x60,0x00,0x00,0x00,0x00,0x00,0x1f,0xff, 0x40,0x00,0x00,0x00,0x00,0x00,0x0f,0xff, 0x40,0x00,0x00,0x00,0x01,0x80,0x0f,0xff, 0x83,0xef,0xc0,0x00,0x01,0x8c,0x07,0xff, 0x87,0xff,0xe0,0x00,0x01,0x8c,0x03,0xff, 0x86,0x38,0x60,0x00,0x01,0x80,0x01,0xff, 0x86,0x18,0x63,0xe0,0xf9,0x8c,0x7c,0xff, 0x86,0x18,0x67,0xf1,0xfd,0x8c,0xfe,0x7f, 0x86,0x18,0x6e,0x31,0x8d,0x8c,0xc6,0x3f, 0x86,0x18,0x6c,0x39,0x8d,0x8c,0xc7,0x1f, 0x86,0x18,0x6c,0x19,0x81,0x8c,0xc7,0x1f, 0x86,0x18,0x6c,0x19,0x81,0x8c,0xc7,0x1f, 0x86,0x18,0x6f,0x9f,0x81,0xcd,0xc7,0x1f, 0x06,0x18,0x67,0xdf,0x80,0xef,0xc7,0x1f, 0x44,0x18,0x61,0x9f,0x00,0x2f,0xc2,0x2f, 0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x2f, 0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x4f, 0x1f,0xff,0xff,0xff,0xff,0xff,0xff,0x8f, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f }; // Here comes a compile-time operation to match the extruder symbols // on the info screen to the set number of extruders in configuration.h // // When only one extruder is selected, the "1" on the symbol will not // be displayed. #if EXTRUDERS == 1 #define STATUS_SCREENWIDTH 115 //Width in pixels #define STATUS_SCREENHEIGHT 19 //Height in pixels #define STATUS_SCREENBYTEWIDTH 15 //Width in bytes const unsigned char status_screen0_bmp[] PROGMEM = { //AVR-GCC, WinAVR 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0xFF,0xE0, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x70,0x00,0xE0, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x63,0x0C,0x60, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x47,0x0E,0x20, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x4F,0x0F,0x20, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x5F,0x0F,0xA0, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x5E,0x07,0xA0, 0x7F,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x41,0x04,0x00,0x40,0x60,0x20, 0xFF,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x82,0x00,0x40,0xF0,0x20, 0xFF,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x82,0x00,0x40,0xF0,0x20, 0xFF,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x41,0x04,0x00,0x40,0x60,0x20, 0x7F,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x82,0x08,0x00,0x5E,0x07,0xA0, 0x7F,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x10,0x00,0x5F,0x0F,0xA0, 0xFF,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x10,0x00,0x4F,0x0F,0x20, 0xFF,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x82,0x08,0x00,0x47,0x0E,0x20, 0xFF,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x41,0x04,0x00,0x63,0x0C,0x60, 0x3F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x70,0x00,0xE0, 0x1E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xFF,0xFF,0x80,0x7F,0xFF,0xE0, 0x0C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xFF,0xFF,0x80,0x00,0x00,0x00 }; #define STATUS_SCREENWIDTH 115 //Width in pixels #define STATUS_SCREENHEIGHT 19 //Height in pixels #define STATUS_SCREENBYTEWIDTH 15 //Width in bytes const unsigned char status_screen1_bmp[] PROGMEM = { //AVR-GCC, WinAVR 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0xFF,0xE0, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x70,0x00,0xE0, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x61,0xF8,0x60, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x41,0xF8,0x20, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0xF0,0x20, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x60,0x20, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x58,0x01,0xA0, 0x7F,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x41,0x04,0x00,0x5C,0x63,0xA0, 0xFF,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x82,0x00,0x5E,0xF7,0xA0, 0xFF,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x82,0x00,0x5E,0xF7,0xA0, 0xFF,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x41,0x04,0x00,0x5C,0x63,0xA0, 0x7F,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x82,0x08,0x00,0x58,0x01,0xA0, 0x7F,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x10,0x00,0x40,0x60,0x20, 0xFF,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x10,0x00,0x40,0xF0,0x20, 0xFF,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x82,0x08,0x00,0x41,0xF8,0x20, 0xFF,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x41,0x04,0x00,0x61,0xF8,0x60, 0x3F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x70,0x00,0xE0, 0x1E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xFF,0xFF,0x80,0x7F,0xFF,0xE0, 0x0C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xFF,0xFF,0x80,0x00,0x00,0x00 }; #elif EXTRUDERS == 2 #define STATUS_SCREENWIDTH 115 //Width in pixels #define STATUS_SCREENHEIGHT 19 //Height in pixels #define STATUS_SCREENBYTEWIDTH 15 //Width in bytes const unsigned char status_screen0_bmp[] PROGMEM = { //AVR-GCC, WinAVR 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0xFF,0xE0, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x70,0x00,0xE0, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x63,0x0C,0x60, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x47,0x0E,0x20, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x4F,0x0F,0x20, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x5F,0x0F,0xA0, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x5E,0x07,0xA0, 0x7F,0x80,0x00,0x3F,0xC0,0x00,0x00,0x00,0x00,0x41,0x04,0x00,0x40,0x60,0x20, 0xFB,0xC0,0x00,0x79,0xE0,0x00,0x00,0x00,0x00,0x20,0x82,0x00,0x40,0xF0,0x20, 0xF3,0xC0,0x00,0x76,0xE0,0x00,0x00,0x00,0x00,0x20,0x82,0x00,0x40,0xF0,0x20, 0xEB,0xC0,0x00,0x7E,0xE0,0x00,0x00,0x00,0x00,0x41,0x04,0x00,0x40,0x60,0x20, 0x7B,0x80,0x00,0x3D,0xC0,0x00,0x00,0x00,0x00,0x82,0x08,0x00,0x5E,0x07,0xA0, 0x7B,0x80,0x00,0x3B,0xC0,0x00,0x00,0x00,0x01,0x04,0x10,0x00,0x5F,0x0F,0xA0, 0xFB,0xC0,0x00,0x77,0xE0,0x00,0x00,0x00,0x01,0x04,0x10,0x00,0x4F,0x0F,0x20, 0xFB,0xC0,0x00,0x70,0xE0,0x00,0x00,0x00,0x00,0x82,0x08,0x00,0x47,0x0E,0x20, 0xFF,0xC0,0x00,0x7F,0xE0,0x00,0x00,0x00,0x00,0x41,0x04,0x00,0x63,0x0C,0x60, 0x3F,0x00,0x00,0x1F,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x70,0x00,0xE0, 0x1E,0x00,0x00,0x0F,0x00,0x00,0x00,0x00,0x01,0xFF,0xFF,0x80,0x7F,0xFF,0xE0, 0x0C,0x00,0x00,0x06,0x00,0x00,0x00,0x00,0x01,0xFF,0xFF,0x80,0x00,0x00,0x00 }; #define STATUS_SCREENWIDTH 115 //Width in pixels #define STATUS_SCREENHEIGHT 19 //Height in pixels #define STATUS_SCREENBYTEWIDTH 15 //Width in bytes const unsigned char status_screen1_bmp[] PROGMEM = { //AVR-GCC, WinAVR 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0xFF,0xE0, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x70,0x00,0xE0, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x61,0xF8,0x60, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x41,0xF8,0x20, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0xF0,0x20, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x60,0x20, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x58,0x01,0xA0, 0x7F,0x80,0x00,0x3F,0xC0,0x00,0x00,0x00,0x00,0x41,0x04,0x00,0x5C,0x63,0xA0, 0xFB,0xC0,0x00,0x79,0xE0,0x00,0x00,0x00,0x00,0x20,0x82,0x00,0x5E,0xF7,0xA0, 0xF3,0xC0,0x00,0x76,0xE0,0x00,0x00,0x00,0x00,0x20,0x82,0x00,0x5E,0xF7,0xA0, 0xEB,0xC0,0x00,0x7E,0xE0,0x00,0x00,0x00,0x00,0x41,0x04,0x00,0x5C,0x63,0xA0, 0x7B,0x80,0x00,0x3D,0xC0,0x00,0x00,0x00,0x00,0x82,0x08,0x00,0x58,0x01,0xA0, 0x7B,0x80,0x00,0x3B,0xC0,0x00,0x00,0x00,0x01,0x04,0x10,0x00,0x40,0x60,0x20, 0xFB,0xC0,0x00,0x77,0xE0,0x00,0x00,0x00,0x01,0x04,0x10,0x00,0x40,0xF0,0x20, 0xFB,0xC0,0x00,0x70,0xE0,0x00,0x00,0x00,0x00,0x82,0x08,0x00,0x41,0xF8,0x20, 0xFF,0xC0,0x00,0x7F,0xE0,0x00,0x00,0x00,0x00,0x41,0x04,0x00,0x61,0xF8,0x60, 0x3F,0x00,0x00,0x1F,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x70,0x00,0xE0, 0x1E,0x00,0x00,0x0F,0x00,0x00,0x00,0x00,0x01,0xFF,0xFF,0x80,0x7F,0xFF,0xE0, 0x0C,0x00,0x00,0x06,0x00,0x00,0x00,0x00,0x01,0xFF,0xFF,0x80,0x00,0x00,0x00 }; #else #define STATUS_SCREENWIDTH 115 //Width in pixels #define STATUS_SCREENHEIGHT 19 //Height in pixels #define STATUS_SCREENBYTEWIDTH 15 //Width in bytes const unsigned char status_screen0_bmp[] PROGMEM = { //AVR-GCC, WinAVR 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0xFF,0xE0, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x70,0x00,0xE0, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x63,0x0C,0x60, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x47,0x0E,0x20, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x4F,0x0F,0x20, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x5F,0x0F,0xA0, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x5E,0x07,0xA0, 0x7F,0x80,0x00,0x3F,0xC0,0x00,0x3F,0xC0,0x00,0x41,0x04,0x00,0x40,0x60,0x20, 0xFB,0xC0,0x00,0x79,0xE0,0x00,0x79,0xE0,0x00,0x20,0x82,0x00,0x40,0xF0,0x20, 0xF3,0xC0,0x00,0x76,0xE0,0x00,0x76,0xE0,0x00,0x20,0x82,0x00,0x40,0xF0,0x20, 0xEB,0xC0,0x00,0x7E,0xE0,0x00,0x7E,0xE0,0x00,0x41,0x04,0x00,0x40,0x60,0x20, 0x7B,0x80,0x00,0x3D,0xC0,0x00,0x39,0xC0,0x00,0x82,0x08,0x00,0x5E,0x07,0xA0, 0x7B,0x80,0x00,0x3B,0xC0,0x00,0x3E,0xC0,0x01,0x04,0x10,0x00,0x5F,0x0F,0xA0, 0xFB,0xC0,0x00,0x77,0xE0,0x00,0x76,0xE0,0x01,0x04,0x10,0x00,0x4F,0x0F,0x20, 0xFB,0xC0,0x00,0x70,0xE0,0x00,0x79,0xE0,0x00,0x82,0x08,0x00,0x47,0x0E,0x20, 0xFF,0xC0,0x00,0x7F,0xE0,0x00,0x7F,0xE0,0x00,0x41,0x04,0x00,0x63,0x0C,0x60, 0x3F,0x00,0x00,0x1F,0x80,0x00,0x1F,0x80,0x00,0x00,0x00,0x00,0x70,0x00,0xE0, 0x1E,0x00,0x00,0x0F,0x00,0x00,0x0F,0x00,0x01,0xFF,0xFF,0x80,0x7F,0xFF,0xE0, 0x0C,0x00,0x00,0x06,0x00,0x00,0x06,0x00,0x01,0xFF,0xFF,0x80,0x00,0x00,0x00 }; #define STATUS_SCREENWIDTH 115 //Width in pixels #define STATUS_SCREENHEIGHT 19 //Height in pixels #define STATUS_SCREENBYTEWIDTH 15 //Width in bytes const unsigned char status_screen1_bmp[] PROGMEM = { //AVR-GCC, WinAVR 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0xFF,0xE0, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x70,0x00,0xE0, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x61,0xF8,0x60, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x41,0xF8,0x20, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0xF0,0x20, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x60,0x20, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x58,0x01,0xA0, 0x7F,0x80,0x00,0x3F,0xC0,0x00,0x3F,0xC0,0x00,0x41,0x04,0x00,0x5C,0x63,0xA0, 0xFB,0xC0,0x00,0x79,0xE0,0x00,0x79,0xE0,0x00,0x20,0x82,0x00,0x5E,0xF7,0xA0, 0xF3,0xC0,0x00,0x76,0xE0,0x00,0x76,0xE0,0x00,0x20,0x82,0x00,0x5E,0xF7,0xA0, 0xEB,0xC0,0x00,0x7E,0xE0,0x00,0x7E,0xE0,0x00,0x41,0x04,0x00,0x5C,0x63,0xA0, 0x7B,0x80,0x00,0x3D,0xC0,0x00,0x39,0xC0,0x00,0x82,0x08,0x00,0x58,0x01,0xA0, 0x7B,0x80,0x00,0x3B,0xC0,0x00,0x3E,0xC0,0x01,0x04,0x10,0x00,0x40,0x60,0x20, 0xFB,0xC0,0x00,0x77,0xE0,0x00,0x76,0xE0,0x01,0x04,0x10,0x00,0x40,0xF0,0x20, 0xFB,0xC0,0x00,0x70,0xE0,0x00,0x79,0xE0,0x00,0x82,0x08,0x00,0x41,0xF8,0x20, 0xFF,0xC0,0x00,0x7F,0xE0,0x00,0x7F,0xE0,0x00,0x41,0x04,0x00,0x61,0xF8,0x60, 0x3F,0x00,0x00,0x1F,0x80,0x00,0x1F,0x80,0x00,0x00,0x00,0x00,0x70,0x00,0xE0, 0x1E,0x00,0x00,0x0F,0x00,0x00,0x0F,0x00,0x01,0xFF,0xFF,0x80,0x7F,0xFF,0xE0, 0x0C,0x00,0x00,0x06,0x00,0x00,0x06,0x00,0x01,0xFF,0xFF,0x80,0x00,0x00,0x00 }; #endif // Extruders ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/DOGMbitmaps.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
9,551
```c++ /* Arduino Sd2Card Library * * This file is part of the Arduino Sd2Card Library * * This Library is free software: you can redistribute it and/or modify * (at your option) any later version. * * This Library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * along with the Arduino Sd2Card Library. If not, see * <path_to_url */ #include "Marlin.h" #ifdef SDSUPPORT #include "Sd2Card.h" //your_sha256_hash-------------- #ifndef SOFTWARE_SPI // functions for hardware SPI //your_sha256_hash-------------- // make sure SPCR rate is in expected bits #if (SPR0 != 0 || SPR1 != 1) #error unexpected SPCR bits #endif /** * Initialize hardware SPI * Set SCK rate to F_CPU/pow(2, 1 + spiRate) for spiRate [0,6] */ static void spiInit(uint8_t spiRate) { // See avr processor documentation SPCR = (1 << SPE) | (1 << MSTR) | (spiRate >> 1); SPSR = spiRate & 1 || spiRate == 6 ? 0 : 1 << SPI2X; } //your_sha256_hash-------------- /** SPI receive a byte */ static uint8_t spiRec() { SPDR = 0XFF; while (!(SPSR & (1 << SPIF))) { /* Intentionally left empty */ } return SPDR; } //your_sha256_hash-------------- /** SPI read data - only one call so force inline */ static inline __attribute__((always_inline)) void spiRead(uint8_t* buf, uint16_t nbyte) { if (nbyte-- == 0) return; SPDR = 0XFF; for (uint16_t i = 0; i < nbyte; i++) { while (!(SPSR & (1 << SPIF))) { /* Intentionally left empty */ } buf[i] = SPDR; SPDR = 0XFF; } while (!(SPSR & (1 << SPIF))) { /* Intentionally left empty */ } buf[nbyte] = SPDR; } //your_sha256_hash-------------- /** SPI send a byte */ static void spiSend(uint8_t b) { SPDR = b; while (!(SPSR & (1 << SPIF))) { /* Intentionally left empty */ } } //your_sha256_hash-------------- /** SPI send block - only one call so force inline */ static inline __attribute__((always_inline)) void spiSendBlock(uint8_t token, const uint8_t* buf) { SPDR = token; for (uint16_t i = 0; i < 512; i += 2) { while (!(SPSR & (1 << SPIF))) { /* Intentionally left empty */ } SPDR = buf[i]; while (!(SPSR & (1 << SPIF))) { /* Intentionally left empty */ } SPDR = buf[i + 1]; } while (!(SPSR & (1 << SPIF))) { /* Intentionally left empty */ } } //your_sha256_hash-------------- #else // SOFTWARE_SPI //your_sha256_hash-------------- /** nop to tune soft SPI timing */ #define nop asm volatile ("nop\n\t") //your_sha256_hash-------------- /** Soft SPI receive byte */ static uint8_t spiRec() { uint8_t data = 0; // no interrupts during byte receive - about 8 us cli(); // output pin high - like sending 0XFF fastDigitalWrite(SPI_MOSI_PIN, HIGH); for (uint8_t i = 0; i < 8; i++) { fastDigitalWrite(SPI_SCK_PIN, HIGH); // adjust so SCK is nice nop; nop; data <<= 1; if (fastDigitalRead(SPI_MISO_PIN)) data |= 1; fastDigitalWrite(SPI_SCK_PIN, LOW); } // enable interrupts sei(); return data; } //your_sha256_hash-------------- /** Soft SPI read data */ static void spiRead(uint8_t* buf, uint16_t nbyte) { for (uint16_t i = 0; i < nbyte; i++) { buf[i] = spiRec(); } } //your_sha256_hash-------------- /** Soft SPI send byte */ static void spiSend(uint8_t data) { // no interrupts during byte send - about 8 us cli(); for (uint8_t i = 0; i < 8; i++) { fastDigitalWrite(SPI_SCK_PIN, LOW); fastDigitalWrite(SPI_MOSI_PIN, data & 0X80); data <<= 1; fastDigitalWrite(SPI_SCK_PIN, HIGH); } // hold SCK high for a few ns nop; nop; nop; nop; fastDigitalWrite(SPI_SCK_PIN, LOW); // enable interrupts sei(); } //your_sha256_hash-------------- /** Soft SPI send block */ void spiSendBlock(uint8_t token, const uint8_t* buf) { spiSend(token); for (uint16_t i = 0; i < 512; i++) { spiSend(buf[i]); } } #endif // SOFTWARE_SPI //your_sha256_hash-------------- // send command and return error code. Return zero for OK uint8_t Sd2Card::cardCommand(uint8_t cmd, uint32_t arg) { // select card chipSelectLow(); // wait up to 300 ms if busy waitNotBusy(300); // send command spiSend(cmd | 0x40); // send argument for (int8_t s = 24; s >= 0; s -= 8) spiSend(arg >> s); // send CRC uint8_t crc = 0XFF; if (cmd == CMD0) crc = 0X95; // correct crc for CMD0 with arg 0 if (cmd == CMD8) crc = 0X87; // correct crc for CMD8 with arg 0X1AA spiSend(crc); // skip stuff byte for stop read if (cmd == CMD12) spiRec(); // wait for response for (uint8_t i = 0; ((status_ = spiRec()) & 0X80) && i != 0XFF; i++) { /* Intentionally left empty */ } return status_; } //your_sha256_hash-------------- /** * Determine the size of an SD flash memory card. * * \return The number of 512 byte data blocks in the card * or zero if an error occurs. */ uint32_t Sd2Card::cardSize() { csd_t csd; if (!readCSD(&csd)) return 0; if (csd.v1.csd_ver == 0) { uint8_t read_bl_len = csd.v1.read_bl_len; uint16_t c_size = (csd.v1.c_size_high << 10) | (csd.v1.c_size_mid << 2) | csd.v1.c_size_low; uint8_t c_size_mult = (csd.v1.c_size_mult_high << 1) | csd.v1.c_size_mult_low; return (uint32_t)(c_size + 1) << (c_size_mult + read_bl_len - 7); } else if (csd.v2.csd_ver == 1) { uint32_t c_size = ((uint32_t)csd.v2.c_size_high << 16) | (csd.v2.c_size_mid << 8) | csd.v2.c_size_low; return (c_size + 1) << 10; } else { error(SD_CARD_ERROR_BAD_CSD); return 0; } } //your_sha256_hash-------------- void Sd2Card::chipSelectHigh() { digitalWrite(chipSelectPin_, HIGH); } //your_sha256_hash-------------- void Sd2Card::chipSelectLow() { #ifndef SOFTWARE_SPI spiInit(spiRate_); #endif // SOFTWARE_SPI digitalWrite(chipSelectPin_, LOW); } //your_sha256_hash-------------- /** Erase a range of blocks. * * \param[in] firstBlock The address of the first block in the range. * \param[in] lastBlock The address of the last block in the range. * * \note This function requests the SD card to do a flash erase for a * range of blocks. The data on the card after an erase operation is * either 0 or 1, depends on the card vendor. The card must support * single block erase. * * \return The value one, true, is returned for success and * the value zero, false, is returned for failure. */ bool Sd2Card::erase(uint32_t firstBlock, uint32_t lastBlock) { csd_t csd; if (!readCSD(&csd)) goto fail; // check for single block erase if (!csd.v1.erase_blk_en) { // erase size mask uint8_t m = (csd.v1.sector_size_high << 1) | csd.v1.sector_size_low; if ((firstBlock & m) != 0 || ((lastBlock + 1) & m) != 0) { // error card can't erase specified area error(SD_CARD_ERROR_ERASE_SINGLE_BLOCK); goto fail; } } if (type_ != SD_CARD_TYPE_SDHC) { firstBlock <<= 9; lastBlock <<= 9; } if (cardCommand(CMD32, firstBlock) || cardCommand(CMD33, lastBlock) || cardCommand(CMD38, 0)) { error(SD_CARD_ERROR_ERASE); goto fail; } if (!waitNotBusy(SD_ERASE_TIMEOUT)) { error(SD_CARD_ERROR_ERASE_TIMEOUT); goto fail; } chipSelectHigh(); return true; fail: chipSelectHigh(); return false; } //your_sha256_hash-------------- /** Determine if card supports single block erase. * * \return The value one, true, is returned if single block erase is supported. * The value zero, false, is returned if single block erase is not supported. */ bool Sd2Card::eraseSingleBlockEnable() { csd_t csd; return readCSD(&csd) ? csd.v1.erase_blk_en : false; } //your_sha256_hash-------------- /** * Initialize an SD flash memory card. * * \param[in] sckRateID SPI clock rate selector. See setSckRate(). * \param[in] chipSelectPin SD chip select pin number. * * \return The value one, true, is returned for success and * the value zero, false, is returned for failure. The reason for failure * can be determined by calling errorCode() and errorData(). */ bool Sd2Card::init(uint8_t sckRateID, uint8_t chipSelectPin) { errorCode_ = type_ = 0; chipSelectPin_ = chipSelectPin; // 16-bit init start time allows over a minute uint16_t t0 = (uint16_t)millis(); uint32_t arg; // set pin modes pinMode(chipSelectPin_, OUTPUT); chipSelectHigh(); pinMode(SPI_MISO_PIN, INPUT); pinMode(SPI_MOSI_PIN, OUTPUT); pinMode(SPI_SCK_PIN, OUTPUT); #ifndef SOFTWARE_SPI // SS must be in output mode even it is not chip select pinMode(SS_PIN, OUTPUT); // set SS high - may be chip select for another SPI device #if SET_SPI_SS_HIGH digitalWrite(SS_PIN, HIGH); #endif // SET_SPI_SS_HIGH // set SCK rate for initialization commands spiRate_ = SPI_SD_INIT_RATE; spiInit(spiRate_); #endif // SOFTWARE_SPI // must supply min of 74 clock cycles with CS high. for (uint8_t i = 0; i < 10; i++) spiSend(0XFF); // command to go idle in SPI mode while ((status_ = cardCommand(CMD0, 0)) != R1_IDLE_STATE) { if (((uint16_t)millis() - t0) > SD_INIT_TIMEOUT) { error(SD_CARD_ERROR_CMD0); goto fail; } } // check SD version if ((cardCommand(CMD8, 0x1AA) & R1_ILLEGAL_COMMAND)) { type(SD_CARD_TYPE_SD1); } else { // only need last byte of r7 response for (uint8_t i = 0; i < 4; i++) status_ = spiRec(); if (status_ != 0XAA) { error(SD_CARD_ERROR_CMD8); goto fail; } type(SD_CARD_TYPE_SD2); } // initialize card and send host supports SDHC if SD2 arg = type() == SD_CARD_TYPE_SD2 ? 0X40000000 : 0; while ((status_ = cardAcmd(ACMD41, arg)) != R1_READY_STATE) { // check for timeout if (((uint16_t)millis() - t0) > SD_INIT_TIMEOUT) { error(SD_CARD_ERROR_ACMD41); goto fail; } } // if SD2 read OCR register to check for SDHC card if (type() == SD_CARD_TYPE_SD2) { if (cardCommand(CMD58, 0)) { error(SD_CARD_ERROR_CMD58); goto fail; } if ((spiRec() & 0XC0) == 0XC0) type(SD_CARD_TYPE_SDHC); // discard rest of ocr - contains allowed voltage range for (uint8_t i = 0; i < 3; i++) spiRec(); } chipSelectHigh(); #ifndef SOFTWARE_SPI return setSckRate(sckRateID); #else // SOFTWARE_SPI return true; #endif // SOFTWARE_SPI fail: chipSelectHigh(); return false; } //your_sha256_hash-------------- /** * Read a 512 byte block from an SD card. * * \param[in] blockNumber Logical block to be read. * \param[out] dst Pointer to the location that will receive the data. * \return The value one, true, is returned for success and * the value zero, false, is returned for failure. */ bool Sd2Card::readBlock(uint32_t blockNumber, uint8_t* dst) { #ifdef SD_CHECK_AND_RETRY uint8_t retryCnt = 3; // use address if not SDHC card if (type()!= SD_CARD_TYPE_SDHC) blockNumber <<= 9; retry2: retryCnt --; if (cardCommand(CMD17, blockNumber)) { error(SD_CARD_ERROR_CMD17); if (retryCnt > 0) goto retry; goto fail; } if (!readData(dst, 512)) { if (retryCnt > 0) goto retry; goto fail; } return true; retry: chipSelectHigh(); cardCommand(CMD12, 0);//Try sending a stop command, but ignore the result. errorCode_ = 0; goto retry2; #else // use address if not SDHC card if (type()!= SD_CARD_TYPE_SDHC) blockNumber <<= 9; if (cardCommand(CMD17, blockNumber)) { error(SD_CARD_ERROR_CMD17); goto fail; } return readData(dst, 512); #endif fail: chipSelectHigh(); return false; } //your_sha256_hash-------------- /** Read one data block in a multiple block read sequence * * \param[in] dst Pointer to the location for the data to be read. * * \return The value one, true, is returned for success and * the value zero, false, is returned for failure. */ bool Sd2Card::readData(uint8_t *dst) { chipSelectLow(); return readData(dst, 512); } #ifdef SD_CHECK_AND_RETRY static const uint16_t crctab[] PROGMEM = { 0x0000, 0x1021, 0x2042, 0x3063, 0x4084, 0x50A5, 0x60C6, 0x70E7, 0x8108, 0x9129, 0xA14A, 0xB16B, 0xC18C, 0xD1AD, 0xE1CE, 0xF1EF, 0x1231, 0x0210, 0x3273, 0x2252, 0x52B5, 0x4294, 0x72F7, 0x62D6, 0x9339, 0x8318, 0xB37B, 0xA35A, 0xD3BD, 0xC39C, 0xF3FF, 0xE3DE, 0x2462, 0x3443, 0x0420, 0x1401, 0x64E6, 0x74C7, 0x44A4, 0x5485, 0xA56A, 0xB54B, 0x8528, 0x9509, 0xE5EE, 0xF5CF, 0xC5AC, 0xD58D, 0x3653, 0x2672, 0x1611, 0x0630, 0x76D7, 0x66F6, 0x5695, 0x46B4, 0xB75B, 0xA77A, 0x9719, 0x8738, 0xF7DF, 0xE7FE, 0xD79D, 0xC7BC, 0x48C4, 0x58E5, 0x6886, 0x78A7, 0x0840, 0x1861, 0x2802, 0x3823, 0xC9CC, 0xD9ED, 0xE98E, 0xF9AF, 0x8948, 0x9969, 0xA90A, 0xB92B, 0x5AF5, 0x4AD4, 0x7AB7, 0x6A96, 0x1A71, 0x0A50, 0x3A33, 0x2A12, 0xDBFD, 0xCBDC, 0xFBBF, 0xEB9E, 0x9B79, 0x8B58, 0xBB3B, 0xAB1A, 0x6CA6, 0x7C87, 0x4CE4, 0x5CC5, 0x2C22, 0x3C03, 0x0C60, 0x1C41, 0xEDAE, 0xFD8F, 0xCDEC, 0xDDCD, 0xAD2A, 0xBD0B, 0x8D68, 0x9D49, 0x7E97, 0x6EB6, 0x5ED5, 0x4EF4, 0x3E13, 0x2E32, 0x1E51, 0x0E70, 0xFF9F, 0xEFBE, 0xDFDD, 0xCFFC, 0xBF1B, 0xAF3A, 0x9F59, 0x8F78, 0x9188, 0x81A9, 0xB1CA, 0xA1EB, 0xD10C, 0xC12D, 0xF14E, 0xE16F, 0x1080, 0x00A1, 0x30C2, 0x20E3, 0x5004, 0x4025, 0x7046, 0x6067, 0x83B9, 0x9398, 0xA3FB, 0xB3DA, 0xC33D, 0xD31C, 0xE37F, 0xF35E, 0x02B1, 0x1290, 0x22F3, 0x32D2, 0x4235, 0x5214, 0x6277, 0x7256, 0xB5EA, 0xA5CB, 0x95A8, 0x8589, 0xF56E, 0xE54F, 0xD52C, 0xC50D, 0x34E2, 0x24C3, 0x14A0, 0x0481, 0x7466, 0x6447, 0x5424, 0x4405, 0xA7DB, 0xB7FA, 0x8799, 0x97B8, 0xE75F, 0xF77E, 0xC71D, 0xD73C, 0x26D3, 0x36F2, 0x0691, 0x16B0, 0x6657, 0x7676, 0x4615, 0x5634, 0xD94C, 0xC96D, 0xF90E, 0xE92F, 0x99C8, 0x89E9, 0xB98A, 0xA9AB, 0x5844, 0x4865, 0x7806, 0x6827, 0x18C0, 0x08E1, 0x3882, 0x28A3, 0xCB7D, 0xDB5C, 0xEB3F, 0xFB1E, 0x8BF9, 0x9BD8, 0xABBB, 0xBB9A, 0x4A75, 0x5A54, 0x6A37, 0x7A16, 0x0AF1, 0x1AD0, 0x2AB3, 0x3A92, 0xFD2E, 0xED0F, 0xDD6C, 0xCD4D, 0xBDAA, 0xAD8B, 0x9DE8, 0x8DC9, 0x7C26, 0x6C07, 0x5C64, 0x4C45, 0x3CA2, 0x2C83, 0x1CE0, 0x0CC1, 0xEF1F, 0xFF3E, 0xCF5D, 0xDF7C, 0xAF9B, 0xBFBA, 0x8FD9, 0x9FF8, 0x6E17, 0x7E36, 0x4E55, 0x5E74, 0x2E93, 0x3EB2, 0x0ED1, 0x1EF0 }; static uint16_t CRC_CCITT(const uint8_t* data, size_t n) { uint16_t crc = 0; for (size_t i = 0; i < n; i++) { crc = pgm_read_word(&crctab[(crc >> 8 ^ data[i]) & 0XFF]) ^ (crc << 8); } return crc; } #endif //your_sha256_hash-------------- bool Sd2Card::readData(uint8_t* dst, uint16_t count) { // wait for start block token uint16_t t0 = millis(); while ((status_ = spiRec()) == 0XFF) { if (((uint16_t)millis() - t0) > SD_READ_TIMEOUT) { error(SD_CARD_ERROR_READ_TIMEOUT); goto fail; } } if (status_ != DATA_START_BLOCK) { error(SD_CARD_ERROR_READ); goto fail; } // transfer data spiRead(dst, count); #ifdef SD_CHECK_AND_RETRY { uint16_t calcCrc = CRC_CCITT(dst, count); uint16_t recvCrc = spiRec() << 8; recvCrc |= spiRec(); if (calcCrc != recvCrc) { error(SD_CARD_ERROR_CRC); goto fail; } } #else // discard CRC spiRec(); spiRec(); #endif chipSelectHigh(); return true; fail: chipSelectHigh(); return false; } //your_sha256_hash-------------- /** read CID or CSR register */ bool Sd2Card::readRegister(uint8_t cmd, void* buf) { uint8_t* dst = reinterpret_cast<uint8_t*>(buf); if (cardCommand(cmd, 0)) { error(SD_CARD_ERROR_READ_REG); goto fail; } return readData(dst, 16); fail: chipSelectHigh(); return false; } //your_sha256_hash-------------- /** Start a read multiple blocks sequence. * * \param[in] blockNumber Address of first block in sequence. * * \note This function is used with readData() and readStop() for optimized * multiple block reads. SPI chipSelect must be low for the entire sequence. * * \return The value one, true, is returned for success and * the value zero, false, is returned for failure. */ bool Sd2Card::readStart(uint32_t blockNumber) { if (type()!= SD_CARD_TYPE_SDHC) blockNumber <<= 9; if (cardCommand(CMD18, blockNumber)) { error(SD_CARD_ERROR_CMD18); goto fail; } chipSelectHigh(); return true; fail: chipSelectHigh(); return false; } //your_sha256_hash-------------- /** End a read multiple blocks sequence. * * \return The value one, true, is returned for success and * the value zero, false, is returned for failure. */ bool Sd2Card::readStop() { chipSelectLow(); if (cardCommand(CMD12, 0)) { error(SD_CARD_ERROR_CMD12); goto fail; } chipSelectHigh(); return true; fail: chipSelectHigh(); return false; } //your_sha256_hash-------------- /** * Set the SPI clock rate. * * \param[in] sckRateID A value in the range [0, 6]. * * The SPI clock will be set to F_CPU/pow(2, 1 + sckRateID). The maximum * SPI rate is F_CPU/2 for \a sckRateID = 0 and the minimum rate is F_CPU/128 * for \a scsRateID = 6. * * \return The value one, true, is returned for success and the value zero, * false, is returned for an invalid value of \a sckRateID. */ bool Sd2Card::setSckRate(uint8_t sckRateID) { if (sckRateID > 6) { error(SD_CARD_ERROR_SCK_RATE); return false; } spiRate_ = sckRateID; return true; } //your_sha256_hash-------------- // wait for card to go not busy bool Sd2Card::waitNotBusy(uint16_t timeoutMillis) { uint16_t t0 = millis(); while (spiRec() != 0XFF) { if (((uint16_t)millis() - t0) >= timeoutMillis) goto fail; } return true; fail: return false; } //your_sha256_hash-------------- /** * Writes a 512 byte block to an SD card. * * \param[in] blockNumber Logical block to be written. * \param[in] src Pointer to the location of the data to be written. * \return The value one, true, is returned for success and * the value zero, false, is returned for failure. */ bool Sd2Card::writeBlock(uint32_t blockNumber, const uint8_t* src) { // use address if not SDHC card if (type() != SD_CARD_TYPE_SDHC) blockNumber <<= 9; if (cardCommand(CMD24, blockNumber)) { error(SD_CARD_ERROR_CMD24); goto fail; } if (!writeData(DATA_START_BLOCK, src)) goto fail; // wait for flash programming to complete if (!waitNotBusy(SD_WRITE_TIMEOUT)) { error(SD_CARD_ERROR_WRITE_TIMEOUT); goto fail; } // response is r2 so get and check two bytes for nonzero if (cardCommand(CMD13, 0) || spiRec()) { error(SD_CARD_ERROR_WRITE_PROGRAMMING); goto fail; } chipSelectHigh(); return true; fail: chipSelectHigh(); return false; } //your_sha256_hash-------------- /** Write one data block in a multiple block write sequence * \param[in] src Pointer to the location of the data to be written. * \return The value one, true, is returned for success and * the value zero, false, is returned for failure. */ bool Sd2Card::writeData(const uint8_t* src) { chipSelectLow(); // wait for previous write to finish if (!waitNotBusy(SD_WRITE_TIMEOUT)) goto fail; if (!writeData(WRITE_MULTIPLE_TOKEN, src)) goto fail; chipSelectHigh(); return true; fail: error(SD_CARD_ERROR_WRITE_MULTIPLE); chipSelectHigh(); return false; } //your_sha256_hash-------------- // send one block of data for write block or write multiple blocks bool Sd2Card::writeData(uint8_t token, const uint8_t* src) { spiSendBlock(token, src); spiSend(0xff); // dummy crc spiSend(0xff); // dummy crc status_ = spiRec(); if ((status_ & DATA_RES_MASK) != DATA_RES_ACCEPTED) { error(SD_CARD_ERROR_WRITE); goto fail; } return true; fail: chipSelectHigh(); return false; } //your_sha256_hash-------------- /** Start a write multiple blocks sequence. * * \param[in] blockNumber Address of first block in sequence. * \param[in] eraseCount The number of blocks to be pre-erased. * * \note This function is used with writeData() and writeStop() * for optimized multiple block writes. * * \return The value one, true, is returned for success and * the value zero, false, is returned for failure. */ bool Sd2Card::writeStart(uint32_t blockNumber, uint32_t eraseCount) { // send pre-erase count if (cardAcmd(ACMD23, eraseCount)) { error(SD_CARD_ERROR_ACMD23); goto fail; } // use address if not SDHC card if (type() != SD_CARD_TYPE_SDHC) blockNumber <<= 9; if (cardCommand(CMD25, blockNumber)) { error(SD_CARD_ERROR_CMD25); goto fail; } chipSelectHigh(); return true; fail: chipSelectHigh(); return false; } //your_sha256_hash-------------- /** End a write multiple blocks sequence. * * \return The value one, true, is returned for success and * the value zero, false, is returned for failure. */ bool Sd2Card::writeStop() { chipSelectLow(); if (!waitNotBusy(SD_WRITE_TIMEOUT)) goto fail; spiSend(STOP_TRAN_TOKEN); if (!waitNotBusy(SD_WRITE_TIMEOUT)) goto fail; chipSelectHigh(); return true; fail: error(SD_CARD_ERROR_STOP_TRAN); chipSelectHigh(); return false; } #endif ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/Sd2Card.cpp
c++
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
7,180
```objective-c /* Arduino SdFat Library * * This file is part of the Arduino SdFat Library * * This Library is free software: you can redistribute it and/or modify * (at your option) any later version. * * This Library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * along with the Arduino SdFat Library. If not, see * <path_to_url */ /** * \file * \brief SdFile class */ #include "Marlin.h" #ifdef SDSUPPORT #include "SdBaseFile.h" #include <Print.h> #ifndef SdFile_h #define SdFile_h //your_sha256_hash-------------- /** * \class SdFile * \brief SdBaseFile with Print. */ class SdFile : public SdBaseFile, public Print { public: SdFile() {} SdFile(const char* name, uint8_t oflag); #if ARDUINO >= 100 size_t write(uint8_t b); #else void write(uint8_t b); #endif int16_t write(const void* buf, uint16_t nbyte); void write(const char* str); void write_P(PGM_P str); void writeln_P(PGM_P str); }; #endif // SdFile_h #endif ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/SdFile.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
312
```c++ #include "Configuration.h" #ifdef DIGIPOT_I2C #include "Stream.h" #include "utility/twi.h" #include "Wire.h" // Settings for the I2C based DIGIPOT (MCP4451) on Azteeg X3 Pro #if MB(5DPRINT) #define DIGIPOT_I2C_FACTOR 117.96 #define DIGIPOT_I2C_MAX_CURRENT 1.736 #else #define DIGIPOT_I2C_FACTOR 106.7 #define DIGIPOT_I2C_MAX_CURRENT 2.5 #endif static byte current_to_wiper( float current ){ return byte(ceil(float((DIGIPOT_I2C_FACTOR*current)))); } static void i2c_send(byte addr, byte a, byte b) { Wire.beginTransmission(addr); Wire.write(a); Wire.write(b); Wire.endTransmission(); } // This is for the MCP4451 I2C based digipot void digipot_i2c_set_current( int channel, float current ) { current = min( (float) max( current, 0.0f ), DIGIPOT_I2C_MAX_CURRENT); // these addresses are specific to Azteeg X3 Pro, can be set to others, // In this case first digipot is at address A0=0, A1= 0, second one is at A0=0, A1= 1 byte addr= 0x2C; // channel 0-3 if(channel >= 4) { addr= 0x2E; // channel 4-7 channel-= 4; } // Initial setup i2c_send( addr, 0x40, 0xff ); i2c_send( addr, 0xA0, 0xff ); // Set actual wiper value byte addresses[4] = { 0x00, 0x10, 0x60, 0x70 }; i2c_send( addr, addresses[channel], current_to_wiper(current) ); } void digipot_i2c_init() { const float digipot_motor_current[] = DIGIPOT_I2C_MOTOR_CURRENTS; Wire.begin(); // setup initial currents as defined in Configuration_adv.h for(int i=0;i<=sizeof(digipot_motor_current)/sizeof(float);i++) { digipot_i2c_set_current(i, digipot_motor_current[i]); } } #endif ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/digipot_mcp4451.cpp
c++
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
540
```c++ /* HardwareSerial.cpp - Hardware serial library for Wiring This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU You should have received a copy of the GNU Lesser General Public Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Modified 23 November 2006 by David A. Mellis Modified 28 September 2010 by Mark Sproul */ #include "Marlin.h" #include "MarlinSerial.h" #ifndef AT90USB // this next line disables the entire HardwareSerial.cpp, // this is so I can support Attiny series and any other chip without a UART #if defined(UBRRH) || defined(UBRR0H) || defined(UBRR1H) || defined(UBRR2H) || defined(UBRR3H) #if UART_PRESENT(SERIAL_PORT) ring_buffer rx_buffer = { { 0 }, 0, 0 }; #endif FORCE_INLINE void store_char(unsigned char c) { int i = (unsigned int)(rx_buffer.head + 1) % RX_BUFFER_SIZE; // if we should be storing the received character into the location // just before the tail (meaning that the head would advance to the // current location of the tail), we're about to overflow the buffer // and so we don't write the character or advance the head. if (i != rx_buffer.tail) { rx_buffer.buffer[rx_buffer.head] = c; rx_buffer.head = i; } } //#elif defined(SIG_USART_RECV) #if defined(M_USARTx_RX_vect) // fixed by Mark Sproul this is on the 644/644p //SIGNAL(SIG_USART_RECV) SIGNAL(M_USARTx_RX_vect) { unsigned char c = M_UDRx; store_char(c); } #endif // Constructors //////////////////////////////////////////////////////////////// MarlinSerial::MarlinSerial() { } // Public Methods ////////////////////////////////////////////////////////////// void MarlinSerial::begin(long baud) { uint16_t baud_setting; bool useU2X = true; #if F_CPU == 16000000UL && SERIAL_PORT == 0 // hard-coded exception for compatibility with the bootloader shipped // with the Duemilanove and previous boards and the firmware on the 8U2 // on the Uno and Mega 2560. if (baud == 57600) { useU2X = false; } #endif if (useU2X) { M_UCSRxA = 1 << M_U2Xx; baud_setting = (F_CPU / 4 / baud - 1) / 2; } else { M_UCSRxA = 0; baud_setting = (F_CPU / 8 / baud - 1) / 2; } // assign the baud_setting, a.k.a. ubbr (USART Baud Rate Register) M_UBRRxH = baud_setting >> 8; M_UBRRxL = baud_setting; sbi(M_UCSRxB, M_RXENx); sbi(M_UCSRxB, M_TXENx); sbi(M_UCSRxB, M_RXCIEx); } void MarlinSerial::end() { cbi(M_UCSRxB, M_RXENx); cbi(M_UCSRxB, M_TXENx); cbi(M_UCSRxB, M_RXCIEx); } int MarlinSerial::peek(void) { if (rx_buffer.head == rx_buffer.tail) { return -1; } else { return rx_buffer.buffer[rx_buffer.tail]; } } int MarlinSerial::read(void) { // if the head isn't ahead of the tail, we don't have any characters if (rx_buffer.head == rx_buffer.tail) { return -1; } else { unsigned char c = rx_buffer.buffer[rx_buffer.tail]; rx_buffer.tail = (unsigned int)(rx_buffer.tail + 1) % RX_BUFFER_SIZE; return c; } } void MarlinSerial::flush() { // don't reverse this or there may be problems if the RX interrupt // occurs after reading the value of rx_buffer_head but before writing // the value to rx_buffer_tail; the previous value of rx_buffer_head // may be written to rx_buffer_tail, making it appear as if the buffer // don't reverse this or there may be problems if the RX interrupt // occurs after reading the value of rx_buffer_head but before writing // the value to rx_buffer_tail; the previous value of rx_buffer_head // may be written to rx_buffer_tail, making it appear as if the buffer // were full, not empty. rx_buffer.head = rx_buffer.tail; } /// imports from print.h void MarlinSerial::print(char c, int base) { print((long) c, base); } void MarlinSerial::print(unsigned char b, int base) { print((unsigned long) b, base); } void MarlinSerial::print(int n, int base) { print((long) n, base); } void MarlinSerial::print(unsigned int n, int base) { print((unsigned long) n, base); } void MarlinSerial::print(long n, int base) { if (base == 0) { write(n); } else if (base == 10) { if (n < 0) { print('-'); n = -n; } printNumber(n, 10); } else { printNumber(n, base); } } void MarlinSerial::print(unsigned long n, int base) { if (base == 0) write(n); else printNumber(n, base); } void MarlinSerial::print(double n, int digits) { printFloat(n, digits); } void MarlinSerial::println(void) { print('\r'); print('\n'); } void MarlinSerial::println(const String &s) { print(s); println(); } void MarlinSerial::println(const char c[]) { print(c); println(); } void MarlinSerial::println(char c, int base) { print(c, base); println(); } void MarlinSerial::println(unsigned char b, int base) { print(b, base); println(); } void MarlinSerial::println(int n, int base) { print(n, base); println(); } void MarlinSerial::println(unsigned int n, int base) { print(n, base); println(); } void MarlinSerial::println(long n, int base) { print(n, base); println(); } void MarlinSerial::println(unsigned long n, int base) { print(n, base); println(); } void MarlinSerial::println(double n, int digits) { print(n, digits); println(); } // Private Methods ///////////////////////////////////////////////////////////// void MarlinSerial::printNumber(unsigned long n, uint8_t base) { unsigned char buf[8 * sizeof(long)]; // Assumes 8-bit chars. unsigned long i = 0; if (n == 0) { print('0'); return; } while (n > 0) { buf[i++] = n % base; n /= base; } for (; i > 0; i--) print((char) (buf[i - 1] < 10 ? '0' + buf[i - 1] : 'A' + buf[i - 1] - 10)); } void MarlinSerial::printFloat(double number, uint8_t digits) { // Handle negative numbers if (number < 0.0) { print('-'); number = -number; } // Round correctly so that print(1.999, 2) prints as "2.00" double rounding = 0.5; for (uint8_t i=0; i<digits; ++i) rounding /= 10.0; number += rounding; // Extract the integer part of the number and print it unsigned long int_part = (unsigned long)number; double remainder = number - (double)int_part; print(int_part); // Print the decimal point, but only if there are digits beyond if (digits > 0) print("."); // Extract digits from the remainder one at a time while (digits-- > 0) { remainder *= 10.0; int toPrint = int(remainder); print(toPrint); remainder -= toPrint; } } // Preinstantiate Objects ////////////////////////////////////////////////////// MarlinSerial MSerial; #endif // whole file #endif // !AT90USB // For AT90USB targets use the UART for BT interfacing #if defined(AT90USB) && defined (BTENABLED) HardwareSerial bt; #endif ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/MarlinSerial.cpp
c++
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
2,000
```c++ /* Arduino SdFat Library * * This file is part of the Arduino SdFat Library * * This Library is free software: you can redistribute it and/or modify * (at your option) any later version. * * This Library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * along with the Arduino SdFat Library. If not, see * <path_to_url */ #include "Marlin.h" #ifdef SDSUPPORT #include "SdVolume.h" //your_sha256_hash-------------- #if !USE_MULTIPLE_CARDS // raw block cache uint32_t SdVolume::cacheBlockNumber_; // current block number cache_t SdVolume::cacheBuffer_; // 512 byte cache for Sd2Card Sd2Card* SdVolume::sdCard_; // pointer to SD card object bool SdVolume::cacheDirty_; // cacheFlush() will write block if true uint32_t SdVolume::cacheMirrorBlock_; // mirror block for second FAT #endif // USE_MULTIPLE_CARDS //your_sha256_hash-------------- // find a contiguous group of clusters bool SdVolume::allocContiguous(uint32_t count, uint32_t* curCluster) { // start of group uint32_t bgnCluster; // end of group uint32_t endCluster; // last cluster of FAT uint32_t fatEnd = clusterCount_ + 1; // flag to save place to start next search bool setStart; // set search start cluster if (*curCluster) { // try to make file contiguous bgnCluster = *curCluster + 1; // don't save new start location setStart = false; } else { // start at likely place for free cluster bgnCluster = allocSearchStart_; // save next search start if one cluster setStart = count == 1; } // end of group endCluster = bgnCluster; // search the FAT for free clusters for (uint32_t n = 0;; n++, endCluster++) { // can't find space checked all clusters if (n >= clusterCount_) goto fail; // past end - start from beginning of FAT if (endCluster > fatEnd) { bgnCluster = endCluster = 2; } uint32_t f; if (!fatGet(endCluster, &f)) goto fail; if (f != 0) { // cluster in use try next cluster as bgnCluster bgnCluster = endCluster + 1; } else if ((endCluster - bgnCluster + 1) == count) { // done - found space break; } } // mark end of chain if (!fatPutEOC(endCluster)) goto fail; // link clusters while (endCluster > bgnCluster) { if (!fatPut(endCluster - 1, endCluster)) goto fail; endCluster--; } if (*curCluster != 0) { // connect chains if (!fatPut(*curCluster, bgnCluster)) goto fail; } // return first cluster number to caller *curCluster = bgnCluster; // remember possible next free cluster if (setStart) allocSearchStart_ = bgnCluster + 1; return true; fail: return false; } //your_sha256_hash-------------- bool SdVolume::cacheFlush() { if (cacheDirty_) { if (!sdCard_->writeBlock(cacheBlockNumber_, cacheBuffer_.data)) { goto fail; } // mirror FAT tables if (cacheMirrorBlock_) { if (!sdCard_->writeBlock(cacheMirrorBlock_, cacheBuffer_.data)) { goto fail; } cacheMirrorBlock_ = 0; } cacheDirty_ = 0; } return true; fail: return false; } //your_sha256_hash-------------- bool SdVolume::cacheRawBlock(uint32_t blockNumber, bool dirty) { if (cacheBlockNumber_ != blockNumber) { if (!cacheFlush()) goto fail; if (!sdCard_->readBlock(blockNumber, cacheBuffer_.data)) goto fail; cacheBlockNumber_ = blockNumber; } if (dirty) cacheDirty_ = true; return true; fail: return false; } //your_sha256_hash-------------- // return the size in bytes of a cluster chain bool SdVolume::chainSize(uint32_t cluster, uint32_t* size) { uint32_t s = 0; do { if (!fatGet(cluster, &cluster)) goto fail; s += 512UL << clusterSizeShift_; } while (!isEOC(cluster)); *size = s; return true; fail: return false; } //your_sha256_hash-------------- // Fetch a FAT entry bool SdVolume::fatGet(uint32_t cluster, uint32_t* value) { uint32_t lba; if (cluster > (clusterCount_ + 1)) goto fail; if (FAT12_SUPPORT && fatType_ == 12) { uint16_t index = cluster; index += index >> 1; lba = fatStartBlock_ + (index >> 9); if (!cacheRawBlock(lba, CACHE_FOR_READ)) goto fail; index &= 0X1FF; uint16_t tmp = cacheBuffer_.data[index]; index++; if (index == 512) { if (!cacheRawBlock(lba + 1, CACHE_FOR_READ)) goto fail; index = 0; } tmp |= cacheBuffer_.data[index] << 8; *value = cluster & 1 ? tmp >> 4 : tmp & 0XFFF; return true; } if (fatType_ == 16) { lba = fatStartBlock_ + (cluster >> 8); } else if (fatType_ == 32) { lba = fatStartBlock_ + (cluster >> 7); } else { goto fail; } if (lba != cacheBlockNumber_) { if (!cacheRawBlock(lba, CACHE_FOR_READ)) goto fail; } if (fatType_ == 16) { *value = cacheBuffer_.fat16[cluster & 0XFF]; } else { *value = cacheBuffer_.fat32[cluster & 0X7F] & FAT32MASK; } return true; fail: return false; } //your_sha256_hash-------------- // Store a FAT entry bool SdVolume::fatPut(uint32_t cluster, uint32_t value) { uint32_t lba; // error if reserved cluster if (cluster < 2) goto fail; // error if not in FAT if (cluster > (clusterCount_ + 1)) goto fail; if (FAT12_SUPPORT && fatType_ == 12) { uint16_t index = cluster; index += index >> 1; lba = fatStartBlock_ + (index >> 9); if (!cacheRawBlock(lba, CACHE_FOR_WRITE)) goto fail; // mirror second FAT if (fatCount_ > 1) cacheMirrorBlock_ = lba + blocksPerFat_; index &= 0X1FF; uint8_t tmp = value; if (cluster & 1) { tmp = (cacheBuffer_.data[index] & 0XF) | tmp << 4; } cacheBuffer_.data[index] = tmp; index++; if (index == 512) { lba++; index = 0; if (!cacheRawBlock(lba, CACHE_FOR_WRITE)) goto fail; // mirror second FAT if (fatCount_ > 1) cacheMirrorBlock_ = lba + blocksPerFat_; } tmp = value >> 4; if (!(cluster & 1)) { tmp = ((cacheBuffer_.data[index] & 0XF0)) | tmp >> 4; } cacheBuffer_.data[index] = tmp; return true; } if (fatType_ == 16) { lba = fatStartBlock_ + (cluster >> 8); } else if (fatType_ == 32) { lba = fatStartBlock_ + (cluster >> 7); } else { goto fail; } if (!cacheRawBlock(lba, CACHE_FOR_WRITE)) goto fail; // store entry if (fatType_ == 16) { cacheBuffer_.fat16[cluster & 0XFF] = value; } else { cacheBuffer_.fat32[cluster & 0X7F] = value; } // mirror second FAT if (fatCount_ > 1) cacheMirrorBlock_ = lba + blocksPerFat_; return true; fail: return false; } //your_sha256_hash-------------- // free a cluster chain bool SdVolume::freeChain(uint32_t cluster) { uint32_t next; // clear free cluster location allocSearchStart_ = 2; do { if (!fatGet(cluster, &next)) goto fail; // free cluster if (!fatPut(cluster, 0)) goto fail; cluster = next; } while (!isEOC(cluster)); return true; fail: return false; } //your_sha256_hash-------------- /** Volume free space in clusters. * * \return Count of free clusters for success or -1 if an error occurs. */ int32_t SdVolume::freeClusterCount() { uint32_t free = 0; uint16_t n; uint32_t todo = clusterCount_ + 2; if (fatType_ == 16) { n = 256; } else if (fatType_ == 32) { n = 128; } else { // put FAT12 here return -1; } for (uint32_t lba = fatStartBlock_; todo; todo -= n, lba++) { if (!cacheRawBlock(lba, CACHE_FOR_READ)) return -1; if (todo < n) n = todo; if (fatType_ == 16) { for (uint16_t i = 0; i < n; i++) { if (cacheBuffer_.fat16[i] == 0) free++; } } else { for (uint16_t i = 0; i < n; i++) { if (cacheBuffer_.fat32[i] == 0) free++; } } } return free; } //your_sha256_hash-------------- /** Initialize a FAT volume. * * \param[in] dev The SD card where the volume is located. * * \param[in] part The partition to be used. Legal values for \a part are * 1-4 to use the corresponding partition on a device formatted with * a MBR, Master Boot Record, or zero if the device is formatted as * a super floppy with the FAT boot sector in block zero. * * \return The value one, true, is returned for success and * the value zero, false, is returned for failure. Reasons for * failure include not finding a valid partition, not finding a valid * FAT file system in the specified partition or an I/O error. */ bool SdVolume::init(Sd2Card* dev, uint8_t part) { uint32_t totalBlocks; uint32_t volumeStartBlock = 0; fat32_boot_t* fbs; sdCard_ = dev; fatType_ = 0; allocSearchStart_ = 2; cacheDirty_ = 0; // cacheFlush() will write block if true cacheMirrorBlock_ = 0; cacheBlockNumber_ = 0XFFFFFFFF; // if part == 0 assume super floppy with FAT boot sector in block zero // if part > 0 assume mbr volume with partition table if (part) { if (part > 4)goto fail; if (!cacheRawBlock(volumeStartBlock, CACHE_FOR_READ)) goto fail; part_t* p = &cacheBuffer_.mbr.part[part-1]; if ((p->boot & 0X7F) !=0 || p->totalSectors < 100 || p->firstSector == 0) { // not a valid partition goto fail; } volumeStartBlock = p->firstSector; } if (!cacheRawBlock(volumeStartBlock, CACHE_FOR_READ)) goto fail; fbs = &cacheBuffer_.fbs32; if (fbs->bytesPerSector != 512 || fbs->fatCount == 0 || fbs->reservedSectorCount == 0 || fbs->sectorsPerCluster == 0) { // not valid FAT volume goto fail; } fatCount_ = fbs->fatCount; blocksPerCluster_ = fbs->sectorsPerCluster; // determine shift that is same as multiply by blocksPerCluster_ clusterSizeShift_ = 0; while (blocksPerCluster_ != (1 << clusterSizeShift_)) { // error if not power of 2 if (clusterSizeShift_++ > 7) goto fail; } blocksPerFat_ = fbs->sectorsPerFat16 ? fbs->sectorsPerFat16 : fbs->sectorsPerFat32; fatStartBlock_ = volumeStartBlock + fbs->reservedSectorCount; // count for FAT16 zero for FAT32 rootDirEntryCount_ = fbs->rootDirEntryCount; // directory start for FAT16 dataStart for FAT32 rootDirStart_ = fatStartBlock_ + fbs->fatCount * blocksPerFat_; // data start for FAT16 and FAT32 dataStartBlock_ = rootDirStart_ + ((32 * fbs->rootDirEntryCount + 511)/512); // total blocks for FAT16 or FAT32 totalBlocks = fbs->totalSectors16 ? fbs->totalSectors16 : fbs->totalSectors32; // total data blocks clusterCount_ = totalBlocks - (dataStartBlock_ - volumeStartBlock); // divide by cluster size to get cluster count clusterCount_ >>= clusterSizeShift_; // FAT type is determined by cluster count if (clusterCount_ < 4085) { fatType_ = 12; if (!FAT12_SUPPORT) goto fail; } else if (clusterCount_ < 65525) { fatType_ = 16; } else { rootDirStart_ = fbs->fat32RootCluster; fatType_ = 32; } return true; fail: return false; } #endif ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/SdVolume.cpp
c++
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
3,307
```c++ #include "temperature.h" #include "ultralcd.h" #ifdef ULTRA_LCD #include "Marlin.h" #include "language.h" #include "cardreader.h" #include "temperature.h" #include "stepper.h" #include "ConfigurationStore.h" int8_t encoderDiff; /* encoderDiff is updated from interrupt context and added to encoderPosition every LCD update */ /* Configuration settings */ int plaPreheatHotendTemp; int plaPreheatHPBTemp; int plaPreheatFanSpeed; int absPreheatHotendTemp; int absPreheatHPBTemp; int absPreheatFanSpeed; #ifdef FILAMENT_LCD_DISPLAY unsigned long message_millis = 0; #endif #ifdef ULTIPANEL static float manual_feedrate[] = MANUAL_FEEDRATE; #endif // ULTIPANEL /* !Configuration settings */ //Function pointer to menu functions. typedef void (*menuFunc_t)(); uint8_t lcd_status_message_level; char lcd_status_message[LCD_WIDTH+1] = WELCOME_MSG; #ifdef DOGLCD #include "dogm_lcd_implementation.h" #else #include "ultralcd_implementation_hitachi_HD44780.h" #endif /** forward declarations **/ void copy_and_scalePID_i(); void copy_and_scalePID_d(); /* Different menus */ static void lcd_status_screen(); #ifdef ULTIPANEL extern bool powersupply; static void lcd_main_menu(); static void lcd_tune_menu(); static void lcd_prepare_menu(); static void lcd_move_menu(); static void lcd_control_menu(); static void lcd_control_temperature_menu(); static void lcd_control_temperature_preheat_pla_settings_menu(); static void lcd_control_temperature_preheat_abs_settings_menu(); static void lcd_control_motion_menu(); static void lcd_control_volumetric_menu(); #ifdef DOGLCD static void lcd_set_contrast(); #endif static void lcd_control_retract_menu(); static void lcd_sdcard_menu(); #ifdef DELTA_CALIBRATION_MENU static void lcd_delta_calibrate_menu(); #endif // DELTA_CALIBRATION_MENU static void lcd_quick_feedback();//Cause an LCD refresh, and give the user visual or audible feedback that something has happened /* Different types of actions that can be used in menu items. */ static void menu_action_back(menuFunc_t data); static void menu_action_submenu(menuFunc_t data); static void menu_action_gcode(const char* pgcode); static void menu_action_function(menuFunc_t data); static void menu_action_sdfile(const char* filename, char* longFilename); static void menu_action_sddirectory(const char* filename, char* longFilename); static void menu_action_setting_edit_bool(const char* pstr, bool* ptr); static void menu_action_setting_edit_int3(const char* pstr, int* ptr, int minValue, int maxValue); static void menu_action_setting_edit_float3(const char* pstr, float* ptr, float minValue, float maxValue); static void menu_action_setting_edit_float32(const char* pstr, float* ptr, float minValue, float maxValue); static void menu_action_setting_edit_float43(const char* pstr, float* ptr, float minValue, float maxValue); static void menu_action_setting_edit_float5(const char* pstr, float* ptr, float minValue, float maxValue); static void menu_action_setting_edit_float51(const char* pstr, float* ptr, float minValue, float maxValue); static void menu_action_setting_edit_float52(const char* pstr, float* ptr, float minValue, float maxValue); static void menu_action_setting_edit_long5(const char* pstr, unsigned long* ptr, unsigned long minValue, unsigned long maxValue); static void menu_action_setting_edit_callback_bool(const char* pstr, bool* ptr, menuFunc_t callbackFunc); static void menu_action_setting_edit_callback_int3(const char* pstr, int* ptr, int minValue, int maxValue, menuFunc_t callbackFunc); static void menu_action_setting_edit_callback_float3(const char* pstr, float* ptr, float minValue, float maxValue, menuFunc_t callbackFunc); static void menu_action_setting_edit_callback_float32(const char* pstr, float* ptr, float minValue, float maxValue, menuFunc_t callbackFunc); static void menu_action_setting_edit_callback_float43(const char* pstr, float* ptr, float minValue, float maxValue, menuFunc_t callbackFunc); static void menu_action_setting_edit_callback_float5(const char* pstr, float* ptr, float minValue, float maxValue, menuFunc_t callbackFunc); static void menu_action_setting_edit_callback_float51(const char* pstr, float* ptr, float minValue, float maxValue, menuFunc_t callbackFunc); static void menu_action_setting_edit_callback_float52(const char* pstr, float* ptr, float minValue, float maxValue, menuFunc_t callbackFunc); static void menu_action_setting_edit_callback_long5(const char* pstr, unsigned long* ptr, unsigned long minValue, unsigned long maxValue, menuFunc_t callbackFunc); #define ENCODER_FEEDRATE_DEADZONE 10 #if !defined(LCD_I2C_VIKI) #ifndef ENCODER_STEPS_PER_MENU_ITEM #define ENCODER_STEPS_PER_MENU_ITEM 5 #endif #ifndef ENCODER_PULSES_PER_STEP #define ENCODER_PULSES_PER_STEP 1 #endif #else #ifndef ENCODER_STEPS_PER_MENU_ITEM #define ENCODER_STEPS_PER_MENU_ITEM 2 // VIKI LCD rotary encoder uses a different number of steps per rotation #endif #ifndef ENCODER_PULSES_PER_STEP #define ENCODER_PULSES_PER_STEP 1 #endif #endif /* Helper macros for menus */ #define START_MENU() do { \ if (encoderPosition > 0x8000) encoderPosition = 0; \ if (encoderPosition / ENCODER_STEPS_PER_MENU_ITEM < currentMenuViewOffset) currentMenuViewOffset = encoderPosition / ENCODER_STEPS_PER_MENU_ITEM;\ uint8_t _lineNr = currentMenuViewOffset, _menuItemNr; \ bool wasClicked = LCD_CLICKED;\ for(uint8_t _drawLineNr = 0; _drawLineNr < LCD_HEIGHT; _drawLineNr++, _lineNr++) { \ _menuItemNr = 0; #define MENU_ITEM(type, label, args...) do { \ if (_menuItemNr == _lineNr) { \ if (lcdDrawUpdate) { \ const char* _label_pstr = PSTR(label); \ if ((encoderPosition / ENCODER_STEPS_PER_MENU_ITEM) == _menuItemNr) { \ lcd_implementation_drawmenu_ ## type ## _selected (_drawLineNr, _label_pstr , ## args ); \ }else{\ lcd_implementation_drawmenu_ ## type (_drawLineNr, _label_pstr , ## args ); \ }\ }\ if (wasClicked && (encoderPosition / ENCODER_STEPS_PER_MENU_ITEM) == _menuItemNr) {\ lcd_quick_feedback(); \ menu_action_ ## type ( args ); \ return;\ }\ }\ _menuItemNr++;\ } while(0) #define MENU_ITEM_DUMMY() do { _menuItemNr++; } while(0) #define MENU_ITEM_EDIT(type, label, args...) MENU_ITEM(setting_edit_ ## type, label, PSTR(label) , ## args ) #define MENU_ITEM_EDIT_CALLBACK(type, label, args...) MENU_ITEM(setting_edit_callback_ ## type, label, PSTR(label) , ## args ) #define END_MENU() \ if (encoderPosition / ENCODER_STEPS_PER_MENU_ITEM >= _menuItemNr) encoderPosition = _menuItemNr * ENCODER_STEPS_PER_MENU_ITEM - 1; \ if ((uint8_t)(encoderPosition / ENCODER_STEPS_PER_MENU_ITEM) >= currentMenuViewOffset + LCD_HEIGHT) { currentMenuViewOffset = (encoderPosition / ENCODER_STEPS_PER_MENU_ITEM) - LCD_HEIGHT + 1; lcdDrawUpdate = 1; _lineNr = currentMenuViewOffset - 1; _drawLineNr = -1; } \ } } while(0) /** Used variables to keep track of the menu */ #ifndef REPRAPWORLD_KEYPAD volatile uint8_t buttons;//Contains the bits of the currently pressed buttons. #else volatile uint8_t buttons_reprapworld_keypad; // to store the reprapworld_keypad shift register values #endif #ifdef LCD_HAS_SLOW_BUTTONS volatile uint8_t slow_buttons;//Contains the bits of the currently pressed buttons. #endif uint8_t currentMenuViewOffset; /* scroll offset in the current menu */ uint32_t blocking_enc; uint8_t lastEncoderBits; uint32_t encoderPosition; #if (SDCARDDETECT > 0) bool lcd_oldcardstatus; #endif #endif //ULTIPANEL menuFunc_t currentMenu = lcd_status_screen; /* function pointer to the currently active menu */ uint32_t lcd_next_update_millis; uint8_t lcd_status_update_delay; bool ignore_click = false; bool wait_for_unclick; uint8_t lcdDrawUpdate = 2; /* Set to none-zero when the LCD needs to draw, decreased after every draw. Set to 2 in LCD routines so the LCD gets at least 1 full redraw (first redraw is partial) */ //prevMenu and prevEncoderPosition are used to store the previous menu location when editing settings. menuFunc_t prevMenu = NULL; uint16_t prevEncoderPosition; //Variables used when editing values. const char* editLabel; void* editValue; int32_t minEditValue, maxEditValue; menuFunc_t callbackFunc; // place-holders for Ki and Kd edits float raw_Ki, raw_Kd; static void lcd_goto_menu(menuFunc_t menu, const uint32_t encoder=0, const bool feedback=true) { if (currentMenu != menu) { currentMenu = menu; encoderPosition = encoder; if (feedback) lcd_quick_feedback(); // For LCD_PROGRESS_BAR re-initialize the custom characters #if defined(LCD_PROGRESS_BAR) && defined(SDSUPPORT) lcd_set_custom_characters(menu == lcd_status_screen); #endif } } /* Main status screen. It's up to the implementation specific part to show what is needed. As this is very display dependent */ static void lcd_status_screen() { #if defined(LCD_PROGRESS_BAR) && defined(SDSUPPORT) uint16_t mil = millis(); #ifndef PROGRESS_MSG_ONCE if (mil > progressBarTick + PROGRESS_BAR_MSG_TIME + PROGRESS_BAR_BAR_TIME) { progressBarTick = mil; } #endif #if PROGRESS_MSG_EXPIRE > 0 // keep the message alive if paused, count down otherwise if (messageTick > 0) { if (card.isFileOpen()) { if (IS_SD_PRINTING) { if ((mil-messageTick) >= PROGRESS_MSG_EXPIRE) { lcd_status_message[0] = '\0'; messageTick = 0; } } else { messageTick += LCD_UPDATE_INTERVAL; } } else { messageTick = 0; } } #endif #endif //LCD_PROGRESS_BAR if (lcd_status_update_delay) lcd_status_update_delay--; else lcdDrawUpdate = 1; if (lcdDrawUpdate) { lcd_implementation_status_screen(); lcd_status_update_delay = 10; /* redraw the main screen every second. This is easier then trying keep track of all things that change on the screen */ } #ifdef ULTIPANEL bool current_click = LCD_CLICKED; if (ignore_click) { if (wait_for_unclick) { if (!current_click) { ignore_click = wait_for_unclick = false; } else { current_click = false; } } else if (current_click) { lcd_quick_feedback(); wait_for_unclick = true; current_click = false; } } if (current_click) { lcd_goto_menu(lcd_main_menu); lcd_implementation_init( // to maybe revive the LCD if static electricity killed it. #if defined(LCD_PROGRESS_BAR) && defined(SDSUPPORT) currentMenu == lcd_status_screen #endif ); #ifdef FILAMENT_LCD_DISPLAY message_millis = millis(); // get status message to show up for a while #endif } #ifdef ULTIPANEL_FEEDMULTIPLY // Dead zone at 100% feedrate if ((feedmultiply < 100 && (feedmultiply + int(encoderPosition)) > 100) || (feedmultiply > 100 && (feedmultiply + int(encoderPosition)) < 100)) { encoderPosition = 0; feedmultiply = 100; } if (feedmultiply == 100 && int(encoderPosition) > ENCODER_FEEDRATE_DEADZONE) { feedmultiply += int(encoderPosition) - ENCODER_FEEDRATE_DEADZONE; encoderPosition = 0; } else if (feedmultiply == 100 && int(encoderPosition) < -ENCODER_FEEDRATE_DEADZONE) { feedmultiply += int(encoderPosition) + ENCODER_FEEDRATE_DEADZONE; encoderPosition = 0; } else if (feedmultiply != 100) { feedmultiply += int(encoderPosition); encoderPosition = 0; } #endif //ULTIPANEL_FEEDMULTIPLY if (feedmultiply < 10) feedmultiply = 10; else if (feedmultiply > 999) feedmultiply = 999; #endif //ULTIPANEL } #ifdef ULTIPANEL static void lcd_return_to_status() { lcd_goto_menu(lcd_status_screen, 0, false); } static void lcd_sdcard_pause() { card.pauseSDPrint(); } static void lcd_sdcard_resume() { card.startFileprint(); } static void lcd_sdcard_stop() { card.sdprinting = false; card.closefile(); quickStop(); if(SD_FINISHED_STEPPERRELEASE) { enquecommand_P(PSTR(SD_FINISHED_RELEASECOMMAND)); } autotempShutdown(); cancel_heatup = true; lcd_setstatus(MSG_PRINT_ABORTED); } /* Menu implementation */ static void lcd_main_menu() { START_MENU(); MENU_ITEM(back, MSG_WATCH, lcd_status_screen); if (movesplanned() || IS_SD_PRINTING) { MENU_ITEM(submenu, MSG_TUNE, lcd_tune_menu); }else{ MENU_ITEM(submenu, MSG_PREPARE, lcd_prepare_menu); #ifdef DELTA_CALIBRATION_MENU MENU_ITEM(submenu, MSG_DELTA_CALIBRATE, lcd_delta_calibrate_menu); #endif // DELTA_CALIBRATION_MENU } MENU_ITEM(submenu, MSG_CONTROL, lcd_control_menu); #ifdef SDSUPPORT if (card.cardOK) { if (card.isFileOpen()) { if (card.sdprinting) MENU_ITEM(function, MSG_PAUSE_PRINT, lcd_sdcard_pause); else MENU_ITEM(function, MSG_RESUME_PRINT, lcd_sdcard_resume); MENU_ITEM(function, MSG_STOP_PRINT, lcd_sdcard_stop); }else{ MENU_ITEM(submenu, MSG_CARD_MENU, lcd_sdcard_menu); #if SDCARDDETECT < 1 MENU_ITEM(gcode, MSG_CNG_SDCARD, PSTR("M21")); // SD-card changed by user #endif } }else{ MENU_ITEM(submenu, MSG_NO_CARD, lcd_sdcard_menu); #if SDCARDDETECT < 1 MENU_ITEM(gcode, MSG_INIT_SDCARD, PSTR("M21")); // Manually initialize the SD-card via user interface #endif } #endif END_MENU(); } #ifdef SDSUPPORT static void lcd_autostart_sd() { card.lastnr=0; card.setroot(); card.checkautostart(true); } #endif void lcd_set_home_offsets() { for(int8_t i=0; i < NUM_AXIS; i++) { if (i != E_AXIS) { add_homing[i] -= current_position[i]; current_position[i] = 0.0; } } plan_set_position(0.0, 0.0, 0.0, current_position[E_AXIS]); // Audio feedback enquecommand_P(PSTR("M300 S659 P200")); enquecommand_P(PSTR("M300 S698 P200")); lcd_return_to_status(); } #ifdef BABYSTEPPING static void _lcd_babystep(int axis, const char *msg) { if (encoderPosition != 0) { babystepsTodo[axis] += (int)encoderPosition; encoderPosition = 0; lcdDrawUpdate = 1; } if (lcdDrawUpdate) lcd_implementation_drawedit(msg, ""); if (LCD_CLICKED) lcd_goto_menu(lcd_tune_menu); } static void lcd_babystep_x() { _lcd_babystep(X_AXIS, PSTR(MSG_BABYSTEPPING_X)); } static void lcd_babystep_y() { _lcd_babystep(Y_AXIS, PSTR(MSG_BABYSTEPPING_Y)); } static void lcd_babystep_z() { _lcd_babystep(Z_AXIS, PSTR(MSG_BABYSTEPPING_Z)); } #endif //BABYSTEPPING static void lcd_tune_menu() { START_MENU(); MENU_ITEM(back, MSG_MAIN, lcd_main_menu); MENU_ITEM_EDIT(int3, MSG_SPEED, &feedmultiply, 10, 999); #if TEMP_SENSOR_0 != 0 MENU_ITEM_EDIT(int3, MSG_NOZZLE, &target_temperature[0], 0, HEATER_0_MAXTEMP - 15); #endif #if TEMP_SENSOR_1 != 0 MENU_ITEM_EDIT(int3, MSG_NOZZLE1, &target_temperature[1], 0, HEATER_1_MAXTEMP - 15); #endif #if TEMP_SENSOR_2 != 0 MENU_ITEM_EDIT(int3, MSG_NOZZLE2, &target_temperature[2], 0, HEATER_2_MAXTEMP - 15); #endif #if TEMP_SENSOR_BED != 0 MENU_ITEM_EDIT(int3, MSG_BED, &target_temperature_bed, 0, BED_MAXTEMP - 15); #endif MENU_ITEM_EDIT(int3, MSG_FAN_SPEED, &fanSpeed, 0, 255); MENU_ITEM_EDIT(int3, MSG_FLOW, &extrudemultiply, 10, 999); MENU_ITEM_EDIT(int3, MSG_FLOW0, &extruder_multiply[0], 10, 999); #if TEMP_SENSOR_1 != 0 MENU_ITEM_EDIT(int3, MSG_FLOW1, &extruder_multiply[1], 10, 999); #endif #if TEMP_SENSOR_2 != 0 MENU_ITEM_EDIT(int3, MSG_FLOW2, &extruder_multiply[2], 10, 999); #endif #ifdef BABYSTEPPING #ifdef BABYSTEP_XY MENU_ITEM(submenu, MSG_BABYSTEP_X, lcd_babystep_x); MENU_ITEM(submenu, MSG_BABYSTEP_Y, lcd_babystep_y); #endif //BABYSTEP_XY MENU_ITEM(submenu, MSG_BABYSTEP_Z, lcd_babystep_z); #endif #ifdef FILAMENTCHANGEENABLE MENU_ITEM(gcode, MSG_FILAMENTCHANGE, PSTR("M600")); #endif END_MENU(); } void lcd_preheat_pla0() { setTargetHotend0(plaPreheatHotendTemp); setTargetBed(plaPreheatHPBTemp); fanSpeed = plaPreheatFanSpeed; lcd_return_to_status(); setWatch(); // heater sanity check timer } void lcd_preheat_abs0() { setTargetHotend0(absPreheatHotendTemp); setTargetBed(absPreheatHPBTemp); fanSpeed = absPreheatFanSpeed; lcd_return_to_status(); setWatch(); // heater sanity check timer } #if TEMP_SENSOR_1 != 0 //2nd extruder preheat void lcd_preheat_pla1() { setTargetHotend1(plaPreheatHotendTemp); setTargetBed(plaPreheatHPBTemp); fanSpeed = plaPreheatFanSpeed; lcd_return_to_status(); setWatch(); // heater sanity check timer } void lcd_preheat_abs1() { setTargetHotend1(absPreheatHotendTemp); setTargetBed(absPreheatHPBTemp); fanSpeed = absPreheatFanSpeed; lcd_return_to_status(); setWatch(); // heater sanity check timer } #endif //2nd extruder preheat #if TEMP_SENSOR_2 != 0 //3 extruder preheat void lcd_preheat_pla2() { setTargetHotend2(plaPreheatHotendTemp); setTargetBed(plaPreheatHPBTemp); fanSpeed = plaPreheatFanSpeed; lcd_return_to_status(); setWatch(); // heater sanity check timer } void lcd_preheat_abs2() { setTargetHotend2(absPreheatHotendTemp); setTargetBed(absPreheatHPBTemp); fanSpeed = absPreheatFanSpeed; lcd_return_to_status(); setWatch(); // heater sanity check timer } #endif //3 extruder preheat #if TEMP_SENSOR_1 != 0 || TEMP_SENSOR_2 != 0 //more than one extruder present void lcd_preheat_pla012() { setTargetHotend0(plaPreheatHotendTemp); setTargetHotend1(plaPreheatHotendTemp); setTargetHotend2(plaPreheatHotendTemp); setTargetBed(plaPreheatHPBTemp); fanSpeed = plaPreheatFanSpeed; lcd_return_to_status(); setWatch(); // heater sanity check timer } void lcd_preheat_abs012() { setTargetHotend0(absPreheatHotendTemp); setTargetHotend1(absPreheatHotendTemp); setTargetHotend2(absPreheatHotendTemp); setTargetBed(absPreheatHPBTemp); fanSpeed = absPreheatFanSpeed; lcd_return_to_status(); setWatch(); // heater sanity check timer } #endif //more than one extruder present void lcd_preheat_pla_bedonly() { setTargetBed(plaPreheatHPBTemp); fanSpeed = plaPreheatFanSpeed; lcd_return_to_status(); setWatch(); // heater sanity check timer } void lcd_preheat_abs_bedonly() { setTargetBed(absPreheatHPBTemp); fanSpeed = absPreheatFanSpeed; lcd_return_to_status(); setWatch(); // heater sanity check timer } static void lcd_preheat_pla_menu() { START_MENU(); MENU_ITEM(back, MSG_PREPARE, lcd_prepare_menu); MENU_ITEM(function, MSG_PREHEAT_PLA0, lcd_preheat_pla0); #if TEMP_SENSOR_1 != 0 //2 extruder preheat MENU_ITEM(function, MSG_PREHEAT_PLA1, lcd_preheat_pla1); #endif //2 extruder preheat #if TEMP_SENSOR_2 != 0 //3 extruder preheat MENU_ITEM(function, MSG_PREHEAT_PLA2, lcd_preheat_pla2); #endif //3 extruder preheat #if TEMP_SENSOR_1 != 0 || TEMP_SENSOR_2 != 0 //all extruder preheat MENU_ITEM(function, MSG_PREHEAT_PLA012, lcd_preheat_pla012); #endif //2 extruder preheat #if TEMP_SENSOR_BED != 0 MENU_ITEM(function, MSG_PREHEAT_PLA_BEDONLY, lcd_preheat_pla_bedonly); #endif END_MENU(); } static void lcd_preheat_abs_menu() { START_MENU(); MENU_ITEM(back, MSG_PREPARE, lcd_prepare_menu); MENU_ITEM(function, MSG_PREHEAT_ABS0, lcd_preheat_abs0); #if TEMP_SENSOR_1 != 0 //2 extruder preheat MENU_ITEM(function, MSG_PREHEAT_ABS1, lcd_preheat_abs1); #endif //2 extruder preheat #if TEMP_SENSOR_2 != 0 //3 extruder preheat MENU_ITEM(function, MSG_PREHEAT_ABS2, lcd_preheat_abs2); #endif //3 extruder preheat #if TEMP_SENSOR_1 != 0 || TEMP_SENSOR_2 != 0 //all extruder preheat MENU_ITEM(function, MSG_PREHEAT_ABS012, lcd_preheat_abs012); #endif //2 extruder preheat #if TEMP_SENSOR_BED != 0 MENU_ITEM(function, MSG_PREHEAT_ABS_BEDONLY, lcd_preheat_abs_bedonly); #endif END_MENU(); } void lcd_cooldown() { setTargetHotend0(0); setTargetHotend1(0); setTargetHotend2(0); setTargetBed(0); fanSpeed = 0; lcd_return_to_status(); } static void lcd_prepare_menu() { START_MENU(); MENU_ITEM(back, MSG_MAIN, lcd_main_menu); #ifdef SDSUPPORT #ifdef MENU_ADDAUTOSTART MENU_ITEM(function, MSG_AUTOSTART, lcd_autostart_sd); #endif #endif MENU_ITEM(gcode, MSG_DISABLE_STEPPERS, PSTR("M84")); MENU_ITEM(gcode, MSG_AUTO_HOME, PSTR("G28")); MENU_ITEM(function, MSG_SET_HOME_OFFSETS, lcd_set_home_offsets); //MENU_ITEM(gcode, MSG_SET_ORIGIN, PSTR("G92 X0 Y0 Z0")); #if TEMP_SENSOR_0 != 0 #if TEMP_SENSOR_1 != 0 || TEMP_SENSOR_2 != 0 || TEMP_SENSOR_BED != 0 MENU_ITEM(submenu, MSG_PREHEAT_PLA, lcd_preheat_pla_menu); MENU_ITEM(submenu, MSG_PREHEAT_ABS, lcd_preheat_abs_menu); #else MENU_ITEM(function, MSG_PREHEAT_PLA, lcd_preheat_pla0); MENU_ITEM(function, MSG_PREHEAT_ABS, lcd_preheat_abs0); #endif #endif MENU_ITEM(function, MSG_COOLDOWN, lcd_cooldown); #if PS_ON_PIN > -1 if (powersupply) { MENU_ITEM(gcode, MSG_SWITCH_PS_OFF, PSTR("M81")); }else{ MENU_ITEM(gcode, MSG_SWITCH_PS_ON, PSTR("M80")); } #endif MENU_ITEM(submenu, MSG_MOVE_AXIS, lcd_move_menu); END_MENU(); } #ifdef DELTA_CALIBRATION_MENU static void lcd_delta_calibrate_menu() { START_MENU(); MENU_ITEM(back, MSG_MAIN, lcd_main_menu); MENU_ITEM(gcode, MSG_AUTO_HOME, PSTR("G28")); MENU_ITEM(gcode, MSG_DELTA_CALIBRATE_X, PSTR("G0 F8000 X-77.94 Y-45 Z0")); MENU_ITEM(gcode, MSG_DELTA_CALIBRATE_Y, PSTR("G0 F8000 X77.94 Y-45 Z0")); MENU_ITEM(gcode, MSG_DELTA_CALIBRATE_Z, PSTR("G0 F8000 X0 Y90 Z0")); MENU_ITEM(gcode, MSG_DELTA_CALIBRATE_CENTER, PSTR("G0 F8000 X0 Y0 Z0")); END_MENU(); } #endif // DELTA_CALIBRATION_MENU float move_menu_scale; static void lcd_move_menu_axis(); static void _lcd_move(const char *name, int axis, int min, int max) { if (encoderPosition != 0) { refresh_cmd_timeout(); current_position[axis] += float((int)encoderPosition) * move_menu_scale; if (min_software_endstops && current_position[axis] < min) current_position[axis] = min; if (max_software_endstops && current_position[axis] > max) current_position[axis] = max; encoderPosition = 0; #ifdef DELTA calculate_delta(current_position); plan_buffer_line(delta[X_AXIS], delta[Y_AXIS], delta[Z_AXIS], current_position[E_AXIS], manual_feedrate[axis]/60, active_extruder); #else plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], manual_feedrate[axis]/60, active_extruder); #endif lcdDrawUpdate = 1; } if (lcdDrawUpdate) lcd_implementation_drawedit(name, ftostr31(current_position[axis])); if (LCD_CLICKED) lcd_goto_menu(lcd_move_menu_axis); } static void lcd_move_x() { _lcd_move(PSTR("X"), X_AXIS, X_MIN_POS, X_MAX_POS); } static void lcd_move_y() { _lcd_move(PSTR("Y"), Y_AXIS, Y_MIN_POS, Y_MAX_POS); } static void lcd_move_z() { _lcd_move(PSTR("Z"), Z_AXIS, Z_MIN_POS, Z_MAX_POS); } static void lcd_move_e() { if (encoderPosition != 0) { current_position[E_AXIS] += float((int)encoderPosition) * move_menu_scale; encoderPosition = 0; #ifdef DELTA calculate_delta(current_position); plan_buffer_line(delta[X_AXIS], delta[Y_AXIS], delta[Z_AXIS], current_position[E_AXIS], manual_feedrate[E_AXIS]/60, active_extruder); #else plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], manual_feedrate[E_AXIS]/60, active_extruder); #endif lcdDrawUpdate = 1; } if (lcdDrawUpdate) { lcd_implementation_drawedit(PSTR("Extruder"), ftostr31(current_position[E_AXIS])); } if (LCD_CLICKED) lcd_goto_menu(lcd_move_menu_axis); } static void lcd_move_menu_axis() { START_MENU(); MENU_ITEM(back, MSG_MOVE_AXIS, lcd_move_menu); MENU_ITEM(submenu, MSG_MOVE_X, lcd_move_x); MENU_ITEM(submenu, MSG_MOVE_Y, lcd_move_y); if (move_menu_scale < 10.0) { MENU_ITEM(submenu, MSG_MOVE_Z, lcd_move_z); MENU_ITEM(submenu, MSG_MOVE_E, lcd_move_e); } END_MENU(); } static void lcd_move_menu_10mm() { move_menu_scale = 10.0; lcd_move_menu_axis(); } static void lcd_move_menu_1mm() { move_menu_scale = 1.0; lcd_move_menu_axis(); } static void lcd_move_menu_01mm() { move_menu_scale = 0.1; lcd_move_menu_axis(); } static void lcd_move_menu() { START_MENU(); MENU_ITEM(back, MSG_PREPARE, lcd_prepare_menu); MENU_ITEM(submenu, MSG_MOVE_10MM, lcd_move_menu_10mm); MENU_ITEM(submenu, MSG_MOVE_1MM, lcd_move_menu_1mm); MENU_ITEM(submenu, MSG_MOVE_01MM, lcd_move_menu_01mm); //TODO:X,Y,Z,E END_MENU(); } static void lcd_control_menu() { START_MENU(); MENU_ITEM(back, MSG_MAIN, lcd_main_menu); MENU_ITEM(submenu, MSG_TEMPERATURE, lcd_control_temperature_menu); MENU_ITEM(submenu, MSG_MOTION, lcd_control_motion_menu); MENU_ITEM(submenu, MSG_VOLUMETRIC, lcd_control_volumetric_menu); #ifdef DOGLCD // MENU_ITEM_EDIT(int3, MSG_CONTRAST, &lcd_contrast, 0, 63); MENU_ITEM(submenu, MSG_CONTRAST, lcd_set_contrast); #endif #ifdef FWRETRACT MENU_ITEM(submenu, MSG_RETRACT, lcd_control_retract_menu); #endif #ifdef EEPROM_SETTINGS MENU_ITEM(function, MSG_STORE_EPROM, Config_StoreSettings); MENU_ITEM(function, MSG_LOAD_EPROM, Config_RetrieveSettings); #endif MENU_ITEM(function, MSG_RESTORE_FAILSAFE, Config_ResetDefault); END_MENU(); } static void lcd_control_temperature_menu() { #ifdef PIDTEMP // set up temp variables - undo the default scaling raw_Ki = unscalePID_i(Ki); raw_Kd = unscalePID_d(Kd); #endif START_MENU(); MENU_ITEM(back, MSG_CONTROL, lcd_control_menu); #if TEMP_SENSOR_0 != 0 MENU_ITEM_EDIT(int3, MSG_NOZZLE, &target_temperature[0], 0, HEATER_0_MAXTEMP - 15); #endif #if TEMP_SENSOR_1 != 0 MENU_ITEM_EDIT(int3, MSG_NOZZLE1, &target_temperature[1], 0, HEATER_1_MAXTEMP - 15); #endif #if TEMP_SENSOR_2 != 0 MENU_ITEM_EDIT(int3, MSG_NOZZLE2, &target_temperature[2], 0, HEATER_2_MAXTEMP - 15); #endif #if TEMP_SENSOR_BED != 0 MENU_ITEM_EDIT(int3, MSG_BED, &target_temperature_bed, 0, BED_MAXTEMP - 15); #endif MENU_ITEM_EDIT(int3, MSG_FAN_SPEED, &fanSpeed, 0, 255); #if defined AUTOTEMP && (TEMP_SENSOR_0 != 0) MENU_ITEM_EDIT(bool, MSG_AUTOTEMP, &autotemp_enabled); MENU_ITEM_EDIT(float3, MSG_MIN, &autotemp_min, 0, HEATER_0_MAXTEMP - 15); MENU_ITEM_EDIT(float3, MSG_MAX, &autotemp_max, 0, HEATER_0_MAXTEMP - 15); MENU_ITEM_EDIT(float32, MSG_FACTOR, &autotemp_factor, 0.0, 1.0); #endif #ifdef PIDTEMP MENU_ITEM_EDIT(float52, MSG_PID_P, &Kp, 1, 9990); // i is typically a small value so allows values below 1 MENU_ITEM_EDIT_CALLBACK(float52, MSG_PID_I, &raw_Ki, 0.01, 9990, copy_and_scalePID_i); MENU_ITEM_EDIT_CALLBACK(float52, MSG_PID_D, &raw_Kd, 1, 9990, copy_and_scalePID_d); # ifdef PID_ADD_EXTRUSION_RATE MENU_ITEM_EDIT(float3, MSG_PID_C, &Kc, 1, 9990); # endif//PID_ADD_EXTRUSION_RATE #endif//PIDTEMP MENU_ITEM(submenu, MSG_PREHEAT_PLA_SETTINGS, lcd_control_temperature_preheat_pla_settings_menu); MENU_ITEM(submenu, MSG_PREHEAT_ABS_SETTINGS, lcd_control_temperature_preheat_abs_settings_menu); END_MENU(); } static void lcd_control_temperature_preheat_pla_settings_menu() { START_MENU(); MENU_ITEM(back, MSG_TEMPERATURE, lcd_control_temperature_menu); MENU_ITEM_EDIT(int3, MSG_FAN_SPEED, &plaPreheatFanSpeed, 0, 255); #if TEMP_SENSOR_0 != 0 MENU_ITEM_EDIT(int3, MSG_NOZZLE, &plaPreheatHotendTemp, 0, HEATER_0_MAXTEMP - 15); #endif #if TEMP_SENSOR_BED != 0 MENU_ITEM_EDIT(int3, MSG_BED, &plaPreheatHPBTemp, 0, BED_MAXTEMP - 15); #endif #ifdef EEPROM_SETTINGS MENU_ITEM(function, MSG_STORE_EPROM, Config_StoreSettings); #endif END_MENU(); } static void lcd_control_temperature_preheat_abs_settings_menu() { START_MENU(); MENU_ITEM(back, MSG_TEMPERATURE, lcd_control_temperature_menu); MENU_ITEM_EDIT(int3, MSG_FAN_SPEED, &absPreheatFanSpeed, 0, 255); #if TEMP_SENSOR_0 != 0 MENU_ITEM_EDIT(int3, MSG_NOZZLE, &absPreheatHotendTemp, 0, HEATER_0_MAXTEMP - 15); #endif #if TEMP_SENSOR_BED != 0 MENU_ITEM_EDIT(int3, MSG_BED, &absPreheatHPBTemp, 0, BED_MAXTEMP - 15); #endif #ifdef EEPROM_SETTINGS MENU_ITEM(function, MSG_STORE_EPROM, Config_StoreSettings); #endif END_MENU(); } static void lcd_control_motion_menu() { START_MENU(); MENU_ITEM(back, MSG_CONTROL, lcd_control_menu); #ifdef ENABLE_AUTO_BED_LEVELING MENU_ITEM_EDIT(float32, MSG_ZPROBE_ZOFFSET, &zprobe_zoffset, 0.5, 50); #endif MENU_ITEM_EDIT(float5, MSG_ACC, &acceleration, 500, 99000); MENU_ITEM_EDIT(float3, MSG_VXY_JERK, &max_xy_jerk, 1, 990); MENU_ITEM_EDIT(float52, MSG_VZ_JERK, &max_z_jerk, 0.1, 990); MENU_ITEM_EDIT(float3, MSG_VE_JERK, &max_e_jerk, 1, 990); MENU_ITEM_EDIT(float3, MSG_VMAX MSG_X, &max_feedrate[X_AXIS], 1, 999); MENU_ITEM_EDIT(float3, MSG_VMAX MSG_Y, &max_feedrate[Y_AXIS], 1, 999); MENU_ITEM_EDIT(float3, MSG_VMAX MSG_Z, &max_feedrate[Z_AXIS], 1, 999); MENU_ITEM_EDIT(float3, MSG_VMAX MSG_E, &max_feedrate[E_AXIS], 1, 999); MENU_ITEM_EDIT(float3, MSG_VMIN, &minimumfeedrate, 0, 999); MENU_ITEM_EDIT(float3, MSG_VTRAV_MIN, &mintravelfeedrate, 0, 999); MENU_ITEM_EDIT_CALLBACK(long5, MSG_AMAX MSG_X, &max_acceleration_units_per_sq_second[X_AXIS], 100, 99000, reset_acceleration_rates); MENU_ITEM_EDIT_CALLBACK(long5, MSG_AMAX MSG_Y, &max_acceleration_units_per_sq_second[Y_AXIS], 100, 99000, reset_acceleration_rates); MENU_ITEM_EDIT_CALLBACK(long5, MSG_AMAX MSG_Z, &max_acceleration_units_per_sq_second[Z_AXIS], 100, 99000, reset_acceleration_rates); MENU_ITEM_EDIT_CALLBACK(long5, MSG_AMAX MSG_E, &max_acceleration_units_per_sq_second[E_AXIS], 100, 99000, reset_acceleration_rates); MENU_ITEM_EDIT(float5, MSG_A_RETRACT, &retract_acceleration, 100, 99000); MENU_ITEM_EDIT(float52, MSG_XSTEPS, &axis_steps_per_unit[X_AXIS], 5, 9999); MENU_ITEM_EDIT(float52, MSG_YSTEPS, &axis_steps_per_unit[Y_AXIS], 5, 9999); MENU_ITEM_EDIT(float51, MSG_ZSTEPS, &axis_steps_per_unit[Z_AXIS], 5, 9999); MENU_ITEM_EDIT(float51, MSG_ESTEPS, &axis_steps_per_unit[E_AXIS], 5, 9999); #ifdef ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED MENU_ITEM_EDIT(bool, MSG_ENDSTOP_ABORT, &abort_on_endstop_hit); #endif #ifdef SCARA MENU_ITEM_EDIT(float74, MSG_XSCALE, &axis_scaling[X_AXIS],0.5,2); MENU_ITEM_EDIT(float74, MSG_YSCALE, &axis_scaling[Y_AXIS],0.5,2); #endif END_MENU(); } static void lcd_control_volumetric_menu() { START_MENU(); MENU_ITEM(back, MSG_CONTROL, lcd_control_menu); MENU_ITEM_EDIT_CALLBACK(bool, MSG_VOLUMETRIC_ENABLED, &volumetric_enabled, calculate_volumetric_multipliers); if (volumetric_enabled) { MENU_ITEM_EDIT_CALLBACK(float43, MSG_FILAMENT_SIZE_EXTRUDER_0, &filament_size[0], DEFAULT_NOMINAL_FILAMENT_DIA - .5, DEFAULT_NOMINAL_FILAMENT_DIA + .5, calculate_volumetric_multipliers); #if EXTRUDERS > 1 MENU_ITEM_EDIT_CALLBACK(float43, MSG_FILAMENT_SIZE_EXTRUDER_1, &filament_size[1], DEFAULT_NOMINAL_FILAMENT_DIA - .5, DEFAULT_NOMINAL_FILAMENT_DIA + .5, calculate_volumetric_multipliers); #if EXTRUDERS > 2 MENU_ITEM_EDIT_CALLBACK(float43, MSG_FILAMENT_SIZE_EXTRUDER_2, &filament_size[2], DEFAULT_NOMINAL_FILAMENT_DIA - .5, DEFAULT_NOMINAL_FILAMENT_DIA + .5, calculate_volumetric_multipliers); #endif #endif } END_MENU(); } #ifdef DOGLCD static void lcd_set_contrast() { if (encoderPosition != 0) { lcd_contrast -= encoderPosition; if (lcd_contrast < 0) lcd_contrast = 0; else if (lcd_contrast > 63) lcd_contrast = 63; encoderPosition = 0; lcdDrawUpdate = 1; u8g.setContrast(lcd_contrast); } if (lcdDrawUpdate) { lcd_implementation_drawedit(PSTR(MSG_CONTRAST), itostr2(lcd_contrast)); } if (LCD_CLICKED) lcd_goto_menu(lcd_control_menu); } #endif #ifdef FWRETRACT static void lcd_control_retract_menu() { START_MENU(); MENU_ITEM(back, MSG_CONTROL, lcd_control_menu); MENU_ITEM_EDIT(bool, MSG_AUTORETRACT, &autoretract_enabled); MENU_ITEM_EDIT(float52, MSG_CONTROL_RETRACT, &retract_length, 0, 100); #if EXTRUDERS > 1 MENU_ITEM_EDIT(float52, MSG_CONTROL_RETRACT_SWAP, &retract_length_swap, 0, 100); #endif MENU_ITEM_EDIT(float3, MSG_CONTROL_RETRACTF, &retract_feedrate, 1, 999); MENU_ITEM_EDIT(float52, MSG_CONTROL_RETRACT_ZLIFT, &retract_zlift, 0, 999); MENU_ITEM_EDIT(float52, MSG_CONTROL_RETRACT_RECOVER, &retract_recover_length, 0, 100); #if EXTRUDERS > 1 MENU_ITEM_EDIT(float52, MSG_CONTROL_RETRACT_RECOVER_SWAP, &retract_recover_length_swap, 0, 100); #endif MENU_ITEM_EDIT(float3, MSG_CONTROL_RETRACT_RECOVERF, &retract_recover_feedrate, 1, 999); END_MENU(); } #endif //FWRETRACT #if SDCARDDETECT == -1 static void lcd_sd_refresh() { card.initsd(); currentMenuViewOffset = 0; } #endif static void lcd_sd_updir() { card.updir(); currentMenuViewOffset = 0; } void lcd_sdcard_menu() { if (lcdDrawUpdate == 0 && LCD_CLICKED == 0) return; // nothing to do (so don't thrash the SD card) uint16_t fileCnt = card.getnrfilenames(); START_MENU(); MENU_ITEM(back, MSG_MAIN, lcd_main_menu); card.getWorkDirName(); if(card.filename[0]=='/') { #if SDCARDDETECT == -1 MENU_ITEM(function, LCD_STR_REFRESH MSG_REFRESH, lcd_sd_refresh); #endif }else{ MENU_ITEM(function, LCD_STR_FOLDER "..", lcd_sd_updir); } for(uint16_t i=0;i<fileCnt;i++) { if (_menuItemNr == _lineNr) { #ifndef SDCARD_RATHERRECENTFIRST card.getfilename(i); #else card.getfilename(fileCnt-1-i); #endif if (card.filenameIsDir) { MENU_ITEM(sddirectory, MSG_CARD_MENU, card.filename, card.longFilename); }else{ MENU_ITEM(sdfile, MSG_CARD_MENU, card.filename, card.longFilename); } }else{ MENU_ITEM_DUMMY(); } } END_MENU(); } #define menu_edit_type(_type, _name, _strFunc, scale) \ void menu_edit_ ## _name () \ { \ if ((int32_t)encoderPosition < 0) encoderPosition = 0; \ if ((int32_t)encoderPosition > maxEditValue) encoderPosition = maxEditValue; \ if (lcdDrawUpdate) \ lcd_implementation_drawedit(editLabel, _strFunc(((_type)((int32_t)encoderPosition + minEditValue)) / scale)); \ if (LCD_CLICKED) \ { \ *((_type*)editValue) = ((_type)((int32_t)encoderPosition + minEditValue)) / scale; \ lcd_goto_menu(prevMenu, prevEncoderPosition); \ } \ } \ void menu_edit_callback_ ## _name () { \ menu_edit_ ## _name (); \ if (LCD_CLICKED) (*callbackFunc)(); \ } \ static void menu_action_setting_edit_ ## _name (const char* pstr, _type* ptr, _type minValue, _type maxValue) \ { \ prevMenu = currentMenu; \ prevEncoderPosition = encoderPosition; \ \ lcdDrawUpdate = 2; \ currentMenu = menu_edit_ ## _name; \ \ editLabel = pstr; \ editValue = ptr; \ minEditValue = minValue * scale; \ maxEditValue = maxValue * scale - minEditValue; \ encoderPosition = (*ptr) * scale - minEditValue; \ }\ static void menu_action_setting_edit_callback_ ## _name (const char* pstr, _type* ptr, _type minValue, _type maxValue, menuFunc_t callback) \ { \ prevMenu = currentMenu; \ prevEncoderPosition = encoderPosition; \ \ lcdDrawUpdate = 2; \ currentMenu = menu_edit_callback_ ## _name; \ \ editLabel = pstr; \ editValue = ptr; \ minEditValue = minValue * scale; \ maxEditValue = maxValue * scale - minEditValue; \ encoderPosition = (*ptr) * scale - minEditValue; \ callbackFunc = callback;\ } menu_edit_type(int, int3, itostr3, 1) menu_edit_type(float, float3, ftostr3, 1) menu_edit_type(float, float32, ftostr32, 100) menu_edit_type(float, float43, ftostr43, 1000) menu_edit_type(float, float5, ftostr5, 0.01) menu_edit_type(float, float51, ftostr51, 10) menu_edit_type(float, float52, ftostr52, 100) menu_edit_type(unsigned long, long5, ftostr5, 0.01) #ifdef REPRAPWORLD_KEYPAD static void reprapworld_keypad_move_z_up() { encoderPosition = 1; move_menu_scale = REPRAPWORLD_KEYPAD_MOVE_STEP; lcd_move_z(); } static void reprapworld_keypad_move_z_down() { encoderPosition = -1; move_menu_scale = REPRAPWORLD_KEYPAD_MOVE_STEP; lcd_move_z(); } static void reprapworld_keypad_move_x_left() { encoderPosition = -1; move_menu_scale = REPRAPWORLD_KEYPAD_MOVE_STEP; lcd_move_x(); } static void reprapworld_keypad_move_x_right() { encoderPosition = 1; move_menu_scale = REPRAPWORLD_KEYPAD_MOVE_STEP; lcd_move_x(); } static void reprapworld_keypad_move_y_down() { encoderPosition = 1; move_menu_scale = REPRAPWORLD_KEYPAD_MOVE_STEP; lcd_move_y(); } static void reprapworld_keypad_move_y_up() { encoderPosition = -1; move_menu_scale = REPRAPWORLD_KEYPAD_MOVE_STEP; lcd_move_y(); } static void reprapworld_keypad_move_home() { enquecommand_P((PSTR("G28"))); // move all axis home } #endif /** End of menus **/ static void lcd_quick_feedback() { lcdDrawUpdate = 2; blocking_enc = millis() + 500; lcd_implementation_quick_feedback(); } /** Menu action functions **/ static void menu_action_back(menuFunc_t data) { lcd_goto_menu(data); } static void menu_action_submenu(menuFunc_t data) { lcd_goto_menu(data); } static void menu_action_gcode(const char* pgcode) { enquecommand_P(pgcode); } static void menu_action_function(menuFunc_t data) { (*data)(); } static void menu_action_sdfile(const char* filename, char* longFilename) { char cmd[30]; char* c; sprintf_P(cmd, PSTR("M23 %s"), filename); for(c = &cmd[4]; *c; c++) *c = tolower(*c); enquecommand(cmd); enquecommand_P(PSTR("M24")); lcd_return_to_status(); } static void menu_action_sddirectory(const char* filename, char* longFilename) { card.chdir(filename); encoderPosition = 0; } static void menu_action_setting_edit_bool(const char* pstr, bool* ptr) { *ptr = !(*ptr); } static void menu_action_setting_edit_callback_bool(const char* pstr, bool* ptr, menuFunc_t callback) { menu_action_setting_edit_bool(pstr, ptr); (*callback)(); } #endif//ULTIPANEL /** LCD API **/ void lcd_init() { lcd_implementation_init(); #ifdef NEWPANEL SET_INPUT(BTN_EN1); SET_INPUT(BTN_EN2); WRITE(BTN_EN1,HIGH); WRITE(BTN_EN2,HIGH); #if BTN_ENC > 0 SET_INPUT(BTN_ENC); WRITE(BTN_ENC,HIGH); #endif #ifdef REPRAPWORLD_KEYPAD pinMode(SHIFT_CLK,OUTPUT); pinMode(SHIFT_LD,OUTPUT); pinMode(SHIFT_OUT,INPUT); WRITE(SHIFT_OUT,HIGH); WRITE(SHIFT_LD,HIGH); #endif #else // Not NEWPANEL #ifdef SR_LCD_2W_NL // Non latching 2 wire shift register pinMode (SR_DATA_PIN, OUTPUT); pinMode (SR_CLK_PIN, OUTPUT); #elif defined(SHIFT_CLK) pinMode(SHIFT_CLK,OUTPUT); pinMode(SHIFT_LD,OUTPUT); pinMode(SHIFT_EN,OUTPUT); pinMode(SHIFT_OUT,INPUT); WRITE(SHIFT_OUT,HIGH); WRITE(SHIFT_LD,HIGH); WRITE(SHIFT_EN,LOW); #else #ifdef ULTIPANEL #error ULTIPANEL requires an encoder #endif #endif // SR_LCD_2W_NL #endif//!NEWPANEL #if defined (SDSUPPORT) && defined(SDCARDDETECT) && (SDCARDDETECT > 0) pinMode(SDCARDDETECT,INPUT); WRITE(SDCARDDETECT, HIGH); lcd_oldcardstatus = IS_SD_INSERTED; #endif//(SDCARDDETECT > 0) #ifdef LCD_HAS_SLOW_BUTTONS slow_buttons = 0; #endif lcd_buttons_update(); #ifdef ULTIPANEL encoderDiff = 0; #endif } void lcd_update() { static unsigned long timeoutToStatus = 0; #ifdef LCD_HAS_SLOW_BUTTONS slow_buttons = lcd_implementation_read_slow_buttons(); // buttons which take too long to read in interrupt context #endif lcd_buttons_update(); #if (SDCARDDETECT > 0) if((IS_SD_INSERTED != lcd_oldcardstatus && lcd_detected())) { lcdDrawUpdate = 2; lcd_oldcardstatus = IS_SD_INSERTED; lcd_implementation_init( // to maybe revive the LCD if static electricity killed it. #if defined(LCD_PROGRESS_BAR) && defined(SDSUPPORT) currentMenu == lcd_status_screen #endif ); if(lcd_oldcardstatus) { card.initsd(); LCD_MESSAGEPGM(MSG_SD_INSERTED); } else { card.release(); LCD_MESSAGEPGM(MSG_SD_REMOVED); } } #endif//CARDINSERTED if (lcd_next_update_millis < millis()) { #ifdef ULTIPANEL #ifdef REPRAPWORLD_KEYPAD if (REPRAPWORLD_KEYPAD_MOVE_Z_UP) { reprapworld_keypad_move_z_up(); } if (REPRAPWORLD_KEYPAD_MOVE_Z_DOWN) { reprapworld_keypad_move_z_down(); } if (REPRAPWORLD_KEYPAD_MOVE_X_LEFT) { reprapworld_keypad_move_x_left(); } if (REPRAPWORLD_KEYPAD_MOVE_X_RIGHT) { reprapworld_keypad_move_x_right(); } if (REPRAPWORLD_KEYPAD_MOVE_Y_DOWN) { reprapworld_keypad_move_y_down(); } if (REPRAPWORLD_KEYPAD_MOVE_Y_UP) { reprapworld_keypad_move_y_up(); } if (REPRAPWORLD_KEYPAD_MOVE_HOME) { reprapworld_keypad_move_home(); } #endif if (abs(encoderDiff) >= ENCODER_PULSES_PER_STEP) { lcdDrawUpdate = 1; encoderPosition += encoderDiff / ENCODER_PULSES_PER_STEP; encoderDiff = 0; timeoutToStatus = millis() + LCD_TIMEOUT_TO_STATUS; } if (LCD_CLICKED) timeoutToStatus = millis() + LCD_TIMEOUT_TO_STATUS; #endif//ULTIPANEL #ifdef DOGLCD // Changes due to different driver architecture of the DOGM display blink++; // Variable for fan animation and alive dot u8g.firstPage(); do { u8g.setFont(u8g_font_6x10_marlin); u8g.setPrintPos(125,0); if (blink % 2) u8g.setColorIndex(1); else u8g.setColorIndex(0); // Set color for the alive dot u8g.drawPixel(127,63); // draw alive dot u8g.setColorIndex(1); // black on white (*currentMenu)(); if (!lcdDrawUpdate) break; // Terminate display update, when nothing new to draw. This must be done before the last dogm.next() } while( u8g.nextPage() ); #else (*currentMenu)(); #endif #ifdef LCD_HAS_STATUS_INDICATORS lcd_implementation_update_indicators(); #endif #ifdef ULTIPANEL if(timeoutToStatus < millis() && currentMenu != lcd_status_screen) { lcd_return_to_status(); lcdDrawUpdate = 2; } #endif//ULTIPANEL if (lcdDrawUpdate == 2) lcd_implementation_clear(); if (lcdDrawUpdate) lcdDrawUpdate--; lcd_next_update_millis = millis() + LCD_UPDATE_INTERVAL; } } void lcd_ignore_click(bool b) { ignore_click = b; wait_for_unclick = false; } void lcd_finishstatus() { int len = strlen(lcd_status_message); if (len > 0) { while (len < LCD_WIDTH) { lcd_status_message[len++] = ' '; } } lcd_status_message[LCD_WIDTH] = '\0'; #if defined(LCD_PROGRESS_BAR) && defined(SDSUPPORT) #if PROGRESS_MSG_EXPIRE > 0 messageTick = #endif progressBarTick = millis(); #endif lcdDrawUpdate = 2; #ifdef FILAMENT_LCD_DISPLAY message_millis = millis(); //get status message to show up for a while #endif } void lcd_setstatus(const char* message) { if (lcd_status_message_level > 0) return; strncpy(lcd_status_message, message, LCD_WIDTH); lcd_finishstatus(); } void lcd_setstatuspgm(const char* message) { if (lcd_status_message_level > 0) return; strncpy_P(lcd_status_message, message, LCD_WIDTH); lcd_finishstatus(); } void lcd_setalertstatuspgm(const char* message) { lcd_setstatuspgm(message); lcd_status_message_level = 1; #ifdef ULTIPANEL lcd_return_to_status(); #endif//ULTIPANEL } void lcd_reset_alert_level() { lcd_status_message_level = 0; } #ifdef DOGLCD void lcd_setcontrast(uint8_t value) { lcd_contrast = value & 63; u8g.setContrast(lcd_contrast); } #endif #ifdef ULTIPANEL /* Warning: This function is called from interrupt context */ void lcd_buttons_update() { #ifdef NEWPANEL uint8_t newbutton=0; if(READ(BTN_EN1)==0) newbutton|=EN_A; if(READ(BTN_EN2)==0) newbutton|=EN_B; #if BTN_ENC > 0 if((blocking_enc<millis()) && (READ(BTN_ENC)==0)) newbutton |= EN_C; #endif buttons = newbutton; #ifdef LCD_HAS_SLOW_BUTTONS buttons |= slow_buttons; #endif #ifdef REPRAPWORLD_KEYPAD // for the reprapworld_keypad uint8_t newbutton_reprapworld_keypad=0; WRITE(SHIFT_LD,LOW); WRITE(SHIFT_LD,HIGH); for(int8_t i=0;i<8;i++) { newbutton_reprapworld_keypad = newbutton_reprapworld_keypad>>1; if(READ(SHIFT_OUT)) newbutton_reprapworld_keypad|=(1<<7); WRITE(SHIFT_CLK,HIGH); WRITE(SHIFT_CLK,LOW); } buttons_reprapworld_keypad=~newbutton_reprapworld_keypad; //invert it, because a pressed switch produces a logical 0 #endif #else //read it from the shift register uint8_t newbutton=0; WRITE(SHIFT_LD,LOW); WRITE(SHIFT_LD,HIGH); unsigned char tmp_buttons=0; for(int8_t i=0;i<8;i++) { newbutton = newbutton>>1; if(READ(SHIFT_OUT)) newbutton|=(1<<7); WRITE(SHIFT_CLK,HIGH); WRITE(SHIFT_CLK,LOW); } buttons=~newbutton; //invert it, because a pressed switch produces a logical 0 #endif//!NEWPANEL //manage encoder rotation uint8_t enc=0; if (buttons & EN_A) enc |= B01; if (buttons & EN_B) enc |= B10; if(enc != lastEncoderBits) { switch(enc) { case encrot0: if(lastEncoderBits==encrot3) encoderDiff++; else if(lastEncoderBits==encrot1) encoderDiff--; break; case encrot1: if(lastEncoderBits==encrot0) encoderDiff++; else if(lastEncoderBits==encrot2) encoderDiff--; break; case encrot2: if(lastEncoderBits==encrot1) encoderDiff++; else if(lastEncoderBits==encrot3) encoderDiff--; break; case encrot3: if(lastEncoderBits==encrot2) encoderDiff++; else if(lastEncoderBits==encrot0) encoderDiff--; break; } } lastEncoderBits = enc; } bool lcd_detected(void) { #if (defined(LCD_I2C_TYPE_MCP23017) || defined(LCD_I2C_TYPE_MCP23008)) && defined(DETECT_DEVICE) return lcd.LcdDetected() == 1; #else return true; #endif } void lcd_buzz(long duration, uint16_t freq) { #ifdef LCD_USE_I2C_BUZZER lcd.buzz(duration,freq); #endif } bool lcd_clicked() { return LCD_CLICKED; } #endif//ULTIPANEL /********************************/ /** Float conversion utilities **/ /********************************/ // convert float to string with +123.4 format char conv[8]; char *ftostr3(const float &x) { return itostr3((int)x); } char *itostr2(const uint8_t &x) { //sprintf(conv,"%5.1f",x); int xx=x; conv[0]=(xx/10)%10+'0'; conv[1]=(xx)%10+'0'; conv[2]=0; return conv; } // Convert float to string with 123.4 format, dropping sign char *ftostr31(const float &x) { int xx=x*10; conv[0]=(xx>=0)?'+':'-'; xx=abs(xx); conv[1]=(xx/1000)%10+'0'; conv[2]=(xx/100)%10+'0'; conv[3]=(xx/10)%10+'0'; conv[4]='.'; conv[5]=(xx)%10+'0'; conv[6]=0; return conv; } // Convert float to string with 123.4 format char *ftostr31ns(const float &x) { int xx=x*10; //conv[0]=(xx>=0)?'+':'-'; xx=abs(xx); conv[0]=(xx/1000)%10+'0'; conv[1]=(xx/100)%10+'0'; conv[2]=(xx/10)%10+'0'; conv[3]='.'; conv[4]=(xx)%10+'0'; conv[5]=0; return conv; } char *ftostr32(const float &x) { long xx=x*100; if (xx >= 0) conv[0]=(xx/10000)%10+'0'; else conv[0]='-'; xx=abs(xx); conv[1]=(xx/1000)%10+'0'; conv[2]=(xx/100)%10+'0'; conv[3]='.'; conv[4]=(xx/10)%10+'0'; conv[5]=(xx)%10+'0'; conv[6]=0; return conv; } // Convert float to string with 1.234 format char *ftostr43(const float &x) { long xx = x * 1000; if (xx >= 0) conv[0] = (xx / 1000) % 10 + '0'; else conv[0] = '-'; xx = abs(xx); conv[1] = '.'; conv[2] = (xx / 100) % 10 + '0'; conv[3] = (xx / 10) % 10 + '0'; conv[4] = (xx) % 10 + '0'; conv[5] = 0; return conv; } //Float to string with 1.23 format char *ftostr12ns(const float &x) { long xx=x*100; xx=abs(xx); conv[0]=(xx/100)%10+'0'; conv[1]='.'; conv[2]=(xx/10)%10+'0'; conv[3]=(xx)%10+'0'; conv[4]=0; return conv; } // convert float to space-padded string with -_23.4_ format char *ftostr32sp(const float &x) { long xx = abs(x * 100); uint8_t dig; if (x < 0) { // negative val = -_0 conv[0] = '-'; dig = (xx / 1000) % 10; conv[1] = dig ? '0' + dig : ' '; } else { // positive val = __0 dig = (xx / 10000) % 10; if (dig) { conv[0] = '0' + dig; conv[1] = '0' + (xx / 1000) % 10; } else { conv[0] = ' '; dig = (xx / 1000) % 10; conv[1] = dig ? '0' + dig : ' '; } } conv[2] = '0' + (xx / 100) % 10; // lsd always dig = xx % 10; if (dig) { // 2 decimal places conv[5] = '0' + dig; conv[4] = '0' + (xx / 10) % 10; conv[3] = '.'; } else { // 1 or 0 decimal place dig = (xx / 10) % 10; if (dig) { conv[4] = '0' + dig; conv[3] = '.'; } else { conv[3] = conv[4] = ' '; } conv[5] = ' '; } conv[6] = '\0'; return conv; } char *itostr31(const int &xx) { conv[0]=(xx>=0)?'+':'-'; conv[1]=(xx/1000)%10+'0'; conv[2]=(xx/100)%10+'0'; conv[3]=(xx/10)%10+'0'; conv[4]='.'; conv[5]=(xx)%10+'0'; conv[6]=0; return conv; } // Convert int to rj string with 123 or -12 format char *itostr3(const int &x) { int xx = x; if (xx < 0) { conv[0]='-'; xx = -xx; } else if (xx >= 100) conv[0]=(xx/100)%10+'0'; else conv[0]=' '; if (xx >= 10) conv[1]=(xx/10)%10+'0'; else conv[1]=' '; conv[2]=(xx)%10+'0'; conv[3]=0; return conv; } // Convert int to lj string with 123 format char *itostr3left(const int &xx) { if (xx >= 100) { conv[0]=(xx/100)%10+'0'; conv[1]=(xx/10)%10+'0'; conv[2]=(xx)%10+'0'; conv[3]=0; } else if (xx >= 10) { conv[0]=(xx/10)%10+'0'; conv[1]=(xx)%10+'0'; conv[2]=0; } else { conv[0]=(xx)%10+'0'; conv[1]=0; } return conv; } // Convert int to rj string with 1234 format char *itostr4(const int &xx) { conv[0] = xx >= 1000 ? (xx / 1000) % 10 + '0' : ' '; conv[1] = xx >= 100 ? (xx / 100) % 10 + '0' : ' '; conv[2] = xx >= 10 ? (xx / 10) % 10 + '0' : ' '; conv[3] = xx % 10 + '0'; conv[4] = 0; return conv; } // Convert float to rj string with 12345 format char *ftostr5(const float &x) { long xx = abs(x); conv[0] = xx >= 10000 ? (xx / 10000) % 10 + '0' : ' '; conv[1] = xx >= 1000 ? (xx / 1000) % 10 + '0' : ' '; conv[2] = xx >= 100 ? (xx / 100) % 10 + '0' : ' '; conv[3] = xx >= 10 ? (xx / 10) % 10 + '0' : ' '; conv[4] = xx % 10 + '0'; conv[5] = 0; return conv; } // Convert float to string with +1234.5 format char *ftostr51(const float &x) { long xx=x*10; conv[0]=(xx>=0)?'+':'-'; xx=abs(xx); conv[1]=(xx/10000)%10+'0'; conv[2]=(xx/1000)%10+'0'; conv[3]=(xx/100)%10+'0'; conv[4]=(xx/10)%10+'0'; conv[5]='.'; conv[6]=(xx)%10+'0'; conv[7]=0; return conv; } // Convert float to string with +123.45 format char *ftostr52(const float &x) { long xx=x*100; conv[0]=(xx>=0)?'+':'-'; xx=abs(xx); conv[1]=(xx/10000)%10+'0'; conv[2]=(xx/1000)%10+'0'; conv[3]=(xx/100)%10+'0'; conv[4]='.'; conv[5]=(xx/10)%10+'0'; conv[6]=(xx)%10+'0'; conv[7]=0; return conv; } // Callback for after editing PID i value // grab the PID i value out of the temp variable; scale it; then update the PID driver void copy_and_scalePID_i() { #ifdef PIDTEMP Ki = scalePID_i(raw_Ki); updatePID(); #endif } // Callback for after editing PID d value // grab the PID d value out of the temp variable; scale it; then update the PID driver void copy_and_scalePID_d() { #ifdef PIDTEMP Kd = scalePID_d(raw_Kd); updatePID(); #endif } #endif //ULTRA_LCD ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/ultralcd.cpp
c++
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
15,319
```objective-c // Tonokip RepRap firmware rewrite based off of Hydra-mmm firmware. #ifndef MARLIN_H #define MARLIN_H #define FORCE_INLINE __attribute__((always_inline)) inline #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <inttypes.h> #include <util/delay.h> #include <avr/pgmspace.h> #include <avr/eeprom.h> #include <avr/interrupt.h> #include "fastio.h" #include "Configuration.h" #include "pins.h" #ifndef AT90USB #define HardwareSerial_h // trick to disable the standard HWserial #endif #if (ARDUINO >= 100) # include "Arduino.h" #else # include "WProgram.h" #endif // Arduino < 1.0.0 does not define this, so we need to do it ourselves #ifndef analogInputToDigitalPin # define analogInputToDigitalPin(p) ((p) + A0) #endif #ifdef AT90USB #include "HardwareSerial.h" #endif #include "MarlinSerial.h" #ifndef cbi #define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit)) #endif #ifndef sbi #define sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit)) #endif #include "WString.h" #ifdef AT90USB #ifdef BTENABLED #define MYSERIAL bt #else #define MYSERIAL Serial #endif // BTENABLED #else #define MYSERIAL MSerial #endif #define SERIAL_PROTOCOL(x) (MYSERIAL.print(x)) #define SERIAL_PROTOCOL_F(x,y) (MYSERIAL.print(x,y)) #define SERIAL_PROTOCOLPGM(x) (serialprintPGM(PSTR(x))) #define SERIAL_PROTOCOLLN(x) (MYSERIAL.print(x),MYSERIAL.write('\n')) #define SERIAL_PROTOCOLLNPGM(x) (serialprintPGM(PSTR(x)),MYSERIAL.write('\n')) extern const char errormagic[] PROGMEM; extern const char echomagic[] PROGMEM; #define SERIAL_ERROR_START (serialprintPGM(errormagic)) #define SERIAL_ERROR(x) SERIAL_PROTOCOL(x) #define SERIAL_ERRORPGM(x) SERIAL_PROTOCOLPGM(x) #define SERIAL_ERRORLN(x) SERIAL_PROTOCOLLN(x) #define SERIAL_ERRORLNPGM(x) SERIAL_PROTOCOLLNPGM(x) #define SERIAL_ECHO_START (serialprintPGM(echomagic)) #define SERIAL_ECHO(x) SERIAL_PROTOCOL(x) #define SERIAL_ECHOPGM(x) SERIAL_PROTOCOLPGM(x) #define SERIAL_ECHOLN(x) SERIAL_PROTOCOLLN(x) #define SERIAL_ECHOLNPGM(x) SERIAL_PROTOCOLLNPGM(x) #define SERIAL_ECHOPAIR(name,value) (serial_echopair_P(PSTR(name),(value))) void serial_echopair_P(const char *s_P, float v); void serial_echopair_P(const char *s_P, double v); void serial_echopair_P(const char *s_P, unsigned long v); //Things to write to serial from Program memory. Saves 400 to 2k of RAM. FORCE_INLINE void serialprintPGM(const char *str) { char ch=pgm_read_byte(str); while(ch) { MYSERIAL.write(ch); ch=pgm_read_byte(++str); } } void get_command(); void process_commands(); void manage_inactivity(bool ignore_stepper_queue=false); #if defined(DUAL_X_CARRIAGE) && defined(X_ENABLE_PIN) && X_ENABLE_PIN > -1 \ && defined(X2_ENABLE_PIN) && X2_ENABLE_PIN > -1 #define enable_x() do { WRITE(X_ENABLE_PIN, X_ENABLE_ON); WRITE(X2_ENABLE_PIN, X_ENABLE_ON); } while (0) #define disable_x() do { WRITE(X_ENABLE_PIN,!X_ENABLE_ON); WRITE(X2_ENABLE_PIN,!X_ENABLE_ON); axis_known_position[X_AXIS] = false; } while (0) #elif defined(X_ENABLE_PIN) && X_ENABLE_PIN > -1 #define enable_x() WRITE(X_ENABLE_PIN, X_ENABLE_ON) #define disable_x() { WRITE(X_ENABLE_PIN,!X_ENABLE_ON); axis_known_position[X_AXIS] = false; } #else #define enable_x() ; #define disable_x() ; #endif #if defined(Y_ENABLE_PIN) && Y_ENABLE_PIN > -1 #ifdef Y_DUAL_STEPPER_DRIVERS #define enable_y() { WRITE(Y_ENABLE_PIN, Y_ENABLE_ON); WRITE(Y2_ENABLE_PIN, Y_ENABLE_ON); } #define disable_y() { WRITE(Y_ENABLE_PIN,!Y_ENABLE_ON); WRITE(Y2_ENABLE_PIN, !Y_ENABLE_ON); axis_known_position[Y_AXIS] = false; } #else #define enable_y() WRITE(Y_ENABLE_PIN, Y_ENABLE_ON) #define disable_y() { WRITE(Y_ENABLE_PIN,!Y_ENABLE_ON); axis_known_position[Y_AXIS] = false; } #endif #else #define enable_y() ; #define disable_y() ; #endif #if defined(Z_ENABLE_PIN) && Z_ENABLE_PIN > -1 #ifdef Z_DUAL_STEPPER_DRIVERS #define enable_z() { WRITE(Z_ENABLE_PIN, Z_ENABLE_ON); WRITE(Z2_ENABLE_PIN, Z_ENABLE_ON); } #define disable_z() { WRITE(Z_ENABLE_PIN,!Z_ENABLE_ON); WRITE(Z2_ENABLE_PIN,!Z_ENABLE_ON); axis_known_position[Z_AXIS] = false; } #else #define enable_z() WRITE(Z_ENABLE_PIN, Z_ENABLE_ON) #define disable_z() { WRITE(Z_ENABLE_PIN,!Z_ENABLE_ON); axis_known_position[Z_AXIS] = false; } #endif #else #define enable_z() ; #define disable_z() ; #endif #if defined(E0_ENABLE_PIN) && (E0_ENABLE_PIN > -1) #define enable_e0() WRITE(E0_ENABLE_PIN, E_ENABLE_ON) #define disable_e0() WRITE(E0_ENABLE_PIN,!E_ENABLE_ON) #else #define enable_e0() /* nothing */ #define disable_e0() /* nothing */ #endif #if (EXTRUDERS > 1) && defined(E1_ENABLE_PIN) && (E1_ENABLE_PIN > -1) #define enable_e1() WRITE(E1_ENABLE_PIN, E_ENABLE_ON) #define disable_e1() WRITE(E1_ENABLE_PIN,!E_ENABLE_ON) #else #define enable_e1() /* nothing */ #define disable_e1() /* nothing */ #endif #if (EXTRUDERS > 2) && defined(E2_ENABLE_PIN) && (E2_ENABLE_PIN > -1) #define enable_e2() WRITE(E2_ENABLE_PIN, E_ENABLE_ON) #define disable_e2() WRITE(E2_ENABLE_PIN,!E_ENABLE_ON) #else #define enable_e2() /* nothing */ #define disable_e2() /* nothing */ #endif enum AxisEnum {X_AXIS=0, Y_AXIS=1, Z_AXIS=2, E_AXIS=3, X_HEAD=4, Y_HEAD=5}; void FlushSerialRequestResend(); void ClearToSend(); void get_coordinates(); #ifdef DELTA void calculate_delta(float cartesian[3]); extern float delta[3]; #endif #ifdef SCARA void calculate_delta(float cartesian[3]); void calculate_SCARA_forward_Transform(float f_scara[3]); #endif void prepare_move(); void kill(); void Stop(); bool IsStopped(); void enquecommand(const char *cmd); //put an ASCII command at the end of the current buffer. void enquecommand_P(const char *cmd); //put an ASCII command at the end of the current buffer, read from flash void prepare_arc_move(char isclockwise); void clamp_to_software_endstops(float target[3]); void refresh_cmd_timeout(void); #ifdef FAST_PWM_FAN void setPwmFrequency(uint8_t pin, int val); #endif #ifndef CRITICAL_SECTION_START #define CRITICAL_SECTION_START unsigned char _sreg = SREG; cli(); #define CRITICAL_SECTION_END SREG = _sreg; #endif //CRITICAL_SECTION_START extern float homing_feedrate[]; extern bool axis_relative_modes[]; extern int feedmultiply; extern int extrudemultiply; // Sets extrude multiply factor (in percent) for all extruders extern bool volumetric_enabled; extern int extruder_multiply[EXTRUDERS]; // sets extrude multiply factor (in percent) for each extruder individually extern float filament_size[EXTRUDERS]; // cross-sectional area of filament (in millimeters), typically around 1.75 or 2.85, 0 disables the volumetric calculations for the extruder. extern float volumetric_multiplier[EXTRUDERS]; // reciprocal of cross-sectional area of filament (in square millimeters), stored this way to reduce computational burden in planner extern float current_position[NUM_AXIS] ; extern float add_homing[3]; #ifdef DELTA extern float endstop_adj[3]; extern float delta_radius; extern float delta_diagonal_rod; extern float delta_segments_per_second; void recalc_delta_settings(float radius, float diagonal_rod); #endif #ifdef SCARA extern float axis_scaling[3]; // Build size scaling #endif extern float min_pos[3]; extern float max_pos[3]; extern bool axis_known_position[3]; extern float zprobe_zoffset; extern int fanSpeed; #ifdef BARICUDA extern int ValvePressure; extern int EtoPPressure; #endif #ifdef FAN_SOFT_PWM extern unsigned char fanSpeedSoftPwm; #endif #ifdef FILAMENT_SENSOR extern float filament_width_nominal; //holds the theoretical filament diameter ie., 3.00 or 1.75 extern bool filament_sensor; //indicates that filament sensor readings should control extrusion extern float filament_width_meas; //holds the filament diameter as accurately measured extern signed char measurement_delay[]; //ring buffer to delay measurement extern int delay_index1, delay_index2; //index into ring buffer extern float delay_dist; //delay distance counter extern int meas_delay_cm; //delay distance #endif #ifdef FWRETRACT extern bool autoretract_enabled; extern bool retracted[EXTRUDERS]; extern float retract_length, retract_length_swap, retract_feedrate, retract_zlift; extern float retract_recover_length, retract_recover_length_swap, retract_recover_feedrate; #endif extern unsigned long starttime; extern unsigned long stoptime; // Handling multiple extruders pins extern uint8_t active_extruder; #ifdef DIGIPOT_I2C extern void digipot_i2c_set_current( int channel, float current ); extern void digipot_i2c_init(); #endif #endif extern void calculate_volumetric_multipliers(); ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/Marlin.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
2,314
```c++ /* temperature.c - temperature control Part of Marlin This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the along with this program. If not, see <path_to_url */ /* This firmware is a mashup between Sprinter and grbl. (path_to_url (path_to_url It has preliminary support for Matthew Roberts advance algorithm path_to_url */ #include "Marlin.h" #include "ultralcd.h" #include "temperature.h" #include "watchdog.h" #include "Sd2PinMap.h" //=========================================================================== //=============================public variables============================ //=========================================================================== int target_temperature[EXTRUDERS] = { 0 }; int target_temperature_bed = 0; int current_temperature_raw[EXTRUDERS] = { 0 }; float current_temperature[EXTRUDERS] = { 0.0 }; int current_temperature_bed_raw = 0; float current_temperature_bed = 0.0; #ifdef TEMP_SENSOR_1_AS_REDUNDANT int redundant_temperature_raw = 0; float redundant_temperature = 0.0; #endif #ifdef PIDTEMP float Kp=DEFAULT_Kp; float Ki=(DEFAULT_Ki*PID_dT); float Kd=(DEFAULT_Kd/PID_dT); #ifdef PID_ADD_EXTRUSION_RATE float Kc=DEFAULT_Kc; #endif #endif //PIDTEMP #ifdef PIDTEMPBED float bedKp=DEFAULT_bedKp; float bedKi=(DEFAULT_bedKi*PID_dT); float bedKd=(DEFAULT_bedKd/PID_dT); #endif //PIDTEMPBED #ifdef FAN_SOFT_PWM unsigned char fanSpeedSoftPwm; #endif unsigned char soft_pwm_bed; #ifdef BABYSTEPPING volatile int babystepsTodo[3]={0,0,0}; #endif #ifdef FILAMENT_SENSOR int current_raw_filwidth = 0; //Holds measured filament diameter - one extruder only #endif //=========================================================================== //=============================private variables============================ //=========================================================================== static volatile bool temp_meas_ready = false; #ifdef PIDTEMP //static cannot be external: static float temp_iState[EXTRUDERS] = { 0 }; static float temp_dState[EXTRUDERS] = { 0 }; static float pTerm[EXTRUDERS]; static float iTerm[EXTRUDERS]; static float dTerm[EXTRUDERS]; //int output; static float pid_error[EXTRUDERS]; static float temp_iState_min[EXTRUDERS]; static float temp_iState_max[EXTRUDERS]; // static float pid_input[EXTRUDERS]; // static float pid_output[EXTRUDERS]; static bool pid_reset[EXTRUDERS]; #endif //PIDTEMP #ifdef PIDTEMPBED //static cannot be external: static float temp_iState_bed = { 0 }; static float temp_dState_bed = { 0 }; static float pTerm_bed; static float iTerm_bed; static float dTerm_bed; //int output; static float pid_error_bed; static float temp_iState_min_bed; static float temp_iState_max_bed; #else //PIDTEMPBED static unsigned long previous_millis_bed_heater; #endif //PIDTEMPBED static unsigned char soft_pwm[EXTRUDERS]; #ifdef FAN_SOFT_PWM static unsigned char soft_pwm_fan; #endif #if (defined(EXTRUDER_0_AUTO_FAN_PIN) && EXTRUDER_0_AUTO_FAN_PIN > -1) || \ (defined(EXTRUDER_1_AUTO_FAN_PIN) && EXTRUDER_1_AUTO_FAN_PIN > -1) || \ (defined(EXTRUDER_2_AUTO_FAN_PIN) && EXTRUDER_2_AUTO_FAN_PIN > -1) static unsigned long extruder_autofan_last_check; #endif #if EXTRUDERS > 3 # error Unsupported number of extruders #elif EXTRUDERS > 2 # define ARRAY_BY_EXTRUDERS(v1, v2, v3) { v1, v2, v3 } #elif EXTRUDERS > 1 # define ARRAY_BY_EXTRUDERS(v1, v2, v3) { v1, v2 } #else # define ARRAY_BY_EXTRUDERS(v1, v2, v3) { v1 } #endif // Init min and max temp with extreme values to prevent false errors during startup static int minttemp_raw[EXTRUDERS] = ARRAY_BY_EXTRUDERS( HEATER_0_RAW_LO_TEMP , HEATER_1_RAW_LO_TEMP , HEATER_2_RAW_LO_TEMP ); static int maxttemp_raw[EXTRUDERS] = ARRAY_BY_EXTRUDERS( HEATER_0_RAW_HI_TEMP , HEATER_1_RAW_HI_TEMP , HEATER_2_RAW_HI_TEMP ); static int minttemp[EXTRUDERS] = ARRAY_BY_EXTRUDERS( 0, 0, 0 ); static int maxttemp[EXTRUDERS] = ARRAY_BY_EXTRUDERS( 16383, 16383, 16383 ); //static int bed_minttemp_raw = HEATER_BED_RAW_LO_TEMP; /* No bed mintemp error implemented?!? */ #ifdef BED_MAXTEMP static int bed_maxttemp_raw = HEATER_BED_RAW_HI_TEMP; #endif #ifdef TEMP_SENSOR_1_AS_REDUNDANT static void *heater_ttbl_map[2] = {(void *)HEATER_0_TEMPTABLE, (void *)HEATER_1_TEMPTABLE }; static uint8_t heater_ttbllen_map[2] = { HEATER_0_TEMPTABLE_LEN, HEATER_1_TEMPTABLE_LEN }; #else static void *heater_ttbl_map[EXTRUDERS] = ARRAY_BY_EXTRUDERS( (void *)HEATER_0_TEMPTABLE, (void *)HEATER_1_TEMPTABLE, (void *)HEATER_2_TEMPTABLE ); static uint8_t heater_ttbllen_map[EXTRUDERS] = ARRAY_BY_EXTRUDERS( HEATER_0_TEMPTABLE_LEN, HEATER_1_TEMPTABLE_LEN, HEATER_2_TEMPTABLE_LEN ); #endif static float analog2temp(int raw, uint8_t e); static float analog2tempBed(int raw); static void updateTemperaturesFromRawValues(); #ifdef WATCH_TEMP_PERIOD int watch_start_temp[EXTRUDERS] = ARRAY_BY_EXTRUDERS(0,0,0); unsigned long watchmillis[EXTRUDERS] = ARRAY_BY_EXTRUDERS(0,0,0); #endif //WATCH_TEMP_PERIOD #ifndef SOFT_PWM_SCALE #define SOFT_PWM_SCALE 0 #endif #ifdef FILAMENT_SENSOR static int meas_shift_index; //used to point to a delayed sample in buffer for filament width sensor #endif //=========================================================================== //============================= functions ============================ //=========================================================================== void PID_autotune(float temp, int extruder, int ncycles) { float input = 0.0; int cycles=0; bool heating = true; unsigned long temp_millis = millis(); unsigned long t1=temp_millis; unsigned long t2=temp_millis; long t_high = 0; long t_low = 0; long bias, d; float Ku, Tu; float Kp, Ki, Kd; float max = 0, min = 10000; #if (defined(EXTRUDER_0_AUTO_FAN_PIN) && EXTRUDER_0_AUTO_FAN_PIN > -1) || \ (defined(EXTRUDER_1_AUTO_FAN_PIN) && EXTRUDER_1_AUTO_FAN_PIN > -1) || \ (defined(EXTRUDER_2_AUTO_FAN_PIN) && EXTRUDER_2_AUTO_FAN_PIN > -1) unsigned long extruder_autofan_last_check = millis(); #endif if ((extruder >= EXTRUDERS) #if (TEMP_BED_PIN <= -1) ||(extruder < 0) #endif ){ SERIAL_ECHOLN("PID Autotune failed. Bad extruder number."); return; } SERIAL_ECHOLN("PID Autotune start"); disable_heater(); // switch off all heaters. if (extruder<0) { soft_pwm_bed = (MAX_BED_POWER)/2; bias = d = (MAX_BED_POWER)/2; } else { soft_pwm[extruder] = (PID_MAX)/2; bias = d = (PID_MAX)/2; } for(;;) { if(temp_meas_ready == true) { // temp sample ready updateTemperaturesFromRawValues(); input = (extruder<0)?current_temperature_bed:current_temperature[extruder]; max=max(max,input); min=min(min,input); #if (defined(EXTRUDER_0_AUTO_FAN_PIN) && EXTRUDER_0_AUTO_FAN_PIN > -1) || \ (defined(EXTRUDER_1_AUTO_FAN_PIN) && EXTRUDER_1_AUTO_FAN_PIN > -1) || \ (defined(EXTRUDER_2_AUTO_FAN_PIN) && EXTRUDER_2_AUTO_FAN_PIN > -1) if(millis() - extruder_autofan_last_check > 2500) { checkExtruderAutoFans(); extruder_autofan_last_check = millis(); } #endif if(heating == true && input > temp) { if(millis() - t2 > 5000) { heating=false; if (extruder<0) soft_pwm_bed = (bias - d) >> 1; else soft_pwm[extruder] = (bias - d) >> 1; t1=millis(); t_high=t1 - t2; max=temp; } } if(heating == false && input < temp) { if(millis() - t1 > 5000) { heating=true; t2=millis(); t_low=t2 - t1; if(cycles > 0) { bias += (d*(t_high - t_low))/(t_low + t_high); bias = constrain(bias, 20 ,(extruder<0?(MAX_BED_POWER):(PID_MAX))-20); if(bias > (extruder<0?(MAX_BED_POWER):(PID_MAX))/2) d = (extruder<0?(MAX_BED_POWER):(PID_MAX)) - 1 - bias; else d = bias; SERIAL_PROTOCOLPGM(" bias: "); SERIAL_PROTOCOL(bias); SERIAL_PROTOCOLPGM(" d: "); SERIAL_PROTOCOL(d); SERIAL_PROTOCOLPGM(" min: "); SERIAL_PROTOCOL(min); SERIAL_PROTOCOLPGM(" max: "); SERIAL_PROTOCOLLN(max); if(cycles > 2) { Ku = (4.0*d)/(3.14159*(max-min)/2.0); Tu = ((float)(t_low + t_high)/1000.0); SERIAL_PROTOCOLPGM(" Ku: "); SERIAL_PROTOCOL(Ku); SERIAL_PROTOCOLPGM(" Tu: "); SERIAL_PROTOCOLLN(Tu); Kp = 0.6*Ku; Ki = 2*Kp/Tu; Kd = Kp*Tu/8; SERIAL_PROTOCOLLNPGM(" Classic PID "); SERIAL_PROTOCOLPGM(" Kp: "); SERIAL_PROTOCOLLN(Kp); SERIAL_PROTOCOLPGM(" Ki: "); SERIAL_PROTOCOLLN(Ki); SERIAL_PROTOCOLPGM(" Kd: "); SERIAL_PROTOCOLLN(Kd); /* Kp = 0.33*Ku; Ki = Kp/Tu; Kd = Kp*Tu/3; SERIAL_PROTOCOLLNPGM(" Some overshoot "); SERIAL_PROTOCOLPGM(" Kp: "); SERIAL_PROTOCOLLN(Kp); SERIAL_PROTOCOLPGM(" Ki: "); SERIAL_PROTOCOLLN(Ki); SERIAL_PROTOCOLPGM(" Kd: "); SERIAL_PROTOCOLLN(Kd); Kp = 0.2*Ku; Ki = 2*Kp/Tu; Kd = Kp*Tu/3; SERIAL_PROTOCOLLNPGM(" No overshoot "); SERIAL_PROTOCOLPGM(" Kp: "); SERIAL_PROTOCOLLN(Kp); SERIAL_PROTOCOLPGM(" Ki: "); SERIAL_PROTOCOLLN(Ki); SERIAL_PROTOCOLPGM(" Kd: "); SERIAL_PROTOCOLLN(Kd); */ } } if (extruder<0) soft_pwm_bed = (bias + d) >> 1; else soft_pwm[extruder] = (bias + d) >> 1; cycles++; min=temp; } } } if(input > (temp + 20)) { SERIAL_PROTOCOLLNPGM("PID Autotune failed! Temperature too high"); return; } if(millis() - temp_millis > 2000) { int p; if (extruder<0){ p=soft_pwm_bed; SERIAL_PROTOCOLPGM("ok B:"); }else{ p=soft_pwm[extruder]; SERIAL_PROTOCOLPGM("ok T:"); } SERIAL_PROTOCOL(input); SERIAL_PROTOCOLPGM(" @:"); SERIAL_PROTOCOLLN(p); temp_millis = millis(); } if(((millis() - t1) + (millis() - t2)) > (10L*60L*1000L*2L)) { SERIAL_PROTOCOLLNPGM("PID Autotune failed! timeout"); return; } if(cycles > ncycles) { SERIAL_PROTOCOLLNPGM("PID Autotune finished! Put the last Kp, Ki and Kd constants from above into Configuration.h"); return; } lcd_update(); } } void updatePID() { #ifdef PIDTEMP for(int e = 0; e < EXTRUDERS; e++) { temp_iState_max[e] = PID_INTEGRAL_DRIVE_MAX / Ki; } #endif #ifdef PIDTEMPBED temp_iState_max_bed = PID_INTEGRAL_DRIVE_MAX / bedKi; #endif } int getHeaterPower(int heater) { if (heater<0) return soft_pwm_bed; return soft_pwm[heater]; } #if (defined(EXTRUDER_0_AUTO_FAN_PIN) && EXTRUDER_0_AUTO_FAN_PIN > -1) || \ (defined(EXTRUDER_1_AUTO_FAN_PIN) && EXTRUDER_1_AUTO_FAN_PIN > -1) || \ (defined(EXTRUDER_2_AUTO_FAN_PIN) && EXTRUDER_2_AUTO_FAN_PIN > -1) #if defined(FAN_PIN) && FAN_PIN > -1 #if EXTRUDER_0_AUTO_FAN_PIN == FAN_PIN #error "You cannot set EXTRUDER_0_AUTO_FAN_PIN equal to FAN_PIN" #endif #if EXTRUDER_1_AUTO_FAN_PIN == FAN_PIN #error "You cannot set EXTRUDER_1_AUTO_FAN_PIN equal to FAN_PIN" #endif #if EXTRUDER_2_AUTO_FAN_PIN == FAN_PIN #error "You cannot set EXTRUDER_2_AUTO_FAN_PIN equal to FAN_PIN" #endif #endif void setExtruderAutoFanState(int pin, bool state) { unsigned char newFanSpeed = (state != 0) ? EXTRUDER_AUTO_FAN_SPEED : 0; // this idiom allows both digital and PWM fan outputs (see M42 handling). pinMode(pin, OUTPUT); digitalWrite(pin, newFanSpeed); analogWrite(pin, newFanSpeed); } void checkExtruderAutoFans() { uint8_t fanState = 0; // which fan pins need to be turned on? #if defined(EXTRUDER_0_AUTO_FAN_PIN) && EXTRUDER_0_AUTO_FAN_PIN > -1 if (current_temperature[0] > EXTRUDER_AUTO_FAN_TEMPERATURE) fanState |= 1; #endif #if defined(EXTRUDER_1_AUTO_FAN_PIN) && EXTRUDER_1_AUTO_FAN_PIN > -1 if (current_temperature[1] > EXTRUDER_AUTO_FAN_TEMPERATURE) { if (EXTRUDER_1_AUTO_FAN_PIN == EXTRUDER_0_AUTO_FAN_PIN) fanState |= 1; else fanState |= 2; } #endif #if defined(EXTRUDER_2_AUTO_FAN_PIN) && EXTRUDER_2_AUTO_FAN_PIN > -1 if (current_temperature[2] > EXTRUDER_AUTO_FAN_TEMPERATURE) { if (EXTRUDER_2_AUTO_FAN_PIN == EXTRUDER_0_AUTO_FAN_PIN) fanState |= 1; else if (EXTRUDER_2_AUTO_FAN_PIN == EXTRUDER_1_AUTO_FAN_PIN) fanState |= 2; else fanState |= 4; } #endif // update extruder auto fan states #if defined(EXTRUDER_0_AUTO_FAN_PIN) && EXTRUDER_0_AUTO_FAN_PIN > -1 setExtruderAutoFanState(EXTRUDER_0_AUTO_FAN_PIN, (fanState & 1) != 0); #endif #if defined(EXTRUDER_1_AUTO_FAN_PIN) && EXTRUDER_1_AUTO_FAN_PIN > -1 if (EXTRUDER_1_AUTO_FAN_PIN != EXTRUDER_0_AUTO_FAN_PIN) setExtruderAutoFanState(EXTRUDER_1_AUTO_FAN_PIN, (fanState & 2) != 0); #endif #if defined(EXTRUDER_2_AUTO_FAN_PIN) && EXTRUDER_2_AUTO_FAN_PIN > -1 if (EXTRUDER_2_AUTO_FAN_PIN != EXTRUDER_0_AUTO_FAN_PIN && EXTRUDER_2_AUTO_FAN_PIN != EXTRUDER_1_AUTO_FAN_PIN) setExtruderAutoFanState(EXTRUDER_2_AUTO_FAN_PIN, (fanState & 4) != 0); #endif } #endif // any extruder auto fan pins set void manage_heater() { float pid_input; float pid_output; if(temp_meas_ready != true) //better readability return; updateTemperaturesFromRawValues(); for(int e = 0; e < EXTRUDERS; e++) { #if defined (THERMAL_RUNAWAY_PROTECTION_PERIOD) && THERMAL_RUNAWAY_PROTECTION_PERIOD > 0 thermal_runaway_protection(&thermal_runaway_state_machine[e], &thermal_runaway_timer[e], current_temperature[e], target_temperature[e], e, THERMAL_RUNAWAY_PROTECTION_PERIOD, THERMAL_RUNAWAY_PROTECTION_HYSTERESIS); #endif #ifdef PIDTEMP pid_input = current_temperature[e]; #ifndef PID_OPENLOOP pid_error[e] = target_temperature[e] - pid_input; if(pid_error[e] > PID_FUNCTIONAL_RANGE) { pid_output = BANG_MAX; pid_reset[e] = true; } else if(pid_error[e] < -PID_FUNCTIONAL_RANGE || target_temperature[e] == 0) { pid_output = 0; pid_reset[e] = true; } else { if(pid_reset[e] == true) { temp_iState[e] = 0.0; pid_reset[e] = false; } pTerm[e] = Kp * pid_error[e]; temp_iState[e] += pid_error[e]; temp_iState[e] = constrain(temp_iState[e], temp_iState_min[e], temp_iState_max[e]); iTerm[e] = Ki * temp_iState[e]; //K1 defined in Configuration.h in the PID settings #define K2 (1.0-K1) dTerm[e] = (Kd * (pid_input - temp_dState[e]))*K2 + (K1 * dTerm[e]); pid_output = pTerm[e] + iTerm[e] - dTerm[e]; if (pid_output > PID_MAX) { if (pid_error[e] > 0 ) temp_iState[e] -= pid_error[e]; // conditional un-integration pid_output=PID_MAX; } else if (pid_output < 0){ if (pid_error[e] < 0 ) temp_iState[e] -= pid_error[e]; // conditional un-integration pid_output=0; } } temp_dState[e] = pid_input; #else pid_output = constrain(target_temperature[e], 0, PID_MAX); #endif //PID_OPENLOOP #ifdef PID_DEBUG SERIAL_ECHO_START; SERIAL_ECHO(" PID_DEBUG "); SERIAL_ECHO(e); SERIAL_ECHO(": Input "); SERIAL_ECHO(pid_input); SERIAL_ECHO(" Output "); SERIAL_ECHO(pid_output); SERIAL_ECHO(" pTerm "); SERIAL_ECHO(pTerm[e]); SERIAL_ECHO(" iTerm "); SERIAL_ECHO(iTerm[e]); SERIAL_ECHO(" dTerm "); SERIAL_ECHOLN(dTerm[e]); #endif //PID_DEBUG #else /* PID off */ pid_output = 0; if(current_temperature[e] < target_temperature[e]) { pid_output = PID_MAX; } #endif // Check if temperature is within the correct range if((current_temperature[e] > minttemp[e]) && (current_temperature[e] < maxttemp[e])) { soft_pwm[e] = (int)pid_output >> 1; } else { soft_pwm[e] = 0; } #ifdef WATCH_TEMP_PERIOD if(watchmillis[e] && millis() - watchmillis[e] > WATCH_TEMP_PERIOD) { if(degHotend(e) < watch_start_temp[e] + WATCH_TEMP_INCREASE) { setTargetHotend(0, e); LCD_MESSAGEPGM("Heating failed"); SERIAL_ECHO_START; SERIAL_ECHOLN("Heating failed"); }else{ watchmillis[e] = 0; } } #endif #ifdef TEMP_SENSOR_1_AS_REDUNDANT if(fabs(current_temperature[0] - redundant_temperature) > MAX_REDUNDANT_TEMP_SENSOR_DIFF) { disable_heater(); if(IsStopped() == false) { SERIAL_ERROR_START; SERIAL_ERRORLNPGM("Extruder switched off. Temperature difference between temp sensors is too high !"); LCD_ALERTMESSAGEPGM("Err: REDUNDANT TEMP ERROR"); } #ifndef BOGUS_TEMPERATURE_FAILSAFE_OVERRIDE Stop(); #endif } #endif } // End extruder for loop #if (defined(EXTRUDER_0_AUTO_FAN_PIN) && EXTRUDER_0_AUTO_FAN_PIN > -1) || \ (defined(EXTRUDER_1_AUTO_FAN_PIN) && EXTRUDER_1_AUTO_FAN_PIN > -1) || \ (defined(EXTRUDER_2_AUTO_FAN_PIN) && EXTRUDER_2_AUTO_FAN_PIN > -1) if(millis() - extruder_autofan_last_check > 2500) // only need to check fan state very infrequently { checkExtruderAutoFans(); extruder_autofan_last_check = millis(); } #endif #ifndef PIDTEMPBED if(millis() - previous_millis_bed_heater < BED_CHECK_INTERVAL) return; previous_millis_bed_heater = millis(); #endif #if TEMP_SENSOR_BED != 0 #ifdef THERMAL_RUNAWAY_PROTECTION_PERIOD && THERMAL_RUNAWAY_PROTECTION_PERIOD > 0 thermal_runaway_protection(&thermal_runaway_bed_state_machine, &thermal_runaway_bed_timer, current_temperature_bed, target_temperature_bed, 9, THERMAL_RUNAWAY_PROTECTION_BED_PERIOD, THERMAL_RUNAWAY_PROTECTION_BED_HYSTERESIS); #endif #ifdef PIDTEMPBED pid_input = current_temperature_bed; #ifndef PID_OPENLOOP pid_error_bed = target_temperature_bed - pid_input; pTerm_bed = bedKp * pid_error_bed; temp_iState_bed += pid_error_bed; temp_iState_bed = constrain(temp_iState_bed, temp_iState_min_bed, temp_iState_max_bed); iTerm_bed = bedKi * temp_iState_bed; //K1 defined in Configuration.h in the PID settings #define K2 (1.0-K1) dTerm_bed= (bedKd * (pid_input - temp_dState_bed))*K2 + (K1 * dTerm_bed); temp_dState_bed = pid_input; pid_output = pTerm_bed + iTerm_bed - dTerm_bed; if (pid_output > MAX_BED_POWER) { if (pid_error_bed > 0 ) temp_iState_bed -= pid_error_bed; // conditional un-integration pid_output=MAX_BED_POWER; } else if (pid_output < 0){ if (pid_error_bed < 0 ) temp_iState_bed -= pid_error_bed; // conditional un-integration pid_output=0; } #else pid_output = constrain(target_temperature_bed, 0, MAX_BED_POWER); #endif //PID_OPENLOOP if((current_temperature_bed > BED_MINTEMP) && (current_temperature_bed < BED_MAXTEMP)) { soft_pwm_bed = (int)pid_output >> 1; } else { soft_pwm_bed = 0; } #elif !defined(BED_LIMIT_SWITCHING) // Check if temperature is within the correct range if((current_temperature_bed > BED_MINTEMP) && (current_temperature_bed < BED_MAXTEMP)) { if(current_temperature_bed >= target_temperature_bed) { soft_pwm_bed = 0; } else { soft_pwm_bed = MAX_BED_POWER>>1; } } else { soft_pwm_bed = 0; WRITE(HEATER_BED_PIN,LOW); } #else //#ifdef BED_LIMIT_SWITCHING // Check if temperature is within the correct band if((current_temperature_bed > BED_MINTEMP) && (current_temperature_bed < BED_MAXTEMP)) { if(current_temperature_bed > target_temperature_bed + BED_HYSTERESIS) { soft_pwm_bed = 0; } else if(current_temperature_bed <= target_temperature_bed - BED_HYSTERESIS) { soft_pwm_bed = MAX_BED_POWER>>1; } } else { soft_pwm_bed = 0; WRITE(HEATER_BED_PIN,LOW); } #endif #endif //code for controlling the extruder rate based on the width sensor #ifdef FILAMENT_SENSOR if(filament_sensor) { meas_shift_index=delay_index1-meas_delay_cm; if(meas_shift_index<0) meas_shift_index = meas_shift_index + (MAX_MEASUREMENT_DELAY+1); //loop around buffer if needed //get the delayed info and add 100 to reconstitute to a percent of the nominal filament diameter //then square it to get an area if(meas_shift_index<0) meas_shift_index=0; else if (meas_shift_index>MAX_MEASUREMENT_DELAY) meas_shift_index=MAX_MEASUREMENT_DELAY; volumetric_multiplier[FILAMENT_SENSOR_EXTRUDER_NUM] = pow((float)(100+measurement_delay[meas_shift_index])/100.0,2); if (volumetric_multiplier[FILAMENT_SENSOR_EXTRUDER_NUM] <0.01) volumetric_multiplier[FILAMENT_SENSOR_EXTRUDER_NUM]=0.01; } #endif } #define PGM_RD_W(x) (short)pgm_read_word(&x) // Derived from RepRap FiveD extruder::getTemperature() // For hot end temperature measurement. static float analog2temp(int raw, uint8_t e) { #ifdef TEMP_SENSOR_1_AS_REDUNDANT if(e > EXTRUDERS) #else if(e >= EXTRUDERS) #endif { SERIAL_ERROR_START; SERIAL_ERROR((int)e); SERIAL_ERRORLNPGM(" - Invalid extruder number !"); kill(); return 0.0; } #ifdef HEATER_0_USES_MAX6675 if (e == 0) { return 0.25 * raw; } #endif if(heater_ttbl_map[e] != NULL) { float celsius = 0; uint8_t i; short (*tt)[][2] = (short (*)[][2])(heater_ttbl_map[e]); for (i=1; i<heater_ttbllen_map[e]; i++) { if (PGM_RD_W((*tt)[i][0]) > raw) { celsius = PGM_RD_W((*tt)[i-1][1]) + (raw - PGM_RD_W((*tt)[i-1][0])) * (float)(PGM_RD_W((*tt)[i][1]) - PGM_RD_W((*tt)[i-1][1])) / (float)(PGM_RD_W((*tt)[i][0]) - PGM_RD_W((*tt)[i-1][0])); break; } } // Overflow: Set to last value in the table if (i == heater_ttbllen_map[e]) celsius = PGM_RD_W((*tt)[i-1][1]); return celsius; } return ((raw * ((5.0 * 100.0) / 1024.0) / OVERSAMPLENR) * TEMP_SENSOR_AD595_GAIN) + TEMP_SENSOR_AD595_OFFSET; } // Derived from RepRap FiveD extruder::getTemperature() // For bed temperature measurement. static float analog2tempBed(int raw) { #ifdef BED_USES_THERMISTOR float celsius = 0; byte i; for (i=1; i<BEDTEMPTABLE_LEN; i++) { if (PGM_RD_W(BEDTEMPTABLE[i][0]) > raw) { celsius = PGM_RD_W(BEDTEMPTABLE[i-1][1]) + (raw - PGM_RD_W(BEDTEMPTABLE[i-1][0])) * (float)(PGM_RD_W(BEDTEMPTABLE[i][1]) - PGM_RD_W(BEDTEMPTABLE[i-1][1])) / (float)(PGM_RD_W(BEDTEMPTABLE[i][0]) - PGM_RD_W(BEDTEMPTABLE[i-1][0])); break; } } // Overflow: Set to last value in the table if (i == BEDTEMPTABLE_LEN) celsius = PGM_RD_W(BEDTEMPTABLE[i-1][1]); return celsius; #elif defined BED_USES_AD595 return ((raw * ((5.0 * 100.0) / 1024.0) / OVERSAMPLENR) * TEMP_SENSOR_AD595_GAIN) + TEMP_SENSOR_AD595_OFFSET; #else return 0; #endif } /* Called to get the raw values into the the actual temperatures. The raw values are created in interrupt context, and this function is called from normal context as it is too slow to run in interrupts and will block the stepper routine otherwise */ static void updateTemperaturesFromRawValues() { for(uint8_t e=0;e<EXTRUDERS;e++) { current_temperature[e] = analog2temp(current_temperature_raw[e], e); } current_temperature_bed = analog2tempBed(current_temperature_bed_raw); #ifdef TEMP_SENSOR_1_AS_REDUNDANT redundant_temperature = analog2temp(redundant_temperature_raw, 1); #endif #if defined (FILAMENT_SENSOR) && (FILWIDTH_PIN > -1) //check if a sensor is supported filament_width_meas = analog2widthFil(); #endif //Reset the watchdog after we know we have a temperature measurement. watchdog_reset(); CRITICAL_SECTION_START; temp_meas_ready = false; CRITICAL_SECTION_END; } // For converting raw Filament Width to milimeters #ifdef FILAMENT_SENSOR float analog2widthFil() { return current_raw_filwidth/16383.0*5.0; //return current_raw_filwidth; } // For converting raw Filament Width to a ratio int widthFil_to_size_ratio() { float temp; temp=filament_width_meas; if(filament_width_meas<MEASURED_LOWER_LIMIT) temp=filament_width_nominal; //assume sensor cut out else if (filament_width_meas>MEASURED_UPPER_LIMIT) temp= MEASURED_UPPER_LIMIT; return(filament_width_nominal/temp*100); } #endif void tp_init() { #if MB(RUMBA) && ((TEMP_SENSOR_0==-1)||(TEMP_SENSOR_1==-1)||(TEMP_SENSOR_2==-1)||(TEMP_SENSOR_BED==-1)) //disable RUMBA JTAG in case the thermocouple extension is plugged on top of JTAG connector MCUCR=(1<<JTD); MCUCR=(1<<JTD); #endif // Finish init of mult extruder arrays for(int e = 0; e < EXTRUDERS; e++) { // populate with the first value maxttemp[e] = maxttemp[0]; #ifdef PIDTEMP temp_iState_min[e] = 0.0; temp_iState_max[e] = PID_INTEGRAL_DRIVE_MAX / Ki; #endif //PIDTEMP #ifdef PIDTEMPBED temp_iState_min_bed = 0.0; temp_iState_max_bed = PID_INTEGRAL_DRIVE_MAX / bedKi; #endif //PIDTEMPBED } #if defined(HEATER_0_PIN) && (HEATER_0_PIN > -1) SET_OUTPUT(HEATER_0_PIN); #endif #if defined(HEATER_1_PIN) && (HEATER_1_PIN > -1) SET_OUTPUT(HEATER_1_PIN); #endif #if defined(HEATER_2_PIN) && (HEATER_2_PIN > -1) SET_OUTPUT(HEATER_2_PIN); #endif #if defined(HEATER_BED_PIN) && (HEATER_BED_PIN > -1) SET_OUTPUT(HEATER_BED_PIN); #endif #if defined(FAN_PIN) && (FAN_PIN > -1) SET_OUTPUT(FAN_PIN); #ifdef FAST_PWM_FAN setPwmFrequency(FAN_PIN, 1); // No prescaling. Pwm frequency = F_CPU/256/8 #endif #ifdef FAN_SOFT_PWM soft_pwm_fan = fanSpeedSoftPwm / 2; #endif #endif #ifdef HEATER_0_USES_MAX6675 #ifndef SDSUPPORT SET_OUTPUT(SCK_PIN); WRITE(SCK_PIN,0); SET_OUTPUT(MOSI_PIN); WRITE(MOSI_PIN,1); SET_INPUT(MISO_PIN); WRITE(MISO_PIN,1); #endif /* Using pinMode and digitalWrite, as that was the only way I could get it to compile */ //Have to toggle SD card CS pin to low first, to enable firmware to talk with SD card pinMode(SS_PIN, OUTPUT); digitalWrite(SS_PIN,0); pinMode(MAX6675_SS, OUTPUT); digitalWrite(MAX6675_SS,1); #endif // Set analog inputs ADCSRA = 1<<ADEN | 1<<ADSC | 1<<ADIF | 0x07; DIDR0 = 0; #ifdef DIDR2 DIDR2 = 0; #endif #if defined(TEMP_0_PIN) && (TEMP_0_PIN > -1) #if TEMP_0_PIN < 8 DIDR0 |= 1 << TEMP_0_PIN; #else DIDR2 |= 1<<(TEMP_0_PIN - 8); #endif #endif #if defined(TEMP_1_PIN) && (TEMP_1_PIN > -1) #if TEMP_1_PIN < 8 DIDR0 |= 1<<TEMP_1_PIN; #else DIDR2 |= 1<<(TEMP_1_PIN - 8); #endif #endif #if defined(TEMP_2_PIN) && (TEMP_2_PIN > -1) #if TEMP_2_PIN < 8 DIDR0 |= 1 << TEMP_2_PIN; #else DIDR2 |= 1<<(TEMP_2_PIN - 8); #endif #endif #if defined(TEMP_BED_PIN) && (TEMP_BED_PIN > -1) #if TEMP_BED_PIN < 8 DIDR0 |= 1<<TEMP_BED_PIN; #else DIDR2 |= 1<<(TEMP_BED_PIN - 8); #endif #endif //Added for Filament Sensor #ifdef FILAMENT_SENSOR #if defined(FILWIDTH_PIN) && (FILWIDTH_PIN > -1) #if FILWIDTH_PIN < 8 DIDR0 |= 1<<FILWIDTH_PIN; #else DIDR2 |= 1<<(FILWIDTH_PIN - 8); #endif #endif #endif // Use timer0 for temperature measurement // Interleave temperature interrupt with millies interrupt OCR0B = 128; TIMSK0 |= (1<<OCIE0B); // Wait for temperature measurement to settle delay(250); #ifdef HEATER_0_MINTEMP minttemp[0] = HEATER_0_MINTEMP; while(analog2temp(minttemp_raw[0], 0) < HEATER_0_MINTEMP) { #if HEATER_0_RAW_LO_TEMP < HEATER_0_RAW_HI_TEMP minttemp_raw[0] += OVERSAMPLENR; #else minttemp_raw[0] -= OVERSAMPLENR; #endif } #endif //MINTEMP #ifdef HEATER_0_MAXTEMP maxttemp[0] = HEATER_0_MAXTEMP; while(analog2temp(maxttemp_raw[0], 0) > HEATER_0_MAXTEMP) { #if HEATER_0_RAW_LO_TEMP < HEATER_0_RAW_HI_TEMP maxttemp_raw[0] -= OVERSAMPLENR; #else maxttemp_raw[0] += OVERSAMPLENR; #endif } #endif //MAXTEMP #if (EXTRUDERS > 1) && defined(HEATER_1_MINTEMP) minttemp[1] = HEATER_1_MINTEMP; while(analog2temp(minttemp_raw[1], 1) < HEATER_1_MINTEMP) { #if HEATER_1_RAW_LO_TEMP < HEATER_1_RAW_HI_TEMP minttemp_raw[1] += OVERSAMPLENR; #else minttemp_raw[1] -= OVERSAMPLENR; #endif } #endif // MINTEMP 1 #if (EXTRUDERS > 1) && defined(HEATER_1_MAXTEMP) maxttemp[1] = HEATER_1_MAXTEMP; while(analog2temp(maxttemp_raw[1], 1) > HEATER_1_MAXTEMP) { #if HEATER_1_RAW_LO_TEMP < HEATER_1_RAW_HI_TEMP maxttemp_raw[1] -= OVERSAMPLENR; #else maxttemp_raw[1] += OVERSAMPLENR; #endif } #endif //MAXTEMP 1 #if (EXTRUDERS > 2) && defined(HEATER_2_MINTEMP) minttemp[2] = HEATER_2_MINTEMP; while(analog2temp(minttemp_raw[2], 2) < HEATER_2_MINTEMP) { #if HEATER_2_RAW_LO_TEMP < HEATER_2_RAW_HI_TEMP minttemp_raw[2] += OVERSAMPLENR; #else minttemp_raw[2] -= OVERSAMPLENR; #endif } #endif //MINTEMP 2 #if (EXTRUDERS > 2) && defined(HEATER_2_MAXTEMP) maxttemp[2] = HEATER_2_MAXTEMP; while(analog2temp(maxttemp_raw[2], 2) > HEATER_2_MAXTEMP) { #if HEATER_2_RAW_LO_TEMP < HEATER_2_RAW_HI_TEMP maxttemp_raw[2] -= OVERSAMPLENR; #else maxttemp_raw[2] += OVERSAMPLENR; #endif } #endif //MAXTEMP 2 #ifdef BED_MINTEMP /* No bed MINTEMP error implemented?!? */ /* while(analog2tempBed(bed_minttemp_raw) < BED_MINTEMP) { #if HEATER_BED_RAW_LO_TEMP < HEATER_BED_RAW_HI_TEMP bed_minttemp_raw += OVERSAMPLENR; #else bed_minttemp_raw -= OVERSAMPLENR; #endif } */ #endif //BED_MINTEMP #ifdef BED_MAXTEMP while(analog2tempBed(bed_maxttemp_raw) > BED_MAXTEMP) { #if HEATER_BED_RAW_LO_TEMP < HEATER_BED_RAW_HI_TEMP bed_maxttemp_raw -= OVERSAMPLENR; #else bed_maxttemp_raw += OVERSAMPLENR; #endif } #endif //BED_MAXTEMP } void setWatch() { #ifdef WATCH_TEMP_PERIOD for (int e = 0; e < EXTRUDERS; e++) { if(degHotend(e) < degTargetHotend(e) - (WATCH_TEMP_INCREASE * 2)) { watch_start_temp[e] = degHotend(e); watchmillis[e] = millis(); } } #endif } #if defined (THERMAL_RUNAWAY_PROTECTION_PERIOD) && THERMAL_RUNAWAY_PROTECTION_PERIOD > 0 void thermal_runaway_protection(int *state, unsigned long *timer, float temperature, float target_temperature, int heater_id, int period_seconds, int hysteresis_degc) { /* SERIAL_ECHO_START; SERIAL_ECHO("Thermal Thermal Runaway Running. Heater ID:"); SERIAL_ECHO(heater_id); SERIAL_ECHO(" ; State:"); SERIAL_ECHO(*state); SERIAL_ECHO(" ; Timer:"); SERIAL_ECHO(*timer); SERIAL_ECHO(" ; Temperature:"); SERIAL_ECHO(temperature); SERIAL_ECHO(" ; Target Temp:"); SERIAL_ECHO(target_temperature); SERIAL_ECHOLN(""); */ if ((target_temperature == 0) || thermal_runaway) { *state = 0; *timer = 0; return; } switch (*state) { case 0: // "Heater Inactive" state if (target_temperature > 0) *state = 1; break; case 1: // "First Heating" state if (temperature >= target_temperature) *state = 2; break; case 2: // "Temperature Stable" state if (temperature >= (target_temperature - hysteresis_degc)) { *timer = millis(); } else if ( (millis() - *timer) > ((unsigned long) period_seconds) * 1000) { SERIAL_ERROR_START; SERIAL_ERRORLNPGM("Thermal Runaway, system stopped! Heater_ID: "); SERIAL_ERRORLN((int)heater_id); LCD_ALERTMESSAGEPGM("THERMAL RUNAWAY"); thermal_runaway = true; while(1) { disable_heater(); disable_x(); disable_y(); disable_z(); disable_e0(); disable_e1(); disable_e2(); manage_heater(); lcd_update(); } } break; } } #endif void disable_heater() { for(int i=0;i<EXTRUDERS;i++) setTargetHotend(0,i); setTargetBed(0); #if defined(TEMP_0_PIN) && TEMP_0_PIN > -1 target_temperature[0]=0; soft_pwm[0]=0; #if defined(HEATER_0_PIN) && HEATER_0_PIN > -1 WRITE(HEATER_0_PIN,LOW); #endif #endif #if defined(TEMP_1_PIN) && TEMP_1_PIN > -1 && EXTRUDERS > 1 target_temperature[1]=0; soft_pwm[1]=0; #if defined(HEATER_1_PIN) && HEATER_1_PIN > -1 WRITE(HEATER_1_PIN,LOW); #endif #endif #if defined(TEMP_2_PIN) && TEMP_2_PIN > -1 && EXTRUDERS > 2 target_temperature[2]=0; soft_pwm[2]=0; #if defined(HEATER_2_PIN) && HEATER_2_PIN > -1 WRITE(HEATER_2_PIN,LOW); #endif #endif #if defined(TEMP_BED_PIN) && TEMP_BED_PIN > -1 target_temperature_bed=0; soft_pwm_bed=0; #if defined(HEATER_BED_PIN) && HEATER_BED_PIN > -1 WRITE(HEATER_BED_PIN,LOW); #endif #endif } void max_temp_error(uint8_t e) { disable_heater(); if(IsStopped() == false) { SERIAL_ERROR_START; SERIAL_ERRORLN((int)e); SERIAL_ERRORLNPGM(": Extruder switched off. MAXTEMP triggered !"); LCD_ALERTMESSAGEPGM("Err: MAXTEMP"); } #ifndef BOGUS_TEMPERATURE_FAILSAFE_OVERRIDE Stop(); #endif } void min_temp_error(uint8_t e) { disable_heater(); if(IsStopped() == false) { SERIAL_ERROR_START; SERIAL_ERRORLN((int)e); SERIAL_ERRORLNPGM(": Extruder switched off. MINTEMP triggered !"); LCD_ALERTMESSAGEPGM("Err: MINTEMP"); } #ifndef BOGUS_TEMPERATURE_FAILSAFE_OVERRIDE Stop(); #endif } void bed_max_temp_error(void) { #if HEATER_BED_PIN > -1 WRITE(HEATER_BED_PIN, 0); #endif if(IsStopped() == false) { SERIAL_ERROR_START; SERIAL_ERRORLNPGM("Temperature heated bed switched off. MAXTEMP triggered !!"); LCD_ALERTMESSAGEPGM("Err: MAXTEMP BED"); } #ifndef BOGUS_TEMPERATURE_FAILSAFE_OVERRIDE Stop(); #endif } #ifdef HEATER_0_USES_MAX6675 #define MAX6675_HEAT_INTERVAL 250 long max6675_previous_millis = MAX6675_HEAT_INTERVAL; int max6675_temp = 2000; int read_max6675() { if (millis() - max6675_previous_millis < MAX6675_HEAT_INTERVAL) return max6675_temp; max6675_previous_millis = millis(); max6675_temp = 0; #ifdef PRR PRR &= ~(1<<PRSPI); #elif defined PRR0 PRR0 &= ~(1<<PRSPI); #endif SPCR = (1<<MSTR) | (1<<SPE) | (1<<SPR0); // enable TT_MAX6675 WRITE(MAX6675_SS, 0); // ensure 100ns delay - a bit extra is fine asm("nop");//50ns on 20Mhz, 62.5ns on 16Mhz asm("nop");//50ns on 20Mhz, 62.5ns on 16Mhz // read MSB SPDR = 0; for (;(SPSR & (1<<SPIF)) == 0;); max6675_temp = SPDR; max6675_temp <<= 8; // read LSB SPDR = 0; for (;(SPSR & (1<<SPIF)) == 0;); max6675_temp |= SPDR; // disable TT_MAX6675 WRITE(MAX6675_SS, 1); if (max6675_temp & 4) { // thermocouple open max6675_temp = 2000; } else { max6675_temp = max6675_temp >> 3; } return max6675_temp; } #endif // Timer 0 is shared with millies ISR(TIMER0_COMPB_vect) { //these variables are only accesible from the ISR, but static, so they don't lose their value static unsigned char temp_count = 0; static unsigned long raw_temp_0_value = 0; static unsigned long raw_temp_1_value = 0; static unsigned long raw_temp_2_value = 0; static unsigned long raw_temp_bed_value = 0; static unsigned char temp_state = 10; static unsigned char pwm_count = (1 << SOFT_PWM_SCALE); static unsigned char soft_pwm_0; #ifdef SLOW_PWM_HEATERS static unsigned char slow_pwm_count = 0; static unsigned char state_heater_0 = 0; static unsigned char state_timer_heater_0 = 0; #endif #if (EXTRUDERS > 1) || defined(HEATERS_PARALLEL) static unsigned char soft_pwm_1; #ifdef SLOW_PWM_HEATERS static unsigned char state_heater_1 = 0; static unsigned char state_timer_heater_1 = 0; #endif #endif #if EXTRUDERS > 2 static unsigned char soft_pwm_2; #ifdef SLOW_PWM_HEATERS static unsigned char state_heater_2 = 0; static unsigned char state_timer_heater_2 = 0; #endif #endif #if HEATER_BED_PIN > -1 static unsigned char soft_pwm_b; #ifdef SLOW_PWM_HEATERS static unsigned char state_heater_b = 0; static unsigned char state_timer_heater_b = 0; #endif #endif #if defined(FILWIDTH_PIN) &&(FILWIDTH_PIN > -1) static unsigned long raw_filwidth_value = 0; //added for filament width sensor #endif #ifndef SLOW_PWM_HEATERS /* * standard PWM modulation */ if(pwm_count == 0){ soft_pwm_0 = soft_pwm[0]; if(soft_pwm_0 > 0) { WRITE(HEATER_0_PIN,1); #ifdef HEATERS_PARALLEL WRITE(HEATER_1_PIN,1); #endif } else WRITE(HEATER_0_PIN,0); #if EXTRUDERS > 1 soft_pwm_1 = soft_pwm[1]; if(soft_pwm_1 > 0) WRITE(HEATER_1_PIN,1); else WRITE(HEATER_1_PIN,0); #endif #if EXTRUDERS > 2 soft_pwm_2 = soft_pwm[2]; if(soft_pwm_2 > 0) WRITE(HEATER_2_PIN,1); else WRITE(HEATER_2_PIN,0); #endif #if defined(HEATER_BED_PIN) && HEATER_BED_PIN > -1 soft_pwm_b = soft_pwm_bed; if(soft_pwm_b > 0) WRITE(HEATER_BED_PIN,1); else WRITE(HEATER_BED_PIN,0); #endif #ifdef FAN_SOFT_PWM soft_pwm_fan = fanSpeedSoftPwm / 2; if(soft_pwm_fan > 0) WRITE(FAN_PIN,1); else WRITE(FAN_PIN,0); #endif } if(soft_pwm_0 < pwm_count) { WRITE(HEATER_0_PIN,0); #ifdef HEATERS_PARALLEL WRITE(HEATER_1_PIN,0); #endif } #if EXTRUDERS > 1 if(soft_pwm_1 < pwm_count) WRITE(HEATER_1_PIN,0); #endif #if EXTRUDERS > 2 if(soft_pwm_2 < pwm_count) WRITE(HEATER_2_PIN,0); #endif #if defined(HEATER_BED_PIN) && HEATER_BED_PIN > -1 if(soft_pwm_b < pwm_count) WRITE(HEATER_BED_PIN,0); #endif #ifdef FAN_SOFT_PWM if(soft_pwm_fan < pwm_count) WRITE(FAN_PIN,0); #endif pwm_count += (1 << SOFT_PWM_SCALE); pwm_count &= 0x7f; #else //ifndef SLOW_PWM_HEATERS /* * SLOW PWM HEATERS * * for heaters drived by relay */ #ifndef MIN_STATE_TIME #define MIN_STATE_TIME 16 // MIN_STATE_TIME * 65.5 = time in milliseconds #endif if (slow_pwm_count == 0) { // EXTRUDER 0 soft_pwm_0 = soft_pwm[0]; if (soft_pwm_0 > 0) { // turn ON heather only if the minimum time is up if (state_timer_heater_0 == 0) { // if change state set timer if (state_heater_0 == 0) { state_timer_heater_0 = MIN_STATE_TIME; } state_heater_0 = 1; WRITE(HEATER_0_PIN, 1); #ifdef HEATERS_PARALLEL WRITE(HEATER_1_PIN, 1); #endif } } else { // turn OFF heather only if the minimum time is up if (state_timer_heater_0 == 0) { // if change state set timer if (state_heater_0 == 1) { state_timer_heater_0 = MIN_STATE_TIME; } state_heater_0 = 0; WRITE(HEATER_0_PIN, 0); #ifdef HEATERS_PARALLEL WRITE(HEATER_1_PIN, 0); #endif } } #if EXTRUDERS > 1 // EXTRUDER 1 soft_pwm_1 = soft_pwm[1]; if (soft_pwm_1 > 0) { // turn ON heather only if the minimum time is up if (state_timer_heater_1 == 0) { // if change state set timer if (state_heater_1 == 0) { state_timer_heater_1 = MIN_STATE_TIME; } state_heater_1 = 1; WRITE(HEATER_1_PIN, 1); } } else { // turn OFF heather only if the minimum time is up if (state_timer_heater_1 == 0) { // if change state set timer if (state_heater_1 == 1) { state_timer_heater_1 = MIN_STATE_TIME; } state_heater_1 = 0; WRITE(HEATER_1_PIN, 0); } } #endif #if EXTRUDERS > 2 // EXTRUDER 2 soft_pwm_2 = soft_pwm[2]; if (soft_pwm_2 > 0) { // turn ON heather only if the minimum time is up if (state_timer_heater_2 == 0) { // if change state set timer if (state_heater_2 == 0) { state_timer_heater_2 = MIN_STATE_TIME; } state_heater_2 = 1; WRITE(HEATER_2_PIN, 1); } } else { // turn OFF heather only if the minimum time is up if (state_timer_heater_2 == 0) { // if change state set timer if (state_heater_2 == 1) { state_timer_heater_2 = MIN_STATE_TIME; } state_heater_2 = 0; WRITE(HEATER_2_PIN, 0); } } #endif #if defined(HEATER_BED_PIN) && HEATER_BED_PIN > -1 // BED soft_pwm_b = soft_pwm_bed; if (soft_pwm_b > 0) { // turn ON heather only if the minimum time is up if (state_timer_heater_b == 0) { // if change state set timer if (state_heater_b == 0) { state_timer_heater_b = MIN_STATE_TIME; } state_heater_b = 1; WRITE(HEATER_BED_PIN, 1); } } else { // turn OFF heather only if the minimum time is up if (state_timer_heater_b == 0) { // if change state set timer if (state_heater_b == 1) { state_timer_heater_b = MIN_STATE_TIME; } state_heater_b = 0; WRITE(HEATER_BED_PIN, 0); } } #endif } // if (slow_pwm_count == 0) // EXTRUDER 0 if (soft_pwm_0 < slow_pwm_count) { // turn OFF heather only if the minimum time is up if (state_timer_heater_0 == 0) { // if change state set timer if (state_heater_0 == 1) { state_timer_heater_0 = MIN_STATE_TIME; } state_heater_0 = 0; WRITE(HEATER_0_PIN, 0); #ifdef HEATERS_PARALLEL WRITE(HEATER_1_PIN, 0); #endif } } #if EXTRUDERS > 1 // EXTRUDER 1 if (soft_pwm_1 < slow_pwm_count) { // turn OFF heather only if the minimum time is up if (state_timer_heater_1 == 0) { // if change state set timer if (state_heater_1 == 1) { state_timer_heater_1 = MIN_STATE_TIME; } state_heater_1 = 0; WRITE(HEATER_1_PIN, 0); } } #endif #if EXTRUDERS > 2 // EXTRUDER 2 if (soft_pwm_2 < slow_pwm_count) { // turn OFF heather only if the minimum time is up if (state_timer_heater_2 == 0) { // if change state set timer if (state_heater_2 == 1) { state_timer_heater_2 = MIN_STATE_TIME; } state_heater_2 = 0; WRITE(HEATER_2_PIN, 0); } } #endif #if defined(HEATER_BED_PIN) && HEATER_BED_PIN > -1 // BED if (soft_pwm_b < slow_pwm_count) { // turn OFF heather only if the minimum time is up if (state_timer_heater_b == 0) { // if change state set timer if (state_heater_b == 1) { state_timer_heater_b = MIN_STATE_TIME; } state_heater_b = 0; WRITE(HEATER_BED_PIN, 0); } } #endif #ifdef FAN_SOFT_PWM if (pwm_count == 0){ soft_pwm_fan = fanSpeedSoftPwm / 2; if (soft_pwm_fan > 0) WRITE(FAN_PIN,1); else WRITE(FAN_PIN,0); } if (soft_pwm_fan < pwm_count) WRITE(FAN_PIN,0); #endif pwm_count += (1 << SOFT_PWM_SCALE); pwm_count &= 0x7f; // increment slow_pwm_count only every 64 pwm_count circa 65.5ms if ((pwm_count % 64) == 0) { slow_pwm_count++; slow_pwm_count &= 0x7f; // Extruder 0 if (state_timer_heater_0 > 0) { state_timer_heater_0--; } #if EXTRUDERS > 1 // Extruder 1 if (state_timer_heater_1 > 0) state_timer_heater_1--; #endif #if EXTRUDERS > 2 // Extruder 2 if (state_timer_heater_2 > 0) state_timer_heater_2--; #endif #if defined(HEATER_BED_PIN) && HEATER_BED_PIN > -1 // Bed if (state_timer_heater_b > 0) state_timer_heater_b--; #endif } //if ((pwm_count % 64) == 0) { #endif //ifndef SLOW_PWM_HEATERS switch(temp_state) { case 0: // Prepare TEMP_0 #if defined(TEMP_0_PIN) && (TEMP_0_PIN > -1) #if TEMP_0_PIN > 7 ADCSRB = 1<<MUX5; #else ADCSRB = 0; #endif ADMUX = ((1 << REFS0) | (TEMP_0_PIN & 0x07)); ADCSRA |= 1<<ADSC; // Start conversion #endif lcd_buttons_update(); temp_state = 1; break; case 1: // Measure TEMP_0 #if defined(TEMP_0_PIN) && (TEMP_0_PIN > -1) raw_temp_0_value += ADC; #endif #ifdef HEATER_0_USES_MAX6675 // TODO remove the blocking raw_temp_0_value = read_max6675(); #endif temp_state = 2; break; case 2: // Prepare TEMP_BED #if defined(TEMP_BED_PIN) && (TEMP_BED_PIN > -1) #if TEMP_BED_PIN > 7 ADCSRB = 1<<MUX5; #else ADCSRB = 0; #endif ADMUX = ((1 << REFS0) | (TEMP_BED_PIN & 0x07)); ADCSRA |= 1<<ADSC; // Start conversion #endif lcd_buttons_update(); temp_state = 3; break; case 3: // Measure TEMP_BED #if defined(TEMP_BED_PIN) && (TEMP_BED_PIN > -1) raw_temp_bed_value += ADC; #endif temp_state = 4; break; case 4: // Prepare TEMP_1 #if defined(TEMP_1_PIN) && (TEMP_1_PIN > -1) #if TEMP_1_PIN > 7 ADCSRB = 1<<MUX5; #else ADCSRB = 0; #endif ADMUX = ((1 << REFS0) | (TEMP_1_PIN & 0x07)); ADCSRA |= 1<<ADSC; // Start conversion #endif lcd_buttons_update(); temp_state = 5; break; case 5: // Measure TEMP_1 #if defined(TEMP_1_PIN) && (TEMP_1_PIN > -1) raw_temp_1_value += ADC; #endif temp_state = 6; break; case 6: // Prepare TEMP_2 #if defined(TEMP_2_PIN) && (TEMP_2_PIN > -1) #if TEMP_2_PIN > 7 ADCSRB = 1<<MUX5; #else ADCSRB = 0; #endif ADMUX = ((1 << REFS0) | (TEMP_2_PIN & 0x07)); ADCSRA |= 1<<ADSC; // Start conversion #endif lcd_buttons_update(); temp_state = 7; break; case 7: // Measure TEMP_2 #if defined(TEMP_2_PIN) && (TEMP_2_PIN > -1) raw_temp_2_value += ADC; #endif temp_state = 8;//change so that Filament Width is also measured break; case 8: //Prepare FILWIDTH #if defined(FILWIDTH_PIN) && (FILWIDTH_PIN> -1) #if FILWIDTH_PIN>7 ADCSRB = 1<<MUX5; #else ADCSRB = 0; #endif ADMUX = ((1 << REFS0) | (FILWIDTH_PIN & 0x07)); ADCSRA |= 1<<ADSC; // Start conversion #endif lcd_buttons_update(); temp_state = 9; break; case 9: //Measure FILWIDTH #if defined(FILWIDTH_PIN) &&(FILWIDTH_PIN > -1) //raw_filwidth_value += ADC; //remove to use an IIR filter approach if(ADC>102) //check that ADC is reading a voltage > 0.5 volts, otherwise don't take in the data. { raw_filwidth_value= raw_filwidth_value-(raw_filwidth_value>>7); //multipliy raw_filwidth_value by 127/128 raw_filwidth_value= raw_filwidth_value + ((unsigned long)ADC<<7); //add new ADC reading } #endif temp_state = 0; temp_count++; break; case 10: //Startup, delay initial temp reading a tiny bit so the hardware can settle. temp_state = 0; break; // default: // SERIAL_ERROR_START; // SERIAL_ERRORLNPGM("Temp measurement error!"); // break; } if(temp_count >= OVERSAMPLENR) // 10 * 16 * 1/(16000000/64/256) = 164ms. { if (!temp_meas_ready) //Only update the raw values if they have been read. Else we could be updating them during reading. { current_temperature_raw[0] = raw_temp_0_value; #if EXTRUDERS > 1 current_temperature_raw[1] = raw_temp_1_value; #endif #ifdef TEMP_SENSOR_1_AS_REDUNDANT redundant_temperature_raw = raw_temp_1_value; #endif #if EXTRUDERS > 2 current_temperature_raw[2] = raw_temp_2_value; #endif current_temperature_bed_raw = raw_temp_bed_value; } //Add similar code for Filament Sensor - can be read any time since IIR filtering is used #if defined(FILWIDTH_PIN) &&(FILWIDTH_PIN > -1) current_raw_filwidth = raw_filwidth_value>>10; //need to divide to get to 0-16384 range since we used 1/128 IIR filter approach #endif temp_meas_ready = true; temp_count = 0; raw_temp_0_value = 0; raw_temp_1_value = 0; raw_temp_2_value = 0; raw_temp_bed_value = 0; #if HEATER_0_RAW_LO_TEMP > HEATER_0_RAW_HI_TEMP if(current_temperature_raw[0] <= maxttemp_raw[0]) { #else if(current_temperature_raw[0] >= maxttemp_raw[0]) { #endif max_temp_error(0); } #if HEATER_0_RAW_LO_TEMP > HEATER_0_RAW_HI_TEMP if(current_temperature_raw[0] >= minttemp_raw[0]) { #else if(current_temperature_raw[0] <= minttemp_raw[0]) { #endif min_temp_error(0); } #if EXTRUDERS > 1 #if HEATER_1_RAW_LO_TEMP > HEATER_1_RAW_HI_TEMP if(current_temperature_raw[1] <= maxttemp_raw[1]) { #else if(current_temperature_raw[1] >= maxttemp_raw[1]) { #endif max_temp_error(1); } #if HEATER_1_RAW_LO_TEMP > HEATER_1_RAW_HI_TEMP if(current_temperature_raw[1] >= minttemp_raw[1]) { #else if(current_temperature_raw[1] <= minttemp_raw[1]) { #endif min_temp_error(1); } #endif #if EXTRUDERS > 2 #if HEATER_2_RAW_LO_TEMP > HEATER_2_RAW_HI_TEMP if(current_temperature_raw[2] <= maxttemp_raw[2]) { #else if(current_temperature_raw[2] >= maxttemp_raw[2]) { #endif max_temp_error(2); } #if HEATER_2_RAW_LO_TEMP > HEATER_2_RAW_HI_TEMP if(current_temperature_raw[2] >= minttemp_raw[2]) { #else if(current_temperature_raw[2] <= minttemp_raw[2]) { #endif min_temp_error(2); } #endif /* No bed MINTEMP error? */ #if defined(BED_MAXTEMP) && (TEMP_SENSOR_BED != 0) # if HEATER_BED_RAW_LO_TEMP > HEATER_BED_RAW_HI_TEMP if(current_temperature_bed_raw <= bed_maxttemp_raw) { #else if(current_temperature_bed_raw >= bed_maxttemp_raw) { #endif target_temperature_bed = 0; bed_max_temp_error(); } #endif } #ifdef BABYSTEPPING for(uint8_t axis=0;axis<3;axis++) { int curTodo=babystepsTodo[axis]; //get rid of volatile for performance if(curTodo>0) { babystep(axis,/*fwd*/true); babystepsTodo[axis]--; //less to do next time } else if(curTodo<0) { babystep(axis,/*fwd*/false); babystepsTodo[axis]++; //less to do next time } } #endif //BABYSTEPPING } #ifdef PIDTEMP // Apply the scale factors to the PID values float scalePID_i(float i) { return i*PID_dT; } float unscalePID_i(float i) { return i/PID_dT; } float scalePID_d(float d) { return d/PID_dT; } float unscalePID_d(float d) { return d*PID_dT; } #endif //PIDTEMP ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/temperature.cpp
c++
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
15,850
```objective-c /* Arduino SdFat Library * * This file is part of the Arduino SdFat Library * * This Library is free software: you can redistribute it and/or modify * (at your option) any later version. * * This Library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * along with the Arduino SdFat Library. If not, see * <path_to_url */ #include "Marlin.h" #ifdef SDSUPPORT #ifndef SdBaseFile_h #define SdBaseFile_h /** * \file * \brief SdBaseFile class */ #include "Marlin.h" #include "SdFatConfig.h" #include "SdVolume.h" //your_sha256_hash-------------- /** * \struct fpos_t * \brief internal type for istream * do not use in user apps */ struct fpos_t { /** stream position */ uint32_t position; /** cluster for position */ uint32_t cluster; fpos_t() : position(0), cluster(0) {} }; // use the gnu style oflag in open() /** open() oflag for reading */ uint8_t const O_READ = 0X01; /** open() oflag - same as O_IN */ uint8_t const O_RDONLY = O_READ; /** open() oflag for write */ uint8_t const O_WRITE = 0X02; /** open() oflag - same as O_WRITE */ uint8_t const O_WRONLY = O_WRITE; /** open() oflag for reading and writing */ uint8_t const O_RDWR = (O_READ | O_WRITE); /** open() oflag mask for access modes */ uint8_t const O_ACCMODE = (O_READ | O_WRITE); /** The file offset shall be set to the end of the file prior to each write. */ uint8_t const O_APPEND = 0X04; /** synchronous writes - call sync() after each write */ uint8_t const O_SYNC = 0X08; /** truncate the file to zero length */ uint8_t const O_TRUNC = 0X10; /** set the initial position at the end of the file */ uint8_t const O_AT_END = 0X20; /** create the file if nonexistent */ uint8_t const O_CREAT = 0X40; /** If O_CREAT and O_EXCL are set, open() shall fail if the file exists */ uint8_t const O_EXCL = 0X80; // SdBaseFile class static and const definitions // flags for ls() /** ls() flag to print modify date */ uint8_t const LS_DATE = 1; /** ls() flag to print file size */ uint8_t const LS_SIZE = 2; /** ls() flag for recursive list of subdirectories */ uint8_t const LS_R = 4; // flags for timestamp /** set the file's last access date */ uint8_t const T_ACCESS = 1; /** set the file's creation date and time */ uint8_t const T_CREATE = 2; /** Set the file's write date and time */ uint8_t const T_WRITE = 4; // values for type_ /** This file has not been opened. */ uint8_t const FAT_FILE_TYPE_CLOSED = 0; /** A normal file */ uint8_t const FAT_FILE_TYPE_NORMAL = 1; /** A FAT12 or FAT16 root directory */ uint8_t const FAT_FILE_TYPE_ROOT_FIXED = 2; /** A FAT32 root directory */ uint8_t const FAT_FILE_TYPE_ROOT32 = 3; /** A subdirectory file*/ uint8_t const FAT_FILE_TYPE_SUBDIR = 4; /** Test value for directory type */ uint8_t const FAT_FILE_TYPE_MIN_DIR = FAT_FILE_TYPE_ROOT_FIXED; /** date field for FAT directory entry * \param[in] year [1980,2107] * \param[in] month [1,12] * \param[in] day [1,31] * * \return Packed date for dir_t entry. */ static inline uint16_t FAT_DATE(uint16_t year, uint8_t month, uint8_t day) { return (year - 1980) << 9 | month << 5 | day; } /** year part of FAT directory date field * \param[in] fatDate Date in packed dir format. * * \return Extracted year [1980,2107] */ static inline uint16_t FAT_YEAR(uint16_t fatDate) { return 1980 + (fatDate >> 9); } /** month part of FAT directory date field * \param[in] fatDate Date in packed dir format. * * \return Extracted month [1,12] */ static inline uint8_t FAT_MONTH(uint16_t fatDate) { return (fatDate >> 5) & 0XF; } /** day part of FAT directory date field * \param[in] fatDate Date in packed dir format. * * \return Extracted day [1,31] */ static inline uint8_t FAT_DAY(uint16_t fatDate) { return fatDate & 0X1F; } /** time field for FAT directory entry * \param[in] hour [0,23] * \param[in] minute [0,59] * \param[in] second [0,59] * * \return Packed time for dir_t entry. */ static inline uint16_t FAT_TIME(uint8_t hour, uint8_t minute, uint8_t second) { return hour << 11 | minute << 5 | second >> 1; } /** hour part of FAT directory time field * \param[in] fatTime Time in packed dir format. * * \return Extracted hour [0,23] */ static inline uint8_t FAT_HOUR(uint16_t fatTime) { return fatTime >> 11; } /** minute part of FAT directory time field * \param[in] fatTime Time in packed dir format. * * \return Extracted minute [0,59] */ static inline uint8_t FAT_MINUTE(uint16_t fatTime) { return(fatTime >> 5) & 0X3F; } /** second part of FAT directory time field * Note second/2 is stored in packed time. * * \param[in] fatTime Time in packed dir format. * * \return Extracted second [0,58] */ static inline uint8_t FAT_SECOND(uint16_t fatTime) { return 2*(fatTime & 0X1F); } /** Default date for file timestamps is 1 Jan 2000 */ uint16_t const FAT_DEFAULT_DATE = ((2000 - 1980) << 9) | (1 << 5) | 1; /** Default time for file timestamp is 1 am */ uint16_t const FAT_DEFAULT_TIME = (1 << 11); //your_sha256_hash-------------- /** * \class SdBaseFile * \brief Base class for SdFile with Print and C++ streams. */ class SdBaseFile { public: /** Create an instance. */ SdBaseFile() : writeError(false), type_(FAT_FILE_TYPE_CLOSED) {} SdBaseFile(const char* path, uint8_t oflag); ~SdBaseFile() {if(isOpen()) close();} /** * writeError is set to true if an error occurs during a write(). * Set writeError to false before calling print() and/or write() and check * for true after calls to print() and/or write(). */ bool writeError; //your_sha256_hash------------ // helpers for stream classes /** get position for streams * \param[out] pos struct to receive position */ void getpos(fpos_t* pos); /** set position for streams * \param[out] pos struct with value for new position */ void setpos(fpos_t* pos); //your_sha256_hash------------ bool close(); bool contiguousRange(uint32_t* bgnBlock, uint32_t* endBlock); bool createContiguous(SdBaseFile* dirFile, const char* path, uint32_t size); /** \return The current cluster number for a file or directory. */ uint32_t curCluster() const {return curCluster_;} /** \return The current position for a file or directory. */ uint32_t curPosition() const {return curPosition_;} /** \return Current working directory */ static SdBaseFile* cwd() {return cwd_;} /** Set the date/time callback function * * \param[in] dateTime The user's call back function. The callback * function is of the form: * * \code * void dateTime(uint16_t* date, uint16_t* time) { * uint16_t year; * uint8_t month, day, hour, minute, second; * * // User gets date and time from GPS or real-time clock here * * // return date using FAT_DATE macro to format fields * *date = FAT_DATE(year, month, day); * * // return time using FAT_TIME macro to format fields * *time = FAT_TIME(hour, minute, second); * } * \endcode * * Sets the function that is called when a file is created or when * a file's directory entry is modified by sync(). All timestamps, * access, creation, and modify, are set when a file is created. * sync() maintains the last access date and last modify date/time. * * See the timestamp() function. */ static void dateTimeCallback( void (*dateTime)(uint16_t* date, uint16_t* time)) { dateTime_ = dateTime; } /** Cancel the date/time callback function. */ static void dateTimeCallbackCancel() {dateTime_ = 0;} bool dirEntry(dir_t* dir); static void dirName(const dir_t& dir, char* name); bool exists(const char* name); int16_t fgets(char* str, int16_t num, char* delim = 0); /** \return The total number of bytes in a file or directory. */ uint32_t fileSize() const {return fileSize_;} /** \return The first cluster number for a file or directory. */ uint32_t firstCluster() const {return firstCluster_;} bool getFilename(char* name); /** \return True if this is a directory else false. */ bool isDir() const {return type_ >= FAT_FILE_TYPE_MIN_DIR;} /** \return True if this is a normal file else false. */ bool isFile() const {return type_ == FAT_FILE_TYPE_NORMAL;} /** \return True if this is an open file/directory else false. */ bool isOpen() const {return type_ != FAT_FILE_TYPE_CLOSED;} /** \return True if this is a subdirectory else false. */ bool isSubDir() const {return type_ == FAT_FILE_TYPE_SUBDIR;} /** \return True if this is the root directory. */ bool isRoot() const { return type_ == FAT_FILE_TYPE_ROOT_FIXED || type_ == FAT_FILE_TYPE_ROOT32; } void ls( uint8_t flags = 0, uint8_t indent = 0); bool mkdir(SdBaseFile* dir, const char* path, bool pFlag = true); // alias for backward compactability bool makeDir(SdBaseFile* dir, const char* path) { return mkdir(dir, path, false); } bool open(SdBaseFile* dirFile, uint16_t index, uint8_t oflag); bool open(SdBaseFile* dirFile, const char* path, uint8_t oflag); bool open(const char* path, uint8_t oflag = O_READ); bool openNext(SdBaseFile* dirFile, uint8_t oflag); bool openRoot(SdVolume* vol); int peek(); static void printFatDate(uint16_t fatDate); static void printFatTime( uint16_t fatTime); bool printName(); int16_t read(); int16_t read(void* buf, uint16_t nbyte); int8_t readDir(dir_t* dir, char* longFilename); static bool remove(SdBaseFile* dirFile, const char* path); bool remove(); /** Set the file's current position to zero. */ void rewind() {seekSet(0);} bool rename(SdBaseFile* dirFile, const char* newPath); bool rmdir(); // for backward compatibility bool rmDir() {return rmdir();} bool rmRfStar(); /** Set the files position to current position + \a pos. See seekSet(). * \param[in] offset The new position in bytes from the current position. * \return true for success or false for failure. */ bool seekCur(int32_t offset) { return seekSet(curPosition_ + offset); } /** Set the files position to end-of-file + \a offset. See seekSet(). * \param[in] offset The new position in bytes from end-of-file. * \return true for success or false for failure. */ bool seekEnd(int32_t offset = 0) {return seekSet(fileSize_ + offset);} bool seekSet(uint32_t pos); bool sync(); bool timestamp(SdBaseFile* file); bool timestamp(uint8_t flag, uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second); /** Type of file. You should use isFile() or isDir() instead of type() * if possible. * * \return The file or directory type. */ uint8_t type() const {return type_;} bool truncate(uint32_t size); /** \return SdVolume that contains this file. */ SdVolume* volume() const {return vol_;} int16_t write(const void* buf, uint16_t nbyte); //your_sha256_hash-------------- private: // allow SdFat to set cwd_ friend class SdFat; // global pointer to cwd dir static SdBaseFile* cwd_; // data time callback function static void (*dateTime_)(uint16_t* date, uint16_t* time); // bits defined in flags_ // should be 0X0F static uint8_t const F_OFLAG = (O_ACCMODE | O_APPEND | O_SYNC); // sync of directory entry required static uint8_t const F_FILE_DIR_DIRTY = 0X80; // private data uint8_t flags_; // See above for definition of flags_ bits uint8_t fstate_; // error and eof indicator uint8_t type_; // type of file see above for values uint32_t curCluster_; // cluster for current file position uint32_t curPosition_; // current file position in bytes from beginning uint32_t dirBlock_; // block for this files directory entry uint8_t dirIndex_; // index of directory entry in dirBlock uint32_t fileSize_; // file size in bytes uint32_t firstCluster_; // first cluster of file SdVolume* vol_; // volume where file is located /** experimental don't use */ bool openParent(SdBaseFile* dir); // private functions bool addCluster(); bool addDirCluster(); dir_t* cacheDirEntry(uint8_t action); int8_t lsPrintNext( uint8_t flags, uint8_t indent); static bool make83Name(const char* str, uint8_t* name, const char** ptr); bool mkdir(SdBaseFile* parent, const uint8_t dname[11]); bool open(SdBaseFile* dirFile, const uint8_t dname[11], uint8_t oflag); bool openCachedEntry(uint8_t cacheIndex, uint8_t oflags); dir_t* readDirCache(); //your_sha256_hash-------------- // to be deleted static void printDirName( const dir_t& dir, uint8_t width, bool printSlash); //your_sha256_hash-------------- // Deprecated functions - suppress cpplint warnings with NOLINT comment #if ALLOW_DEPRECATED_FUNCTIONS && !defined(DOXYGEN) public: /** \deprecated Use: * bool contiguousRange(uint32_t* bgnBlock, uint32_t* endBlock); * \param[out] bgnBlock the first block address for the file. * \param[out] endBlock the last block address for the file. * \return true for success or false for failure. */ bool contiguousRange(uint32_t& bgnBlock, uint32_t& endBlock) { // NOLINT return contiguousRange(&bgnBlock, &endBlock); } /** \deprecated Use: * bool createContiguous(SdBaseFile* dirFile, * const char* path, uint32_t size) * \param[in] dirFile The directory where the file will be created. * \param[in] path A path with a valid DOS 8.3 file name. * \param[in] size The desired file size. * \return true for success or false for failure. */ bool createContiguous(SdBaseFile& dirFile, // NOLINT const char* path, uint32_t size) { return createContiguous(&dirFile, path, size); } /** \deprecated Use: * static void dateTimeCallback( * void (*dateTime)(uint16_t* date, uint16_t* time)); * \param[in] dateTime The user's call back function. */ static void dateTimeCallback( void (*dateTime)(uint16_t& date, uint16_t& time)) { // NOLINT oldDateTime_ = dateTime; dateTime_ = dateTime ? oldToNew : 0; } /** \deprecated Use: bool dirEntry(dir_t* dir); * \param[out] dir Location for return of the file's directory entry. * \return true for success or false for failure. */ bool dirEntry(dir_t& dir) {return dirEntry(&dir);} // NOLINT /** \deprecated Use: * bool mkdir(SdBaseFile* dir, const char* path); * \param[in] dir An open SdFat instance for the directory that will contain * the new directory. * \param[in] path A path with a valid 8.3 DOS name for the new directory. * \return true for success or false for failure. */ bool mkdir(SdBaseFile& dir, const char* path) { // NOLINT return mkdir(&dir, path); } /** \deprecated Use: * bool open(SdBaseFile* dirFile, const char* path, uint8_t oflag); * \param[in] dirFile An open SdFat instance for the directory containing the * file to be opened. * \param[in] path A path with a valid 8.3 DOS name for the file. * \param[in] oflag Values for \a oflag are constructed by a bitwise-inclusive * OR of flags O_READ, O_WRITE, O_TRUNC, and O_SYNC. * \return true for success or false for failure. */ bool open(SdBaseFile& dirFile, // NOLINT const char* path, uint8_t oflag) { return open(&dirFile, path, oflag); } /** \deprecated Do not use in new apps * \param[in] dirFile An open SdFat instance for the directory containing the * file to be opened. * \param[in] path A path with a valid 8.3 DOS name for a file to be opened. * \return true for success or false for failure. */ bool open(SdBaseFile& dirFile, const char* path) { // NOLINT return open(dirFile, path, O_RDWR); } /** \deprecated Use: * bool open(SdBaseFile* dirFile, uint16_t index, uint8_t oflag); * \param[in] dirFile An open SdFat instance for the directory. * \param[in] index The \a index of the directory entry for the file to be * opened. The value for \a index is (directory file position)/32. * \param[in] oflag Values for \a oflag are constructed by a bitwise-inclusive * OR of flags O_READ, O_WRITE, O_TRUNC, and O_SYNC. * \return true for success or false for failure. */ bool open(SdBaseFile& dirFile, uint16_t index, uint8_t oflag) { // NOLINT return open(&dirFile, index, oflag); } /** \deprecated Use: bool openRoot(SdVolume* vol); * \param[in] vol The FAT volume containing the root directory to be opened. * \return true for success or false for failure. */ bool openRoot(SdVolume& vol) {return openRoot(&vol);} // NOLINT /** \deprecated Use: int8_t readDir(dir_t* dir); * \param[out] dir The dir_t struct that will receive the data. * \return bytes read for success zero for eof or -1 for failure. */ int8_t readDir(dir_t& dir, char* longFilename) {return readDir(&dir, longFilename);} // NOLINT /** \deprecated Use: * static uint8_t remove(SdBaseFile* dirFile, const char* path); * \param[in] dirFile The directory that contains the file. * \param[in] path The name of the file to be removed. * \return true for success or false for failure. */ static bool remove(SdBaseFile& dirFile, const char* path) { // NOLINT return remove(&dirFile, path); } //your_sha256_hash-------------- // rest are private private: static void (*oldDateTime_)(uint16_t& date, uint16_t& time); // NOLINT static void oldToNew(uint16_t* date, uint16_t* time) { uint16_t d; uint16_t t; oldDateTime_(d, t); *date = d; *time = t; } #endif // ALLOW_DEPRECATED_FUNCTIONS }; #endif // SdBaseFile_h #endif ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/SdBaseFile.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
4,962
```objective-c #ifndef ULCDST7920_H #define ULCDST7920_H #include "Marlin.h" #ifdef U8GLIB_ST7920 //set optimization so ARDUINO optimizes this file #pragma GCC optimize (3) #define ST7920_CLK_PIN LCD_PINS_D4 #define ST7920_DAT_PIN LCD_PINS_ENABLE #define ST7920_CS_PIN LCD_PINS_RS //#define PAGE_HEIGHT 8 //128 byte framebuffer //#define PAGE_HEIGHT 16 //256 byte framebuffer #define PAGE_HEIGHT 32 //512 byte framebuffer #define WIDTH 128 #define HEIGHT 64 #include <U8glib.h> static void ST7920_SWSPI_SND_8BIT(uint8_t val) { uint8_t i; for( i=0; i<8; i++ ) { WRITE(ST7920_CLK_PIN,0); WRITE(ST7920_DAT_PIN,val&0x80); val<<=1; WRITE(ST7920_CLK_PIN,1); } } #define ST7920_CS() {WRITE(ST7920_CS_PIN,1);u8g_10MicroDelay();} #define ST7920_NCS() {WRITE(ST7920_CS_PIN,0);} #define ST7920_SET_CMD() {ST7920_SWSPI_SND_8BIT(0xf8);u8g_10MicroDelay();} #define ST7920_SET_DAT() {ST7920_SWSPI_SND_8BIT(0xfa);u8g_10MicroDelay();} #define ST7920_WRITE_BYTE(a) {ST7920_SWSPI_SND_8BIT((a)&0xf0);ST7920_SWSPI_SND_8BIT((a)<<4);u8g_10MicroDelay();} #define ST7920_WRITE_BYTES(p,l) {uint8_t i;for(i=0;i<l;i++){ST7920_SWSPI_SND_8BIT(*p&0xf0);ST7920_SWSPI_SND_8BIT(*p<<4);p++;}u8g_10MicroDelay();} uint8_t u8g_dev_rrd_st7920_128x64_fn(u8g_t *u8g, u8g_dev_t *dev, uint8_t msg, void *arg) { uint8_t i,y; switch(msg) { case U8G_DEV_MSG_INIT: { SET_OUTPUT(ST7920_CS_PIN); WRITE(ST7920_CS_PIN,0); SET_OUTPUT(ST7920_DAT_PIN); WRITE(ST7920_DAT_PIN,0); SET_OUTPUT(ST7920_CLK_PIN); WRITE(ST7920_CLK_PIN,1); ST7920_CS(); u8g_Delay(90); //initial delay for boot up ST7920_SET_CMD(); ST7920_WRITE_BYTE(0x08); //display off, cursor+blink off ST7920_WRITE_BYTE(0x01); //clear CGRAM ram u8g_Delay(10); //delay for CGRAM clear ST7920_WRITE_BYTE(0x3E); //extended mode + GDRAM active for(y=0;y<HEIGHT/2;y++) //clear GDRAM { ST7920_WRITE_BYTE(0x80|y); //set y ST7920_WRITE_BYTE(0x80); //set x = 0 ST7920_SET_DAT(); for(i=0;i<2*WIDTH/8;i++) //2x width clears both segments ST7920_WRITE_BYTE(0); ST7920_SET_CMD(); } ST7920_WRITE_BYTE(0x0C); //display on, cursor+blink off ST7920_NCS(); } break; case U8G_DEV_MSG_STOP: break; case U8G_DEV_MSG_PAGE_NEXT: { uint8_t *ptr; u8g_pb_t *pb = (u8g_pb_t *)(dev->dev_mem); y = pb->p.page_y0; ptr = (uint8_t*)pb->buf; ST7920_CS(); for( i = 0; i < PAGE_HEIGHT; i ++ ) { ST7920_SET_CMD(); if ( y < 32 ) { ST7920_WRITE_BYTE(0x80 | y); //y ST7920_WRITE_BYTE(0x80); //x=0 } else { ST7920_WRITE_BYTE(0x80 | (y-32)); //y ST7920_WRITE_BYTE(0x80 | 8); //x=64 } ST7920_SET_DAT(); ST7920_WRITE_BYTES(ptr,WIDTH/8); //ptr is incremented inside of macro y++; } ST7920_NCS(); } break; } #if PAGE_HEIGHT == 8 return u8g_dev_pb8h1_base_fn(u8g, dev, msg, arg); #elif PAGE_HEIGHT == 16 return u8g_dev_pb16h1_base_fn(u8g, dev, msg, arg); #else return u8g_dev_pb32h1_base_fn(u8g, dev, msg, arg); #endif } uint8_t u8g_dev_st7920_128x64_rrd_buf[WIDTH*(PAGE_HEIGHT/8)] U8G_NOCOMMON; u8g_pb_t u8g_dev_st7920_128x64_rrd_pb = {{PAGE_HEIGHT,HEIGHT,0,0,0},WIDTH,u8g_dev_st7920_128x64_rrd_buf}; u8g_dev_t u8g_dev_st7920_128x64_rrd_sw_spi = {u8g_dev_rrd_st7920_128x64_fn,&u8g_dev_st7920_128x64_rrd_pb,&u8g_com_null_fn}; class U8GLIB_ST7920_128X64_RRD : public U8GLIB { public: U8GLIB_ST7920_128X64_RRD(uint8_t dummy) : U8GLIB(&u8g_dev_st7920_128x64_rrd_sw_spi) {} }; #endif //U8GLIB_ST7920 #endif //ULCDST7920_H ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/ultralcd_st7920_u8glib_rrd.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
1,380
```objective-c /** * French * * LCD Menu Messages * Please note these are limited to 17 characters! * */ #ifndef LANGUAGE_FR_H #define LANGUAGE_FR_H #define WELCOME_MSG MACHINE_NAME " prete." #define MSG_SD_INSERTED "Carte inseree" #define MSG_SD_REMOVED "Carte retiree" #define MSG_MAIN "Menu principal" #define MSG_AUTOSTART "Demarrage auto" #define MSG_DISABLE_STEPPERS "Arreter moteurs" #define MSG_AUTO_HOME "Home auto." #define MSG_SET_HOME_OFFSETS "Set home offsets" #define MSG_SET_ORIGIN "Regler origine" #define MSG_PREHEAT_PLA "Prechauffage PLA" #define MSG_PREHEAT_PLA0 "Prechauff. PLA 1" #define MSG_PREHEAT_PLA1 "Prechauff. PLA 2" #define MSG_PREHEAT_PLA2 "Prechauff. PLA 3" #define MSG_PREHEAT_PLA012 "Prech. PLA Tout" #define MSG_PREHEAT_PLA_BEDONLY "Prech. PLA Plateau" #define MSG_PREHEAT_PLA_SETTINGS "Regl. prech. PLA" #define MSG_PREHEAT_ABS "Prechauffage ABS" #define MSG_PREHEAT_ABS0 "Prechauff. ABS 1" #define MSG_PREHEAT_ABS1 "Prechauff. ABS 2" #define MSG_PREHEAT_ABS2 "Prechauff. ABS 3" #define MSG_PREHEAT_ABS012 "Prech. ABS Tout" #define MSG_PREHEAT_ABS_BEDONLY "Prech. ABS Plateau" #define MSG_PREHEAT_ABS_SETTINGS "Regl. prech. ABS" #define MSG_COOLDOWN "Refroidir" #define MSG_SWITCH_PS_ON "Allumer alim." #define MSG_SWITCH_PS_OFF "Eteindre alim." #define MSG_EXTRUDE "Extrusion" #define MSG_RETRACT "Retraction" #define MSG_MOVE_AXIS "Deplacer un axe" #define MSG_MOVE_X "Move X" #define MSG_MOVE_Y "Move Y" #define MSG_MOVE_Z "Move Z" #define MSG_MOVE_E "Extruder" #define MSG_MOVE_E1 "Extruder2" #define MSG_MOVE_E2 "Extruder3" #define MSG_MOVE_01MM "Move 0.1mm" #define MSG_MOVE_1MM "Move 1mm" #define MSG_MOVE_10MM "Move 10mm" #define MSG_SPEED " Vitesse" #define MSG_NOZZLE "Buse" #define MSG_NOZZLE1 "Buse2" #define MSG_NOZZLE2 "Buse3" #define MSG_BED "Plateau" #define MSG_FAN_SPEED "Vite. ventilateur" #define MSG_FLOW "Flux" #define MSG_FLOW0 "Flux 0" #define MSG_FLOW1 "Flux 1" #define MSG_FLOW2 "Flux 2" #define MSG_CONTROL "Controler" #define MSG_MIN " \002 Min" #define MSG_MAX " \002 Max" #define MSG_FACTOR " \002 Facteur" #define MSG_AUTOTEMP "Temp. Auto." #define MSG_ON "Marche " #define MSG_OFF "Arret" #define MSG_PID_P "PID-P" #define MSG_PID_I "PID-I" #define MSG_PID_D "PID-D" #define MSG_PID_C "PID-C" #define MSG_ACC "Accel" #define MSG_VXY_JERK "Vxy-jerk" #define MSG_VZ_JERK "Vz-jerk" #define MSG_VE_JERK "Ve-jerk" #define MSG_VMAX "Vmax" #define MSG_X "x" #define MSG_Y "y" #define MSG_Z "z" #define MSG_E "e" #define MSG_VMIN "Vmin" #define MSG_VTRAV_MIN "Vdepl min" #define MSG_AMAX "Amax " #define MSG_A_RETRACT "A-retract" #define MSG_XSTEPS "Xpas/mm" #define MSG_YSTEPS "Ypas/mm" #define MSG_ZSTEPS "Zpas/mm" #define MSG_ESTEPS "Epas/mm" #define MSG_TEMPERATURE "Temperature" #define MSG_MOTION "Mouvement" #define MSG_VOLUMETRIC "Filament" #define MSG_VOLUMETRIC_ENABLED "E in mm3" #define MSG_FILAMENT_SIZE_EXTRUDER_0 "Fil. Dia. 1" #define MSG_FILAMENT_SIZE_EXTRUDER_1 "Fil. Dia. 2" #define MSG_FILAMENT_SIZE_EXTRUDER_2 "Fil. Dia. 3" #define MSG_CONTRAST "Contraste LCD" #define MSG_STORE_EPROM "Sauver config" #define MSG_LOAD_EPROM "Lire config" #define MSG_RESTORE_FAILSAFE "Restaurer defauts" #define MSG_REFRESH "Actualiser" #define MSG_WATCH "Surveiller" #define MSG_PREPARE "Preparer" #define MSG_TUNE "Regler" #define MSG_PAUSE_PRINT "Interrompre impr." #define MSG_RESUME_PRINT "Reprendre impr." #define MSG_STOP_PRINT "Arreter impr." #define MSG_CARD_MENU "Impr. depuis SD" #define MSG_NO_CARD "Pas de carte" #define MSG_DWELL "Repos..." #define MSG_USERWAIT "Atten. de l'util." #define MSG_RESUMING "Repri. de l'impr." #define MSG_PRINT_ABORTED "Print aborted" #define MSG_NO_MOVE "Aucun mouvement." #define MSG_KILLED "MORT." #define MSG_STOPPED "STOPPE." #define MSG_CONTROL_RETRACT "Retraction mm" #define MSG_CONTROL_RETRACT_SWAP "Ech. Retr. mm" #define MSG_CONTROL_RETRACTF "Retraction V" #define MSG_CONTROL_RETRACT_ZLIFT "Hop mm" #define MSG_CONTROL_RETRACT_RECOVER "UnRet +mm" #define MSG_CONTROL_RETRACT_RECOVER_SWAP "Ech. UnRet +mm" #define MSG_CONTROL_RETRACT_RECOVERF "UnRet V" #define MSG_AUTORETRACT "Retract. Auto." #define MSG_FILAMENTCHANGE "Changer filament" #define MSG_INIT_SDCARD "Init. la carte SD" #define MSG_CNG_SDCARD "Changer de carte" #define MSG_ZPROBE_OUT "Z sonde exte. lit" #define MSG_POSITION_UNKNOWN "Rev. dans XY av.Z" #define MSG_ZPROBE_ZOFFSET "Offset Z" #define MSG_BABYSTEP_X "Babystep X" #define MSG_BABYSTEP_Y "Babystep Y" #define MSG_BABYSTEP_Z "Babystep Z" #define MSG_ENDSTOP_ABORT "Butee abandon" #define MSG_RECTRACT "Rectract" #define MSG_STEPPER_RELEASED "RELACHE." #ifdef DELTA_CALIBRATION_MENU #define MSG_DELTA_CALIBRATE "Delta Calibration" #define MSG_DELTA_CALIBRATE_X "Calibrate X" #define MSG_DELTA_CALIBRATE_Y "Calibrate Y" #define MSG_DELTA_CALIBRATE_Z "Calibrate Z" #define MSG_DELTA_CALIBRATE_CENTER "Calibrate Center" #endif // DELTA_CALIBRATION_MENU #endif // LANGUAGE_FR_H ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/language_fr.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
1,606
```objective-c /* Fontname: -Misc-Fixed-Medium-R-Normal--9-90-75-75-C-60-ISO10646-1 Capital A Height: 6, '1' Height: 6 Calculated Max Values w= 6 h= 9 x= 2 y= 7 dx= 6 dy= 0 ascent= 7 len= 9 Font Bounding box w= 6 h= 9 x= 0 y=-2 Calculated Min Values x= 0 y=-2 dx= 0 dy= 0 Pure Font ascent = 6 descent=-2 X Font ascent = 6 descent=-2 Max Font ascent = 7 descent=-2 */ #include <utility/u8g.h> const u8g_fntpgm_uint8_t u8g_font_6x9[2300] U8G_SECTION(".progmem.u8g_font_6x9") = { 0,6,9,0,254,6,1,137,2,254,32,255,254,7,254,6, 254,0,0,0,6,0,7,1,6,6,6,2,0,128,128,128, 128,0,128,3,3,3,6,1,3,160,160,160,5,7,7,6, 0,255,80,80,248,80,248,80,80,5,9,9,6,0,254,32, 112,168,160,112,40,168,112,32,6,8,8,6,0,255,64,168, 72,16,32,72,84,8,5,7,7,6,0,255,96,144,144,96, 152,144,104,1,3,3,6,2,3,128,128,128,2,7,7,6, 2,255,64,128,128,128,128,128,64,2,7,7,6,2,255,128, 64,64,64,64,64,128,5,5,5,6,0,0,136,80,248,80, 136,5,5,5,6,0,0,32,32,248,32,32,2,4,4,6, 2,254,192,64,64,128,5,1,1,6,0,2,248,2,2,2, 6,2,0,192,192,4,6,6,6,1,0,16,16,32,64,128, 128,4,6,6,6,1,0,96,144,144,144,144,96,3,6,6, 6,1,0,64,192,64,64,64,224,4,6,6,6,1,0,96, 144,16,32,64,240,4,6,6,6,1,0,240,32,96,16,16, 224,5,6,6,6,0,0,16,48,80,144,248,16,4,6,6, 6,1,0,240,128,224,16,16,224,4,6,6,6,1,0,96, 128,224,144,144,96,4,6,6,6,1,0,240,16,16,32,64, 64,4,6,6,6,1,0,96,144,96,144,144,96,4,6,6, 6,1,0,96,144,144,112,16,96,2,5,5,6,2,0,192, 192,0,192,192,2,7,7,6,2,254,192,192,0,192,64,64, 128,5,5,5,6,0,0,24,96,128,96,24,5,3,3,6, 0,1,248,0,248,5,5,5,6,0,0,192,48,8,48,192, 4,7,7,6,1,0,96,144,16,96,64,0,64,5,6,6, 6,0,0,112,144,168,176,128,112,5,6,6,6,0,0,32, 80,136,248,136,136,5,6,6,6,0,0,240,136,240,136,136, 240,4,6,6,6,1,0,96,144,128,128,144,96,4,6,6, 6,1,0,224,144,144,144,144,224,4,6,6,6,1,0,240, 128,224,128,128,240,4,6,6,6,1,0,240,128,224,128,128, 128,4,6,6,6,1,0,96,144,128,176,144,96,4,6,6, 6,1,0,144,144,240,144,144,144,3,6,6,6,1,0,224, 64,64,64,64,224,5,6,6,6,0,0,56,16,16,16,144, 96,4,6,6,6,1,0,144,160,192,160,144,144,4,6,6, 6,1,0,128,128,128,128,128,240,5,6,6,6,0,0,136, 216,168,168,136,136,4,6,6,6,1,0,144,208,176,144,144, 144,5,6,6,6,0,0,112,136,136,136,136,112,4,6,6, 6,1,0,224,144,144,224,128,128,4,7,7,6,1,255,96, 144,144,208,176,96,16,4,6,6,6,1,0,224,144,144,224, 144,144,4,6,6,6,1,0,96,144,64,32,144,96,5,6, 6,6,0,0,248,32,32,32,32,32,4,6,6,6,1,0, 144,144,144,144,144,96,4,6,6,6,1,0,144,144,144,240, 96,96,5,6,6,6,0,0,136,136,168,168,216,136,5,6, 6,6,0,0,136,80,32,32,80,136,5,6,6,6,0,0, 136,136,80,32,32,32,4,6,6,6,1,0,240,16,32,64, 128,240,3,6,6,6,1,0,224,128,128,128,128,224,4,6, 6,6,1,0,128,128,64,32,16,16,3,6,6,6,1,0, 224,32,32,32,32,224,5,3,3,6,0,3,32,80,136,5, 1,1,6,0,254,248,2,2,2,6,2,4,128,64,4,4, 4,6,1,0,112,144,144,112,4,6,6,6,1,0,128,128, 224,144,144,224,4,4,4,6,1,0,112,128,128,112,4,6, 6,6,1,0,16,16,112,144,144,112,4,4,4,6,1,0, 96,176,192,112,4,6,6,6,1,0,32,80,64,224,64,64, 4,6,6,6,1,254,96,144,144,112,16,96,4,6,6,6, 1,0,128,128,224,144,144,144,3,6,6,6,1,0,64,0, 192,64,64,224,3,8,8,6,1,254,32,0,96,32,32,32, 160,64,4,6,6,6,1,0,128,128,160,192,160,144,3,6, 6,6,1,0,192,64,64,64,64,224,5,4,4,6,0,0, 208,168,168,136,4,4,4,6,1,0,224,144,144,144,4,4, 4,6,1,0,96,144,144,96,4,6,6,6,1,254,224,144, 144,224,128,128,4,6,6,6,1,254,112,144,144,112,16,16, 4,4,4,6,1,0,160,208,128,128,4,4,4,6,1,0, 112,192,48,224,4,6,6,6,1,0,64,64,224,64,80,32, 4,4,4,6,1,0,144,144,144,112,4,4,4,6,1,0, 144,144,96,96,5,4,4,6,0,0,136,168,168,80,4,4, 4,6,1,0,144,96,96,144,4,6,6,6,1,254,144,144, 144,112,144,96,4,4,4,6,1,0,240,32,64,240,3,7, 7,6,1,0,32,64,64,128,64,64,32,1,7,7,6,2, 255,128,128,128,128,128,128,128,3,7,7,6,1,0,128,64, 64,32,64,64,128,4,2,2,6,1,3,80,160,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0, 0,6,0,7,1,6,6,6,2,0,128,0,128,128,128,128, 4,6,6,6,1,255,32,112,160,160,112,32,5,7,7,6, 0,255,48,72,64,240,64,64,248,5,5,5,6,0,0,168, 80,136,80,168,5,6,6,6,0,0,136,80,248,32,248,32, 1,7,7,6,2,255,128,128,128,0,128,128,128,4,7,7, 6,1,255,112,128,96,144,96,16,224,3,1,1,6,1,5, 160,6,7,7,6,0,0,120,132,148,164,148,132,120,3,5, 5,6,1,1,96,160,96,0,224,5,5,5,6,0,0,40, 80,160,80,40,4,3,3,6,1,0,240,16,16,4,1,1, 6,1,2,240,6,7,7,6,0,0,120,132,180,164,164,132, 120,4,1,1,6,1,5,240,4,3,3,6,1,2,96,144, 96,5,7,7,6,0,255,32,32,248,32,32,0,248,3,5, 5,6,1,1,64,160,32,64,224,3,5,5,6,1,1,192, 32,64,32,192,2,2,2,6,2,4,64,128,4,5,5,6, 1,255,144,144,176,208,128,5,6,6,6,0,0,120,232,232, 104,40,40,1,1,1,6,2,2,128,2,2,2,6,2,254, 64,128,3,5,5,6,1,1,64,192,64,64,224,3,5,5, 6,1,1,64,160,64,0,224,5,5,5,6,0,0,160,80, 40,80,160,5,8,8,6,0,255,64,192,64,80,112,48,120, 16,5,8,8,6,0,255,64,192,64,80,104,8,16,56,5, 8,8,6,0,255,192,32,64,48,240,48,120,16,4,7,7, 6,1,0,32,0,32,96,128,144,96,5,7,7,6,0,0, 64,32,32,80,112,136,136,5,7,7,6,0,0,16,32,32, 80,112,136,136,5,7,7,6,0,0,32,80,32,80,112,136, 136,5,7,7,6,0,0,40,80,32,80,112,136,136,5,7, 7,6,0,0,80,0,32,80,112,136,136,5,7,7,6,0, 0,32,80,32,80,112,136,136,5,6,6,6,0,0,120,160, 240,160,160,184,4,8,8,6,1,254,96,144,128,128,144,96, 32,64,4,7,7,6,1,0,64,32,240,128,224,128,240,4, 7,7,6,1,0,32,64,240,128,224,128,240,4,7,7,6, 1,0,32,80,240,128,224,128,240,4,7,7,6,1,0,80, 0,240,128,224,128,240,3,7,7,6,1,0,128,64,224,64, 64,64,224,3,7,7,6,1,0,32,64,224,64,64,64,224, 3,7,7,6,1,0,64,160,224,64,64,64,224,3,7,7, 6,1,0,160,0,224,64,64,64,224,5,6,6,6,0,0, 112,72,232,72,72,112,4,7,7,6,1,0,80,160,144,208, 176,144,144,4,7,7,6,1,0,64,32,96,144,144,144,96, 4,7,7,6,1,0,32,64,96,144,144,144,96,4,7,7, 6,1,0,32,80,96,144,144,144,96,4,7,7,6,1,0, 80,160,96,144,144,144,96,4,7,7,6,1,0,80,0,96, 144,144,144,96,5,5,5,6,0,0,136,80,32,80,136,4, 8,8,6,1,255,16,112,176,176,208,208,224,128,4,7,7, 6,1,0,64,32,144,144,144,144,96,4,7,7,6,1,0, 32,64,144,144,144,144,96,4,7,7,6,1,0,32,80,144, 144,144,144,96,4,7,7,6,1,0,80,0,144,144,144,144, 96,5,7,7,6,0,0,16,32,136,80,32,32,32,4,6, 6,6,1,0,128,224,144,144,224,128,4,6,6,6,1,0, 96,144,160,160,144,160,4,7,7,6,1,0,64,32,0,112, 144,144,112,4,7,7,6,1,0,32,64,0,112,144,144,112, 4,7,7,6,1,0,32,80,0,112,144,144,112,4,7,7, 6,1,0,80,160,0,112,144,144,112,4,6,6,6,1,0, 80,0,112,144,144,112,4,7,7,6,1,0,32,80,32,112, 144,144,112,5,4,4,6,0,0,112,168,176,120,4,6,6, 6,1,254,112,128,128,112,32,64,4,7,7,6,1,0,64, 32,0,96,176,192,112,4,7,7,6,1,0,32,64,0,96, 176,192,112,4,7,7,6,1,0,32,80,0,96,176,192,112, 4,6,6,6,1,0,80,0,96,176,192,112,3,7,7,6, 1,0,128,64,0,192,64,64,224,3,7,7,6,1,0,32, 64,0,192,64,64,224,3,7,7,6,1,0,64,160,0,192, 64,64,224,3,6,6,6,1,0,160,0,192,64,64,224,4, 7,7,6,1,0,48,96,16,112,144,144,96,4,7,7,6, 1,0,80,160,0,224,144,144,144,4,7,7,6,1,0,64, 32,0,96,144,144,96,4,7,7,6,1,0,32,64,0,96, 144,144,96,4,7,7,6,1,0,32,80,0,96,144,144,96, 4,7,7,6,1,0,80,160,0,96,144,144,96,4,6,6, 6,1,0,80,0,96,144,144,96,5,5,5,6,0,0,32, 0,248,0,32,4,4,4,6,1,0,112,176,208,224,4,7, 7,6,1,0,64,32,0,144,144,144,112,4,7,7,6,1, 0,32,64,0,144,144,144,112,4,7,7,6,1,0,32,80, 0,144,144,144,112,4,6,6,6,1,0,80,0,144,144,144, 112,4,9,9,6,1,254,32,64,0,144,144,144,112,144,96, 4,8,8,6,1,254,128,128,224,144,144,224,128,128,4,8, 8,6,1,254,80,0,144,144,144,112,144,96}; // STB Marlin /* Fontname: u8g_font_6x10_marlin Capital A Height: 7, '1' Height: 7 Calculated Max Values w= 6 h=10 x= 2 y= 7 dx= 6 dy= 0 ascent= 8 len=10 Font Bounding box w= 6 h= 9 x= 0 y=-2 Calculated Min Values x= 0 y=-2 dx= 0 dy= 0 Pure Font ascent = 7 descent=-2 X Font ascent = 7 descent=-2 Max Font ascent = 8 descent=-2 */ #include <utility/u8g.h> const u8g_fntpgm_uint8_t u8g_font_6x10_marlin[2617] U8G_SECTION(".progmem.u8g_font_6x10_marlin") = { 0,6,9,0,254,7,1,153,3,43,32,255,254,8,254,7, 254,0,0,0,6,0,0,1,7,7,6,2,0,128,128,128, 128,128,0,128,3,3,3,6,1,4,160,160,160,5,7,7, 6,0,0,80,80,248,80,248,80,80,5,7,7,6,0,0, 32,112,160,112,40,112,32,5,7,7,6,0,0,72,168,80, 32,80,168,144,5,7,7,6,0,0,64,160,160,64,168,144, 104,1,3,3,6,2,4,128,128,128,3,7,7,6,1,0, 32,64,128,128,128,64,32,3,7,7,6,1,0,128,64,32, 32,32,64,128,5,5,5,6,0,1,136,80,248,80,136,5, 5,5,6,0,1,32,32,248,32,32,3,3,3,6,1,255, 96,64,128,5,1,1,6,0,3,248,3,3,3,6,1,255, 64,224,64,5,7,7,6,0,0,8,8,16,32,64,128,128, 5,7,7,6,0,0,32,80,136,136,136,80,32,5,7,7, 6,0,0,32,96,160,32,32,32,248,5,7,7,6,0,0, 112,136,8,48,64,128,248,5,7,7,6,0,0,248,8,16, 48,8,136,112,5,7,7,6,0,0,16,48,80,144,248,16, 16,5,7,7,6,0,0,248,128,176,200,8,136,112,5,7, 7,6,0,0,48,64,128,176,200,136,112,5,7,7,6,0, 0,248,8,16,16,32,64,64,5,7,7,6,0,0,112,136, 136,112,136,136,112,5,7,7,6,0,0,112,136,152,104,8, 16,96,3,7,7,6,1,255,64,224,64,0,64,224,64,3, 7,7,6,1,255,64,224,64,0,96,64,128,4,7,7,6, 1,0,16,32,64,128,64,32,16,5,3,3,6,0,2,248, 0,248,4,7,7,6,1,0,128,64,32,16,32,64,128,5, 7,7,6,0,0,112,136,16,32,32,0,32,5,7,7,6, 0,0,112,136,152,168,176,128,112,5,7,7,6,0,0,32, 80,136,136,248,136,136,5,7,7,6,0,0,240,72,72,112, 72,72,240,5,7,7,6,0,0,112,136,128,128,128,136,112, 5,7,7,6,0,0,240,72,72,72,72,72,240,5,7,7, 6,0,0,248,128,128,240,128,128,248,5,7,7,6,0,0, 248,128,128,240,128,128,128,5,7,7,6,0,0,112,136,128, 128,152,136,112,5,7,7,6,0,0,136,136,136,248,136,136, 136,3,7,7,6,1,0,224,64,64,64,64,64,224,5,7, 7,6,0,0,56,16,16,16,16,144,96,5,7,7,6,0, 0,136,144,160,192,160,144,136,5,7,7,6,0,0,128,128, 128,128,128,128,248,5,7,7,6,0,0,136,136,216,168,136, 136,136,5,7,7,6,0,0,136,136,200,168,152,136,136,5, 7,7,6,0,0,112,136,136,136,136,136,112,5,7,7,6, 0,0,240,136,136,240,128,128,128,5,8,8,6,0,255,112, 136,136,136,136,168,112,8,5,7,7,6,0,0,240,136,136, 240,160,144,136,5,7,7,6,0,0,112,136,128,112,8,136, 112,5,7,7,6,0,0,248,32,32,32,32,32,32,5,7, 7,6,0,0,136,136,136,136,136,136,112,5,7,7,6,0, 0,136,136,136,80,80,80,32,5,7,7,6,0,0,136,136, 136,168,168,216,136,5,7,7,6,0,0,136,136,80,32,80, 136,136,5,7,7,6,0,0,136,136,80,32,32,32,32,5, 7,7,6,0,0,248,8,16,32,64,128,248,3,7,7,6, 1,0,224,128,128,128,128,128,224,5,7,7,6,0,0,128, 128,64,32,16,8,8,3,7,7,6,1,0,224,32,32,32, 32,32,224,5,3,3,6,0,4,32,80,136,5,1,1,6, 0,255,248,2,2,2,6,2,6,128,64,5,5,5,6,0, 0,112,8,120,136,120,5,7,7,6,0,0,128,128,176,200, 136,200,176,5,5,5,6,0,0,112,136,128,136,112,5,7, 7,6,0,0,8,8,104,152,136,152,104,5,5,5,6,0, 0,112,136,248,128,112,5,7,7,6,0,0,48,72,64,240, 64,64,64,5,7,7,6,0,254,120,136,136,120,8,136,112, 5,7,7,6,0,0,128,128,176,200,136,136,136,3,7,7, 6,1,0,64,0,192,64,64,64,224,4,9,9,6,1,254, 16,0,48,16,16,16,144,144,96,5,7,7,6,0,0,128, 128,136,144,224,144,136,3,7,7,6,1,0,192,64,64,64, 64,64,224,5,5,5,6,0,0,208,168,168,168,136,5,5, 5,6,0,0,176,200,136,136,136,5,5,5,6,0,0,112, 136,136,136,112,5,7,7,6,0,254,176,200,136,200,176,128, 128,5,7,7,6,0,254,104,152,136,152,104,8,8,5,5, 5,6,0,0,176,200,128,128,128,5,5,5,6,0,0,112, 128,112,8,240,5,7,7,6,0,0,64,64,240,64,64,72, 48,5,5,5,6,0,0,136,136,136,152,104,5,5,5,6, 0,0,136,136,80,80,32,5,5,5,6,0,0,136,136,168, 168,80,5,5,5,6,0,0,136,80,32,80,136,5,7,7, 6,0,254,136,136,152,104,8,136,112,5,5,5,6,0,0, 248,16,32,64,248,4,7,7,6,1,0,48,64,32,192,32, 64,48,1,7,7,6,2,0,128,128,128,128,128,128,128,4, 7,7,6,1,0,192,32,64,48,64,32,192,5,3,3,6, 0,4,72,168,144,0,0,0,1,0,0,0,0,0,1,0, 0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0, 1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0, 0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0, 0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0, 1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0, 0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0, 0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0, 1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0, 0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0, 0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0, 1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0, 0,0,1,0,0,0,0,0,1,0,0,0,0,0,6,0, 0,1,7,7,6,2,0,128,0,128,128,128,128,128,5,7, 7,6,0,255,32,120,160,160,160,120,32,5,7,7,6,0, 0,48,72,64,224,64,72,176,5,5,5,6,0,0,136,112, 80,112,136,5,8,8,6,0,255,136,136,80,32,248,32,32, 32,1,7,7,6,2,0,128,128,128,0,128,128,128,5,8, 8,6,0,255,112,128,224,144,72,56,8,112,3,1,1,6, 1,7,160,5,7,7,6,0,0,112,136,168,200,168,136,112, 4,6,6,6,1,1,112,144,176,80,0,240,6,5,5,6, 0,0,36,72,144,72,36,4,2,2,6,1,2,240,16,4, 1,1,6,1,3,240,5,7,7,6,0,0,112,136,232,200, 200,136,112,5,1,1,6,0,7,248,3,3,3,6,1,4, 64,160,64,5,6,6,6,0,0,32,32,248,32,32,248,4, 5,5,6,1,3,96,144,32,64,240,4,5,5,6,1,3, 224,16,96,16,224,2,2,2,6,2,6,64,128,5,6,6, 6,0,255,136,136,136,200,176,128,5,7,7,6,0,0,120, 232,232,104,40,40,40,1,1,1,6,2,3,128,2,2,2, 6,2,254,64,128,3,5,5,6,1,3,64,192,64,64,224, 4,6,6,6,1,1,96,144,144,96,0,240,6,5,5,6, 0,0,144,72,36,72,144,6,9,9,6,0,255,64,192,64, 64,228,12,20,60,4,6,9,9,6,0,255,64,192,64,64, 232,20,4,8,28,5,9,9,6,0,255,192,32,64,32,200, 24,40,120,8,5,7,7,6,0,0,32,0,32,32,64,136, 112,5,8,8,6,0,0,64,32,112,136,136,248,136,136,5, 8,8,6,0,0,16,32,112,136,136,248,136,136,5,8,8, 6,0,0,32,80,112,136,136,248,136,136,5,8,8,6,0, 0,72,176,112,136,136,248,136,136,5,8,8,6,0,0,80, 0,112,136,136,248,136,136,5,8,8,6,0,0,32,80,112, 136,136,248,136,136,6,7,7,6,0,0,60,80,144,156,240, 144,156,5,9,9,6,0,254,112,136,128,128,128,136,112,32, 64,5,8,8,6,0,0,64,248,128,128,240,128,128,248,5, 8,8,6,0,0,16,248,128,128,240,128,128,248,5,8,8, 6,0,0,32,248,128,128,240,128,128,248,5,8,8,6,0, 0,80,248,128,128,240,128,128,248,3,8,8,6,1,0,128, 64,224,64,64,64,64,224,3,8,8,6,1,0,32,64,224, 64,64,64,64,224,3,8,8,6,1,0,64,160,224,64,64, 64,64,224,3,8,8,6,1,0,160,0,224,64,64,64,64, 224,5,7,7,6,0,0,240,72,72,232,72,72,240,5,8, 8,6,0,0,40,80,136,200,168,152,136,136,5,8,8,6, 0,0,64,32,112,136,136,136,136,112,5,8,8,6,0,0, 16,32,112,136,136,136,136,112,5,8,8,6,0,0,32,80, 112,136,136,136,136,112,5,8,8,6,0,0,40,80,112,136, 136,136,136,112,5,8,8,6,0,0,80,0,112,136,136,136, 136,112,5,5,5,6,0,0,136,80,32,80,136,5,7,7, 6,0,0,112,152,152,168,200,200,112,5,8,8,6,0,0, 64,32,136,136,136,136,136,112,5,8,8,6,0,0,16,32, 136,136,136,136,136,112,5,8,8,6,0,0,32,80,0,136, 136,136,136,112,5,8,8,6,0,0,80,0,136,136,136,136, 136,112,5,8,8,6,0,0,16,32,136,136,80,32,32,32, 5,7,7,6,0,0,128,240,136,240,128,128,128,5,7,7, 6,0,0,112,136,144,160,144,136,176,5,8,8,6,0,0, 64,32,0,112,8,120,136,120,5,8,8,6,0,0,16,32, 0,112,8,120,136,120,5,8,8,6,0,0,32,80,0,112, 8,120,136,120,5,8,8,6,0,0,40,80,0,112,8,120, 136,120,5,7,7,6,0,0,80,0,112,8,120,136,120,5, 8,8,6,0,0,32,80,32,112,8,120,136,120,6,5,5, 6,0,0,120,20,124,144,124,5,7,7,6,0,254,112,136, 128,136,112,32,64,5,8,8,6,0,0,64,32,0,112,136, 248,128,112,5,8,8,6,0,0,16,32,0,112,136,248,128, 112,5,8,8,6,0,0,32,80,0,112,136,248,128,112,5, 7,7,6,0,0,80,0,112,136,248,128,112,3,8,8,6, 1,0,128,64,0,192,64,64,64,224,3,8,8,6,1,0, 64,128,0,192,64,64,64,224,3,8,8,6,1,0,64,160, 0,192,64,64,64,224,6,10,10,6,0,254,164,168,0,252, 132,128,128,128,132,252,6,10,10,6,0,254,84,148,0,252, 132,4,4,4,132,252,5,8,8,6,0,0,40,80,0,176, 200,136,136,136,5,8,8,6,0,0,64,32,0,112,136,136, 136,112,4,10,10,6,2,254,48,64,128,144,144,144,144,144, 144,144,4,10,10,6,0,254,192,32,16,144,144,144,144,144, 144,144,6,7,7,6,0,1,68,140,140,132,128,64,60,6, 7,7,6,0,1,136,196,196,132,4,8,240,5,5,5,6, 0,1,32,0,248,0,32,5,8,8,6,0,0,64,240,200, 136,136,152,120,16,5,8,8,6,0,0,224,248,136,136,136, 136,136,248,5,5,5,6,0,1,32,48,248,48,32,5,8, 8,6,0,0,32,112,248,32,32,32,32,224,5,9,9,6, 0,255,32,112,168,168,184,136,136,80,32,5,9,9,6,0, 255,224,128,192,176,168,168,48,40,40,5,9,9,6,0,255, 248,168,136,136,136,136,136,168,248,5,10,10,6,0,254,32, 80,80,80,80,136,168,168,136,112}; ```
/content/code_sandbox/FIRMWARE/Marlin_BCN3D_Moveo/dogm_font_data_marlin.h
objective-c
2016-07-28T11:07:14
2024-08-15T13:21:10
BCN3D-Moveo
BCN3D/BCN3D-Moveo
1,418
10,876
```java package com.baeldung.auth.config; import org.keycloak.services.util.JsonConfigProviderFactory; public class RegularJsonConfigProviderFactory extends JsonConfigProviderFactory { } ```
/content/code_sandbox/oauth-rest/oauth-authorization-server/src/main/java/com/baeldung/auth/config/RegularJsonConfigProviderFactory.java
java
2016-03-02T09:04:07
2024-08-06T03:02:12
spring-security-oauth
Baeldung/spring-security-oauth
1,982
34
```java package com.baeldung.springsociallogin; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest class SpringSocialLoginApplicationTests { @Test void contextLoads() { } } ```
/content/code_sandbox/oauth-rest/oauth2-social-login/src/test/java/com/baeldung/springsociallogin/SpringSocialLoginApplicationTests.java
java
2016-03-02T09:04:07
2024-08-06T03:02:12
spring-security-oauth
Baeldung/spring-security-oauth
1,982
47
```java package com.baeldung.springsociallogin.controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; @RestController public class HomeController { @GetMapping("/") public String home() { return "Hello, public user!"; } @GetMapping("/secure") public String secured() { return "Hello, logged in user!"; } } ```
/content/code_sandbox/oauth-rest/oauth2-social-login/src/main/java/com/baeldung/springsociallogin/controller/HomeController.java
java
2016-03-02T09:04:07
2024-08-06T03:02:12
spring-security-oauth
Baeldung/spring-security-oauth
1,982
79
```java package com.baeldung.client; import static org.assertj.core.api.Assertions.assertThat; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import org.junit.jupiter.api.Test; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpStatus; import io.restassured.RestAssured; import io.restassured.response.Response; /** * Needs the following to be running: * - Resource Server * - Authorization Server * - Client Application Server */ public class Oauth2ClientLiveTest { private static final String USERNAME = "john@test.com"; private static final String PASSWORD = "123"; private static final String CLIENT_BASE_URL = "path_to_url"; private static final String REDIRECT_URL = CLIENT_BASE_URL + "/oauth-client-spring/login/oauth2/code/custom"; private static final String RESOURCE_URL = CLIENT_BASE_URL + "/oauth-client-spring/foos"; private static final String CLIENT_AUTHORIZATION_URI = CLIENT_BASE_URL + "/oauth-client-spring/oauth2/authorization/custom"; @Test public void givenAuthorizationCodeGrant_whenLoginUsingOauth_thenSuccess() throws UnsupportedEncodingException { // invoke authorization request on client to obtain state and session-id Response response = RestAssured.given() .redirects() .follow(false) .get(CLIENT_AUTHORIZATION_URI); assertThat(HttpStatus.FOUND.value()).isEqualTo(response.getStatusCode()); String fullAuthorizeUrl = response.getHeader(HttpHeaders.LOCATION) .replace("%20", " "); assertThat(fullAuthorizeUrl).contains("state"); // extract state from redirect uri String state = URLDecoder.decode(fullAuthorizeUrl.split("state=")[1].split("&")[0], "UTF-8"); String clientSessionId = response.getCookie("JSESSIONID"); // obtain authentication url with custom codes response = RestAssured.given() .redirects() .follow(false) .get(fullAuthorizeUrl); String authSessionId = response.getCookie("AUTH_SESSION_ID"); String kcPostAuthenticationUrl = response.asString() .split("action=\"")[1].split("\"")[0].replace("&amp;", "&"); // obtain authentication code and state response = RestAssured.given() .redirects() .follow(false) .cookie("AUTH_SESSION_ID", authSessionId) .formParams("username", USERNAME, "password", PASSWORD, "credentialId", "") .post(kcPostAuthenticationUrl); assertThat(HttpStatus.FOUND.value()).isEqualTo(response.getStatusCode()); // extract authorization code String location = response.getHeader(HttpHeaders.LOCATION); String code = location.split("code=")[1].split("&")[0]; // mimic oauth2login response = RestAssured.given() .redirects() .follow(false) .cookie("JSESSIONID", clientSessionId) .get(REDIRECT_URL + "?code=" + code + "&state=" + state); assertThat(HttpStatus.FOUND.value()).isEqualTo(response.getStatusCode()); // extract new client session-id after authentication String newClientSessionId = response.getCookie("JSESSIONID"); response = RestAssured.given() .cookie("JSESSIONID", newClientSessionId) .get(RESOURCE_URL); assertThat(HttpStatus.OK.value()).isEqualTo(response.getStatusCode()); assertThat(response.asString()).contains("Foos : View all"); System.out.println(response.asString()); } } ```
/content/code_sandbox/oauth-rest/oauth-client-spring/src/test/java/com/baeldung/client/Oauth2ClientLiveTest.java
java
2016-03-02T09:04:07
2024-08-06T03:02:12
spring-security-oauth
Baeldung/spring-security-oauth
1,982
715
```java package com.baeldung.auth.config; import org.jboss.resteasy.core.ResteasyContext; import org.jboss.resteasy.spi.Dispatcher; import org.jboss.resteasy.spi.ResteasyProviderFactory; import org.keycloak.common.util.ResteasyProvider; public class Resteasy3Provider implements ResteasyProvider { @Override public <R> R getContextData(Class<R> type) { return ResteasyProviderFactory.getInstance() .getContextData(type); } @Override public void pushDefaultContextObject(Class type, Object instance) { ResteasyProviderFactory.getInstance() .getContextData(Dispatcher.class) .getDefaultContextObjects() .put(type, instance); } @Override public void pushContext(Class type, Object instance) { ResteasyContext.pushContext(type, instance); } @Override public void clearContextData() { ResteasyContext.clearContextData(); } } ```
/content/code_sandbox/oauth-rest/oauth-authorization-server/src/main/java/com/baeldung/auth/config/Resteasy3Provider.java
java
2016-03-02T09:04:07
2024-08-06T03:02:12
spring-security-oauth
Baeldung/spring-security-oauth
1,982
198
```java package com.baeldung.client; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest(classes = { ClientSpringApp.class }) public class ClientContextIntegrationTest { @Test public void whenLoadApplication_thenSuccess() { } } ```
/content/code_sandbox/oauth-rest/oauth-client-spring/src/test/java/com/baeldung/client/ClientContextIntegrationTest.java
java
2016-03-02T09:04:07
2024-08-06T03:02:12
spring-security-oauth
Baeldung/spring-security-oauth
1,982
54
```java package com.baeldung.springsociallogin.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.Customizer; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; import org.springframework.security.web.SecurityFilterChain; @Configuration @EnableWebSecurity public class SecurityConfig { @Bean SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception { return http .authorizeHttpRequests(auth -> { auth.requestMatchers("/").permitAll(); auth.anyRequest().authenticated(); }) .oauth2Login(Customizer.withDefaults()) .formLogin(Customizer.withDefaults()) .build(); } } ```
/content/code_sandbox/oauth-rest/oauth2-social-login/src/main/java/com/baeldung/springsociallogin/config/SecurityConfig.java
java
2016-03-02T09:04:07
2024-08-06T03:02:12
spring-security-oauth
Baeldung/spring-security-oauth
1,982
154
```java package com.baeldung.auth; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit.jupiter.SpringExtension; import com.baeldung.auth.AuthorizationServerApp; @ExtendWith(SpringExtension.class) @SpringBootTest(classes = { AuthorizationServerApp.class }) public class ContextIntegrationTest { @Test public void whenLoadApplication_thenSuccess() { } } ```
/content/code_sandbox/oauth-rest/oauth-authorization-server/src/test/java/com/baeldung/auth/ContextIntegrationTest.java
java
2016-03-02T09:04:07
2024-08-06T03:02:12
spring-security-oauth
Baeldung/spring-security-oauth
1,982
92
```yaml spring: security: oauth2: client: registration: custom: client-id: newClient client-secret: newClientSecret scope: read,write,openid authorization-grant-type: authorization_code redirect-uri: path_to_url provider: custom: authorization-uri: path_to_url token-uri: path_to_url user-info-uri: path_to_url jwk-set-uri: path_to_url issuer-uri: path_to_url user-name-attribute: preferred_username thymeleaf: cache: false devtools: livereload: port: 35729 server: port: 8082 servlet: context-path: /oauth-client-spring logging: level: org.springframework: INFO resourceserver: api: foo: url: path_to_url ```
/content/code_sandbox/oauth-rest/oauth-client-spring/src/main/resources/application.yml
yaml
2016-03-02T09:04:07
2024-08-06T03:02:12
spring-security-oauth
Baeldung/spring-security-oauth
1,982
196
```java package com.baeldung.auth.config; import java.io.File; import org.keycloak.Config.Scope; import org.keycloak.common.Profile; import org.keycloak.common.profile.PropertiesFileProfileConfigResolver; import org.keycloak.common.profile.PropertiesProfileConfigResolver; import org.keycloak.platform.PlatformProvider; import org.keycloak.services.ServicesLogger; public class SimplePlatformProvider implements PlatformProvider { public SimplePlatformProvider() { Profile.configure(new PropertiesProfileConfigResolver(System.getProperties()), new PropertiesFileProfileConfigResolver()); } Runnable shutdownHook; @Override public void onStartup(Runnable startupHook) { startupHook.run(); } @Override public void onShutdown(Runnable shutdownHook) { this.shutdownHook = shutdownHook; } @Override public void exit(Throwable cause) { ServicesLogger.LOGGER.fatal(cause); exit(1); } private void exit(int status) { new Thread() { @Override public void run() { System.exit(status); } }.start(); } @Override public File getTmpDirectory() { return new File(System.getProperty("java.io.tmpdir")); } @Override public ClassLoader getScriptEngineClassLoader(Scope scriptProviderConfig) { return null; } @Override public String name() { return "oauth-authorization-server"; } } ```
/content/code_sandbox/oauth-rest/oauth-authorization-server/src/main/java/com/baeldung/auth/config/SimplePlatformProvider.java
java
2016-03-02T09:04:07
2024-08-06T03:02:12
spring-security-oauth
Baeldung/spring-security-oauth
1,982
288
```java package com.baeldung.client; import static org.assertj.core.api.Assertions.assertThat; import static org.hamcrest.CoreMatchers.endsWith; import static org.hamcrest.CoreMatchers.startsWith; import java.net.URI; import java.net.URLDecoder; import java.nio.charset.StandardCharsets; import java.time.Duration; import java.util.Arrays; import java.util.Map; import java.util.stream.Collectors; import org.apache.commons.lang3.tuple.Pair; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.test.autoconfigure.web.reactive.AutoConfigureWebTestClient; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.context.SpringBootTest.WebEnvironment; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpMethod; import org.springframework.http.MediaType; import org.springframework.test.context.DynamicPropertyRegistry; import org.springframework.test.context.DynamicPropertySource; import org.springframework.test.web.reactive.server.ExchangeResult; import org.springframework.test.web.reactive.server.WebTestClient; import okhttp3.mockwebserver.MockResponse; import okhttp3.mockwebserver.MockWebServer; import okhttp3.mockwebserver.RecordedRequest; @SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT) @AutoConfigureWebTestClient public class Oauth2ClientIntegrationTest { private final static Pair<String, String> AUTH_SERVER_AUTH_URI_PROP = Pair.of("spring.security.oauth2.client.provider.custom.authorization-uri", "path_to_url{PORT}/auth/realms/baeldung/protocol/openid-connect/auth"); private final static Pair<String, String> AUTH_SERVER_TOKEN_PROP = Pair.of("spring.security.oauth2.client.provider.custom.token-uri", "path_to_url{PORT}/auth/realms/baeldung/protocol/openid-connect/token"); private final static Pair<String, String> AUTH_SERVER_USERINFO_PROP = Pair.of("spring.security.oauth2.client.provider.custom.user-info-uri", "path_to_url{PORT}/auth/realms/baeldung/protocol/openid-connect/userinfo"); private final static Pair<String, String> RESOURCE_SERVER_PROP = Pair.of("resourceserver.api.foo.url", "path_to_url{PORT}/resource-server/api/foos/"); private final String CLIENT_SECURED_URL = "/foos"; private String REDIRECT_URI = "/login/oauth2/code/custom?state=%s&code=%s"; @Value("${spring.security.oauth2.client.provider.custom.authorization-uri}") private String authServerAuthorizationURL; @Value("${spring.security.oauth2.client.registration.custom.redirect-uri}") private String configuredRedirectUri; @Value("${spring.security.oauth2.client.provider.custom.token-uri}") private String configuredTokenUri; @Value("${spring.security.oauth2.client.provider.custom.user-info-uri}") private String configuredUserInfoUri; @Value("${resourceserver.api.foo.url}") private String foosUrl; @Autowired private WebTestClient webTestClient; private static MockWebServer authServer; private static MockWebServer resourceServer; @DynamicPropertySource static void buildServerUri(DynamicPropertyRegistry registry) { registry.add(RESOURCE_SERVER_PROP.getKey(), () -> RESOURCE_SERVER_PROP.getValue() .replace("{PORT}", String.valueOf(resourceServer.getPort()))); registry.add(AUTH_SERVER_AUTH_URI_PROP.getKey(), () -> AUTH_SERVER_AUTH_URI_PROP.getValue() .replace("{PORT}", String.valueOf(authServer.getPort()))); registry.add(AUTH_SERVER_TOKEN_PROP.getKey(), () -> AUTH_SERVER_TOKEN_PROP.getValue() .replace("{PORT}", String.valueOf(authServer.getPort()))); registry.add(AUTH_SERVER_USERINFO_PROP.getKey(), () -> AUTH_SERVER_USERINFO_PROP.getValue() .replace("{PORT}", String.valueOf(authServer.getPort()))); } @BeforeAll public static void setUp() throws Exception { authServer = new MockWebServer(); resourceServer = new MockWebServer(); authServer.start(); resourceServer.start(); } @AfterAll public static void tearDown() throws Exception { authServer.shutdown(); resourceServer.shutdown(); } @BeforeEach public void beforeEach() throws Exception { webTestClient = webTestClient.mutate() .responseTimeout(Duration.ofMillis(300000)) .build(); } @Test public void your_sha256_hashhenProcessExecutesOk() throws Exception { // mimic login button action ExchangeResult result = this.webTestClient.get() .uri(CLIENT_SECURED_URL) .exchange() .expectStatus() .isFound() .expectHeader() .value(HttpHeaders.LOCATION, endsWith("/oauth2/authorization/custom")) .returnResult(Void.class); // redirects to 'custom' OAuth authorization endpoint String cookieSession = result.getResponseCookies() .getFirst("JSESSIONID") .getValue(); String redirectTarget = result.getResponseHeaders() .getFirst(HttpHeaders.LOCATION); result = this.webTestClient.get() .uri(redirectTarget) .cookie("JSESSIONID", cookieSession) .exchange() .expectStatus() .isFound() .expectHeader() .value(HttpHeaders.LOCATION, startsWith(authServerAuthorizationURL)) .returnResult(Void.class); // request to authorization endpoint contains state attribute String authorizationURL = result.getResponseHeaders() .getFirst(HttpHeaders.LOCATION); String state = URLDecoder.decode(authorizationURL.split("state=")[1].split("&")[0], StandardCharsets.UTF_8.toString()); // prepare Access Token mocked response String accessToken = "abc987"; // @formatter:off String mockedAccessToken = "{" + " \"access_token\": \"" + accessToken + "\"," + " \"token_type\": \"bearer\"," + " \"expires_in\": 3600" + "}"; // @formatter:on authServer.enqueue(new MockResponse().setBody(mockedAccessToken) .addHeader(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE)); // prepare UserInfo mocked response // @formatter:off String mockedUserInfo = "{" + " \"preferred_username\": \"theUsername\"" + "}"; // @formatter:on authServer.enqueue(new MockResponse().setBody(mockedUserInfo) .addHeader(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE)); // send request to redirect_uri with code and state String code = "123"; result = this.webTestClient.get() .uri(String.format(REDIRECT_URI, state, code)) .cookie("JSESSIONID", cookieSession) .exchange() .expectStatus() .isFound() .expectHeader() .value(HttpHeaders.LOCATION, endsWith(CLIENT_SECURED_URL)) .returnResult(Void.class); // assert that Access Token Endpoint was requested as expected RecordedRequest capturedTokenRequest = authServer.takeRequest(); assertThat(capturedTokenRequest.getMethod()).isEqualTo(HttpMethod.POST.name()); String tokenEndpointPath = new URI(configuredTokenUri).getPath(); assertThat(capturedTokenRequest.getPath()).isEqualTo(tokenEndpointPath); String requestBody = URLDecoder.decode(capturedTokenRequest.getBody() .readUtf8(), StandardCharsets.UTF_8.name()); Map<String, String> mappedBody = Arrays.stream(requestBody.split("&")) .collect(Collectors.toMap(param -> param.split("=")[0], param -> param.split("=")[1])); assertThat(mappedBody).containsEntry("grant_type", "authorization_code"); assertThat(mappedBody).containsEntry("code", code); assertThat(mappedBody).containsEntry("redirect_uri", configuredRedirectUri); // assert UserInfo request RecordedRequest capturedUserInfoRequest = authServer.takeRequest(); assertThat(capturedUserInfoRequest.getMethod()).isEqualTo(HttpMethod.GET.name()); String userInfoPath = new URI(configuredUserInfoUri).getPath(); assertThat(capturedUserInfoRequest.getPath()).isEqualTo(userInfoPath); assertThat(capturedUserInfoRequest.getHeader(HttpHeaders.AUTHORIZATION)).isEqualTo("Bearer " + accessToken); String mockedResources = "[{\"id\":1,\"name\":\"Foo 1\"},{\"id\":2, \"name\":\"Foo 2\",\"dateCreated\":\"2019-06-14\"},{\"id\":3,\"name\":\"Foo 3\",\"dateCreated\":\"2019-06-15\"}]"; resourceServer.enqueue(new MockResponse().setBody(mockedResources) .addHeader(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE)); // now we're redirected back to the /foos endpoint // when accessing it, Client should send Access Token as Bearer token in header String newCookieSession = result.getResponseCookies() .getFirst("JSESSIONID") .getValue(); this.webTestClient.get() .uri(CLIENT_SECURED_URL) .cookie("JSESSIONID", newCookieSession) .exchange() .expectStatus() .isOk() .expectBody() .consumeWith(response -> { String bodyAsString = new String(response.getResponseBodyContent()); assertThat(bodyAsString).contains("Foo 1") .contains("Foo 2") .contains("Foo 3") .doesNotContain("Foo 4"); }); RecordedRequest capturedFooRequest = resourceServer.takeRequest(); assertThat(capturedFooRequest.getMethod()).isEqualTo(HttpMethod.GET.name()); String foosPath = new URI(foosUrl).getPath(); assertThat(capturedFooRequest.getPath()).isEqualTo(foosPath); assertThat(capturedFooRequest.getHeader(HttpHeaders.AUTHORIZATION)).isEqualTo("Bearer " + accessToken); } @Test public void whenUnauthorized_thenRedirect() throws Exception { this.webTestClient.get() .uri(CLIENT_SECURED_URL) .exchange() .expectStatus() .is3xxRedirection(); } } ```
/content/code_sandbox/oauth-rest/oauth-client-spring/src/test/java/com/baeldung/client/Oauth2ClientIntegrationTest.java
java
2016-03-02T09:04:07
2024-08-06T03:02:12
spring-security-oauth
Baeldung/spring-security-oauth
1,982
2,056
```java package com.baeldung.client.web.model; public class FooModel { private Long id; private String name; public FooModel() { } public FooModel(Long id, String name) { super(); this.id = id; this.name = name; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((id == null) ? 0 : id.hashCode()); result = prime * result + ((name == null) ? 0 : name.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; FooModel other = (FooModel) obj; if (id == null) { if (other.id != null) return false; } else if (!id.equals(other.id)) return false; if (name == null) { if (other.name != null) return false; } else if (!name.equals(other.name)) return false; return true; } @Override public String toString() { return "Foo [id=" + id + ", name=" + name + "]"; } } ```
/content/code_sandbox/oauth-rest/oauth-client-spring/src/main/java/com/baeldung/client/web/model/FooModel.java
java
2016-03-02T09:04:07
2024-08-06T03:02:12
spring-security-oauth
Baeldung/spring-security-oauth
1,982
337
```java package com.baeldung.auth.config; import java.util.NoSuchElementException; import org.keycloak.Config; import org.keycloak.exportimport.ExportImportManager; import org.keycloak.models.KeycloakSession; import org.keycloak.representations.idm.RealmRepresentation; import org.keycloak.services.managers.ApplianceBootstrap; import org.keycloak.services.managers.RealmManager; import org.keycloak.services.resources.KeycloakApplication; import org.keycloak.services.util.JsonConfigProviderFactory; import org.keycloak.util.JsonSerialization; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.core.io.ClassPathResource; import org.springframework.core.io.Resource; import com.baeldung.auth.config.KeycloakServerProperties.AdminUser; public class EmbeddedKeycloakApplication extends KeycloakApplication { private static final Logger LOG = LoggerFactory.getLogger(EmbeddedKeycloakApplication.class); static KeycloakServerProperties keycloakServerProperties; protected void loadConfig() { JsonConfigProviderFactory factory = new RegularJsonConfigProviderFactory(); Config.init(factory.create() .orElseThrow(() -> new NoSuchElementException("No value present"))); } @Override protected ExportImportManager bootstrap() { final ExportImportManager exportImportManager = super.bootstrap(); createMasterRealmAdminUser(); createBaeldungRealm(); return exportImportManager; } private void createMasterRealmAdminUser() { KeycloakSession session = getSessionFactory().create(); ApplianceBootstrap applianceBootstrap = new ApplianceBootstrap(session); AdminUser admin = keycloakServerProperties.getAdminUser(); try { session.getTransactionManager().begin(); applianceBootstrap.createMasterRealmUser(admin.getUsername(), admin.getPassword()); session.getTransactionManager().commit(); } catch (Exception ex) { LOG.warn("Couldn't create keycloak master admin user: {}", ex.getMessage()); session.getTransactionManager().rollback(); } session.close(); } private void createBaeldungRealm() { KeycloakSession session = getSessionFactory().create(); try { session.getTransactionManager().begin(); RealmManager manager = new RealmManager(session); Resource lessonRealmImportFile = new ClassPathResource(keycloakServerProperties.getRealmImportFile()); manager.importRealm( JsonSerialization.readValue(lessonRealmImportFile.getInputStream(), RealmRepresentation.class)); session.getTransactionManager().commit(); } catch (Exception ex) { LOG.warn("Failed to import Realm json file: {}", ex.getMessage()); session.getTransactionManager().rollback(); } session.close(); } } ```
/content/code_sandbox/oauth-rest/oauth-authorization-server/src/main/java/com/baeldung/auth/config/EmbeddedKeycloakApplication.java
java
2016-03-02T09:04:07
2024-08-06T03:02:12
spring-security-oauth
Baeldung/spring-security-oauth
1,982
520
```java package com.baeldung.client; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class ClientSpringApp { public static void main(String[] args) { SpringApplication.run(ClientSpringApp.class, args); } } ```
/content/code_sandbox/oauth-rest/oauth-client-spring/src/main/java/com/baeldung/client/ClientSpringApp.java
java
2016-03-02T09:04:07
2024-08-06T03:02:12
spring-security-oauth
Baeldung/spring-security-oauth
1,982
52
```html <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Spring OAuth Client Thymeleaf</title> <link rel="stylesheet" href="path_to_url" /> </head> <body> <nav class="navbar navbar-expand-lg navbar-light bg-light shadow-sm p-3 mb-5"> <a class="navbar-brand" th:href="@{/foos/}">Spring OAuth Client Thymeleaf</a> <ul class="navbar-nav ml-auto"> <li class="navbar-text">Hi, <span sec:authentication="name">username</span> </li> <li class="nav-item"><a href="/oauth-client-spring/logout" class="btn btn-outline-secondary">Logout</a></li> </ul> </nav> <div class="container"> <h1>Foos : View all</h1> <a th:href="@{/addfoo}" class="btn btn-primary float-right">Create Foo</a> <table class="table table-bordered table-striped"> <thead> <tr> <td>ID</td> <td>Name</td> </tr> </thead> <tbody> <tr th:if="${foos.empty}"> <td colspan="4">No foos</td> </tr> <tr th:each="foo : ${foos}"> <td><span th:text="${foo.id}"> ID </span></td> <td><span th:text="${foo.name}"> Name </span></td> </tr> </tbody> </table> </div> </body> </html> ```
/content/code_sandbox/oauth-rest/oauth-client-spring/src/main/resources/templates/foos.html
html
2016-03-02T09:04:07
2024-08-06T03:02:12
spring-security-oauth
Baeldung/spring-security-oauth
1,982
370
```yaml server: port: 8083 spring: jpa: defer-datasource-initialization: true datasource: username: sa url: jdbc:h2:mem:customdb;DB_CLOSE_ON_EXIT=FALSE keycloak: server: contextPath: /auth adminUser: username: bael-admin password: pass realmImportFile: baeldung-realm.json ```
/content/code_sandbox/oauth-rest/oauth-authorization-server/src/main/resources/application.yml
yaml
2016-03-02T09:04:07
2024-08-06T03:02:12
spring-security-oauth
Baeldung/spring-security-oauth
1,982
94
```java package com.baeldung.auth.config; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import javax.naming.CompositeName; import javax.naming.InitialContext; import javax.naming.Name; import javax.naming.NameParser; import javax.naming.NamingException; import javax.naming.spi.NamingManager; import javax.sql.DataSource; import org.jboss.resteasy.plugins.server.servlet.HttpServlet30Dispatcher; import org.jboss.resteasy.plugins.server.servlet.ResteasyContextParameters; import org.keycloak.platform.Platform; import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; import org.springframework.boot.web.servlet.FilterRegistrationBean; import org.springframework.boot.web.servlet.ServletRegistrationBean; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @Configuration public class EmbeddedKeycloakConfig { @Bean ServletRegistrationBean<HttpServlet30Dispatcher> keycloakJaxRsApplication( KeycloakServerProperties keycloakServerProperties, DataSource dataSource) throws Exception { mockJndiEnvironment(dataSource); EmbeddedKeycloakApplication.keycloakServerProperties = keycloakServerProperties; ServletRegistrationBean<HttpServlet30Dispatcher> servlet = new ServletRegistrationBean<>( new HttpServlet30Dispatcher()); servlet.addInitParameter("jakarta.ws.rs.Application", EmbeddedKeycloakApplication.class.getName()); servlet.addInitParameter(ResteasyContextParameters.RESTEASY_SERVLET_MAPPING_PREFIX, keycloakServerProperties.getContextPath()); servlet.addInitParameter(ResteasyContextParameters.RESTEASY_USE_CONTAINER_FORM_PARAMS, "true"); servlet.addUrlMappings(keycloakServerProperties.getContextPath() + "/*"); servlet.setLoadOnStartup(1); servlet.setAsyncSupported(true); return servlet; } @Bean FilterRegistrationBean<EmbeddedKeycloakRequestFilter> keycloakSessionManagement(KeycloakServerProperties keycloakServerProperties) { FilterRegistrationBean<EmbeddedKeycloakRequestFilter> filter = new FilterRegistrationBean<>(); filter.setName("Keycloak Session Management"); filter.setFilter(new EmbeddedKeycloakRequestFilter()); filter.addUrlPatterns(keycloakServerProperties.getContextPath() + "/*"); return filter; } private void mockJndiEnvironment(DataSource dataSource) throws NamingException { NamingManager.setInitialContextFactoryBuilder((env) -> (environment) -> new InitialContext() { @Override public Object lookup(Name name) { return lookup(name.toString()); } @Override public Object lookup(String name) { if ("spring/datasource".equals(name)) { return dataSource; } else if (name.startsWith("java:jboss/ee/concurrency/executor/")) { return fixedThreadPool(); } return null; } @Override public NameParser getNameParser(String name) { return CompositeName::new; } @Override public void close() { // NOOP } }); } @Bean("fixedThreadPool") public ExecutorService fixedThreadPool() { return Executors.newFixedThreadPool(5); } @Bean @ConditionalOnMissingBean(name = "springBootPlatform") protected SimplePlatformProvider springBootPlatform() { return (SimplePlatformProvider) Platform.getPlatform(); } } ```
/content/code_sandbox/oauth-rest/oauth-authorization-server/src/main/java/com/baeldung/auth/config/EmbeddedKeycloakConfig.java
java
2016-03-02T09:04:07
2024-08-06T03:02:12
spring-security-oauth
Baeldung/spring-security-oauth
1,982
681
```html <!doctype html> <html> <head> <meta charset="utf-8"> <title>Authorization Code</title> <base href="/"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="path_to_url"/> </head> <body> <app-root>Loading...</app-root> </body> </html> ```
/content/code_sandbox/oauth-rest/oauth-ui-authorization-code-angular/src/main/resources/src/index.html
html
2016-03-02T09:04:07
2024-08-06T03:02:12
spring-security-oauth
Baeldung/spring-security-oauth
1,982
84
```html <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Spring OAuth Client Thymeleaf</title> <link rel="stylesheet" href="path_to_url" /> </head> <body> <nav class="navbar navbar-expand-lg navbar-light bg-light shadow-sm p-3 mb-5"> <a class="navbar-brand" th:href="@{/foos/}">Spring OAuth Client Thymeleaf</a> </nav> <div class="container"> <label>Welcome ! </label> <br /> <a th:href="@{/foos/}" class="btn btn-primary">Login</a> </div> </body> </html> ```
/content/code_sandbox/oauth-rest/oauth-client-spring/src/main/resources/templates/index.html
html
2016-03-02T09:04:07
2024-08-06T03:02:12
spring-security-oauth
Baeldung/spring-security-oauth
1,982
160
```java package com.baeldung.auth.config; import java.io.UnsupportedEncodingException; import jakarta.servlet.Filter; import jakarta.servlet.FilterChain; import jakarta.servlet.ServletRequest; import jakarta.servlet.ServletResponse; import jakarta.servlet.http.HttpServletRequest; import org.keycloak.common.ClientConnection; import org.keycloak.services.filters.AbstractRequestFilter; public class EmbeddedKeycloakRequestFilter extends AbstractRequestFilter implements Filter { @Override public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws UnsupportedEncodingException { servletRequest.setCharacterEncoding("UTF-8"); ClientConnection clientConnection = createConnection((HttpServletRequest) servletRequest); filter(clientConnection, (session) -> { try { filterChain.doFilter(servletRequest, servletResponse); } catch (Exception e) { throw new RuntimeException(e); } }); } private ClientConnection createConnection(HttpServletRequest request) { return new ClientConnection() { @Override public String getRemoteAddr() { return request.getRemoteAddr(); } @Override public String getRemoteHost() { return request.getRemoteHost(); } @Override public int getRemotePort() { return request.getRemotePort(); } @Override public String getLocalAddr() { return request.getLocalAddr(); } @Override public int getLocalPort() { return request.getLocalPort(); } }; } } ```
/content/code_sandbox/oauth-rest/oauth-authorization-server/src/main/java/com/baeldung/auth/config/EmbeddedKeycloakRequestFilter.java
java
2016-03-02T09:04:07
2024-08-06T03:02:12
spring-security-oauth
Baeldung/spring-security-oauth
1,982
304
```java package com.baeldung.auth.config; import org.springframework.boot.context.properties.ConfigurationProperties; @ConfigurationProperties(prefix = "keycloak.server") public class KeycloakServerProperties { String contextPath = "/auth"; String realmImportFile = "baeldung-realm.json"; AdminUser adminUser = new AdminUser(); public String getContextPath() { return contextPath; } public void setContextPath(String contextPath) { this.contextPath = contextPath; } public AdminUser getAdminUser() { return adminUser; } public void setAdminUser(AdminUser adminUser) { this.adminUser = adminUser; } public String getRealmImportFile() { return realmImportFile; } public void setRealmImportFile(String realmImportFile) { this.realmImportFile = realmImportFile; } public static class AdminUser { String username = "admin"; String password = "admin"; public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } } } ```
/content/code_sandbox/oauth-rest/oauth-authorization-server/src/main/java/com/baeldung/auth/config/KeycloakServerProperties.java
java
2016-03-02T09:04:07
2024-08-06T03:02:12
spring-security-oauth
Baeldung/spring-security-oauth
1,982
262
```java package com.baeldung.client.spring; import org.springframework.context.annotation.Bean; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; import org.springframework.security.oauth2.client.registration.ClientRegistrationRepository; import org.springframework.security.oauth2.client.web.OAuth2AuthorizedClientRepository; import org.springframework.security.oauth2.client.web.reactive.function.client.ServletOAuth2AuthorizedClientExchangeFilterFunction; import org.springframework.security.web.SecurityFilterChain; import org.springframework.web.reactive.function.client.WebClient; @EnableWebSecurity public class ClientSecurityConfig { @Bean public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {// @formatter:off http.authorizeHttpRequests(authorize -> authorize.antMatchers("/").permitAll() .anyRequest().authenticated()) .oauth2Login() .and() .logout().logoutSuccessUrl("/"); return http.build(); }// @formatter:on @Bean WebClient webClient(ClientRegistrationRepository clientRegistrationRepository, OAuth2AuthorizedClientRepository authorizedClientRepository) { ServletOAuth2AuthorizedClientExchangeFilterFunction oauth2 = new ServletOAuth2AuthorizedClientExchangeFilterFunction(clientRegistrationRepository, authorizedClientRepository); oauth2.setDefaultOAuth2AuthorizedClient(true); return WebClient.builder() .apply(oauth2.oauth2Configuration()) .build(); } } ```
/content/code_sandbox/oauth-rest/oauth-client-spring/src/main/java/com/baeldung/client/spring/ClientSecurityConfig.java
java
2016-03-02T09:04:07
2024-08-06T03:02:12
spring-security-oauth
Baeldung/spring-security-oauth
1,982
279
```html <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Spring OAuth Client Thymeleaf</title> <link rel="stylesheet" href="path_to_url" /> </head> <body> <nav class="navbar navbar-expand-lg navbar-light bg-light shadow-sm p-3 mb-5"> <a class="navbar-brand" th:href="@{/foos/}">Spring OAuth Client Thymeleaf</a> <ul class="navbar-nav ml-auto"> <li class="navbar-text">Hi, <span sec:authentication="name">username</span>&nbsp;&nbsp;&nbsp; </li> <li class="nav-item"><a href="/oauth-client-spring/logout" class="btn btn-outline-secondary">Logout</a></li> </ul> </nav> <div class="container"> <h1>Foos : Create</h1> <div class="alert alert-danger" role="alert" th:if="${msg}" th:text="${msg}">Error Occurred</div> <form th:object="${foo}" th:action="@{/foos}" method="post"> <div class="form-group row"> <label for="name" class="col-sm-1 col-form-label">Name</label> <div class="col-sm-10"> <input type="text" class="col-sm-6 form-control" id="name" th:field="*{name}" /> </div> </div> <button type="submit" class="btn btn-primary">Create Foo</button> </form> </div> </body> </html> ```
/content/code_sandbox/oauth-rest/oauth-client-spring/src/main/resources/templates/addfoo.html
html
2016-03-02T09:04:07
2024-08-06T03:02:12
spring-security-oauth
Baeldung/spring-security-oauth
1,982
369