mctouch 5 Posted January 27, 2012 Share Posted January 27, 2012 Yes as per the video for each of the OLED booster packs. I will wire it up to my male header launchpads that don't have a crystal tonight but I doubt that is the issue. I have an MSP-TS430PW28A with a tssop based msp4302452 so I will jumper the OLED screens to that as well. Quote Link to post Share on other sites
bluehash 1,581 Posted January 27, 2012 Author Share Posted January 27, 2012 Ok. Let me know. Just be assured that they get tested before shipping, so I'm sure something else is wrong. Quote Link to post Share on other sites
mctouch 5 Posted January 28, 2012 Share Posted January 28, 2012 It worked when I removed the crystal. Don't really know why but it worked.. Still trying to get it to work with the TSSOP package msp4302452. Thx Quote Link to post Share on other sites
mctouch 5 Posted January 29, 2012 Share Posted January 29, 2012 It works on the tssop package http://pic.twitter.com/dSpOJjfK . Now to try some animation... :thumbup: Quote Link to post Share on other sites
bluehash 1,581 Posted January 30, 2012 Author Share Posted January 30, 2012 Good one.. Keep the thread updated on your progress.. rather, I'd suggest creating a thread and place a link here. Quote Link to post Share on other sites
gwdeveloper 275 Posted February 11, 2012 Share Posted February 11, 2012 Here's a little preview of the OLED running on the G2553 using USCI. [attachment=0]oled_2553.jpg[/attachment] This weekend, I'll post code/drivers. It works on F2274 and G2553 so it should work on any USCI devices. I am using a standard 6x8 font instead of the included fonts with the USI drivers. Functions Included void SSD1306SendCommand( char *data, int i ); void SSD1306SendData( char *data, int i ); void setAddress( char page, char column ); void clearScreen(void); void charDraw(char row, char column, int data); void stringDraw( char row, char column, char *word); void pixelDraw(char x, char y); void horizontalLine(char xStart, char xStop, char y); void verticalLine(char x, char yStart, char yStop); void imageDraw(const char IMAGE[], char row, char column); void circleDraw(char x, char y, char radius); (not completed) Minor Hardware Changes (previously mentioned by Robg) 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) adroit_91, bluehash, RobG and 1 other 4 Quote Link to post Share on other sites
bluehash 1,581 Posted February 11, 2012 Author Share Posted February 11, 2012 I love the Font! oh man, this feels good. Thanks for doing up the library too. I'm going to put this on the Store page. (ok?). Unfortunately, the OLED board is out of stock again. It should be available in three weeks. I need to put Rob's 4 chan multimeter demo too. Quote Link to post Share on other sites
gwdeveloper 275 Posted February 11, 2012 Share Posted February 11, 2012 Thanks, bluehash. Now graphics are working too! [attachment=0]oled_brain.jpg[/attachment] The circle function is giving me problems. For some reason, it draws a square 45deg offset from the center. Might have it sorted this evening. Programming in between helicopter battery charges. GeekDoc and bluehash 2 Quote Link to post Share on other sites
oPossum 1,083 Posted February 11, 2012 Share Posted February 11, 2012 void circle(register int x, register int y, int r) { register int xx = -r; register int yy = 0; register int e = 2 - (2 * r); do { pixel(x - xx, y + yy); pixel(x - yy, y - xx); pixel(x + xx, y - yy); pixel(x + yy, y + xx); if(e > xx) e += ((++xx << 1) + 1); if(e <= yy) e += ((++yy << 1) + 1); } while (xx < 0); } bluehash and gwdeveloper 2 Quote Link to post Share on other sites
gwdeveloper 275 Posted February 11, 2012 Share Posted February 11, 2012 Ok, sweet, with oPossum's code, a circle is somewhat working... [attachment=0]oled_circle.jpg[/attachment] Now, I'm seeing where the issue is. I've put all of this together based on page addressing mode. The lack of pixels around the x-axis are due to the column of that page being addressed multiple times. So, I either need to change modes for drawing circles (involves a lot more work and new pixelDraw function), or do a check for the column number to make sure they retain the proper fill (possibly easiest solution), or waste a lot of RAM and slow things down by writing to a memory location and the OLED in each function (lots of work and slow). bluehash and GeekDoc 2 Quote Link to post Share on other sites
gwdeveloper 275 Posted February 12, 2012 Share Posted February 12, 2012 The drivers and demo program are ready. I would post a video but the camera and focus are not being cooperative. The demo runs a noisy pattern to get a visual of the framerate, displays an icon, then shows text in an outline. Button functionality is included; S2 on the LP toggles the display on or off, left button of the BP toggles inverting the display and the right button adjusts the contrast levels in steps of 10. 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 @bluehash, Feel free to download the .zip from git and post it with the BP in the store. bluehash 1 Quote Link to post Share on other sites
bluehash 1,581 Posted February 12, 2012 Author Share Posted February 12, 2012 I'll do that. Thanks for your work. I'll put up a link for the code on the store page. I'll also be putting SA's 5529 board up today. Quote Link to post Share on other sites
gwdeveloper 275 Posted February 12, 2012 Share Posted February 12, 2012 One last update for the day. After some cleanup and adjustments, I'll post the updated source. Enjoy some videos... http://www.youtube.com/watch?v=yG35jlzYUiQ http://www.youtube.com/watch?v=4GOFmr7FOzc bluehash and GeekDoc 2 Quote Link to post Share on other sites
bluehash 1,581 Posted February 12, 2012 Author Share Posted February 12, 2012 +1 That looks sweet! Quote Link to post Share on other sites
gwdeveloper 275 Posted February 13, 2012 Share Posted February 13, 2012 Thanks! I created the 24x32 numeral font this morning around 3:30am. Microsoft Paint FTW. [attachment=0]oled_big_font.jpg[/attachment] 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.