-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Add senseBox Eye board #11608
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
Open
PaulaScharf
wants to merge
9
commits into
espressif:master
Choose a base branch
from
PaulaScharf:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+344
−0
Open
Add senseBox Eye board #11608
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
9641de1
feat(board): add senseBox Eye board
PaulaScharf 6a33f0b
fix(board): add APOTA description comments
PaulaScharf 7621079
fix(board): add APOTA to senseBox Eye
PaulaScharf f330585
feat(board): update PID
PaulaScharf cdf606a
feat(board): updated tinyuf2 bins
PaulaScharf 439bbb8
feat(board): use additional button for APOTA
PaulaScharf cf0a589
feat(board): remove APOTA
PaulaScharf 28e9076
feat(board): build name uppercase
PaulaScharf 349b11d
feat(board): name tag lowercase
PaulaScharf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# ESP-IDF Partition Table | ||
# Name, Type, SubType, Offset, Size, Flags | ||
# bootloader.bin,, 0x1000, 32K | ||
# partition table, 0x8000, 4K | ||
nvs, data, nvs, 0x9000, 20K, | ||
otadata, data, ota, 0xe000, 8K, | ||
ota_0, 0, ota_0, 0x10000, 2048K, | ||
ota_1, 0, ota_1, 0x210000, 2048K, | ||
uf2, app, factory,0x410000, 256K, | ||
ffat, data, fat, 0x450000, 11968K, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
#ifndef Pins_Arduino_h | ||
#define Pins_Arduino_h | ||
|
||
#include <stdint.h> | ||
|
||
#define USB_VID 0x303A | ||
#define USB_PID 0x82D1 | ||
#define USB_MANUFACTURER "senseBox" | ||
#define USB_PRODUCT "Eye ESP32S3" | ||
#define USB_SERIAL "" // Empty string for MAC address | ||
|
||
// Default USB FirmwareMSC Settings | ||
#define USB_FW_MSC_VENDOR_ID "senseBox" // max 8 chars | ||
#define USB_FW_MSC_PRODUCT_ID "Eye ESP32S3" // max 16 chars | ||
#define USB_FW_MSC_PRODUCT_REVISION "1.00" // max 4 chars | ||
#define USB_FW_MSC_VOLUME_NAME "senseBox" // max 11 chars | ||
#define USB_FW_MSC_SERIAL_NUMBER 0x00000000 | ||
|
||
#define PIN_RGB_LED 45 // RGB LED | ||
#define RGBLED_PIN 45 // RGB LED | ||
#define PIN_LED 45 | ||
#define RGBLED_NUM 1 // number of RGB LEDs | ||
|
||
// Default I2C QWIIC-Ports | ||
static const uint8_t SDA = 2; | ||
static const uint8_t SCL = 1; | ||
#define PIN_QWIIC_SDA 2 | ||
#define PIN_QWIIC_SCL 1 | ||
|
||
// IO Pins | ||
#define PIN_IO14 14 | ||
static const uint8_t A14 = PIN_IO14; // Analog | ||
static const uint8_t D14 = PIN_IO14; // Digital | ||
static const uint8_t T14 = PIN_IO14; // Touch | ||
#define PIN_IO48 48 | ||
static const uint8_t A48 = PIN_IO48; // Analog | ||
static const uint8_t D48 = PIN_IO48; // Digital | ||
static const uint8_t T48 = PIN_IO48; // Touch | ||
|
||
// Button | ||
#define PIN_BUTTON 47 | ||
|
||
// UART Port | ||
static const uint8_t TX = 43; | ||
static const uint8_t RX = 44; | ||
#define PIN_UART_TXD 43 | ||
#define PIN_UART_RXD 44 | ||
#define PIN_UART_ENABLE 26 | ||
|
||
// SD-Card | ||
#define MISO 40 | ||
#define MOSI 38 | ||
#define SCK 39 | ||
#define SS 41 | ||
#define SD_ENABLE 3 | ||
|
||
#define PIN_SD_MISO 40 | ||
#define PIN_SD_MOSI 38 | ||
#define PIN_SD_SCLK 39 | ||
#define PIN_SD_CS 41 | ||
#define PIN_SD_ENABLE 3 | ||
|
||
// USB | ||
#define PIN_USB_DM 19 | ||
#define PIN_USB_DP 20 | ||
|
||
// Camera | ||
#define PWDN_GPIO_NUM 46 | ||
#define RESET_GPIO_NUM -1 | ||
#define XCLK_GPIO_NUM 15 | ||
#define SIOD_GPIO_NUM 4 | ||
#define SIOC_GPIO_NUM 5 | ||
|
||
#define Y9_GPIO_NUM 16 | ||
#define Y8_GPIO_NUM 17 | ||
#define Y7_GPIO_NUM 18 | ||
#define Y6_GPIO_NUM 12 | ||
#define Y5_GPIO_NUM 10 | ||
#define Y4_GPIO_NUM 8 | ||
#define Y3_GPIO_NUM 9 | ||
#define Y2_GPIO_NUM 11 | ||
#define VSYNC_GPIO_NUM 6 | ||
#define HREF_GPIO_NUM 7 | ||
#define PCLK_GPIO_NUM 13 | ||
|
||
// LoRa | ||
#define LORA_TX 43 | ||
#define LORA_RX 44 | ||
|
||
#endif /* Pins_Arduino_h */ |
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#include "esp32-hal-gpio.h" | ||
#include "pins_arduino.h" | ||
#include "driver/rmt_tx.h" | ||
|
||
extern "C" { | ||
|
||
void blinkLED(uint8_t color[3], rmt_channel_handle_t led_chan, rmt_encoder_handle_t ws2812_encoder, rmt_transmit_config_t tx_config) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please use Arduino APIs for RMT and do not use |
||
ESP_ERROR_CHECK(rmt_transmit(led_chan, ws2812_encoder, color, sizeof(color), &tx_config)); | ||
rmt_tx_wait_all_done(led_chan, portMAX_DELAY); | ||
|
||
// Wait a moment | ||
delay(50); | ||
|
||
// Turn LED off | ||
uint8_t pixel_off[3] = { 0x00, 0x00, 0x00 }; | ||
ESP_ERROR_CHECK(rmt_transmit(led_chan, ws2812_encoder, pixel_off, sizeof(pixel_off), &tx_config)); | ||
rmt_tx_wait_all_done(led_chan, portMAX_DELAY); | ||
} | ||
|
||
void initVariant(void) { | ||
rmt_channel_handle_t led_chan = NULL; | ||
rmt_tx_channel_config_t tx_chan_config = {}; | ||
tx_chan_config.clk_src = RMT_CLK_SRC_DEFAULT; | ||
tx_chan_config.resolution_hz = 10 * 1000 * 1000; | ||
tx_chan_config.mem_block_symbols = 64; | ||
tx_chan_config.trans_queue_depth = 4; | ||
tx_chan_config.gpio_num = (gpio_num_t)PIN_LED; | ||
tx_chan_config.flags.invert_out = false; | ||
tx_chan_config.flags.with_dma = false; | ||
ESP_ERROR_CHECK(rmt_new_tx_channel(&tx_chan_config, &led_chan)); | ||
|
||
// WS2812 encoder config (available in `esp-rmt`) | ||
rmt_encoder_handle_t ws2812_encoder = NULL; | ||
rmt_bytes_encoder_config_t bytes_encoder_config = { | ||
.bit0 = { .duration0 = 4, .level0 = 1, .duration1 = 9, .level1 = 0 }, | ||
.bit1 = { .duration0 = 8, .level0 = 1, .duration1 = 5, .level1 = 0 }, | ||
.flags = { .msb_first = true } | ||
}; | ||
ESP_ERROR_CHECK(rmt_new_bytes_encoder(&bytes_encoder_config, &ws2812_encoder)); | ||
|
||
ESP_ERROR_CHECK(rmt_enable(led_chan)); | ||
|
||
rmt_transmit_config_t tx_config = { | ||
.loop_count = 0 | ||
}; | ||
|
||
uint8_t pixel[3] = { 0x10, 0x00, 0x00 }; // green | ||
blinkLED(pixel, led_chan, ws2812_encoder, tx_config); | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are deleting other users' boards. Please rebase your branch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@PaulaScharf please fix this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry about that. I hope its good now