@felmue
I came to exactly the same conclusion via brute force and ignorance!
I decided to ditch the EasyIO and played with the PIN option, one of the examples made it clear that the values 0-4 were virtual proxies . So I ended up with this, which works. I did not try 3.3v as I had it working on 5v on my arduino. Thanks for help
from m5stack import *
from m5ui import *
from uiflow import *
import machine
setScreenColor(0x111111)
l1 = M5TextBox(0, 225, "Intruder Status", lcd.FONT_Default, 0xFFFFFF, rotate=0)
cIntruder = M5Circle(117, 230, 5, 0xFFFFFF, 0xFFFFFF)
pin0 = machine.Pin(26, mode=machine.Pin.IN, pull=machine.Pin.PULL_UP)
pin0.off()
while True:
if (pin0.value()) == 1:
cIntruder.setBgColor(0xff0000)
else:
cIntruder.setBgColor(0x33cc00)
wait_ms(2)