Any SSD1306 example for nrf51822 ???
I found this but is for nrf52.. i try to add it for my nrf51822 but there are tons of functions with different declarations in my sdk...
Thanks a lot
Any SSD1306 example for nrf51822 ???
I found this but is for nrf52.. i try to add it for my nrf51822 but there are tons of functions with different declarations in my sdk...
Thanks a lot
The SSD1306 neither knows nor cares what microcontroller you use.
The only bit of the code which should be target-specific is the low-level SPI stuff - above that, everything should be target-independent.
so you should be able to take out the nRF52-specific SPI stuff, and replace it with SPI stuff for your nRF51 - or any other microcontroller.
I will use the i2c not spi. But even with that. Which example do you recommend me to check to transform i2c functions of that example from nrf52 to nrf51822?
Look at the I2C (aka "TWI") examples in the SDK ...
Yes I saw them. But i dont find any example of how to use the Adafruit SSD1306 library.
I am using in my main this: (IS IT CORRECT???)
ssd1306_init_i2c(12,30); //scl 12, sda 30
ssd1306_begin(1,0x3C,0);//External VCC, i2caddr, reset <---- IS THIS CORRECT ???
ssd1306_invert_display(1);
nrf_delay_ms(250);
ssd1306_invert_display(0);
nrf_delay_ms(250);
ssd1306_invert_display(1);
nrf_delay_ms(250);
ssd1306_invert_display(0);
nrf_delay_ms(250);
To see if something happens.. but nothing... i see the sda and scl buses mooving but nothing in the screen...
Also this example is like if it does not wait for the ack event...