Merge pull request #289 from NickIOT72/master

Add compatibilty with CH32V203 devices
This commit is contained in:
Limor "Ladyada" Fried 2025-05-03 10:52:34 -04:00 committed by GitHub
commit 83ed59e8d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 5 deletions

View file

@ -49,7 +49,8 @@
#endif #endif
#if !defined(__ARM_ARCH) && !defined(ENERGIA) && !defined(ESP8266) && \ #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> #include <util/delay.h>
#endif #endif
@ -940,7 +941,7 @@ void Adafruit_SSD1306::drawFastVLineInternal(int16_t x, int16_t __y,
} }
} }
} // endif positive height } // endif positive height
} // endif x in bounds } // endif x in bounds
} }
/*! /*!

View file

@ -25,15 +25,15 @@
#define _Adafruit_SSD1306_H_ #define _Adafruit_SSD1306_H_
// ONE of the following three lines must be #defined: // 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_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 // This establishes the screen dimensions in old Adafruit_SSD1306 sketches
// (NEW CODE SHOULD IGNORE THIS, USE THE CONSTRUCTORS THAT ACCEPT WIDTH // (NEW CODE SHOULD IGNORE THIS, USE THE CONSTRUCTORS THAT ACCEPT WIDTH
// AND HEIGHT ARGUMENTS). // AND HEIGHT ARGUMENTS).
// Uncomment to disable Adafruit splash logo // Uncomment to disable Adafruit splash logo
//#define SSD1306_NO_SPLASH // #define SSD1306_NO_SPLASH
#if defined(ARDUINO_STM32_FEATHER) #if defined(ARDUINO_STM32_FEATHER)
typedef class HardwareSPI SPIClass; typedef class HardwareSPI SPIClass;

View file

@ -52,6 +52,7 @@ WICED | X | | | No hardware SPI - bitbang onl
ATtiny85 | | X | | ATtiny85 | | X | |
Particle | X | | | Particle | X | | |
RTduino | X | | | RTduino | X | | |
CH32 RISC-V | X | | |
* ATmega328 : Arduino UNO, Adafruit Pro Trinket, Adafruit Metro 328, Adafruit Metro Mini * 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 * 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 * ATtiny85 : Adafruit Gemma, Arduino Gemma, Adafruit Trinket
* Particle: Particle Argon * 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 * 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 --> <!-- END COMPATIBILITY TABLE -->