Questions with regards to ESP8266 Basic and hardware interfacing and control via Basic commands

Moderator: Mmiscool

User avatar
By lpservices
#53734 Hello tcpipchip,

glad to hear the touch is now working as it should be!
perhaps we can convince mmiscool to add an extra parameter in tft.touch.setup(T_CS pin),
to allow for bad orientation of the touchscreen something like:
tft.touch.setup(T_CS pin,0) ---> normal orientation
tft.touch.setup(T_CS pin,1) ---> reversed orientation

I also tested the swapping of bitmaps, even with version 3.0 alpha 42
Indeed after a couple of swap the esp8266 craches
Maybe some memory is not released correctly, this defently a bug
I am going to look know how to implement the patch in version alpha 42

- lpservices
User avatar
By tcpipchip
#53735 Hello!!!

Welcome!

I am sure that Mr mmiscool will add this feature on orientation.

I want to use ESP8266 BASIC in a final product and i want to do a lot of tests and make it better :)

If solves too the SWAP BMP messages, it´s fine too!!!!

Thanks again!

Miguel
User avatar
By tcpipchip
#53854 Some news ?

And is there some update ?

Btw, do the ESP_Basic_Flasher is working on WINDOWS 7 ?

Give me error in my three w7 machines

Miguel
User avatar
By tcpipchip
#53866 If possible

can you test the following code, when i execute the RUN or AUTO EXECUTE ON RESET

Connected to Andreia&Miguel
IP address : 192.168.1.125
WIFIname
WIFIpass
Starting Default Program

Soft WDT reset

ctx: cont
sp: 3fff2680 end: 3fff3010 offset: 01b0

>>>stack>>>
3fff2830: ffffffff ffffffff ffffffff ffffffff
3fff2840: df00df00 df00df00 df00df00 df00df00
3fff2850: df00df00 df00df00 df00df00 df00df00
3fff2860: df00df00 df00df00 df00df00 df00df00
3fff2870: df00df00 df00df00 df00df00 df00df00
3fff2880: 00000020 3fff28b0 00000000 4022706a
3fff2890: 9e008300 95009700 00000000 3fff1c24
3fff28a0: ffffffff 0000001c 3fff6bcc 40227336
3fff28b0: 0000df00 00000082 0000ffff 4022c36d
3fff28c0: 00000097 00000083 000000df 4022ad34
3fff28d0: 3ffe8df0 00000000 3fff74f4 3fff74c4
3fff28e0: 3fff1a50 000000a0 0000001e 4020eed7
3fff28f0: 00000002 3fff1a50 3fff74f4 4022ae06
3fff2900: 3ffe8df0 00000007 3fff2960 402284fc
3fff2910: 00000007 0000ffff 720c2901 0000009e


