View All Posts
read
Want to keep up to date with the latest posts and videos? Subscribe to the newsletter
HELP SUPPORT MY WORK: If you're feeling flush then please stop by Patreon Or you can make a one off donation via ko-fi

Find out how GitHub Co-Pilot's AI impressively handles a blink sketch and Wi-Fi setup in an Arduino project!

Related Content
Transcript

[0:00] hey everyone i’ve got access to github
[0:02] co-pilot
[0:04] it’s billed as an ai pair programmer
[0:06] let’s give it a quick spin
[0:07] and see how well it works so i’ve got a
[0:10] basic
[0:11] arduino sketch set up here it’s already
[0:14] making suggestions
[0:15] um so let’s uh follow what it wants us
[0:18] to do
[0:18] so it wants to set up serial
[0:21] see if it will do anything else
[0:27] so he wants to do hello world
[0:32] let’s try and make it do a simple blink
[0:35] sketch
[0:36] so let’s give it a hint blink the led
[0:40] okay so it wants to write to pin 13 so
[0:43] let’s give it a
[0:44] hash defined for our built-in led
[0:48] so let’s do a lead pin
[0:52] and our built-in led is a pin 2 for the
[0:55] esp32 so okay so it’s worked out it
[0:59] should be lead pin
[1:00] wants to set it high delay by a second
[1:03] and then set it low and delay by a
[1:05] second
[1:06] so it’s done a a basic blink sketch for
[1:09] us so that’s pretty good let’s get rid
[1:10] of this
[1:12] um so already knows it should do
[1:15] led pin and set it to an output pin so
[1:18] that’s pretty good
[1:19] um without sort of setting up the wi-fi
[1:23] so let’s see set up wi-fi
[1:27] okay wants to
[1:31] let’s do a lot of stuff for us this is
[1:33] um pretty interesting
[1:38] so that’s pretty impressive it’s uh it’s
[1:41] set up
[1:42] the serial port and it set up the wi-fi
[1:45] as well
[1:46] so hopefully it should also suggest
[1:49] let’s see if it knows
[1:54] that’s pretty cool so that’s
[1:58] that’s sort of automatically pulling in
[2:00] the hash defines we need
[2:01] for the wi-fi setup it’s done the
[2:04] um setting up of the led it even gives
[2:08] us a nice helpful
[2:09] comment that we should put in to set up
[2:11] the led
[2:12] so that’s pretty cool


HELP SUPPORT MY WORK: If you're feeling flush then please stop by Patreon Or you can make a one off donation via ko-fi
Want to keep up to date with the latest posts and videos? Subscribe to the newsletter
Blog Logo

Chris Greening

> Image

atomic14

A collection of slightly mad projects, instructive/educational videos, and generally interesting stuff. Building projects around the Arduino and ESP32 platforms - we'll be exploring AI, Computer Vision, Audio, 3D Printing - it may get a bit eclectic...

View All Posts