Giter VIP home page Giter VIP logo

adafruit_ssd1306's People

Contributors

briangershon avatar hemstreet avatar hpssjellis avatar pkourany avatar prahaladm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

adafruit_ssd1306's Issues

How do I work with this locally?

How can I just use this project along with particle compile && particle flash

Running the project from scratch and doing particle flash XXX . gives this

Flash device failed
[object Object]

confusing hw spi pins used in ssd1306_128x64_spi.ino

I am trying to use a 128x64 spi oled with this code and a photon:
https://github.com/pkourany/Adafruit_SSD1306/blob/master/ssd1306_128x64_spi.ino#L33-L37

what I find confussing is that according to
https://docs.particle.io/reference/firmware/photon/#spi
SPI1 that is used here uses:

SS => D5 (default)
SCK => D4
MISO => D3
MOSI => D2

but the defines I linked to do

#define OLED_DC     D3
#define OLED_CS     D4
#define OLED_RESET  D5

so OLED_CS would be connected to the SPI1.SCK (spi clock) pin, were instead it should probably be D5
(CS = chip select -> SS = slave select)? Also which pin is actually used for the clock then?

and OLED_DC would be MISO instead of MOSI?

Furthermore shouldn't
https://github.com/pkourany/Adafruit_SSD1306/blob/master/Adafruit_SSD1306.cpp#L167

- SPI.begin()
+ SPI.begin(cs)

otherwise it will configure D5 for SS (even though its probably no hard since it will only configure it to be an output).

Here is how I am using it - SW mode works, but HW doesn't:

#if 0
  // HW SPI
  //#define OLED_DC     D3
  #define OLED_DC     D1
  //#define OLED_CS     D4
  // our module does not support CS/SS
  #define OLED_CS     D0
  #define OLED_RESET  D5
  Adafruit_SSD1306 display(OLED_DC, OLED_RESET, OLED_CS);
#else
  // SW SPI
  #define OLED_CS     D0
  #define OLED_DC     D1
  #define OLED_MOSI   D2
  #define OLED_CLK    D4
  #define OLED_RESET  D5
  Adafruit_SSD1306 display(OLED_MOSI, OLED_CLK, OLED_DC, OLED_RESET, OLED_CS);
#endif

random/arandom conflicting changes

When prahaladm recoded for the arandom() change no one undid the changes in the rest of the file. I know I was having issues getting this to run with the function called random. Would the solution be to fall back to rand()?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.