Skip to content

added Bee Data Logger board #7997

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

Merged
merged 9 commits into from
Apr 4, 2023
112 changes: 112 additions & 0 deletions boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20300,6 +20300,116 @@ department_of_alchemy_minimain_esp32s2.menu.EraseFlash.all.upload.erase_cmd=-e

##############################################################


Bee_Data_Logger.name=Bee Data Logger
Bee_Data_Logger.vid.0=0x303a
Bee_Data_Logger.pid.0=815C

Bee_Data_Logger.bootloader.tool=esptool_py
Bee_Data_Logger.bootloader.tool.default=esptool_py

Bee_Data_Logger.upload.tool=esptool_py
Bee_Data_Logger.upload.tool.default=esptool_py
Bee_Data_Logger.upload.tool.network=esp_ota

Bee_Data_Logger.upload.maximum_size=1310720
Bee_Data_Logger.upload.maximum_data_size=327680
Bee_Data_Logger.upload.flags=
Bee_Data_Logger.upload.extra_flags=
Bee_Data_Logger.upload.use_1200bps_touch=true
Bee_Data_Logger.upload.wait_for_upload_port=true
Bee_Data_Logger.upload.speed=921600

Bee_Data_Logger.serial.disableDTR=false
Bee_Data_Logger.serial.disableRTS=false

Bee_Data_Logger.build.tarch=xtensa
Bee_Data_Logger.build.bootloader_addr=0x0
Bee_Data_Logger.build.target=esp32s3
Bee_Data_Logger.build.mcu=esp32s3
Bee_Data_Logger.build.core=esp32
Bee_Data_Logger.build.variant=Bee_Data_Logger
Bee_Data_Logger.build.board=BEE_DATA_LOGGER

Bee_Data_Logger.build.cdc_on_boot=1
Bee_Data_Logger.build.msc_on_boot=1
Bee_Data_Logger.build.dfu_on_boot=1
Bee_Data_Logger.build.f_cpu=240000000L
Bee_Data_Logger.build.flash_size=8MB
Bee_Data_Logger.build.flash_freq=80m
Bee_Data_Logger.build.flash_mode=dio
Bee_Data_Logger.build.partitions=default_8MB
Bee_Data_Logger.build.defines=
Bee_Data_Logger.build.loop_core=-DARDUINO_RUNNING_CORE=1
Bee_Data_Logger.build.event_core=-DARDUINO_EVENT_RUNNING_CORE=1
Bee_Data_Logger.build.boot=qio
Bee_Data_Logger.build.partitions=default
Bee_Data_Logger.build.defines=

Bee_Data_Logger.menu.CDCOnBoot.default=Enabled
Bee_Data_Logger.menu.CDCOnBoot.default.build.cdc_on_boot=1
Bee_Data_Logger.menu.CDCOnBoot.dis_cdc=Disabled
Bee_Data_Logger.menu.CDCOnBoot.dis_cdc.build.cdc_on_boot=0

Bee_Data_Logger.menu.MSCOnBoot.default=Disabled
Bee_Data_Logger.menu.MSCOnBoot.default.build.msc_on_boot=0
Bee_Data_Logger.menu.MSCOnBoot.msc=Enabled
Bee_Data_Logger.menu.MSCOnBoot.msc.build.msc_on_boot=1

Bee_Data_Logger.menu.DFUOnBoot.default=Disabled
Bee_Data_Logger.menu.DFUOnBoot.default.build.dfu_on_boot=0
Bee_Data_Logger.menu.DFUOnBoot.dfu=Enabled
Bee_Data_Logger.menu.DFUOnBoot.dfu.build.dfu_on_boot=1

Bee_Data_Logger.menu.USBMode.default=USB-OTG
Bee_Data_Logger.menu.USBMode.default.build.usb_mode=0
Bee_Data_Logger.menu.USBMode.default.upload.use_1200bps_touch=true
Bee_Data_Logger.menu.USBMode.default.upload.wait_for_upload_port=true
Bee_Data_Logger.menu.USBMode.hwcdc=Hardware CDC and JTAG
Bee_Data_Logger.menu.USBMode.hwcdc.build.usb_mode=1
Bee_Data_Logger.menu.USBMode.hwcdc.upload.use_1200bps_touch=false
Bee_Data_Logger.menu.USBMode.hwcdc.upload.wait_for_upload_port=false

