Browse Source

Modified to work with Adafruit Feather Huzzah (#193)

Modified to work with Adafruit Feather Huzzah
Jon Benson 8 years ago
parent
commit
72da6cff2c
3 changed files with 13 additions and 2 deletions
  1. 1 0
      .gitignore
  2. 2 2
      lib/Settings/Settings.h
  3. 10 0
      platformio.ini

+ 1 - 0
.gitignore

@@ -5,3 +5,4 @@
 /web/node_modules
 /web/node_modules
 /web/build
 /web/build
 /dist/*.bin
 /dist/*.bin
+.vscode/

+ 2 - 2
lib/Settings/Settings.h

@@ -71,8 +71,8 @@ public:
     adminUsername(""),
     adminUsername(""),
     adminPassword(""),
     adminPassword(""),
     // CE and CSN pins from nrf24l01
     // CE and CSN pins from nrf24l01
-    cePin(D0),
-    csnPin(D8),
+    cePin(16),
+    csnPin(15),
     resetPin(0),
     resetPin(0),
     radioInterfaceType(nRF24),
     radioInterfaceType(nRF24),
     deviceIds(NULL),
     deviceIds(NULL),

+ 10 - 0
platformio.ini

@@ -71,3 +71,13 @@ extra_scripts = ${common.extra_scripts}
 lib_deps =
 lib_deps =
   ${common.lib_deps_builtin}
   ${common.lib_deps_builtin}
   ${common.lib_deps_external}
   ${common.lib_deps_external}
+
+[env:huzzah]
+platform = ${common.platform}
+framework = ${common.framework}
+board = huzzah
+build_flags = ${common.build_flags} -D FIRMWARE_VARIANT=huzzah
+extra_scripts = ${common.extra_scripts}
+lib_deps =
+  ${common.lib_deps_builtin}
+  ${common.lib_deps_external}