286 Commits
Author SHA1 Message Date
lady ada e46c80def6 clankz 2020-11-15 14:38:32 -05:00
lady ada 90a246b6b3 hotfix for https://forums.adafruit.com/viewtopic.php?f=47&t=171641 (this library is going to get refactored anyways and all this code will move out) 2020-11-15 14:26:24 -05:00
siddaciousandGitHub 2f93b8453b Update library.properties 2.4.0 2020-08-28 12:31:21 -07:00
Limor "Ladyada" FriedandGitHub e0c3383847 Merge pull request #184 from rgiese/master
Add support for Particle MCUs' I2C buffer sizing
2020-08-27 19:43:25 -04:00
Robin Giese f2cdb5bdf4 Add support for Particle MCUs' I2C buffer sizing 2020-08-27 15:52:35 -07:00
dherradaandGitHub d62796bbe8 bump to 2.3.1 2.3.1 2020-07-06 16:40:21 -04:00
Limor "Ladyada" FriedandGitHub 23a7e50b77 Merge pull request #176 from wecassidy/master
Replace boolean with standard bool
2020-07-01 10:52:19 -04:00
wecassidy ad9c3cd7c8 Replace boolean with standard bool 2020-06-30 20:06:46 -07:00
Limor "Ladyada" FriedandGitHub d4edaa0225 Merge pull request #173 from adafruit/actionci
Moved repository to github actions
2.3.0
2020-06-08 10:06:25 -04:00
dherrada 1aff4c911b Moved repository to github actions 2020-06-08 09:55:11 -04:00
siddaciousandGitHub 66cba54415 Update library.properties 2.2.1 2020-03-16 12:11:29 -07:00
Limor "Ladyada" FriedandGitHub 68249c7803 Merge pull request #170 from ausi/patch-1
Fix comment of 128x64 example
2020-03-14 14:19:00 -04:00
Martin AuswögerandGitHub 3736824148 Fix comment of 128x64 example 2020-03-14 19:08:45 +01:00
siddaciousandGitHub d3838a3cc9 Update library.properties 2.2.0 2020-02-17 18:38:05 -08:00
Limor "Ladyada" FriedandGitHub cedabdf487 Merge pull request #168 from KurtE/SPI_SETTINGS_PROTECTED
Allow a sketch to sub-class the SSD1306 object and change SPI settings
2020-02-16 18:21:42 -05:00
Kurt Eckhardt d1bcc4ff9b Allow a sketch to sub-class the SSD1306 object and change SPI settings
At least some of the SSD1309 displays can work with this library if SPI_MODE0 is changed to SPI_MODE3.

Instead of allowing the main constructor to do this, we pulled the spiSettings member out to be protected instead of private.  This allows us to create a smple subclass of this code base to run on these displays.  With this I have a version of the ssd1306_128x64_spi sketch that has the subclass code:
```
class Adafruit_SSD1309_SPI : public Adafruit_SSD1306 {
 public:
  Adafruit_SSD1309_SPI(uint8_t w, uint8_t h, SPIClass *spi,
    int8_t dc_pin, int8_t rst_pin, int8_t cs_pin, uint32_t bitrate=8000000UL) :
    Adafruit_SSD1306(w, h, spi, dc_pin, rst_pin, cs_pin, bitrate) {
#ifdef SPI_HAS_TRANSACTION
  spiSettings = SPISettings(bitrate, MSBFIRST, SPI_MODE3);
#endif

    }
};
```
and then I used the hardware version of the constructor:
```
#define OLED_DC     6
#define OLED_CS     7
#define OLED_RESET  8
Adafruit_SSD1309_SPI display(SCREEN_WIDTH, SCREEN_HEIGHT,
  &SPI, OLED_DC, OLED_RESET, OLED_CS);
```
And it now runs on this display
2020-02-16 15:07:32 -08:00
Melissa LeBlanc-Williams 6afb0262fe Bumped for version release 2.1.0 2020-01-10 16:33:27 -08:00
Melissa LeBlanc-Williams 2bc1a5412d Merge branch 'master' of https://github.com/adafruit/Adafruit_SSD1306 2020-01-10 16:32:28 -08:00
Melissa LeBlanc-WilliamsandGitHub a9036afced Merge pull request #163 from mzero/contrast
save correct contrast setting for use in dim() function
2020-01-10 16:31:43 -08:00
Melissa LeBlanc-Williams 2014e8f082 Merge branch 'contrast' of https://github.com/mzero/Adafruit_SSD1306 2019-12-30 09:27:51 -08:00
Lady Ada 47c15c1cf3 add dep 2.0.4 2019-12-25 15:17:05 -05:00
Mark Lentczner 7fdddecaa7 save correct contrast setting for use in dim() function
In begin(), there is code to compute the correct contrast value, based on the configuration of the display.
The same code also computes the comPin setting. This code has been factored so that these two values
are computed, and contrast saved in an instance variable.