Bee_Data_Logger.menu.PartitionScheme.default=Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)
Bee_Data_Logger.menu.PartitionScheme.default.build.partitions=default
Bee_Data_Logger.menu.PartitionScheme.defaultffat=Default 4MB with ffat (1.2MB APP/1.5MB FATFS)
Bee_Data_Logger.menu.PartitionScheme.defaultffat.build.partitions=default_ffat
Bee_Data_Logger.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS)
Bee_Data_Logger.menu.PartitionScheme.no_ota.build.partitions=no_ota
Bee_Data_Logger.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
Bee_Data_Logger.menu.PartitionScheme.noota_3g=No OTA (1MB APP/3MB SPIFFS)
Bee_Data_Logger.menu.PartitionScheme.noota_3g.build.partitions=noota_3g
Bee_Data_Logger.menu.PartitionScheme.noota_3g.upload.maximum_size=1048576
Bee_Data_Logger.menu.PartitionScheme.noota_ffat=No OTA (2MB APP/2MB FATFS)
Bee_Data_Logger.menu.PartitionScheme.noota_ffat.build.partitions=noota_ffat
Bee_Data_Logger.menu.PartitionScheme.noota_ffat.upload.maximum_size=2097152
Bee_Data_Logger.menu.PartitionScheme.noota_3gffat=No OTA (1MB APP/3MB FATFS)
Bee_Data_Logger.menu.PartitionScheme.noota_3gffat.build.partitions=noota_3gffat
Bee_Data_Logger.menu.PartitionScheme.noota_3gffat.upload.maximum_size=1048576
Bee_Data_Logger.menu.PartitionScheme.huge_app=Huge APP (3MB No OTA/1MB SPIFFS)
Bee_Data_Logger.menu.PartitionScheme.huge_app.build.partitions=huge_app
Bee_Data_Logger.menu.PartitionScheme.huge_app.upload.maximum_size=3145728

Bee_Data_Logger.menu.DebugLevel.none=None
Bee_Data_Logger.menu.DebugLevel.none.build.code_debug=0
Bee_Data_Logger.menu.DebugLevel.error=Error
Bee_Data_Logger.menu.DebugLevel.error.build.code_debug=1
Bee_Data_Logger.menu.DebugLevel.warn=Warn
Bee_Data_Logger.menu.DebugLevel.warn.build.code_debug=2
Bee_Data_Logger.menu.DebugLevel.info=Info
Bee_Data_Logger.menu.DebugLevel.info.build.code_debug=3
Bee_Data_Logger.menu.DebugLevel.debug=Debug
Bee_Data_Logger.menu.DebugLevel.debug.build.code_debug=4
Bee_Data_Logger.menu.DebugLevel.verbose=Verbose
Bee_Data_Logger.menu.DebugLevel.verbose.build.code_debug=5

Bee_Data_Logger.menu.EraseFlash.none=Disabled
Bee_Data_Logger.menu.EraseFlash.none.upload.erase_cmd=
Bee_Data_Logger.menu.EraseFlash.all=Enabled
Bee_Data_Logger.menu.EraseFlash.all.upload.erase_cmd=-e

############################################################

Bee_Motion_S3.name=Bee Motion S3
Bee_Motion_S3.vid.0=0x303a
Bee_Motion_S3.pid.0=0x8113
Expand Down Expand Up @@ -22424,3 +22534,5 @@ crabik_slot_esp32_s3.menu.EraseFlash.all=Enabled
crabik_slot_esp32_s3.menu.EraseFlash.all.upload.erase_cmd=-e

##############################################################


78 changes: 78 additions & 0 deletions variants/Bee_Data_Logger/pins_arduino.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
#ifndef Pins_Arduino_h
#define Pins_Arduino_h

#include <stdint.h>

#define USB_VID 0x303A
#define USB_PID 0x815C
#define USB_MANUFACTURER "Smart Bee Designs"
#define USB_PRODUCT "Bee Data Logger"
#define USB_SERIAL ""

#define EXTERNAL_NUM_INTERRUPTS 46
#define NUM_DIGITAL_PINS 13
#define NUM_ANALOG_INPUTS 7

#define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1)
#define digitalPinToInterrupt(p) (((p)<48)?(p):-1)
#define digitalPinHasPWM(p) (p < 46)

static const uint8_t TX = 43;
static const uint8_t RX = 44;

static const uint8_t SDA = 37;
static const uint8_t SCL = 36;

static const uint8_t SS = 47;
static const uint8_t MOSI = 46;
static const uint8_t MISO = 45;
static const uint8_t SDO = 35;
static const uint8_t SDI = 37;
static const uint8_t SCK = 48;

static const uint8_t A3 = 3;
static const uint8_t A4 = 4;
static const uint8_t A5 = 5;
static const uint8_t A6 = 6;
static const uint8_t A7 = 7;
static const uint8_t A8 = 8;
static const uint8_t A9 = 9;


static const uint8_t D3 = 3;
static const uint8_t D4 = 4;
static const uint8_t D5 = 5;
static const uint8_t D6 = 6;
static const uint8_t D7 = 7;
static const uint8_t D8 = 8;
static const uint8_t D9 = 9;
static const uint8_t D38 = 38;
static const uint8_t D39 = 39;
static const uint8_t D41 = 41;
static const uint8_t D42 = 42;
static const uint8_t D43 = 43;
static const uint8_t D44 = 44;


static const uint8_t T3 = 3;
static const uint8_t T4 = 4;
static const uint8_t T5 = 5;
static const uint8_t T6 = 6;
static const uint8_t T7 = 7;
static const uint8_t T8 = 8;
static const uint8_t T9 = 9;
static const uint8_t T10 = 10;
static const uint8_t T11 = 11;
static const uint8_t T12 = 12;
static const uint8_t T13 = 13;
static const uint8_t T14 = 14;

static const uint8_t BOOT_BTN = 0;
static const uint8_t VBAT_VOLTAGE = 1;
static const uint8_t VBUS_SENSE = 2;
static const uint8_t LDO2 = 34;
static const uint8_t RGB_DATA = 40;
static const uint8_t RGB_PWR = 34;


#endif /* Pins_Arduino_h */