Comments (5)
Hello,
the definitions are here. Include simba.h
to access it. Defines should be added in all ESP8266 boards' header files. Can you help out doing that?
from simba.
Will try to understand how that should be done.
from simba.
created a PR #195
from simba.
After merge into master this is not working anymore. The last working commit is my f6160d3 - and starting with this merge commit 9f1d9e0 it breaks. After upload the LED blinks very fast and in console I see this repeating:
OS SDK ver: 1.3.0(68c9e7b) compiled @ Nov 2 2015 18:53:21
phy ver: 484, pp ver: 9.9
mode : softAP(1a:fe:34:99:a1:5f)
dhcp server start:(ip:192.168.4.1,mask:255.255.255.0,gw:192.168.4.1)
add if1
��@*ר�+�,�lժ�.�hת����.�+�-Hj�NX���*�,�,�,�*��A��/@��*�/%�n�*�����nA,X����*���k�,�*��A��*���(���n�*�����nA,v����*���k�-�*��A.�*���(���n�*Ţ���nA,rv�^P�������.�������¹VR���dA%�*�(�(�(�"��@�F %+�(�(����^��@b �j�(U�v@�%p
�z��B�X�B���RvP�P�|`r�RP���
��pp_task_hdl : 3fff45f0, prio:13, stack:512
pm_task_hdl : 3fff4ec0, prio:1, stack:255
tcpip_task_hdl : 3fff4370, prio:10,stack:512
idle_task_hdl : 3fff4410,prio:0, stack:255
tim_task_hdl : 3fff67b8, prio:2,stack:256
xPortStartScheduler
frc2_timer_task_hdl:3fff6cc8, prio:12, stack:512
My test code is this:
#include "simba.h"
static struct exti_driver_t exti_motion_sensor;
static struct pin_driver_t motion_sensor;
static struct pin_driver_t led;
static void on_motion(void *arg_p) {
pin_toggle(&led);
}
int main() {
/* Start the system. */
sys_start();
/* LED */
pin_init(&led, &pin_led_dev, PIN_OUTPUT);
pin_write(&led, 0);
/* Motion sensor */
pin_init(&motion_sensor, &pin_d2_dev, PIN_INPUT_PULL_DOWN);
exti_init(&exti_motion_sensor, &exti_d2_dev, EXTI_TRIGGER_BOTH_EDGES,
on_motion, NULL);
exti_start(&exti_motion_sensor);
return (0);
}
I tested several esp01 boards and different commits and the problem persists. Blink example still works. Maybe someone see some breaking change in this f6160d3...9f1d9e0 diff. Also I don't have any config.h
.
Let me know if more info is needed.
from simba.
I'll not have time to troubleshoot this, I'm afraid. Sorry.
from simba.
Related Issues (20)
- Missing serial port configuration parameters for shell example HOT 2
- Upgrade support for esp family HOT 3
- std_read() HOT 3
- Reduce Memory Usage HOT 2
- SoftwareSerial RS485 Arduino.h to Simba.h HOT 3
- STM32F103C8T6 Support
- Not all ports have nvm_port_vwrite HOT 1
- Fuzzy testing brainstorming
- New user, unable to compile blink in Arduino ESP12E
- Pro Micro blink example not working HOT 2
- Uploading SPIFFS to ESP8266 HOT 1
- Unable to build with DHT from PlatformIO HOT 2
- Is there missing struct initialization? (http_websocket_client_connect) HOT 2
- Timer timeouts in threads are broken. HOT 2
- Vendor link on platformio broken HOT 1
- Request: Comparison Chart HOT 1
- nanoatmega328new board should be mapped to arduino nano HOT 1
- PIN_INPUT_PULL_UP has been deleted HOT 5
- Question about pure MCU work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simba.