Later, in dim(), the saved computed contrast value is used when un-dimming the display.
2019-12-21 23:18:30 -08:00
siddaciousandGitHub 6dc036e618 Update library.properties 2.0.3 2019-12-17 13:02:23 -08:00
Paint Your DragonandGitHub 928a370e7a Merge pull request #154 from BillyDonahue/splash
splash.h: use binary literals for bitmaps
2019-12-10 17:39:30 -08:00
Billy DonahueandBilly Donahue d6c345c245 splash.h: use binary literals for bitmaps
Same bits as before, but now directly visible as nice grid of 0s and 1s..
Include bitmaps and codegen script that generate splash.h.
2019-12-01 23:35:13 -05:00
siddaciousandGitHub b8da224ba0 Update library.properties 2.0.2 2019-11-27 11:16:16 -08:00
Limor "Ladyada" FriedandGitHub cd37a3286d Merge pull request #158 from fphammerle/fix-arduino-older-157
fix build for arduino version < 157
2019-11-25 13:48:36 -05:00
Fabian Peter Hammerle f6910f3ecb fix build for arduino version < 157
https://github.com/adafruit/Adafruit_SSD1306/issues/155
2019-11-25 18:56:06 +01:00
siddaciousandGitHub 49afb367e9 Update library.properties 2.0.1 2019-10-24 17:37:45 -07:00
Limor "Ladyada" FriedandGitHub c64979a564 Merge pull request #151 from facchinm/patch-1
Don't define HAVE_PORTREG for mbed target
2019-10-23 13:23:30 -04:00
Martino FacchinandGitHub 78701a4d21 Don't define HAVE_PORTREG for mbed target
Fixes https://github.com/arduino/Arduino/issues/9345
2019-10-23 14:41:38 +02:00
Melissa LeBlanc-Williams f81d58e9a8 bumped version for release 2.0.0 2019-10-22 16:52:54 -07:00
Melissa LeBlanc-WilliamsandGitHub d75c9da996 Merge pull request #147 from plocher/master
Namespace issues: #define BLACK conflicts - fixes #146
2019-10-17 21:27:22 -07:00
John PlocherandGitHub 803afb4a45 DOCSTRING consistency - prepend SSD1306_ to colors 2019-09-30 20:19:37 -07:00
John Plocher d747623eaa Updated pull request docs 2019-09-06 19:08:29 -07:00
John Plocher 9684ac2bcb Merge branch 'master' of github.com:plocher/Adafruit_SSD1306 2019-09-06 19:03:42 -07:00
John Plocher 43e2acb650 no more enum, add macros SSD1306_BLACK, _WHITE, _INVERSE 2019-09-06 19:00:38 -07:00
John PlocherandGitHub 111581b787 fixed typo 2019-09-05 17:02:05 -07:00
John PlocherandGitHub 9ac6e39ece Added pull request detail for ENUM'd BLACK, WHITE and INVERSE
removed #define WHITE (&& BLACK && INVERSE)
replaced with class scoped   enum SSD1306_Colors { BLACK=0, WHITE=1, INVERSE=2 };
2019-09-05 17:01:27 -07:00
John Plocher 8439f397c4 changed #defines for (BLACK, WHITE, INVERSE) to a class scoped enum 2019-09-05 10:17:39 -07:00
Jan HoffmannandGitHub 76a2a1fc00 Update library.properties 1.3.0 2019-07-04 12:05:09 +02:00
Limor "Ladyada" FriedandGitHub 5c62208f76 Update .travis.yml 2018-11-26 22:04:48 -05:00
ladyada 67015cfd0f oled featherwing example 2018-11-26 21:51:26 -05:00
Phillip Burgess 1973f0001f Change Wire clock behavior (400 KHz default, override in constructor) 1.2.9 2018-11-17 10:00:19 -08:00
Phillip Burgess 8504e3fd4b Fixes for WICED Feather hardware SPI 1.2.8 2018-11-16 22:03:37 -08:00
Phillip Burgess 3d8a7305a2 Use big Wire transfers on SAMD 2018-11-15 15:21:32 -08:00
Phillip Burgess 8e0c9e8a0c Update .travis.yml 1.2.7 2018-11-13 16:11:09 -08:00
Phillip Burgess 6f84757455 Reorder class members & initializers to avoid -Werror=reorder 2018-11-13 15:53:47 -08:00
Phillip Burgess 6e4a45ec23 Add .travis.yml 2018-11-13 15:24:00 -08:00
Phillip Burgess 7cc57b8db1 Changes for Travis CI, Doxygen, make examples check begin() value 2018-11-13 15:17:37 -08:00