Go to advanced search

by scruss
Sun Sep 26, 2021 1:40 am
Forum: General
Topic: MMBasic on the Raspberry Pi Pico
Replies: 39
Views: 1115

Re: MMBasic on the Raspberry Pi Pico

but I'd like the heartbeat off to be saved as an option. I can't do that at the moment. It restarts as soon as I restart mmbasic on the Pico
by scruss
Fri Sep 24, 2021 5:37 pm
Forum: Off topic discussion
Topic: R.I.P Sir Clive
Replies: 34
Views: 1548

Re: R.I.P Sir Clive

lost wrote:
Fri Sep 24, 2021 4:20 pm
... a Matra rebranded Tandy MC10
Some of those Matra machines were really pretty, though. The Alice in particular.
by scruss
Wed Sep 22, 2021 8:53 pm
Forum: Troubleshooting
Topic: Can't scroll up/down on terminal
Replies: 12
Views: 2472

Re: Can't scroll up/down on terminal

tmux and screen handle this safely (if differently) at the user level, so I can see why the kernel developers don't want it hanging around. It's a userland problem.
by scruss
Wed Sep 22, 2021 8:50 pm
Forum: MicroPython
Topic: Can't run python file in terminal, I've tried so many suggestions to no avail
Replies: 8
Views: 346

Re: Can't run python file in terminal, I've tried so many suggestions to no avail

Another way if you're at the MicroPython '>>>' REPL prompt and have a MicroPython program called ToggleLED.py saved on the Raspberry Pi Pico board, this should run it:

Code: Select all

exec(open('ToggleLED.py').read())
by scruss
Wed Sep 22, 2021 7:45 pm
Forum: General discussion
Topic: easiest way to find pins on the GPIO header without counting?
Replies: 32
Views: 1251

Re: easiest way to find pins on the GPIO header without counting?

I thought I'd seen someone do this for the 'Plus' style header, but I can't find it. Anyway, this is what I did for a couple of my Picos: spkr.jpg It was rather fiddly. It did delight someone I gave one of them to, though, so job done. The Monk Makes Leaf GPIO template is quite nice. Pi Supply used ...
by scruss
Wed Sep 22, 2021 3:18 pm
Forum: General
Topic: MMBasic on the Raspberry Pi Pico
Replies: 39
Views: 1115

Re: MMBasic on the Raspberry Pi Pico

Thanks. Wouldn't it be more likely to be OPTION HEARTBEAT DISABLE, though?

I don't think this is in the manual
by scruss
Wed Sep 22, 2021 12:56 am
Forum: General
Topic: BBC BASIC on the Raspberry Pi Pico?
Replies: 783
Views: 28885

Re: BBC BASIC on the Raspberry Pi Pico?

Hey, can we please have a sticky on where the current uf2s are? It took me ages to find what I was looking for, and even that may not be current: Re: BBC BASIC on the Raspberry Pi Pico? - 2021-09-11 18:41:25
by scruss
Wed Sep 22, 2021 12:30 am
Forum: General
Topic: MMBasic on the Raspberry Pi Pico
Replies: 39
Views: 1115

Re: MMBasic on the Raspberry Pi Pico

That seems to work nicely, Peter - thank you! Works prettily with minicom in colour mode: Screenshot from 2021-09-21 20-22-17.png And quite fast, too. Acquits itself well on bench64 , clocking in at 60× the speed of a Commodore 64: BASIC BENCH INDEX >I GOOD. NTSC C64=100 1/8 - FOR: 0.7S; 56052.6/S; ...
by scruss
Tue Sep 21, 2021 12:23 am
Forum: General
Topic: MMBasic on the Raspberry Pi Pico
Replies: 39
Views: 1115

Re: MMBasic on the Raspberry Pi Pico

