Monitor GPIO#

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
pw444
Normal user
Posts: 155
Joined: 23 Apr 2019, 15:34
Location: rio de janeiro

Monitor GPIO#

#1 Post by pw444 » 08 May 2019, 21:10

Hia,

i'm trying to use the command Monitor GPIO#, but no luck.

Code: Select all

on System#Boot do
 let,2,0
 Monitor GPIO,2
endon

 on GPIO#2=0 do
  let,2,0
 endon

 on GPIO#2=1 do
  let,2,1
 endon
 
monitoring by system variables, the result is the same, does not change.

Code: Select all

%v2%     0.00	0.00
but the state of gpio 2 changes (led gets on / off), whichs meens gpio 2 is high (1) or low (0)

Any hint?

Thx in advance

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Monitor GPIO#

#2 Post by grovkillen » 08 May 2019, 22:13

Tried this?:

Code: Select all

on System#Boot do
 let,2,0
 GPIO,2,0
 Monitor GPIO,2
endon

 on GPIO#2 do
  let,2,[GPIO#2]
 endon
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

pw444
Normal user
Posts: 155
Joined: 23 Apr 2019, 15:34
Location: rio de janeiro

Re: Monitor GPIO#

#3 Post by pw444 » 08 May 2019, 23:36

grovkillen wrote: 08 May 2019, 22:13 Tried this?:

Code: Select all

on System#Boot do
 let,2,0
 GPIO,2,0
 Monitor GPIO,2
endon

 on GPIO#2 do
  let,2,[GPIO#2]
 endon

yes, and did not work either with release: GIT version: mega-20181204

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests