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

Arduino cli #163

Merged
merged 7 commits into from
Feb 12, 2023
Merged

Arduino cli #163

merged 7 commits into from
Feb 12, 2023

Conversation

hpsaturn
Copy link
Member

Overview

Try to have a tool to build and run tests with Arduino CLI, but this tools is very bad in comparison with PlatformIO.

Usage

./arduino-cli-test.sh

TODO

  • exact libraries dependencies version (status: tolerable, it doesn't support git commits targets)
  • install library target (status: tolerable, it doesn't support git commits targets)
  • build esp8266 test
  • build esp32 test (status: fails)

Bugs

With esp32 test we have a old issue:

Platform esp32:esp32@1.0.6 already installed
In file included from /home/avp/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.h:27:0,
                 from /home/avp/Arduino/libraries/canairio_sensorlib/src/Sensors.hpp:6,
                 from /home/avp/sketchbook/pio/canairio_sensorlib/examples/basic/basic.ino:9:
/home/avp/Arduino/libraries/Adafruit_BusIO/Adafruit_SPIDevice.h:45:9: error: 'BitOrder' does not name a type
 typedef BitOrder BusIOBitOrder;
         ^
/home/avp/Arduino/libraries/Adafruit_BusIO/Adafruit_SPIDevice.h:88:22: error: 'BusIOBitOrder' has not been declared
                      BusIOBitOrder dataOrder = SPI_BITORDER_MSBFIRST,
                      ^
/home/avp/Arduino/libraries/Adafruit_BusIO/Adafruit_SPIDevice.h:97:22: error: 'BusIOBitOrder' has not been declared
                      BusIOBitOrder dataOrder = SPI_BITORDER_MSBFIRST,
                      ^
/home/avp/Arduino/libraries/Adafruit_BusIO/Adafruit_SPIDevice.h:126:3: error: 'BusIOBitOrder' does not name a type
   BusIOBitOrder _dataOrder;
   ^


Used library                                Version Path                                                                   
CanAirIO Air Quality Sensors Library        0.6.5   /home/avp/Arduino/libraries/canairio_sensorlib                         
AHT1x/AHT2x                                 1.1.7   /home/avp/Arduino/libraries/AHTxx                                      
Wire                                        1.0.1   /home/avp/.arduino15/packages/esp32/hardware/esp32/1.0.6/libraries/Wire
AM232X                                      0.4.5   /home/avp/Arduino/libraries/AM232X                                     
Adafruit BME280 Library                     2.2.2   /home/avp/Arduino/libraries/Adafruit_BME280_Library                    
Adafruit BusIO                              1.14.1  /home/avp/Arduino/libraries/Adafruit_BusIO                             
SPI                                         1.0     /home/avp/.arduino15/packages/esp32/hardware/esp32/1.0.6/libraries/SPI 
Adafruit Unified Sensor                     1.1.7   /home/avp/Arduino/libraries/Adafruit_Unified_Sensor                    
Adafruit BME680 Library                     2.0.2   /home/avp/Arduino/libraries/Adafruit_BME680_Library                    
Adafruit BMP280 Library                     2.6.6   /home/avp/Arduino/libraries/Adafruit_BMP280_Library                    
Adafruit SHT31 Library                      2.2.0   /home/avp/Arduino/libraries/Adafruit_SHT31_Library                     
Adafruit SCD30                              1.0.9   /home/avp/Arduino/libraries/Adafruit_SCD30                             
MH-Z19                                      1.5.4   /home/avp/Arduino/libraries/MH-Z19                                     
Sensirion I2C SCD4x                         0.3.1   /home/avp/Arduino/libraries/Sensirion_I2C_SCD4x                        
Sensirion Core                              0.6.0   /home/avp/Arduino/libraries/Sensirion_Core                             
SparkFun Particle Sensor Panasonic SN-GCJA5 1.0.1   /home/avp/Arduino/libraries/SN-GCJA5                                   
CM1106 UART                                 1.0.0   /home/avp/Arduino/libraries/CM1106_UART                                
S8_UART                                     1.0.1   /home/avp/Arduino/libraries/S8_UART                                    
sps30                                       1.4.16  /home/avp/Arduino/libraries/sps30                                      

Used platform Version Path                                                    
esp32:esp32   1.0.6   /home/avp/.arduino15/packages/esp32/hardware/esp32/1.0.6

Error during build: exit status 1

@hpsaturn hpsaturn merged commit 8d5b1cf into master Feb 12, 2023
@hpsaturn hpsaturn deleted the arduino_cli branch February 12, 2023 10:29
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.

1 participant