AJB2K3
Eurobricks Vassals-
Posts
99 -
Joined
-
Last visited
Content Type
Profiles
Forums
Gallery
Everything posted by AJB2K3
-
That’s why I went off line as I had issue with web serial blocking the port, worst case I had was having to hard reboot the computer to reset the serial bus. it’s not just my own version but had the same with other software that accesses the bus like arduino, thonny and python if the bus connection isn’t force closed then a hard reset of the host machine is the only way, removing and reinserting usb devices doesn’t work i have had this with esp32 verities
-
I wish I could understand bit masking because in my blockly it reads once then show the same value but in raw python it shows the changes in value. I got a second interface now just no mains to plug it in! Edit: Solved it, AI slop strikes again, There was some random code that was added by Gemini that was braking the sensor read but not just that, I defined the wrong port numbers!
-
my interfaceB code is doing random things at the moment so having a play with yours @Bliss I cant get inputs to read using from legob import LegoB import time Lego1 = LegoB('/dev/cu.PL2303G-USBtoUART2420') time.sleep(1) Lego1.inp(1).val time.sleep(1) Lego1.close() I do get the conformation and the close messages.
-
Thanks @Bliss Yes installation is a pain and yes I would like to have a windows installer but again I don't have a Win11 computer so can only develop installers for OSX and Debian/raspbian. An online version is complicated because of web hosting and then having to have a browser that supports web serial which is still not perfect and only supported fully by chrome. The problem is that a computer will still need the dependencies. You can create a fork of mine if you want As to the reading of the bytes, no that is a problem I am working on with the Ifaces function. The function is support to allow the setting of a device name and the attachment of the port so in the case of your RCX code it supposed to change the line r=RCX("COM4") to IFACE_1=INTB("comport for INterfaceB_1") IFACE_2=RCX("comport for RCX1") and then you should be able to to type IFACE_1.write() IFACE_2.mot() The blocks would then have a dropdown list of the currently configured interfaces to select from. problem is that I have been working on this after work and my brain has stopped braining. Please keep testing and complaining. @Gunners TekZone You images arn't working. No you are not lost. If you have a uptodate Debian/raspbian computer there is an installer to sort out things. I still have to sort out a windows and OSX installer.
-
Something in windows 11 is not happy with it Ignore the blockly workspace lines as that an internal warning for the upgrade of blockly source. Are you running from the command line or clicking on main.py? I'm going to need time to look into this as it is specific to windows 11 and I don't have a machine to test. Can you open a bug report on GitHub with the info so I dont forget please?