Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
neOCampus-arduino
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GIS-neOCampus
neOSensor
neOCampus-arduino
Commits
0a9c9300
Commit
0a9c9300
authored
4 years ago
by
francois
Browse files
Options
Downloads
Patches
Plain Diff
added initial support to neOSensor PCB v5 :)
parent
855e6eaf
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
arduinoIDE_esp32_boards/boards.local.txt
+4
-2
4 additions, 2 deletions
arduinoIDE_esp32_boards/boards.local.txt
neosensor/libraries/boards/neosensor.h
+7
-4
7 additions, 4 deletions
neosensor/libraries/boards/neosensor.h
with
11 additions
and
6 deletions
arduinoIDE_esp32_boards/boards.local.txt
+
4
−
2
View file @
0a9c9300
...
@@ -26,10 +26,12 @@ neOSensor.build.flash_size=4MB
...
@@ -26,10 +26,12 @@ neOSensor.build.flash_size=4MB
neOSensor.build.flash_freq=80m
neOSensor.build.flash_freq=80m
neOSensor.build.boot=dio
neOSensor.build.boot=dio
neOSensor.build.partitions=default
neOSensor.build.partitions=default
# [aug.20] for tests, we enable LED2 and we disable SSL
# onboard LED2 (except on ESP32 38pins we don't use)
# DISABLE_SSL: flag to disable SSL comms.
# DISABLE_ADC_CAL: flag to disable esp32 ADC advanced calibration
# DISABLE_ADC_CAL: flag to disable esp32 ADC advanced calibration
# DISABLE_AP_PASSWD: flag to disable access point password (i.e free to connect to)
# DISABLE_AP_PASSWD: flag to disable access point password (i.e free to connect to)
neOSensor.build.defines=-DNEOSENSOR_BOARD -DMQTT_KEEPALIVE=60 -DMQTT_SOCKET_TIMEOUT=60 -DMQTT_MAX_PACKET_SIZE=256 -DLED=2 -DDISABLE_SSL -DDISABLE_AP_PASSWD
neOSensor.build.defines=-DNEOSENSOR_BOARD -DMQTT_KEEPALIVE=60 -DMQTT_SOCKET_TIMEOUT=60 -DMQTT_MAX_PACKET_SIZE=256 -DDISABLE_SSL -DDISABLE_AP_PASSWD
#neOSensor.build.defines=-DNEOSENSOR_BOARD -DMQTT_KEEPALIVE=60 -DMQTT_SOCKET_TIMEOUT=60 -DMQTT_MAX_PACKET_SIZE=256 -DLED=2 -DDISABLE_SSL -DDISABLE_AP_PASSWD
#neOSensor.build.defines=-DNEOSENSOR_BOARD -DMQTT_KEEPALIVE=60 -DMQTT_SOCKET_TIMEOUT=60 -DMQTT_MAX_PACKET_SIZE=256
#neOSensor.build.defines=-DNEOSENSOR_BOARD -DMQTT_KEEPALIVE=60 -DMQTT_SOCKET_TIMEOUT=60 -DMQTT_MAX_PACKET_SIZE=256
neOSensor.menu.UploadSpeed.921600=921600
neOSensor.menu.UploadSpeed.921600=921600
...
...
This diff is collapsed.
Click to expand it.
neosensor/libraries/boards/neosensor.h
+
7
−
4
View file @
0a9c9300
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
* - noise detector (8bits DAC MCP4706)
* - noise detector (8bits DAC MCP4706)
* ---
* ---
*
*
* F.Thiebolt Mar.21 corrected leds definitions for neOSensor V5 :)
* F.Thiebolt Aug.20 added definitions for future ESP32 version (e.g LED PWM channel)
* F.Thiebolt Aug.20 added definitions for future ESP32 version (e.g LED PWM channel)
* set default ADC resolution according to architecture
* set default ADC resolution according to architecture
* F.Thiebolt Jun.18 merged neOClock as options to neOSensor
* F.Thiebolt Jun.18 merged neOClock as options to neOSensor
...
@@ -36,8 +37,8 @@
...
@@ -36,8 +37,8 @@
* Definitions
* Definitions
*/
*/
#define BOARD_NAME "neOSensor"
#define BOARD_NAME "neOSensor"
#define BOARD_REVISION 1.
1
#define BOARD_REVISION 1.
2
#define BOARD_FWREV 2
01102
// Firmware revision <year><month><day> in 2 digits each
#define BOARD_FWREV 2
10331
// Firmware revision <year><month><day> in 2 digits each
/* #############################################################################
/* #############################################################################
...
@@ -66,7 +67,8 @@
...
@@ -66,7 +67,8 @@
#ifdef ESP8266
#ifdef ESP8266
#define SYS_LED 2 // GPIO2 (ESP8266 embedded led)
#define SYS_LED 2 // GPIO2 (ESP8266 embedded led)
#elif defined(ESP32)
#elif defined(ESP32)
#define SYS_LED INVALID_GPIO // no system led on ESP32
#define SYS_LED 2 // GPIO2 (ESP32 30pins & green devkit)
// #define SYS_LED INVALID_GPIO // no system led on ESP32 38 pins
#endif
#endif
#endif
#endif
...
@@ -75,7 +77,8 @@
...
@@ -75,7 +77,8 @@
#ifdef ESP8266
#ifdef ESP8266
#define LED 5 // GPIO5 (our main led)
#define LED 5 // GPIO5 (our main led)
#elif defined(ESP32)
#elif defined(ESP32)
#define LED INVALID_GPIO
#define LED 5 // GPIO5 (our main led)
// #define LED INVALID_GPIO
#endif
#endif
#endif
#endif
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment