![]() |
Forum Index : Microcontroller and PC projects : PicoMite V5.07.00b0 - beta firmware
![]() ![]() ![]() ![]() |
|||||
Author | Message | ||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 9992 |
INV is not supported by the H/W and therefore the firmware and is being mis-interpreted as a variable/operator Edited 2021-07-18 23:24 by matherp |
||||
Doktorn![]() Newbie ![]() Joined: 09/07/2019 Location: SwedenPosts: 11 |
OK, not often used but handy sometimes. N/A |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 9992 |
I'll improve the error message in the next beta Supported are: EVEN ' adds an even parity bit, therefore sends 9 bits + start and stop bits by default ODD ' adds an odd parity bit, therefore sends 9 bits + start and stop bits by default S2 ' 2 stop bits 7BIT ' 7 data bits instead of 8 Edited 2021-07-18 23:41 by matherp |
||||
lizby Guru ![]() Joined: 17/05/2016 Location: United StatesPosts: 3298 |
setpin 25,pwm1b pwm 1,50,,5+(servo_position_in_percent_of_full_scale!*0.05 Thanks. A programming error led me to an interesting discovery: the micro servo I am using is capable of continuous rotation, as least in the counter-clockwise direction. SetPin 25,pwm1b PWM 1,50,,1 The above causes it to turn counter-clockwise continuously until PWM 1,OFF. So does PWM 1,50,,.05. Now to try to get it to do what I intended--move back and forth between the (apparently non-existent) stops. PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 9992 |
Servos operate between 1 and 2mSec on a 20mSec repeat so 5%-10% is the valid range |
||||
lizby Guru ![]() Joined: 17/05/2016 Location: United StatesPosts: 3298 |
If "SetPin 25,pwm1b: PWM 1,50,,1" gives continuous counter-clockwise rotation, any idea what value might give continuous clockwise rotation? PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4240 |
Thank you VERY MUCH for these. Two observations: 1. They are not shown by OPTION LIST. 2. CRLF appears to be automatically appended which IIRC is not the case on the CMM2 - it's just an observation, I don't particularly care either way. Thank you, that works. Best wishes, Tom Edited 2021-07-19 00:26 by thwill MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7458 |
Promising start. It loads into a brand new Pico without having to install anything else first. :) Working with an SD card. Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
lizby Guru ![]() Joined: 17/05/2016 Location: United StatesPosts: 3298 |
For my purposes, this works--20 steps from full counter-clockwise to full clockwise in 100ms steps. SetPin 25,pwm1b do For j=1 To 40 If j < 21 Then PWM 1,50,,5+j*.25 ' ramp up Print 5+j*.25;" "; Else PWM 1,50,, 10-(j-20)*.25 ' ramp down Print 10-(j-20)*.25;" "; EndIf Pause 100 Next j loop PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6210 |
I thought you were using PuTTY on the RPi. Doesn't the RPi version have "Rest terminal" in the popup menu? Jim VK7JH MMedit |
||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4240 |
Ah, I imagine it does (I'm not able to check just now) and I didn't know it had any sort of popup menu ![]() Thanks Jim, I now have 3 ways out of this problem. Best wishes, Tom Edited 2021-07-19 22:54 by thwill MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 9992 |
V5.07.00b2 PicoMiteV5.07.00b2.zip Added maths goodness function MATH(M_DETERMINANT array!()) command MATH M_INVERSE inarray!(), outarray!() ![]() |
||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4240 |
If anyone cares it's Ctrl + Right Click to bring up the popup on PuTTY for Linux, at least with whatever window manager Raspbian is using by default. Tom MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 9992 |
V5.07.00b3 PicoMiteV5.07.00b3.zip Now supports reading into arrays. It uses the cardinality of the array to define the number of elements that should be read in in each case Example program Data "x","y",1,2,3,4,5,6,7,8,9,10,11 Dim k(2,2) Dim cc$(1) length 3 Read cc$(),aa,k(),bb Math m_print k() Print aa,bb Print cc$(0),cc$(1) |
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7458 |
RTF file of a provisional doc for the beta versions. This is a bit more like a manual but still doesn't pretend to be one. :) Will probably take a day or two to catch up with where we are. Please don't expect this to go into as much detail as an official manual. I'm not going to include most of what MMBasic can do, but I think Peter's noble efforts deserve something a bit better than a text file now. For those wondering why I'm not using DOC - I don't like it very much and I haven't got room on this baby computer for a full word processor anyway (although the RTF editor I'm currently using is a lot better than Wordpad and says it can save in DOC format though I've not tried it). PicoMite Beta docs 00b1.zip Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
twofingers Guru ![]() Joined: 02/06/2014 Location: GermanyPosts: 1518 |
For those wondering why I'm not using DOC - ... I think the decision to use RTF is very wise! ![]() Thank you! ![]() Best regards Michael causality ≠ correlation ≠ coincidence |
||||
lizby Guru ![]() Joined: 17/05/2016 Location: United StatesPosts: 3298 |
Looks good. Thanks for your efforts. Re ILI9488, shouldn't it be RGB565? PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7458 |
No idea, lizby. This is just a copy/paste and fight the text editor at the moment. :) Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
Glen0 Regular Member ![]() Joined: 12/10/2014 Location: New ZealandPosts: 95 |
MMedit works fine with the PicoMite. Search on the forum for MMEDIT PICO (all) for Jim's update Hi Am I understanding this correctly, does this mean I can connect to the Pico using the MMEDIT app just like I was connecting to a micromite? I have tried the suggested search for MMEDIT PICO (all) but cannot find the update. Can anyone point me in the right direction. Much appreciated as always. |
||||
palcal![]() Guru ![]() Joined: 12/10/2011 Location: AustraliaPosts: 1959 |
You have to download this file and put it in the MMEdit folder in 'Program Files' File "It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all" |
||||
![]() ![]() ![]() ![]() |
![]() |