bluehash 1,581 Posted February 13, 2012 Author Share Posted February 13, 2012 What's your conversion process? Those fonts look snappy! Quote Link to post Share on other sites
mctouch 5 Posted February 14, 2012 Share Posted February 14, 2012 I am using the new USCI framework on a G2553 and all is working fine after I moved the solder jumpers to the new pin allocations. Thanks gwdeveloper, this is amazing My only issue is I don't quite understand what I need to do to create the graphics. I am using LCD Assistant to generate the bitmap from the original source 128x64 mono color file. I exported with Vertical Byte Orientation and Big Endianness at 8 pixels per byte and included the size in the output. http://pastie.org/3379995 It should look like this http://pic.twitter.com/cTx112UV but has converted to Kanji http://pic.twitter.com/z70zt5B6 edited main.c to include imageDraw(tabtoumono, 0, 0); It starts at the right column but inverts the image in each page. I added it to icons.h and removed the preceding 0x00 from the size . const unsigned char tabtoumono [] = { 0x80, // 0x40, // 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0xC0, 0xE0, ...}; Quote Link to post Share on other sites
gwdeveloper 275 Posted February 14, 2012 Share Posted February 14, 2012 Glad this is working out for you. Along with the G2553, I've also tested it on the FR5739, F5529, and F2274. The image conversion software is based from the Image converter included with the F5529 User Experience. The included software only does 102x64 images though. I modified the java source and recompiled to allow for 96x16, 128x64, 128x128 and 160x128. [attachment=0]kanji1.jpg[/attachment] How about trying this? static const char kanji[] = { 0x80, // Image width in pixels 0x08, // Image height in rows (1 row = 8 pixels) 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x03, 0x07, 0x0f, 0x0e, 0x1c, 0x3c, 0x78, 0x70, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x1f, 0x3f, 0x39, 0x70, 0xf0, 0xe0, 0xc0, 0x80, 0x81, 0x03, 0x03, 0x07, 0x07, 0x06, 0x07, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x03, 0x03, 0x0f, 0xff, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xc0, 0xc0, 0xe0, 0xe0, 0xe0, 0xe0, 0xc0, 0xc0, 0xc0, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x03, 0x07, 0x0f, 0x0e, 0x1c, 0x1c, 0x38, 0x38, 0x70, 0x70, 0xe0, 0xe0, 0xc0, 0x80, 0x80, 0x00, 0x00, 0x00, 0x18, 0x18, 0x18, 0x18, 0x18, 0x1f, 0x1f, 0x18, 0x18, 0x18, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x0f, 0x1f, 0x1c, 0x18, 0x18, 0x18, 0x1c, 0x1f, 0x0f, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1f, 0x1f, 0x1f, 0x19, 0x19, 0x19, 0x19, 0x1f, 0x1f, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x18, 0x18, 0x18, 0x1f, 0x1f, 0x18, 0x18, 0x18, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x07, 0x0f, 0x0e, 0x1c, 0x18, 0x18, 0x18, 0x18, 0x1c, 0x1c, 0x0e, 0x0f, 0x07, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1f, 0x1f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0xfc, 0xfc, 0x8c, 0x8c, 0x8c, 0x8c, 0xcc, 0xfc, 0xf8, 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0xf0, 0xf8, 0x38, 0x1c, 0x0c, 0x0c, 0x0c, 0x0c, 0x1c, 0x1c, 0x38, 0xf8, 0xf0, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0xf8, 0x3c, 0x1c, 0x0c, 0x0c, 0x0c, 0x1c, 0xfc, 0xf8, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x03, 0x03, 0x03, 0x03, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0xe0, 0xf0, 0x38, 0x38, 0x1c, 0x1c, 0x0e, 0x0e, 0x07, 0x07, 0x03, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0xfc, 0xfe, 0xce, 0x87, 0x83, 0x83, 0x81, 0xc0, 0xc0, 0xe0, 0xe0, 0x70, 0x70, 0x30, 0xf0, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0xc0, 0xe0, 0xe0, 0x70, 0x7f, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xc0, 0xe0, 0xe0, 0x70, 0x78, 0x3c, 0x1c, 0x0e, 0x0f, 0x07, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; Quote Link to post Share on other sites
mctouch 5 Posted February 14, 2012 Share Posted February 14, 2012 Wow, thanks, that worked.... I now have an MSP430 Businesscard , never saw an image converter in the F5529 User Experience package, I will have a dig around unless your altered source is available for download. I would like to have a go at porting the 'Fly and Shoot' demo in the QP State-Machine library, its for ARM-3 Cortext but QP-Nano supports MSP430. Turn the OLED Booster Pack into a 'Shootem up Shield'. http://www.state-machine.com/doxygen/qpc/lets_play.html http://www.state-machine.com/qp/index.php Thanks gwdeveloper Quote Link to post Share on other sites
gwdeveloper 275 Posted February 14, 2012 Share Posted February 14, 2012 I believe that game (or something very similar) is already ported to the msp430. It's something else that's also included in the F5529 User Experience. TI calls it "Launchpad Defender". http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSPEXP430F5529UE/latest/index_FDS.html Quote Link to post Share on other sites
gwdeveloper 275 Posted February 16, 2012 Share Posted February 16, 2012 Here's one more video. I'm sorting out some details on the graphics library and creating a few more fonts. Mostly numerals and not much text. The Tron Styled font in the video is 32x32. I might create a 32x64 for a scrolling text (possibly twitter?) display. This is a simple, digital clock using the Tron numerals. Those are supposed to be light cycles "racing" and tic-tocking across the top. I'll blame my poor 8-bit graphics on the focus of the camera. http://www.youtube.com/watch?v=GQBEuQHildw The ram of the G2553 is about topped out. It won't run calculations for using a thermistor. RobG and bluehash 2 Quote Link to post Share on other sites
bluehash 1,581 Posted February 16, 2012 Author Share Posted February 16, 2012 hehe.... I love the light cycles. You seriously have taken this to the next level. Thanks! Quote Link to post Share on other sites
mctouch 5 Posted February 17, 2012 Share Posted February 17, 2012 I don't know whether you have seen this but Markus Gritsch did Frame Buffer for Arduino for the SSD1308. There seems to be some inline Assembler in his driver, it is very very fast. The C source is attached in the link. http://dangerousprototypes.com/forum/viewtopic.php?f=56&t=2609 gwdeveloper 1 Quote Link to post Share on other sites
gwdeveloper 275 Posted February 17, 2012 Share Posted February 17, 2012 Yes, I have plans for a frame buffer. Unfortunately, it's not going to use internal RAM of the G2553. The G2553 is limited to 512B where the ATmega328P(arduino) has 2K. Markus' code uses a 1K frame buffer which won't work for this situation. My implementations on the F5529 and FR5739 already have a basic frame buffer. Using the frame buffer does speed things a bit but also makes for a better display. For example; drawing an outline around the display requires using columns 0 and 127 fully, and only 1 bit of each column on pages 0 and 7. Without a frame buffer, writing text to pages 0 or 7 erase the outline even though the font data leaves the 2 LSB and 2 MSB alone. Using a frame buffer, the outline bits remain in place while text is written. Overall, I'm going for maximum usage of the G2553 without overwhelming the poor little mcu. Quote Link to post Share on other sites
mctouch 5 Posted April 16, 2012 Share Posted April 16, 2012 In case anybody is having trouble with changing the solder jumpers to switch the board to support the g2553. SJ4 -> change to VDD (pulls BS0 high for 4 wire SPI) SJ3 -> change to P1.7 (moves SDIN to USCI SIMO) SJ6 -> change to P2.2 (moves D/C to GPIO) this should help... bluehash, jim940, GeekDoc and 1 other 4 Quote Link to post Share on other sites
bluehash 1,581 Posted April 16, 2012 Author Share Posted April 16, 2012 Thanks for this mctouch. Quote Link to post Share on other sites
GeekDoc 226 Posted April 17, 2012 Share Posted April 17, 2012 Thanks, mctouch! VERY helpful post! Quote Link to post Share on other sites
andresv 7 Posted October 21, 2012 Share Posted October 21, 2012 The drivers and demo program are ready.I've uploaded everything to github. Please fork it and let's work on a few things together. The circle near the x-axis needs a bit of work. The next update will include text scrolling commands and, possibly, a 24x32 numerals only font. https://github.com/GWDeveloper/OLED_MSP430_USCI Unfortunately this github project is deleted and there are no drawing functions in code attached with first post. Is this project moved somewhere? Quote Link to post Share on other sites
bluehash 1,581 Posted October 21, 2012 Author Share Posted October 21, 2012 gw should respond if he sees this. If not, I'll ping him. Quote Link to post Share on other sites
izdane 6 Posted January 29, 2013 Share Posted January 29, 2013 I just got a Terminal. Any suggestions for a first time beginner? Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.