4tronix
banner
4tronix.co.uk
4tronix
@4tronix.co.uk
Robots for the classroom. Educational coding platforms. MicroBits
https://4tronix.co.uk/
Email to sales@4tronix
September 21, 2025 at 7:41 PM
Depends what you mean by "breakout boards". We have a number of accessories: shop.4tronix.co.uk/collections/...
June 24, 2025 at 8:50 AM
Probably means you should swap your 1s and 0s
June 10, 2025 at 3:28 PM
Yep
June 10, 2025 at 2:43 PM
Not quite. The second clause should have left? Line sensor compared with zero not one. Also you need a pause each time round the loop so the PWM can work correctly. Say 20ms or so
June 10, 2025 at 2:32 PM
Yes. Well it’s actually a prototype! Version 0.2
June 10, 2025 at 11:02 AM
Does it work okay if you change it as suggested?
June 10, 2025 at 9:56 AM
Anyway you shouldn’t do all that in the Start block. Put it in a separate Forever block. Should work then
June 10, 2025 at 9:52 AM
What’s it doing, or not doing?
June 10, 2025 at 9:39 AM
Email sales@ please
March 31, 2025 at 3:48 PM
Using BitBot PRO to draw polygons: Part 4
Now we can generalise by creating a function that takes two values: number of sides and length of each side. This example draws an octagon by specifying 8 sides to the function:
January 14, 2025 at 2:39 PM
Using BitBot PRO to draw polygons: Part 3
we can then generalise the square to any number of sides by changing the number of repeats to the number of sides required, and the angle to turn to be 360 divided by the number of sides. This is valid for all numbers greater than 2. A hexagon has 6 sides:
January 14, 2025 at 2:35 PM
Using BitBot PRO to draw polygons: Part 2
To complete the square we need to repeat this operation 4 times, once for each side (or once for each corner).
So let's use the Repeat loop built in to Makecode. This code will draw the full square and leave the BitBot PRO where it started:
January 14, 2025 at 2:29 PM