Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssd1306 support #3

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

tablatronix
Copy link

No description provided.

tablatronix added 3 commits June 13, 2019 11:34
adds examplef or ssd1306 oleds using adafruit gfx, ticker or ISR would crash , had to move to loop
@tablatronix
Copy link
Author

example tested on esp8266 with i2c ssd1306 128x64 OLED
runs without wifi

@tablatronix
Copy link
Author

I could not get it to run with a timer or isr solution so just removed it, if using a ticker it will need to use flags and not execute code in the ISR

@tablatronix
Copy link
Author

tablatronix commented Jun 13, 2019

F669D197-5A09-4381-8CC3-35D689922301

8A8FBB96-8D01-4F5A-9213-DA1682F06684
E9A7BEC1-66EE-4936-BDBA-C9BB22FFAF2D
C94E6A1E-E90A-44D3-8296-20CC9D607497

@tablatronix
Copy link
Author

tablatronix commented Jun 13, 2019

You can get various styles since its monochrome to make it a bit more interesting, one requires removing a line in the library

Screen Shot 2019-06-13 at 1 01 46 PM

It would be cool to update the main library to support actual piece outlines for monochrome mode, not just bocks, also the colon needs to be fixed to support outline mode

Copy link
Owner

@witnessmenow witnessmenow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor changes around some comments etc

Thanks for making this work! I'll try make similar changes to the ESP8266 matrix version

/*******************************************************************
Tetris clock that fetches its time Using the EzTimeLibrary

NOTE: THIS IS CURRENTLY CRASHING!
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is true anymore :)


For use with an ESP8266
* *
Written by Brian Lough
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add your name here, you made this example, not me. Take that glorious credit :)

// Display Libraries - each one of these will need to be installed.
// ----------------------------
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you link to the library on github and advice if it can be installed from the library manager

*******************************************************************/

// ----------------------------
// Standard Libraries - Already Installed if you have ESP32 set up
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change "ESP32" to "ESP8266"

drawIntro(6, 12);
display.display();
delay(2000);
tetris.setText("B. LOUGH");
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to change this to something else if you'd prefer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants