Search found 3 matches
- Tue Oct 20, 2020 8:09 am
- Forum: ESP32 boards
- Topic: Multi Connect SPI
- Replies: 1
- Views: 1103
Multi Connect SPI
i use an wemos board one SPI ist the for the TFT Port and a other for the SD Card. Only Difference ist an other Chipselect Output.Pin- mosi/miso usw use the same Pins - technical no problem The Driver for the TFT toggels the Chipselect - so no problem - but toggels the SD Card Class the CS Pin ? CS ...
- Mon Oct 12, 2020 5:09 pm
- Forum: Programs, Libraries and Tools
- Topic: uctypes how to struc
- Replies: 2
- Views: 1724
Re: uctypes how to struc
read from a socket ldat = connection.recv(4) # get len field dlen = ustruct.decode("!i",ldat) #byte to int bdat = connection.recv(dlen) #get bytes tdat = bdat.decode('utf-8') # bytes to text odat = json.loads(tdat) #json text to obj back = obj.call(odat) # tdat = ujson.dumps(back) bdat = tdat.encode...
- Wed Oct 07, 2020 11:13 am
- Forum: Programs, Libraries and Tools
- Topic: uctypes how to struc
- Replies: 2
- Views: 1724
uctypes how to struc
first : i found 2 versions for define an struct offset | uctype or uctype | offset Which version is the right one ? 2: variable len of an array - how ? background : i want to handel a Vertex Message - first come 4 Byte for len message then comes the data as (json/text) vertex = { "size" : 0 | uctype...