3fff2920: 00000006 00000002 00000008 4022adb5
3fff2930: 00000002 3fff1a50 3fff74d4 3fff2950
3fff2940: 00000002 3fff1a50 00000001 40215328
3fff2950: 3fff29d0 3fff2a74 3fff2d20 402351d5
3fff2960: 00000000 00000000 00000000 00000000
3fff2970: 00000000 00000000 3fff1ff0 3fff2a74
3fff2980: 00000001 3fff1dec 3fff1ff0 3fff2a74
3fff2990: 3fff1fd4 000005e1 000005e1 4010020c
3fff29a0: 00000001 3fff2a74 00000000 00000000
3fff29b0: 00000000 3fff697c 0000000f 00000007
3fff29c0: 00000008 3fff2a40 3fff2a20 00000008
3fff29d0: 3fff2a6c 3fff426c 3fff1ff0 00000001
3fff29e0: 3fff6e1c 3fff1a24 40228894 3fff1ff0
3fff29f0: 3f800000 3fff6e27 00000000 3fff1a24
3fff2a00: 3fff6e1c 00000001 3fff2d20 40235804
3fff2a10: 3fff2a60 40004aa0 000000f8 00111e08
3fff2a20: 3fff6acc 00000000 00000000 00000000
3fff2a30: 00000000 00000000 00000000 00000000
3fff2a40: 7fc00000 43160000 43020000 43200000
3fff2a50: 41f00000 40000000 477fff00 435f0000
3fff2a60: 3fff4884 0000000f 00000000 3f800000
3fff2a70: 00000000 00000008 40228894 3fff1ff0
3fff2a80: 3fff2ad0 00000028 00000000 40201c87
3fff2a90: 3f800000 3fff2ad0 3fff2d20 3fff2b04
3fff2aa0: 3fff1a24 3fff2ad0 3fff2d20 40236081
3fff2ab0: 3f800000 3fff1a24 3fff2d20 40234cd1
3fff2ac0: 00000074 3fff1a24 3fff2d20 40236138
3fff2ad0: 3f800000 00000001 00000000 40201c87
3fff2ae0: 00000100 00000001 3fff1ff0 3fff1a24
3fff2af0: 3f800000 3fff1a30 3fff2d20 40236189
3fff2b00: 3f800000 00000000 40228894 3fff1ff0
3fff2b10: 3fff2b44 00000001 00000000 3fff1a24
3fff2b20: 00000010 3fff2ba4 3fff2ba4 00000000
3fff2b30: 3fff1a24 3fff1a30 3fff2d20 40236240
3fff2b40: 3fff1a24 3fff1a24 40228894 3fff1ff0
3fff2b50: 3fff1a24 3fff1a30 3fff2bb4 40201c87
3fff2b60: 3ffe8df0 3fff1a30 3fff2d20 00000000
3fff2b70: 3fff1a24 3fff1a30 3fff2d20 40235059
3fff2b80: 4000050c 0010ea00 0010ea2c 00000030
3fff2b90: 4000437d 00000030 3fff1ff0 3fff1a30
3fff2ba0: 3fff1a24 3fff7214 0000000f 00000000
3fff2bb0: 3fff1a24 00000000 00000000 40201c87
3fff2bc0: 00000000 3fff2c00 3fff2d20 40234cd1
3fff2bd0: 3ffea795 3fff1a30 3fff2d20 3fff1a24
3fff2be0: 3fff1a24 3fff1a30 3fff2d20 40235971
3fff2bf0: 3fff1a24 00000000 40228894 3fff1ff0
3fff2c00: 3fff1a24 00000000 00000000 40201c87
3fff2c10: 00000001 3fff2c50 3fff2d20 40234cd1
3fff2c20: 7fffffff 3fff1a30 3fff2d20 00000000
3fff2c30: 3fff1a24 3fff1a30 3fff2d20 40235ba5
3fff2c40: 3fff1a24 00000000 3fff1ff0 00000001
3fff2c50: 3fff1a24 00000000 40228894 3fff1ff0
3fff2c60: 3fff2c94 00000001 00000000 40201c87
3fff2c70: 4010605a 00000001 3fff1ff0 00000000
3fff2c80: 3fff1a24 3fff1a30 3fff2d20 40235d65
3fff2c90: 3fff1fd4 00000648 00000648 4010020c
3fff2ca0: 3fff2cd4 3fff6dc4 3fff6cb4 40100668
3fff2cb0: 00000014 00003240 00000648 00000000

Code: Select alltft.setup(16, 4, 1)
tft.touch.setup(15)

bar1 = tft.obj.bar("Analog 1",150,30,160,30, 2, 65535, tft.rgb(0,25,255))
bar2 = tft.obj.bar("Analog 2",150,80,160,30, 2, 65535, tft.rgb(0,25,255))
bar3 = tft.obj.bar("Analog 3",150,130,160,30, 2, 65535, tft.rgb(0,25,255))
bar4 = tft.obj.bar("Analog 4",150,180,160,30, 2, 65535, tft.rgb(0,25,255))
but1 = tft.obj.button("PUSH", 5,100,120,50,3)

level = 0
udpbegin 8888
udpbranch [udp.received]

touchbranch [touchme]

wait

[touchme]
touch_obj = tft.checktouch()
serialprintln touch_obj
if touch_obj = but1 then
  tft.obj.invert(but1)
end if
return

[udp.received]
tft.obj.setvalue(bar1, level)
tft.obj.setvalue(bar2, level)
tft.obj.setvalue(bar3, level)
tft.obj.setvalue(bar4, level)
tft.obj.invert(but1)
level = level + 5
if level = 100 then
    level = 0
end if
let rec = udpread()
let rem = udpremote()
Serialprintln "Message received " & rec & " from " & rem
udpreply "JOSE PIETRO FERREIRA WISINTAINER"
return