Jump to content


Photo

GPIO + OLED in C!


  • Please log in to reply
2 replies to this topic

#1 jim

jim

    Advanced Member

  • Administrators
  • 3,385 posts

Posted 13 February 2015 - 07:02 PM

Hey all!

For my own need I've ported gpio code from C++(c_environnment) to C. With it you can play easily from C without having another dependencies. And I've ported oled in these way too(very cheap and small 128x64 i2c module, widely available on eb*y)....

Found them in attachment...You'll need to adapt it(removed unused header and debug like func)...I ship it, you adapt it!  wink.gif

Greets,
Alex.

Attached Files



#2 torchris

torchris

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 02 May 2015 - 01:17 AM

Really really very useful. Can you post something that will actually compile and run an I2C OLED?



#3 Alexandre

Alexandre

    Member

  • Members
  • PipPip
  • 12 posts

Posted 16 June 2015 - 09:03 AM

Hi!

 

I've reworked(not tested) to be clean and have a nice Makefile, to test it:

 

decompress zip

do a simple 'make'

be sure to have oled connected to SDA/SDC pin of pcduino

test by running './test_oled'

 

 

have a good fun!

Alex.

Attached Files






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users