Merge pull request #289 from NickIOT72/master
Add compatibilty with CH32V203 devices
This commit is contained in:
commit
83ed59e8d3
3 changed files with 8 additions and 5 deletions
|
|
@ -49,7 +49,8 @@
|
|||
#endif
|
||||
|
||||
#if !defined(__ARM_ARCH) && !defined(ENERGIA) && !defined(ESP8266) && \
|
||||
!defined(ESP32) && !defined(__arc__) && !defined(__RL78__)
|
||||
!defined(ESP32) && !defined(__arc__) && !defined(__RL78__) && \
|
||||
!defined(CH32V20x)
|
||||
#include <util/delay.h>
|
||||
#endif
|
||||
|
||||
|
|
@ -940,7 +941,7 @@ void Adafruit_SSD1306::drawFastVLineInternal(int16_t x, int16_t __y,
|
|||
}
|
||||
}
|
||||
} // endif positive height
|
||||
} // endif x in bounds
|
||||
} // endif x in bounds
|
||||
}
|
||||
|
||||
/*!
|
||||
|
|
|
|||
|
|
@ -25,15 +25,15 @@
|
|||
#define _Adafruit_SSD1306_H_
|
||||
|
||||
// ONE of the following three lines must be #defined:
|
||||
//#define SSD1306_128_64 ///< DEPRECTAED: old way to specify 128x64 screen
|
||||
// #define SSD1306_128_64 ///< DEPRECTAED: old way to specify 128x64 screen
|
||||
#define SSD1306_128_32 ///< DEPRECATED: old way to specify 128x32 screen
|
||||
//#define SSD1306_96_16 ///< DEPRECATED: old way to specify 96x16 screen
|
||||
// #define SSD1306_96_16 ///< DEPRECATED: old way to specify 96x16 screen
|
||||
// This establishes the screen dimensions in old Adafruit_SSD1306 sketches
|
||||
// (NEW CODE SHOULD IGNORE THIS, USE THE CONSTRUCTORS THAT ACCEPT WIDTH
|
||||
// AND HEIGHT ARGUMENTS).
|
||||
|
||||
// Uncomment to disable Adafruit splash logo
|
||||
//#define SSD1306_NO_SPLASH
|
||||
// #define SSD1306_NO_SPLASH
|
||||
|
||||
#if defined(ARDUINO_STM32_FEATHER)
|
||||
typedef class HardwareSPI SPIClass;
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ WICED | X | | | No hardware SPI - bitbang onl
|
|||
ATtiny85 | | X | |
|
||||
Particle | X | | |
|
||||
RTduino | X | | |
|
||||
CH32 RISC-V | X | | |
|
||||
|
||||
* ATmega328 : Arduino UNO, Adafruit Pro Trinket, Adafruit Metro 328, Adafruit Metro Mini
|
||||
* ATmega32u4 : Arduino Leonardo, Arduino Micro, Arduino Yun, Teensy 2.0, Adafruit Flora, Bluefruit Micro
|
||||
|
|
@ -62,5 +63,6 @@ RTduino | X | | |
|
|||
* ATtiny85 : Adafruit Gemma, Arduino Gemma, Adafruit Trinket
|
||||
* Particle: Particle Argon
|
||||
* RTduino : [RTduino](https://github.com/RTduino/RTduino) is the Arduino ecosystem compatibility layer for [RT-Thread RTOS](https://github.com/RT-Thread/rt-thread) BSPs
|
||||
* CH32 RISC-V: CH32V203
|
||||
|
||||
<!-- END COMPATIBILITY TABLE -->
|
||||
Loading…
Reference in a new issue