This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' Stałe używane przez sterownik | |
Const Clean = 255 | |
Const Cleft = 254 | |
Const Cright = 253 | |
Const Con = 252 | |
Const Coff = 251 | |
Const Cblink = 250 | |
Const Cnoblink = 249 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' Demonstracja modulacji szerokości impulsu (PWM) i wbudowanego | |
' przetwornika analogowo-cyfrowego MCU ATmega48P | |
$regfile = "m48pdef.dat" | |
$crystal = 4000000 | |
$hwstack = 40 | |
$swstack = 16 | |
$framesize = 32 | |
' Plik z definicjami stałych używanych do sterowania modułem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' Prosty termometr, wykorzystujący wbudowany czujnik temperatury | |
' mikrokontrolera ATmega48P | |
$regfile = "m48pdef.dat" | |
$crystal = 4000000 | |
$hwstack = 40 | |
$swstack = 16 | |
$framesize = 32 | |
' Plik z definicjami stałych używanych do sterowania modułem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' Prosty termometr wykorzystujący układ LM35DZ | |
' (analogowy czujnik temperatury 0 - 100 st. C) | |
' Założenie: 16 diod pokazuje 48 + 3 st. C (jedna dioda co 3 stopnie) | |
' [ dodatkowo odczyt kontrolny na wyświetlaczu LCD (moduł wyświetlacza sterowany przez UART) ] | |
$regfile = "m48pdef.dat" | |
$crystal = 4000000 | |
$hwstack = 40 | |
$swstack = 16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Demo "Znaki ASCII" | |
- modyfikacja programu "ASCIITable" z przykładów załączonych do IDE Arduino. | |
Program wyświetla w pętli kolejne znaki od "!" do "~" oraz ich kody ASCII | |
w systemie dziesiętnym, szesnastkowym i binarnym. | |
Dodatkowy sprzęt: | |
- moduł szeregowego wyświetlacza alfanumerycznego (http://wileczeknet.blogspot.com/2013/01/programowanie-avr-cz-7-mikroprocesorowy.html) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Pilot do apartów fotograficznych (lustrzanek) Nikon. | |
* Przetestowany z modelem D40. | |
* | |
* Program wzorowany na projekcie ze strony: | |
* http://majsterkowo.pl/elektronika-dla-artystow-czyli-pilot-ir-do-nikona/ | |
* | |
* Hardware: | |
* - MCU ATtiny 2313 @16MHz | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' LED Cube 4^3: Efekty specjalne - demonstracja | |
' Kostka składa się z czterech poziomych warstw diod LED. Każda warstwa | |
' posiada wspólną katodę, a diody w obrębie warstwy załączane są poprzez | |
' podanie napięcia na anodę (tym razem pojedynczej diody; innymi słowy kolumny | |
' kostki mają wspólne anody). | |
' Schemat podłączenia diod LED do portów B i D dla każdej warstwy: | |
' | |
' D0--D1--D2--D3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' Stałe używane przez sterownik | |
Const Clean = 255 | |
Const Cleft = 254 | |
Const Cright = 253 | |
Const Con = 252 | |
Const Coff = 251 | |
Const Cblink = 250 | |
Const Cnoblink = 249 | |
Const Cupline = 248 | |
Const Cdownline = 247 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Latająca małpa ;-) | |
Klasyka... | |
(http://wileczeknet.blogspot.com/2012/04/programowanie-mikrokontrolerow-avr-cz-1.html) | |
Programik do testowania modułu wyświetlacza szeregowego 16*2. | |
Dodatkowy sprzęt: | |
- moduł szeregowego wyświetlacza alfanumerycznego (http://wileczeknet.blogspot.com/2013/01/programowanie-avr-cz-7-mikroprocesorowy.html) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' LED Cube 4^3: Efekty specjalne - demonstracja | |
' Kostka składa się z czterech poziomych warstw diod LED. Każda wartwa | |
' posiada wspólną katodę, a diody w obrębie warstwy załączane są poprzez | |
' podanie napięcia na anodę (tym razem pojedynczej diody; innymi słowy kolumny | |
' kostki mają wspólne anody). | |
' Schemat podłączenia diod LED do portów B i D dla każdej warstwy: | |
' | |
' D0--D1--D2--D3 |