Skip to content

Commit 55aff8d

Browse files
authored
Merge pull request #340 from UnexpectedCircuitPython/NanoS3
Add Unexpected Maker NanoS3
2 parents e25d97b + 05ba59e commit 55aff8d

File tree

4 files changed

+81
-0
lines changed

4 files changed

+81
-0
lines changed

.github/workflows/build_esp32.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ jobs:
9393
- 'smartbeedesigns_bee_motion_s3'
9494
- 'smartbeedesigns_bee_s3'
9595
- 'unexpectedmaker_feathers3'
96+
- 'unexpectedmaker_nanos3'
9697
- 'unexpectedmaker_pros3'
9798
- 'unexpectedmaker_tinys3'
9899
- 'yd_esp32_s3_n16r8'
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Apply board specific content here
2+
set(IDF_TARGET "esp32s3")
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
/*
2+
* The MIT License (MIT)
3+
*
4+
* Copyright (c) 2020 Ha Thach (tinyusb.org) for Adafruit Industries
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in
14+
* all copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22+
* THE SOFTWARE.
23+
*/
24+
25+
#ifndef UNEXPECTEDMAKER_NANOS3_H_
26+
#define UNEXPECTEDMAKER_NANOS3_H_
27+
28+
//--------------------------------------------------------------------+
29+
// Button
30+
//--------------------------------------------------------------------+
31+
32+
// Enter UF2 mode if GPIO is pressed while 2nd stage bootloader indicator
33+
// is on e.g RGB = Purple. If it is GPIO0, user should not hold this while
34+
// reset since that will instead run the 1st stage ROM bootloader
35+
#define PIN_BUTTON_UF2 0
36+
37+
// GPIO that implement 1-bit memory with RC components which hold the
38+
// pin value long enough for double reset detection.
39+
// #define PIN_DOUBLE_RESET_RC 47
40+
41+
//--------------------------------------------------------------------+
42+
// LED
43+
//--------------------------------------------------------------------+
44+
45+
// GPIO connected to Neopixel data
46+
#define NEOPIXEL_PIN 41
47+
48+
#define NEOPIXEL_POWER_PIN 42
49+
#define NEOPIXEL_POWER_STATE 1
50+
51+
// Brightness percentage from 1 to 255
52+
#define NEOPIXEL_BRIGHTNESS 0x64
53+
54+
// Number of neopixels
55+
#define NEOPIXEL_NUMBER 1
56+
57+
//--------------------------------------------------------------------+
58+
// USB UF2
59+
//--------------------------------------------------------------------+
60+
61+
#define USB_VID 0x303A
62+
#define USB_PID 0x817B
63+
#define USB_MANUFACTURER "Unexpected Maker"
64+
#define USB_PRODUCT "NanoS3"
65+
66+
#define UF2_PRODUCT_NAME USB_MANUFACTURER " " USB_PRODUCT
67+
#define UF2_BOARD_ID "ESP32S3-NanoS3-01"
68+
#define UF2_VOLUME_LABEL "NANOS3BOOT"
69+
#define UF2_INDEX_URL "https://circuitpython.org/board/unexpectedmaker_nanos3/"
70+
71+
#endif
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Board Specific Config
2+
3+
# Partition Table
4+
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions-8MB.csv"
5+
6+
# Serial flasher config
7+
CONFIG_ESPTOOLPY_FLASHSIZE_8MB=y

0 commit comments

Comments
 (0)