EVN ALPHA example programs
The same examples the VS Code extension lists under Examples.
Back to evn.coresg.tech
Python
Blocks
- blink.evnblocks nothing but the board (its LED and battery).
- bluetooth_grabber.evnblocks the Bluetooth module on serial port 2, a servo on servo port 1, the LED matrix on I2C port 5 and the touch array on I2C port 6.
- colour_line.evnblocks the colour sensor on I2C port 1, and a white and a darker surface.
- compass_lights.evnblocks the compass on I2C port 3, an 8-LED RGB strip on I2C port 1 and the seven-segment display on I2C port 4.
- drive_base.evnblocks a robot: left wheel motor on port 4 (mounted mirrored), right on port 3, 62.4 mm wheels 170 mm apart, and 40 cm of clear floor ahead.
- drive_base_gyro.evnblocks a robot: left wheel motor on port 4 (mounted mirrored), right on port 3, 62.4 mm wheels 170 mm apart, an EVN IMU on I2C port 3 fixed to the chassis, and 40 cm of clear floor ahead. Keep the robot still while the program starts (the IMU settles in 8 to 25 s).
- first_moves.evnblocks a motor on port 1, wheels off the ground.
- spirit_level.evnblocks the OLED display on I2C port 1 and the IMU on I2C port 2; tilt the board by hand.
- stall_stop.evnblocks a motor on port 1 and something to block its shaft (your hand or an end stop).
- two_motors.evnblocks two motors, on ports 1 and 2, wheels off the ground.