adafruit / Adafruit_TouchScreen

Arduino library for 4-wire resistive touchscreens
http://www.adafruit.com/index.php?main_page=product_info&cPath=35&products_id=333
Other
272 stars 212 forks source link

Unknown RwReg for ESP8266 #20

Closed fimtrey closed 4 years ago

fimtrey commented 4 years ago

Hi,

I'm working with a ESP8266 and Adafruit SSD1306. Seems quite fare away I know. I include the library with platformio, so dependencies are loaded automatically.

Dependency Graph
|-- <Adafruit SSD1306> 2.2.1
|   |-- <Adafruit GFX Library> 1.7.5
|   |   |-- <Adafruit ILI9341> 1.5.4
|   |   |   |-- <Adafruit STMPE610> 1.1.0
|   |   |   |   |-- <SPI> 1.0
|   |   |   |   |-- <Wire> 1.0
|   |   |   |-- <Adafruit TouchScreen> 1.0.4
|   |   |   |-- <SPI> 1.0
|   |   |-- <SPI> 1.0
|   |-- <SPI> 1.0
|   |-- <Wire> 1.0
|-- ...

Adafruit TouchScreen version 1.0.4 does not define RwReg if the board is unknown:

Adafruit TouchScreen_ID5430/TouchScreen.h:51:12: error: 'RwReg' does not name a type
   volatile RwReg *xp_port, *yp_port, *xm_port, *ym_port;

so the code does not compile.

I'll push to possible solution/work arounds.

agrath commented 4 years ago

The PR #22 didn't define for ESP8266

https://github.com/adafruit/Adafruit_TouchScreen/pull/23

ladyada commented 4 years ago

added by hand. note esp does not have 2 analog pins.