Search found 1717 matches
- Fri Apr 03, 2026 6:39 am
- Forum: General
- Topic: MCP320x 16-bit to MC format question
- Replies: 6
- Views: 171
Re: MCP320x 16-bit to MC format question
To use the spi - probably use spi master. To compile you will need to specify a DOUT (MOSI)- it won't be connected to any thing - but this is okay (toggling the clock pin transfers the data). If using transactions - the dataout will be just be dummy data which will be ignored. Note that some MCUs on...
- Thu Apr 02, 2026 9:06 pm
- Forum: General
- Topic: MCP320x 16-bit to MC format question
- Replies: 6
- Views: 171
Re: MCP320x 16-bit to MC format question
Yes - the SPI does just send and receive bytes (8 bits) - however characters are also just bytes too... Strings - 0 is treated as the end of the string - so receiving a string will 'stop' at this point. You could use Transaction to receive a byte at a time - just send 0 if no data to send (SPI is bi...
- Thu Apr 02, 2026 8:59 am
- Forum: App Developer
- Topic: Number Pad
- Replies: 7
- Views: 212
Re: Number Pad
Thanks Steve,
Sorry - I hadn't noticed that the file extensions had changed in v11 - I can re-do in v10 if changing the file extension doesn't do the trick....
Martin
Sorry - I hadn't noticed that the file extensions had changed in v11 - I can re-do in v10 if changing the file extension doesn't do the trick....
Martin
- Thu Apr 02, 2026 7:37 am
- Forum: General
- Topic: MCP320x 16-bit to MC format question
- Replies: 6
- Views: 171
Re: MCP320x 16-bit to MC format question
Looking at the datasheet - this is indeed the case - so as the SPI component reads the data in bytes (8 bits) there will be 4 bits to remove. There are ways around this: 1) Mask/shift the appropriate bits in the bytes received before conversion to a word. 2) Convert to 16 bit word then mask and shif...
- Wed Apr 01, 2026 6:52 pm
- Forum: App Developer
- Topic: Number Pad
- Replies: 7
- Views: 212
Re: Number Pad
I changed tack slightly and used GetLastChar - looking for '\n' - here I just display the value (using a numeric indicator) - and clear the current entry on 'enter'.
Not very elegant - left all my 'working' in (although disabled) - to show how I looked at the returned data.
Martin
Not very elegant - left all my 'working' in (although disabled) - to show how I looked at the returned data.
Martin
- Wed Apr 01, 2026 6:38 pm
- Forum: App Developer
- Topic: Number Pad
- Replies: 7
- Views: 212
Re: Number Pad
It's less easy than it should be.... One way - get the string input (GetInputString) - 'pressing' Enter on the keypad is returned as character '\n' (0x0a) - if this is received then set the display and 'clear' the input buffer. In a similar vein - the 'EditBox' - doesn't seem to have any way to read...
- Wed Apr 01, 2026 2:46 pm
- Forum: General
- Topic: ESP32 UART-USB Brige How to use
- Replies: 50
- Views: 19215
Re: ESP32 UART-USB Brige How to use
Looks good....
Easy to add other 'options' if needed too...
Still faffing with the circular includes
I couldn't get a 'new' program (with tinyusb) to compile yesterday - but old stuff was okay. Something odd going on. It will sort!
Martin
Easy to add other 'options' if needed too...
Still faffing with the circular includes
Martin
- Wed Apr 01, 2026 12:02 pm
- Forum: General
- Topic: ESP32 UART-USB Brige How to use
- Replies: 50
- Views: 19215
Re: ESP32 UART-USB Brige How to use
I commented out a couple of the #includes in supplementary code - you'll probably need to re-enable....
- Wed Apr 01, 2026 11:58 am
- Forum: General
- Topic: ESP32 UART-USB Brige How to use
- Replies: 50
- Views: 19215
Re: ESP32 UART-USB Brige How to use
Hi Stefan, Something like this? Post_esp531_3.fcfx However - I have some serious issues recompiling this (- a nested #include somewhere!) - I removed the UART component thinking it was this (and I had a seemingly unending circular list of errors!) - but I still get " from C:\Users\Martin\Downlo...
- Mon Mar 30, 2026 11:06 am
- Forum: General
- Topic: ESP32 UART-USB Brige How to use
- Replies: 50
- Views: 19215
Re: ESP32 UART-USB Brige How to use
Hi Stefan, Yes - you can use the C to initialise - rename (app_main) initialise (or some such) and add a function definition to the 'includes' (top) box of supplementary code... ( void initialise(void); ) Remove the loop (and the 'hello world'?) from the end of the function... Then call initialise()...