Repository navigation
Add Heltec new boards. #4226
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
Add Heltec new boards. #4226
Changes from 4 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
b4c058d
Add Heltec new boards
Heltec-Aaron-Lee 6170b4f
Merge branch 'meshtastic:master' into master
Heltec-Aaron-Lee ba8307b
Update variant.h
Heltec-Aaron-Lee 5cde114
Merge branch 'master' of https://github.com/HelTecAutomation/firmware
Heltec-Aaron-Lee 6e33d50
Merge branch 'meshtastic:master' into master
Heltec-Aaron-Lee 3318837
Merge branch 'meshtastic:master' into master
Heltec-Aaron-Lee a36e026
Merge branch 'meshtastic:master' into master
Heltec-Aaron-Lee dc1440e
Add Heltec New boards
Heltec-Aaron-Lee 36a7250
Add Heltec new boards
Heltec-Aaron-Lee b59f170
Update Heltec Mesh Node definition.
Heltec-Aaron-Lee 75f9472
Update Heltec Vision Mater E290
Heltec-Aaron-Lee 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| { | ||
| "build": { | ||
| "arduino": { | ||
| "ldscript": "nrf52840_s140_v6.ld" | ||
| }, | ||
| "core": "nRF5", | ||
| "cpu": "cortex-m4", | ||
| "extra_flags": "-DARDUINO_NRF52840_PCA10056 -DNRF52840_XXAA", | ||
| "f_cpu": "64000000L", | ||
| "hwids": [ | ||
| ["0x239A", "0x4405"], | ||
| ["0x239A", "0x0029"], | ||
| ["0x239A", "0x002A"] | ||
| ], | ||
| "usb_product": "HT-n5262", | ||
| "mcu": "nrf52840", | ||
| "variant": "heltec_mesh_node_t114", | ||
| "variants_dir": "variants", | ||
| "bsp": { | ||
| "name": "adafruit" | ||
| }, | ||
| "softdevice": { | ||
| "sd_flags": "-DS140", | ||
| "sd_name": "s140", | ||
| "sd_version": "6.1.1", | ||
| "sd_fwid": "0x00B6" | ||
| }, | ||
| "bootloader": { | ||
| "settings_addr": "0xFF000" | ||
| } | ||
| }, | ||
| "connectivity": ["bluetooth"], | ||
| "debug": { | ||
| "jlink_device": "nRF52840_xxAA", | ||
| "onboard_tools": ["jlink"], | ||
| "svd_path": "nrf52840.svd", | ||
| "openocd_target": "nrf52840-mdk-rs" | ||
| }, | ||
| "frameworks": ["arduino"], | ||
| "name": "Heltec nrf (Adafruit BSP)", | ||
| "upload": { | ||
| "maximum_ram_size": 248832, | ||
| "maximum_size": 815104, | ||
| "speed": 115200, | ||
| "protocol": "nrfutil", | ||
| "protocols": ["jlink", "nrfjprog", "nrfutil", "stlink"], | ||
| "use_1200bps_touch": true, | ||
| "require_upload_port": true, | ||
| "wait_for_upload_port": true | ||
| }, | ||
| "url": "FIXME", | ||
| "vendor": "Heltec" | ||
| } |
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
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
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
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
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
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
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
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
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
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
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,17 @@ | ||
| ; First prototype nrf52840/sx1262 device | ||
| [env:heltec-mesh-node-t114] | ||
| extends = nrf52840_base | ||
| board = heltec_mesh_node_t114 | ||
| debug_tool = jlink | ||
|
|
||
| # add -DCFG_SYSVIEW if you want to use the Segger systemview tool for OS profiling. | ||
| build_flags = ${nrf52840_base.build_flags} -Ivariants/heltec_mesh_node_t114 | ||
| -L "${platformio.libdeps_dir}/${this.__env__}/bsec2/src/cortex-m4/fpv4-sp-d16-hard" | ||
|
|
||
| build_src_filter = ${nrf52_base.build_src_filter} +<../variants/heltec_mesh_node_t114> | ||
| lib_deps = | ||
| ${nrf52840_base.lib_deps} | ||
| ;https://github.com/meshtastic/GxEPD2#55f618961db45a23eff0233546430f1e5a80f63a | ||
| lewisxhe/PCF8563_Library@^1.0.1 | ||
| https://github.com/Bei-Ji-Quan/st7789 | ||
| ;upload_protocol = fs |
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,44 @@ | ||
| /* | ||
| Copyright (c) 2014-2015 Arduino LLC. All right reserved. | ||
| Copyright (c) 2016 Sandeep Mistry All right reserved. | ||
| Copyright (c) 2018, Adafruit Industries (adafruit.com) | ||
|
|
||
| This library is free software; you can redistribute it and/or | ||
| modify it under the terms of the GNU Lesser General Public | ||
| License as published by the Free Software Foundation; either | ||
| version 2.1 of the License, or (at your option) any later version. | ||
|
|
||
| This library is distributed in the hope that it will be useful, | ||
| but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| See the GNU Lesser General Public License for more details. | ||
|
|
||
| You should have received a copy of the GNU Lesser General Public | ||
| License along with this library; if not, write to the Free Software | ||
| Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
| */ | ||
|
|
||
| #include "variant.h" | ||
| #include "nrf.h" | ||
| #include "wiring_constants.h" | ||
| #include "wiring_digital.h" | ||
|
|
||
| const uint32_t g_ADigitalPinMap[] = { | ||
| // P0 - pins 0 and 1 are hardwired for xtal and should never be enabled | ||
| 0xff, 0xff, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, | ||
|
|
||
| // P1 | ||
| 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47}; | ||
|
|
||
| void initVariant() | ||
| { | ||
| // LED1 & LED2 | ||
| pinMode(PIN_LED1, OUTPUT); | ||
| ledOff(PIN_LED1); | ||
|
|
||
| pinMode(PIN_LED2, OUTPUT); | ||
| ledOff(PIN_LED2); | ||
|
|
||
| pinMode(PIN_LED3, OUTPUT); | ||
| ledOff(PIN_LED3); | ||
| } |
Oops, something went wrong.
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.
This whole block can come out actually. It's just a remnant from before #3539