symlink hacks to make Arduino IDE use local libraries
This commit is contained in:
parent
8c95deff00
commit
7559e78719
@ -11,10 +11,16 @@
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets"/>
|
||||
<storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.pathentry">
|
||||
<pathentry include="~/.arduino15/packages/esp32/hardware/esp32/1.0.6/cores/esp32" kind="inc" path="" system="true"/>
|
||||
<pathentry include="~/.arduino15/packages/esp32/hardware/esp32/1.0.6/tools/sdk/include/newlib" kind="inc" path="" system="true"/>
|
||||
<pathentry include="/home/youen/.arduino15/packages/esp32/hardware/esp32/1.0.6/cores/esp32" kind="inc" path="" system="true"/>
|
||||
<pathentry include="/home/youen/.arduino15/packages/esp32/hardware/esp32/1.0.6/tools/sdk/include/newlib" kind="inc" path="" system="true"/>
|
||||
<pathentry include="/home/youen/.arduino15/packages/esp32/hardware/esp32/1.0.6/libraries/WiFi/src" kind="inc" path="" system="true"/>
|
||||
<pathentry include="/home/youen/Arduino/libraries/AsyncTCP/src" kind="inc" path="" system="true"/>
|
||||
<pathentry include="/home/youen/Arduino/libraries/ESPAsyncWebServer/src" kind="inc" path="" system="true"/>
|
||||
<pathentry include="/home/youen/.arduino15/packages/esp32/hardware/esp32/1.0.6/libraries/FS/src" kind="inc" path="" system="true"/>
|
||||
<pathentry kind="mac" name="ESP32" path="" value=""/>
|
||||
<pathentry kind="out" path="build"/>
|
||||
<pathentry kind="src" path=""/>
|
||||
</storageModule>
|
||||
</cproject>
|
||||
</cproject>
|
9
ESP32/register-libraries.sh
Executable file
9
ESP32/register-libraries.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
DIR="$( cd "$( dirname "$0" )" && pwd )"
|
||||
|
||||
rm -f -- ~/Arduino/libraries/AsyncTCP
|
||||
ln -s $DIR/3rdparty/AsyncTCP ~/Arduino/libraries/AsyncTCP
|
||||
|
||||
rm -f -- ~/Arduino/libraries/ESPAsyncWebServer
|
||||
ln -s $DIR/3rdparty/ESPAsyncWebServer ~/Arduino/libraries/ESPAsyncWebServer
|
||||
|
@ -1,31 +1,17 @@
|
||||
/* The true ESP32 chip ID is essentially its MAC address.
|
||||
This sketch provides an alternate chip ID that matches
|
||||
the output of the ESP.getChipId() function on ESP8266
|
||||
(i.e. a 32-bit integer matching the last 3 bytes of
|
||||
the MAC address. This is less unique than the
|
||||
MAC address chip ID, but is helpful when you need
|
||||
an identifier that can be no more than a 32-bit integer
|
||||
(like for switch...case).
|
||||
|
||||
created 2020-06-07 by cweinhofer
|
||||
with help from Cicicok */
|
||||
|
||||
#include <Arduino.h>
|
||||
|
||||
uint32_t chipId = 0;
|
||||
|
||||
void setup() {
|
||||
#include <WiFi.h>
|
||||
#include <ESPAsyncWebServer.h>
|
||||
|
||||
void setup()
|
||||
{
|
||||
Serial.begin(115200);
|
||||
}
|
||||
|
||||
void loop() {
|
||||
for(int i=0; i<17; i=i+8) {
|
||||
chipId |= ((ESP.getEfuseMac() >> (40 - i)) & 0xff) << i;
|
||||
}
|
||||
|
||||
void loop()
|
||||
{
|
||||
Serial.printf("ESP32 Chip model = %s Rev %d\n", ESP.getChipModel(), ESP.getChipRevision());
|
||||
Serial.printf("This chip has %d cores\n", ESP.getChipCores());
|
||||
Serial.print("Chip ID: "); Serial.println(chipId);
|
||||
|
||||
|
||||
delay(3000);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user