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

Multiboard support #21

Draft
wants to merge 111 commits into
base: main
Choose a base branch
from
Draft

Conversation

amotl
Copy link
Member

@amotl amotl commented Jan 16, 2021

Hi @ClemensGruber, @andreash-esp and @SBajonczak,

this patch prepares the code base to support three board variants.

  • Heltec WiFi Kit 32
  • Heltec WiFi LoRa 32
  • Heltec WiFi LoRa 32 (V2)

It also removes the HARDWARE_LEVEL preprocessor definition and replaces the respective configuration for HARDWARE_LEVEL == 1 by a constant HARDWARE_LAYOUT_LEGACY.

This will make bringing in the improvements from #15 by @SBajonczak easier as we will not have to introduce either HARDWARE_LEVEL == 3 or invent any other custom #define constants for mapping different boards.

With kind regards,
Andreas.

P.S.: This patch is based on #20, so this PR should be integrated first in order to reduce diff noise.

no more needed with the latest commits at the original HX711 lib from bodge
added hint to updated HX711 lib
copy in other folder
copy in other folder
copy in other folder
copy in other folder
copy in other folder
move historic files to new directory
delet test file
ClemensGruber and others added 21 commits December 18, 2020 19:20
Thanks to Michael!
Drehrichtung im Scroll-Menu umgedreht
Infos zur binär-Datei hinzugefügt
bin-Datei hinzugefügt, wurde mit folgenden Parametern für das Board Heltec ESP32 Arduino > Wifi Kit 32 compiliert:

#define HARDWARE_LEVEL 2        // 1 = originales Layout mit Schalter auf Pin 19/22/21
                                // 2 = Layout für V2 mit Schalter auf Pin 23/19/22
#define SERVO_ERWEITERT         // definieren, falls die Hardware mit dem alten Programmcode mit Poti aufgebaut wurde oder der Servo zu wenig fährt
                                // Sonst bleibt der Servo in Stop-Position einige Grad offen! Nach dem Update erst prüfen!
#define ROTARY_SCALE 2          // in welchen Schritten springt unser Rotary Encoder.
                                // Beispiele: KY-040 = 2, HW-040 = 1, für Poti-Betrieb auf 1 setzen
#define USE_ROTARY              // Rotary benutzen
#define USE_ROTARY_SW           // Taster des Rotary benutzen
Konkretisierung changelog
3D-Teile von JoSef, lieben Dank fürs zur Verfügung stellen!
typo fixed
images added
This will automatically run the build on GitHub Actions.
Thus, it will improve confidence for the authors regarding
all further contributions.
added `^` for 

> any compatible version (new functionality in a backwards compatible manner and patches are allowed, 1.x.x). **RECOMMENDED**

recommended via: https://docs.platformio.org/en/latest/core/userguide/lib/cmd_install.html#description
- A PlatformIO CI badge to show that the build is passing successfully
- A GitHub tag badge to show the most recent release version tag
This uses the most recent versions of the U8g2 and ESP32Servo libraries.

Both libraries are well maintained by their respective authors and
maintainers, so we should use them in favour of outdated libraries
which are no longer maintained.

A little adjustment has been made to one #include statement. The
updated library header file is now called "ESP32Servo.h" instead
of "ESP32_Servo.h".

Also, the servo default settings for the non-"SERVO_ERWEITERT" branch
have been adjusted.
Add badges for PlatformIO CI and GitHub tag
- Fortschrittsanzeige eingebaut
- Servo-Bibliothek geändert, jetzt ESP32Servo aus dem Bibliotheksverwalter und Servo-defaults für die neue Bibliothek angepasst
- PlatformIO-Support an neue Servo-Bibliothek angepasst
This prepares the code base to support three board variants
- Heltec WiFi Kit 32
- Heltec WiFi LoRa 32
- Heltec WiFi LoRa 32 (V2)

It also removes the "HARDWARE_LEVEL" preprocessor definition and
replaces the respective configuration for "HARDWARE_LEVEL == 1"
by a constant "HARDWARE_LAYOUT_LEGACY".
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.

3 participants