I'm beginning with ZBasic and I want some help for my first program.
I'm using a Wemos D1 mini (ESP8266)
I wrote this simple program to blink a led with the D4 (GPIO2) pin :
Code: Select all
Sub Main()
Dim i as Integer, j as Integer
For j = 1 to 32000
PinHigh(2)
For i = 1 to 1000
Next i
PinLow(2)
For i = 1 to 1000
Next i
Next j
End Sub
led.c: In function 'zf_Main':
led.c:110:3: error: 'ESP_PIN_OUT_SET' undeclared (first use in this function)
ESP_PIN_OUT_SET = 0x0002;
^
led.c:110:3: note: each undeclared identifier is reported only once for each function it appears in
led.c:114:3: error: 'ESP_PIN_OUT_CLEAR' undeclared (first use in this function)
ESP_PIN_OUT_CLEAR = 0x0002;
^
Can you help me ?
Thank's !