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
/* | |
ASCII table | |
- przykład bazujący na programie dla Arduino, tutaj jednak dane wyswietlane są za pomoca modułu Serial LCD | |
(http://wileczeknet.blogspot.com/2013/01/programowanie-avr-cz-7-mikroprocesorowy.html oraz | |
http://wileczeknet.blogspot.com/2013/06/programowanie-avr-cz-10-modyfikacja.html) | |
- wyświetlanie tablicy kodów ASCII po naciśnięciu niebieskiego przycisku. | |
*/ | |
#include "mbed.h" | |
#define byte unsigned char |
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) | |
Wersja dla płytki prototypowej NUCLEO-L152RE (ARM®32-bit Cortex®-M3 CPU) | |
Programik do testowania modułu wyświetlacza szeregowego 16*2. | |
Dodatkowy sprzęt: |
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
/* | |
ASCII table | |
- przykład bazujący na programie dla Arduino, tutaj jednak dane wyswietlane są za pomoca modułu Serial LCD | |
(http://wileczeknet.blogspot.com/2013/01/programowanie-avr-cz-7-mikroprocesorowy.html oraz | |
http://wileczeknet.blogspot.com/2013/06/programowanie-avr-cz-10-modyfikacja.html) | |
*/ | |
#include "mbed.h" | |
#define byte unsigned char | |
// Stałe komend sterownika wyświetlacza |
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
$regfile = "attiny2313.dat" | |
$crystal = 4000000 | |
$hwstack = 40 | |
$swstack = 16 | |
$framesize = 32 | |
Const Podstawa_licznika = 65536 | |
Config Timer1 = Counter , Edge = Rising | |
On Timer1 Licznik |
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 moduł pomiaru temperatury wewnątrz obudowy PC | |
' - ATmega48P @ 8MHz intern. | |
' - LM35 (0-100 st. C) | |
' - LCD HD44780 16*1a (16 znaków, 1 wiersz dzielony logicznie na pół) | |
' - zasilanie z PC | |
' - pobór prądu przy 5V i włączonym podświetleniu LCD (z rezystorem 33Ohm): | |
' max 40mA | |
$regfile = "m48pdef.dat" | |
$crystal = 8000000 |
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
' Zegar czasu rzeczywistego z wyświetlaczem LED 7-segm. | |
' - wersja odrobinę zoptymalizowana | |
$regfile = "attiny2313.dat" | |
$crystal = 4000000 | |
$hwstack = 40 | |
$swstack = 16 | |
$framesize = 32 | |
'Config Timer1 = Timer , Prescale = 1 |
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
' Zegar czasu rzeczywistego z wyświetlaczem LED 7-segm. | |
' - wersja prymitywna | |
$regfile = "attiny2313.dat" | |
$crystal = 4000000 | |
$hwstack = 40 | |
$swstack = 16 | |
$framesize = 32 | |
'Config Timer1 = Timer , Prescale = 1 |
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
' Zegar czasu rzeczywistego z wyświetlaczem LED 7-segm. | |
' - wersja prymitywna | |
$regfile = "attiny2313.dat" | |
$Crystal=4000000 | |
$hwstack=40 | |
$swstack=16 | |
$framesize=32 | |
'Config Timer1 = Timer , Prescale = 1 |
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
$regfile = "attiny2313.dat" | |
$crystal = 4000000 | |
$hwstack = 40 | |
$swstack = 16 | |
$framesize = 32 | |
Dim Sekundy As Byte | |
Dim Minuty As Byte | |
Dim Godziny As Byte |
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
$regfile = "attiny2313.dat" | |
$crystal = 4000000 | |
$hwstack = 40 | |
$swstack = 16 | |
$framesize = 32 | |
Dim Sekundy As Byte | |
Dim Minuty As Byte | |
Dim Godziny As Byte |