matherp wrote:
Mon Sep 20, 2021 9:26 pm
Seems to be confusion as to whether it is <esc>OP or <esc>[OP for F1.
It's <esc>OP.

Unless I'm not finding the right version, 2021-09-20_190847_PicoMiteV5.05.00b20 still doesn't work in minicom: can't save in the editor

Update: the file was removed
by scruss
Mon Sep 20, 2021 7:38 pm
Forum: General
Topic: MMBasic on the Raspberry Pi Pico
Replies: 39
Views: 1115

Re: MMBasic on the Raspberry Pi Pico

I've posted a version of MMbasic that should support <esc>[OP etc https://www.thebackshed.com/forum/ViewTopic.php?FID=16&TID=14148&LastEntry=Y#175241 This is untested as I don't have access to a Linux box where I am so would appreciate knowing if it works Thanks! I will try this as soon as ...
by scruss
Mon Sep 20, 2021 12:07 pm
Forum: General
Topic: MMBasic on the Raspberry Pi Pico
Replies: 39
Views: 1115

Re: MMBasic on the Raspberry Pi Pico

matherp wrote:
Mon Sep 20, 2021 7:24 am
Of course, at the risk of being condemned for heresy, everything works perfectly with teraterm on windows.
yeah, don't do that. minicom on Linux is sending the correct VT100 codes, and teraterm only works because it's not.
by scruss
Mon Sep 20, 2021 2:14 am
Forum: C/C++
Topic: install / downlaod "wiring" - need current source code link
Replies: 28
Views: 691

Re: install / downlaod "wiring" - need current source code link

NB: It's WiringPI — ‘Wiring’ is something quite different, being the project that Arduino ripped off entirely
by scruss
Mon Sep 20, 2021 12:37 am
Forum: General
Topic: MMBasic on the Raspberry Pi Pico
Replies: 39
Views: 1115

Re: MMBasic on the Raspberry Pi Pico

When you say homebrew bulletin board, do you mean it's running over a residential network connection or something else? No, it's someone's homebrew software instead of phpbb. There's also an actual human (half way round the world, as I think the site's Australian) who approves memberships by the lo...
by scruss
Sun Sep 19, 2021 11:21 pm
Forum: General
Topic: MMBasic on the Raspberry Pi Pico
Replies: 39
Views: 1115

Re: MMBasic on the Raspberry Pi Pico

It's cool, but I can't do anything with the editor (in minicom on Linux). Every function key gives me Exit and discard all changes (Y/N): . Pressing function keys gives me OP, OQ, OR, etc., outside the editor. I've tried joining the back shed for support, but it's a homebrew bulletin board with ~~ma...
by scruss
Sun Sep 19, 2021 9:18 pm
Forum: Advanced users
Topic: drive name changsing
Replies: 52
Views: 1357

Re: drive name changsing

This is a long shot, but if the USB-IDE interface is taking a long time to come up, perhaps adding the _netdev device option would help. _netdev is meant for network devices, but every USB device should be enumerated by the time the network is up
by scruss
Sun Sep 19, 2021 9:05 pm
Forum: General
Topic: Converting decimals to large integers for more precision
Replies: 15
Views: 504

Re: Converting decimals to large integers for more precision

I wonder what application the person who made the original post had in mind. I can't second-guess that! There was a sorta-related post in the MicroPython forum a couple of months back where someone wanted trailing zero es retained so that measured precision was retained. I'd almost forgotten about ...
by scruss
Sun Sep 19, 2021 6:13 pm
Forum: Other projects
Topic: What componants will I need to buy for a Digital Ham Radio Repeater?
Replies: 4
Views: 221

Re: What componants will I need to buy for a Digital Ham Radio Repeater?

There are too many variables and not enough qualified radio operators here: the last person to expect support here stormed off in a huff because we weren't all familiar with the Pi-Star Repeater they wanted to use. The technologies all have different answers: DMR, D-Star, Voice. Maybe if you're inte...
by scruss
Sun Sep 19, 2021 4:14 pm
Forum: General
Topic: Converting decimals to large integers for more precision
Replies: 15
Views: 504

Re: Converting decimals to large integers for more precision

def gcd(a, b): while b: a, b = b, a%b return a Doesn't work so well for negative numbers: for that you'd want return max(-a, a) . I wanted to keep it simple as a single function and was testing it on desktop. I kept to the very limited regex functions that micropython has for cleaning up the input ...
by scruss
Sun Sep 19, 2021 2:10 am
Forum: General
Topic: Converting decimals to large integers for more precision
Replies: 15
Views: 504

Re: Converting decimals to large integers for more precision

If you want to exactly convert decimals to rational numbers, it's almost required for the decimals to be described by strings. Given such a string, count how many digits appear after the decimal point to obtain a denominator of the form 10^n and then remove the decimal point to obtain the numerator...
by scruss
Sun Sep 19, 2021 12:33 am
Forum: Beginners
Topic: Best Options for switching 110v Appliances
Replies: 20
Views: 427

Re: Best Options for switching 110v Appliances

its much safer to fiddle with (DC?)11v than AC110v... Not really: a damaged DC power cable tends to catch fire. And this is drawing quite the current: 10-200W at 9-11V maxes out at 22 A (9 V) or 18 A (11 V). That's quite a bit more than caused the "My MacBook charge cable caught fire!" st...
by scruss
Sat Sep 18, 2021 9:51 pm
Forum: Beginners
Topic: Best Options for switching 110v Appliances
Replies: 20
Views: 427

Re: Best Options for switching 110v Appliances

GlowInThe Dark's link goes to the Digital Loggers (who make these things) shop on Amazon where you can see their other switched outlets. They get pricey quite quickly
by scruss
Sat Sep 18, 2021 9:21 pm
Forum: Beginners
Topic: Best Options for switching 110v Appliances
Replies: 20
Views: 427

Re: Best Options for switching 110v Appliances

It's exactly the same thing
by scruss
Sat Sep 18, 2021 8:38 pm
Forum: Beginners
Topic: Best Options for switching 110v Appliances
Replies: 20
Views: 427

Re: Best Options for switching 110v Appliances

So you're saying I can switch each outlet independently? No, not exactly. Of the four sockets: one is always on . You can't switch it at all. Useful for powering the control board. one is normally on , but switches off when when you trigger the input two are normally off , but switch on when when y...
by scruss
Sat Sep 18, 2021 5:59 pm
Forum: Beginners
Topic: Best Options for switching 110v Appliances
Replies: 20
Views: 427

Re: Best Options for switching 110v Appliances

The reseller I work for sells a lot of these: IoT Power Relay , also known as Controllable Four Outlet Power Relay Module version 2 - (Power Switch Tail Alternative) , depending on the supplier. You can control it from any logic level (so a GPIO pin will do fine). The device's four outputs are arran...
by scruss
Sat Sep 18, 2021 2:43 pm
Forum: Advanced users
Topic: drive name changsing
Replies: 52
Views: 1357

Re: drive name changsing

Unfortunately that drive changing thing is just one of the loathsome unpleasantries we have to deal with in order to reap the benefits of a compact low power personal computer. Apparently a Linux thing. Hey, at least we can create files called prn.* , aux.* and con.* (and many other reserved names ...

Go to advanced search