-variables:- int seconds= 0 //seconds counter String number //String to be sent to the display. #define BITTIME 93 // Adjusted with osciloscope to obtain 9600 bauds. #define TXDATA 1 // Pin used to transmit data. */ //- defining bit banging serial values:. Example using the Trinket from Adafruit (5V, 8 Mhz) and Serial LCD Module 16x2 from NKC Electronics. Bit Banging Serial transmission at 9600 bauds. Sketch with string functions: /* Test_LCD.ino 16 FEB 2014 Binary sketch size: 3,634 bytes (of a 5,310 byte maximum) A timer is implemented presenting minutes and seconds elapsed since start. env/bin/activate pip3 install adafruit-circuitpython-midi. The first Sketch with string functions use 3,634 bytes, the second Sketch, avoiding string functions, use 1,362 bytes. Windows users need to use a driver to make a serial port connection. Testing the bit bang serial transmission to connect the Trinket with the Serial LCD Module 16×2 from NKC Electronics.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |