Search found 1023 matches

by mnf
Sat Jun 08, 2024 9:14 pm
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 355
Views: 26883

Re: Download the program for the device via the Internet.

Looking at the component source - and it it makes fairly heavy use of RAM. For example 6 'In' and 10 'Out' buffers of 20 bytes each and ScanNames at 100 bytes. Some might be optimised away by the compiler (?). It might be possible to modify it to a 'cut down' version - with less features and less me...
by mnf
Sat Jun 08, 2024 9:06 pm
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 355
Views: 26883

Re: Download the program for the device via the Internet.

Tested with the WLAN component cut down to a minimum - no web pages, no substitutions. Adding an SSD1306 (height set as 8 ) - and the esp8266 just returns 'error'. Two UARTs also seems to be too much - I tested using a 32 byte string to hold (some of) the firmware version - and used 4800baud (9600 -...
by mnf
Sat Jun 08, 2024 8:14 pm
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 355
Views: 26883

Re: Download the program for the device via the Internet.

A step forward... I managed to reflash the Wemos d1 mini. I managed to get the device to reply with the firmware version using an FTDI device. But - I think the problem is that the ATMega8 at least won't support the display (I tried an ssd1306 and set the display height to 16). I think it might be a...
by mnf
Sat Jun 08, 2024 9:02 am
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 355
Views: 26883

Re: Download the program for the device via the Internet.

Yes - stepping up to v10 (and a m328p) would be a good idea. Out of interest - I just recompiled using v8. It still 'works' in that the SendString still sends "AT+GMR" - but Initialise() just seems to send a newline. I'll have a bit more of a play getting an esp8266 flashed and see if I can get the ...
by mnf
Fri Jun 07, 2024 11:11 pm
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 355
Views: 26883

Re: Download the program for the device via the Internet.

I can confirm that the MCU does write the appropriate data to the esp8266 using the component.. So initialise it writes AT+CIPMUX=0 I then wrote in a loop AT+GMR using the ESP8266::SendString macro. But - I tested with the FTDI convertor. I used hardware channel at 115200 (on 8MHz Atmega8 as before)...
by mnf
Fri Jun 07, 2024 6:10 pm
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 355
Views: 26883

Re: Download the program for the device via the Internet.

Have just tested an ATMega8 UART and seems to work okay. Setup - I have the MCU on a breadboard connected to (and powered by) a programmer Reset pin 1 mosi 17 miso 18 sck 19 VCC (I have 5v) 7 Gnd 8 First I did a 'flash test' - using d0 and all is good. Then I hooked a FTDI converter to d0 and d1 (an...
by mnf
Fri Jun 07, 2024 3:55 pm
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 355
Views: 26883

Re: Download the program for the device via the Internet.

What is displayed is correct... The control characters don't display.

Martin.
by mnf
Fri Jun 07, 2024 2:21 pm
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 355
Views: 26883

Re: Download the program for the device via the Internet.

AT+GMR\r\n will just display as AT+GMR the \r\n are control characters and would do carriage return and new line (from the days of teletypes) and probably do nothing on the LCD display.

Martin
by mnf
Fri Jun 07, 2024 12:23 pm
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 355
Views: 26883

Re: Download the program for the device via the Internet.

I have an atmega8 - I'll have a play with the UART component this evening - see if I can spot any issues?

Martin
by mnf
Wed May 08, 2024 11:40 am
Forum: Bug reports
Topic: Display Starburst
Replies: 1
Views: 1455

Re: Display Starburst

The '\' character is an escape character so you need to follow it with something (in this case it escaping ') so if you want a backslash change it to '\\'

Martin
by mnf
Wed Apr 10, 2024 9:10 am
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 355
Views: 26883

Re: Download the program for the device via the Internet.

I think Iain meant to connect the Tx and Rx pins on the UART-TTL adapter rather than on the esp8266?

Martin
by mnf
Fri Mar 15, 2024 9:35 am
Forum: Flowcode V8
Topic: fround command pic 24fFV
Replies: 4
Views: 1482

Re: fround command pic 24fFV

One way to do this is to multiply the value by 100 (for 2 decimal places) and assign to an integer...
Note that not all numbers can be represented exactly by fp variables.

Can I also suggest an upgrade to v10 it's free and v4 is now very old

Martin
by mnf
Sat Mar 02, 2024 12:25 pm
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 355
Views: 26883

Re: Download the program for the device via the Internet.

If you want to 'download' a program - then you are limited to targets (for example the esp32) which can handle OTA updates. Don't expect it to be easy. It would also be possible on something like a Raspberry Pi - where your 'main program' could download new programs - and run them. If you are using ...
by mnf
Mon Jan 29, 2024 5:39 pm
Forum: General Programming
Topic: Rotates 8 bits
Replies: 2
Views: 3484

Re: Rotates 8 bits

You need to shift and then add the shifted 'out' bit back in. so assuming 8 bit values (.x and .msb and .lsb) .msb = .x & 0x80 .x = (.x << 1) | (.msb != 0) // Or use (.msb >> 7) not sure which is quicker? Will do a left rotate - note you could probably cram it into one line and do without the extra ...
by mnf
Wed Nov 29, 2023 11:50 am
Forum: Feature Requests
Topic: Fast display ST7789!
Replies: 88
Views: 264600

Re: Fast display ST7789!

Yes - I got a couple of batches at about that time and some worked and some not - hence the above thread... As a test - try running them using the Adafruit libraries and the Arduino IDE - if they work it's an initialisation problem (and I'd guess you'd be very unlucky to get 50 duff displays...) If ...
by mnf
Tue Nov 28, 2023 10:15 pm
Forum: Feature Requests
Topic: Fast display ST7789!
Replies: 88
Views: 264600

Re: Fast display ST7789!

Yes, I think so.

There seem to be several variants which need slightly different startup sequences.

If you give me a pointer to the display you are using I'll see what I can do...

Once you have the initialisation correct the rest is fairly straightforward..

Martin
by mnf
Tue Nov 07, 2023 9:11 am
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 10699178

Re: some problems with spi data transmission

I think the issue might be one of timing, In the receiver - have an interrupt on CS change (it limits the choice of pins for this) - then attempt to receive the data. I don;t know whether it would be possible to receive in the interrupt handler (small number of bytes maybe? - depends if the receive ...
by mnf
Mon Sep 18, 2023 1:25 pm
Forum: Flowcode V8
Topic: Change clock frequency in Flowcode to match Arduino hardware [Solved]
Replies: 4
Views: 20721

Re: Change clock frequency in Flowcode to match Arduino hardware [Solved]

Glad to hear it worked okay..

There are many good changes in v10 - so it's maybe worth talking a peek if time allows...

Martin
by mnf
Sun Sep 17, 2023 8:28 am
Forum: Flowcode V8
Topic: Change clock frequency in Flowcode to match Arduino hardware [Solved]
Replies: 4
Views: 20721

Re: Change clock frequency in Flowcode to match Arduino hardware

As a temporary fix you can edit the definition file. Assuming you are using v8 - it is in C:\ProgramData\MatrixTSL\FlowcodeV8\FCD\ARD Make a backup copy of Arduino Lilypad Usb.fcdx Then edit it (the original) (notepad, notepad++) - and change <clock max_speed="16000000" master_divider="1" fixed="160...
by mnf
Sat Jul 01, 2023 7:55 am
Forum: Feature Requests
Topic: Component for a 24LC512-I/P Serial I2C EEPROM
Replies: 3
Views: 19022

Re: Component for a 24LC512-I/P Serial I2C EEPROM

Let us know how you get on.
Any problems - someone will always help...
by mnf
Thu Jun 29, 2023 9:23 pm
Forum: Feature Requests
Topic: Component for a 24LC512-I/P Serial I2C EEPROM
Replies: 3
Views: 19022

Re: Component for a 24LC512-I/P Serial I2C EEPROM

Hi Christina, I posted some code at https://www.matrixtsl.com/mmforums/viewtopic.php?t=22422 which should be fairly easy to tweak. Alternatively, all the components now have the source code available (see the fc wiki) (thanks to Matrix!) and you could probably get this to compile under v8 with a few...
by mnf
Thu Mar 02, 2023 9:37 pm
Forum: Flowcode V8
Topic: No funciona proyecto con pic16F883
Replies: 29
Views: 393135

Re: No funciona proyecto con pic16F883

I doubt it's a problem with the compiler. The fact it all works from another compiler is odd though :? What happens if you try to light a single segment - output 0 to a digit select pin and 1 to segment pin (using output icons or add single digital pins as properties and do select = 0, segment = 1 i...
by mnf
Thu Mar 02, 2023 7:04 pm
Forum: Flowcode V8
Topic: No funciona proyecto con pic16F883
Replies: 29
Views: 393135

Re: No funciona proyecto con pic16F883

Okay - so it's starting to sound more like a wiring / hardware issue? Except that you managed to get it to work from other languages? I notice in the video that the display segments are very bright - do you have a current-limiting resistor to each digit? I noticed with my 4 digit display that if I d...
by mnf
Wed Mar 01, 2023 10:08 pm
Forum: Flowcode V8
Topic: No funciona proyecto con pic16F883
Replies: 29
Views: 393135

Re: No funciona proyecto con pic16F883

In the clip the digit does appear to be 'counting' down. With lots of extra 'guff' displayed. I got three digits working with an Arduino - using a 4 digit display (hardware) but treating as 3 individual digits (I ignored the left hand digit) I used a 1k resistor to each of the digit select pins (alt...
by mnf
Wed Mar 01, 2023 8:34 pm
Forum: Flowcode V8
Topic: No funciona proyecto con pic16F883
Replies: 29
Views: 393135

Re: No funciona proyecto con pic16F883

In the example you have sent, there is no timing. The decrement is done by the interrupt and the multiplexing is also done by another interrupt. What I have sent is basically the example that is in the Flowcode wiki I don't remember the name but it is in the help of the operation of the 7 segments. ...