PICAXE Cloud back online

Technical

Technical Support
Staff member
We are pleased to announce the PICAXE Cloud website (www.picaxecloud.com) is now back online - apologies for the delays whilst this app was updated to a modern infrastructure to keep it active for many years to come. This work was much trickier than first expected, but is now complete.

A couple of reminders:
  • Swap between 'Blocks' or 'BASIC Code' mode via the Mode: buttons at the top of the screen.
  • Coding and on-screen simulation is accessible from most modern browsers.
  • However you must use Chrome/Edge/Opera if you would like to also program a real PICAXE device (as these are the only browsers that support the 'web serial API' used to connect to the PICAXE USB cable).
  • Debug, Terminal and RTS (real time simulation) functions are also only available via these 3 browsers, as these features also require serial communication to the real-life project.

1745330796081.png
 
Just was tinkering in PICAXE Cloud. Wrote a blinky routine in seconds. Then I loaded a program I wrote in CODE.
When I do a "Syntax Check" I get an error message as follows:

Error from compiler
#MACRO SENDCODE( string ) ^line# 217, col# 1 Error: syntax error

Here is the line and code: I making a big guess here the BLOCKLY Editor doesn't support MACROs... 8(
Code:
#MACRO SENDCODE( string )
    j = 0
    do
        lookup j, ( string, 0 ), i
        if i = 32 then
            k = 0   
        elseif i < "A" then ;number
            k = i - 47  ; i - 48 + 1 < uses two bytes
        else   
            k = i - 54
        end if
        lookup k, ( MORSE_A2Z ), character
        if character <> 0 then
            call MORSE
        end if
        j = j + 1
    loop until i = 0
#ENDMACRO

I do like the way I can save code.
I wonder if I could refactor it for PEBBLE that I'm working on at this moment in time.?
I'm seeing XML and JSON responses, which would be perfect for PEBBLE.

P.S. Using Firefox Browser Developer V138.0b9 (64-bit)
 
PICAXE cloud uses the standard PICAXE compiler, but does not currently support the preprocessor due to a number of cloud/preprocessor incompatibilities (e.g. use of #include files).
 
Back
Top