![]() I have looked at the U8glib and have located the appropriate line to "uncomment" but need the above to be clarified first. I also presume that pins DB0 - DB7 on the GLCD will be connected to Mega2560 digital pins (say) 21 - 27? I understand the GPIO ports on the Mega2560 to be TX/RX pairs - pins 14 to 19?Īre you suggesting that 'E' should connect to (say) TX3 (Pin 14) 'RW' connects to RX3 (Pin 15) 'RS' to TX2 (Pin 16) 'RST' to RX2 (Pin 17)? ![]() connect E, RW, RS and RST with some GPIO ports of your board. I am however a tad confused with some of what you have said, eg, ". I have, I believe thoroughly chceked(?) both the Arduino and Adafruit sites but to no avail? I hope someone can please put me out of my misery and point me in the right direction. Pin 1 - GND Pin 2 - Vcc Pin 3 - Vo Pin 4 - RS Pin 5 - R/W Pin 6 - E Pin 7 to Pin 14 - DB0 to DB7 Pin 15 - PSB (Parallel-H/serial-L select) Pin 16 - NC Pin - 17 RST Pin 18 - Vout (from internal voltage doubler) BLA (Backlight annode) Pin 20 - BLK (Cathode). The correct pinout for my 128圆4 GLCD which carries the only identifying feature of J12864 followed by two chinese characters is: I have located the Datasheet, (DS) for the ST7920 controller - and readers looking for this information need to be aware there are various publication dates for this specific DS ranging from Oct 2002 to Aug 2008 and possibly later as well, and they can be substantially different or don't include the same pin assignments - which adds to both the difficulty in trying to nut this out yourself and creates even more confusion since almost all these "other" GLCD's use two pins, CS1 & CS2 instead of a single pin, E? Or the information that is available is only discernable by one who is fully conversant with the programming languages. There are numerous sketches and very different 128圆4 GCLD's Controllers out there BUT none seem to be for the above combination. The full Pinout for the Mega2560 Board connecting this GLCD.Complete sketch (from start to end) using ST7920 Controller for this Parallel/serial selectable GLCD (128圆4) according to this GLCD's specific pinouts (see below) and.tTextWrap(false) // Don't wrap at end of line - will do ourselves Matrix.drawLine(34,1,34,9,colorRed) // red vert 2 row 2 Matrix.drawLine(14,1,14,9,colorRed) // red vert 1 row 1 Matrix.drawLine(1, 20, matrix.width()-8,20,colorRed) // red horiz line 2 ![]() Matrix.drawLine(1, 10, matrix.width()-2,10,colorRed) // red horiz line 1 Matrix.drawRect(0, 0, matrix.width(),matrix.height(), colorGreen) // green frame virtual serial port bluetooth configuration RGBmatrixPanel matrix(A, B, C, D, CLK, LAT, OE, false, 64) Int BreakerRackBalls,RackInnings,RackDeads,RackerRackBalls Int BreakerMatchBalls,MatchInnings,MatchDeads,RackerMatchBalls Int colorRed, colorBlue, colorBlack, colorGreen, colorWhite Most forum members use smart phones and tablets to view the forum most of the time, and can't open. ![]() If you want forum members to read your code, its best to post it in line, between code tags, like below and as described in the forum guide in the "please read" sticky post.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |