Smart cutebot using Microbit v2 on Espruino IDE questions #7551
Replies: 1 comment 2 replies
-
Posted at 2022-03-21 by @MaBecker check the pinout and try I2C1 Posted at 2022-03-21 by @MaBecker https://www.espruino.com/MicroBit#pinout Posted at 2022-03-21 by kakcalu13 Hi Mabe, Thank you so much for your time! Yeah, I ran I2C1 too. See here that I just did 15 minutes ago before began my level 5 search in Google :P
I get error like this:
also when I wrote to robot to see if it will at least move the right wheel by doing this:
Seems no luck. :( Posted at 2022-03-21 by @MaBecker use scl not SCL Posted at 2022-03-21 by kakcalu13 That seems it move forward, but it returns the undefined.
See here full snippet:
As you may tell that I'm very new to this. This feels like I'm trying to push a wooden triangle in the circle hole without knowing what those are. I followed the tutorial and it worked but when it comes to me trying to move the motor, it didn't work. Any advice? I truly appreciate your time! Posted at 2022-03-22 by @fanoush
https://www.espruino.com/FAQ#when-i-type-a-command-why-does-espruino-print-undefined- As for "I2C1.setup(); ERROR: SDA and SCL pins must be valid, got 255 and 255" why are you calling setup again (in wrong way)? you already set it up correctly in line above. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2022-03-21 by kakcalu13
Hi everyone,
I'm very new with Espruino and Javascript. I am learning Javascript from w3_school
Microbit...on other hand...it seems that everything is explained on Microbit
As this is concise and clear tutorial however, I noticed that there is no information anything about write digital, read digital or move the motor using smart_cutebot
I tried I2C and it says I2C.writeTo() is not found.
I've been trying new stuff on this microbit and I feel like I'm nowhere near to the start one.
So I come here to seek for your advice, or suggestion.
Beta Was this translation helpful? Give feedback.
All reactions