Search found 1173 matches

by David Barker
Tue Jun 23, 2020 9:13 am
Forum: Compiler
Topic: Clock Speed
Replies: 8
Views: 537

Re: Clock Speed

There is a new update available which should fix this problem for you. Just run "check for update" in the IDE "About" box. For more information, see:

https://www.sfcompiler.co.uk/wiki/pmwi ... ionHistory
by David Barker
Tue Jun 23, 2020 9:12 am
Forum: Compiler
Topic: Default Variable Assignment
Replies: 27
Views: 1523

Re: Default Variable Assignment

There is a new update available which should fix this problem for you. Just run "check for update" in the IDE "About" box. For more information, see:

https://www.sfcompiler.co.uk/wiki/pmwi ... ionHistory
by David Barker
Mon Jun 22, 2020 4:26 pm
Forum: Compiler
Topic: Default Variable Assignment
Replies: 27
Views: 1523

Re: Default Variable Assignment

The problem has been fixed. We will post an update very soon. Note that your second case (boolean = 1) will not work. A boolean can only be true or false. Apologies again for this faux pas...
by David Barker
Mon Jun 22, 2020 6:49 am
Forum: Compiler
Topic: Default Variable Assignment
Replies: 27
Views: 1523

Re: Default Variable Assignment

Damn. I will get that fixed...
by David Barker
Fri Jun 19, 2020 5:44 pm
Forum: General
Topic: Diagnostics hardware
Replies: 13
Views: 994

Re: Diagnostics hardware

I would second that approach, if possible...
by David Barker
Thu Jun 18, 2020 1:46 pm
Forum: Compiler
Topic: Clock Speed
Replies: 8
Views: 537

Re: Clock Speed

Jerry is correct. It looks like delayMs() and delayUs() when clock < 1 causes the problem. Note that even if your main code block does not use either of these calls, the LCD module certainly does (for timing). I can confirm that removing all calls to delayXx() negates the issue (please do not do thi...
by David Barker
Thu Jun 18, 2020 9:58 am
Forum: Compiler
Topic: Clock Speed
Replies: 8
Views: 537

Re: Clock Speed

Yes, the error seems a little anomalous. We will look into it. However, as W4GNS has pointed out it would help to post some additional code that generates the error in your use case. Thanks...
by David Barker
Wed Jun 17, 2020 5:16 pm
Forum: General
Topic: Digitaldiy
Replies: 5
Views: 560

Re: Digitaldiy

What's happened to the site? Have you tried contacting Graham? It's a real shame if it has all gone. Perhaps try "wayback machine" internet archive?
by David Barker
Tue Jun 16, 2020 1:08 pm
Forum: Compiler
Topic: Default Variable Assignment
Replies: 27
Views: 1523

Re: Default Variable Assignment

It's a fair question. In the example you have given x could be anything. It most likely state would be "0" *but* then again it might not. It's easy to miss an initialisation in the code. But the warning should catch them... > ... and just to be REALLY clear, my use of "RHS" was NOT how the Urban Dic...
by David Barker
Tue Jun 16, 2020 7:13 am
Forum: Compiler
Topic: Default Variable Assignment
Replies: 27
Views: 1523

Re: Default Variable Assignment

Just to be clear dim x as byte will generate a hint "x is never used". As Jerry points out, it's not an issue unless you use "x" on the right hand side of an expression. dim x as byte dim y as byte y = x will generate a warning that "x has not been initialised" and dim x as byte dim y as byte = x wi...
by David Barker
Mon Jun 15, 2020 11:53 am
Forum: Compiler
Topic: Default Variable Assignment
Replies: 27
Views: 1523

Default Variable Assignment

I've decided to post this on the forum as it's a new feature of the compiler that I know a number of users have requested in the past. From 2.2.3.3 onward you can now declare and initialise variables at the same time. Some examples include: // Strings... Include "string.bas" Dim message As String = ...
by David Barker
Sun Jun 14, 2020 7:57 am
Forum: Modules
Topic: USB HID Bootloader v1.4.3 over memory
Replies: 10
Views: 793

Re: USB HID Bootloader v1.4.3 over memory

> I asked for a key to the virtual executive washroom but no go!

There's been a shortage of virtual toilet paper - when it abates you can have a key!
by David Barker
Wed Jun 03, 2020 6:11 am
Forum: General
Topic: configurable bootloader
Replies: 2
Views: 2902

Re: configurable bootloader

Bluetooth modules (you don't state which one you are using) tend to have a simple RS-232 interface. Using the USART module should do the trick...
by David Barker
Thu May 28, 2020 4:46 pm
Forum: General
Topic: COVID19
Replies: 10
Views: 1702

Re: COVID19

How is everything with you guys?
by David Barker
Thu May 28, 2020 7:56 am
Forum: User Modules
Topic: ST7565 GLCD Support
Replies: 23
Views: 5623

Re: ST7565 GLCD Support

Yes, I have found it useful in the past to do this on smaller devices ("spread" the data bus rather than use a contiguous set of pins on a single port). The speed really isn't an issue. An LCD refresh is slow enough that you won't see any difference. I've tested this in the past. With respect to Ran...