WEBVTT

00:00:00.000 --> 00:00:01.320
<v Scott Shawcroft>This is The Amp Hour Podcast.

00:00:02.780 --> 00:00:05.400
<v Scott Shawcroft>Released March 11th, 2018.

00:00:07.800 --> 00:00:09.480
<v Scott Shawcroft>Episode 383.

00:00:11.100 --> 00:00:13.360
<v Scott Shawcroft>An interview with Scott Shawcroft.

00:00:30.000 --> 00:00:32.120
<v Scott Shawcroft>Welcome to the Amp Hour.

00:00:32.340 --> 00:00:34.320
<v Chris Gammell>I'm Chris Gammell of Contextual Electronics.

00:00:34.600 --> 00:00:38.960
<v Chris Gammell>And I'm Scott Shawcroft, a freelance software engineer that works with Adafruit.

00:00:39.320 --> 00:00:40.360
<v Chris Gammell>Welcome, Scott. How are you doing?

00:00:40.360 --> 00:00:44.100
<v Chris Gammell>I'm doing great. Busy day, but I was super excited to be on the Amp Hour.

00:00:44.340 --> 00:00:47.120
<v Scott Shawcroft>Yeah, I'm glad we could sneak this in here.

00:00:47.820 --> 00:00:53.380
<v Scott Shawcroft>You and I were talking after last week's my complaining about J-Link,

00:00:53.540 --> 00:00:56.740
<v Scott Shawcroft>which I obviously got from the wonderful folks at Adafruit.

00:00:57.000 --> 00:00:58.780
<v Scott Shawcroft>And I have the EDU version.

00:00:58.780 --> 00:01:02.260
<v Scott Shawcroft>And you're like, hey, did you know I help people with that stuff?

00:01:02.260 --> 00:01:04.040
<v Scott Shawcroft>And I'm like, yes, I did know that.

00:01:04.080 --> 00:01:05.860
<v Scott Shawcroft>But how about we talk about on the Amp Hour as well?

00:01:06.280 --> 00:01:07.860
<v Scott Shawcroft>Yeah. Well, you just said talk.

00:01:07.940 --> 00:01:09.560
<v Scott Shawcroft>You didn't say on the Amp Hour, but you know.

00:01:09.580 --> 00:01:15.740
<v Scott Shawcroft>Well, you know, eventually all of my complaints and, you know, cries for help make it onto the show.

00:01:16.080 --> 00:01:17.740
<v Scott Shawcroft>So, thank you for that.

00:01:18.440 --> 00:01:21.260
<v Chris Gammell>Well, now more people can learn, not just you.

00:01:21.540 --> 00:01:26.780
<v Scott Shawcroft>You know, I'm starting, you know, I've got like a new theory that like my only real value in this world is being a foil.

00:01:26.780 --> 00:01:30.380
<v Scott Shawcroft>You know, the foil that people can use as a, you know.

00:01:30.560 --> 00:01:32.200
<v Scott Shawcroft>Well, at least Chris asked the dumb question.

00:01:32.340 --> 00:01:33.580
<v Scott Shawcroft>So, I am happy to ask them.

00:01:33.840 --> 00:01:36.160
<v Scott Shawcroft>And I will be asking them shortly.

00:01:36.440 --> 00:01:38.240
<v Scott Shawcroft>Before we do that, let's get a little bit about you.

00:01:38.320 --> 00:01:39.200
<v Scott Shawcroft>So, what's your background?

00:01:40.260 --> 00:01:41.540
<v Chris Gammell>I'm a software engineer.

00:01:41.800 --> 00:01:45.640
<v Chris Gammell>I went to the University of Washington and did computer engineering there.

00:01:45.640 --> 00:01:51.400
<v Chris Gammell>And after that, I went to Google and worked on Google Maps for almost six full years.

00:01:52.600 --> 00:01:53.920
<v Scott Shawcroft>Who's that? Google?

00:01:54.140 --> 00:01:54.520
<v Scott Shawcroft>Google?

00:01:55.160 --> 00:01:55.600
<v Scott Shawcroft>Google.

00:01:55.940 --> 00:01:57.520
<v Chris Gammell>They're a small company out of Mountain View.

00:01:57.780 --> 00:01:58.020
<v Chris Gammell>Okay.

00:01:59.320 --> 00:02:02.940
<v Chris Gammell>Actually, in Seattle, the office when I started was not that big.

00:02:03.020 --> 00:02:04.680
<v Chris Gammell>So, it did feel like a small company.

00:02:04.860 --> 00:02:08.240
<v Chris Gammell>And I would visit Mountain View and I'd be like, whoa, there's buildings full of people.

00:02:08.380 --> 00:02:09.540
<v Chris Gammell>You'd be like, wow, the food is better here.

00:02:10.300 --> 00:02:10.700
<v Chris Gammell>Yeah.

00:02:11.040 --> 00:02:11.400
<v Chris Gammell>Yeah.

00:02:12.640 --> 00:02:19.160
<v Chris Gammell>So, it was really, yeah, it felt very intimate when I started and it grew a lot the six years I was there.

00:02:20.120 --> 00:02:22.640
<v Chris Gammell>I did map rendering.

00:02:23.220 --> 00:02:29.500
<v Chris Gammell>So, if you remember, the bike layer came out where you could like toggle the map to see where all the bike lanes were.

00:02:29.680 --> 00:02:29.920
<v Scott Shawcroft>Yeah.

00:02:30.060 --> 00:02:33.620
<v Chris Gammell>That was one of the things that I did there was the actual like styling of that.

00:02:34.060 --> 00:02:36.980
<v Scott Shawcroft>So, how many bike lanes did you have to ride in order to get all that data?

00:02:37.840 --> 00:02:38.740
<v Scott Shawcroft>It wasn't me.

00:02:39.540 --> 00:02:42.000
<v Scott Shawcroft>I just finished my coding today and boy, am I legs tired.

00:02:42.620 --> 00:02:42.960
<v Scott Shawcroft>Right.

00:02:43.280 --> 00:02:43.480
<v Scott Shawcroft>Right.

00:02:43.680 --> 00:02:43.860
<v Scott Shawcroft>No.

00:02:44.580 --> 00:02:45.740
<v Scott Shawcroft>It's not quite that.

00:02:45.980 --> 00:02:46.160
<v Scott Shawcroft>Okay.

00:02:46.960 --> 00:02:47.320
<v Scott Shawcroft>Yeah.

00:02:47.440 --> 00:02:48.500
<v Scott Shawcroft>And I always wondered about that.

00:02:48.540 --> 00:02:52.460
<v Scott Shawcroft>Where did they, I mean, I probably can't mention where, but I mean, like it's just like a database that gets pulled in.

00:02:52.460 --> 00:02:56.560
<v Scott Shawcroft>And then you work on how to make it actually play nice with all the.

00:02:56.780 --> 00:02:56.900
<v Chris Gammell>Right.

00:02:56.900 --> 00:03:00.900
<v Chris Gammell>So, so there's a, there's a really good article.

00:03:01.160 --> 00:03:06.940
<v Chris Gammell>It's been a while, but one of the efforts that happened at Google while I was there was called Ground Truth.

00:03:06.940 --> 00:03:07.660
<v Chris Gammell>Uh-huh.

00:03:07.660 --> 00:03:19.720
<v Chris Gammell>And they were, their whole goal was to take all of the data that we had satellite, straight view, and, and turn it into structured data that we could use for products like map rendering.

00:03:20.040 --> 00:03:20.320
<v Chris Gammell>Yeah.

00:03:20.320 --> 00:03:23.360
<v Chris Gammell>Or directions or all of that other stuff.

00:03:23.660 --> 00:03:23.880
<v Chris Gammell>Right.

00:03:24.120 --> 00:03:32.160
<v Scott Shawcroft>Well, it just paid dividends over, I mean, like the API people use that all, like, I don't think I've seen people using the, you know, the other map APIs that are out there in years now.

00:03:32.160 --> 00:03:37.440
<v Scott Shawcroft>I mean, like, I know that they still do and there's other stuff that's out there, but I mean, a lot of people are using that API.

00:03:38.040 --> 00:03:38.140
<v Chris Gammell>Yeah.

00:03:38.260 --> 00:03:45.460
<v Chris Gammell>And like the data quality is something they invest heavily in and that's really what makes or breaks an API or.

00:03:45.500 --> 00:03:45.640
<v Chris Gammell>Right.

00:03:45.800 --> 00:03:46.020
<v Chris Gammell>Or a mapping product.

00:03:46.020 --> 00:03:47.440
<v Chris Gammell>And that is an annoying job too.

00:03:48.180 --> 00:03:51.420
<v Chris Gammell>It's, it's very hard because the world is constantly changing.

00:03:51.940 --> 00:03:55.180
<v Chris Gammell>Um, but yeah, if people want to know more, Ground Truth is the thing to look up.

00:03:55.300 --> 00:03:55.620
<v Chris Gammell>Okay.

00:03:55.840 --> 00:03:56.420
<v Chris Gammell>About that.

00:03:56.560 --> 00:03:56.920
<v Chris Gammell>We'll put a link.

00:03:56.920 --> 00:04:09.420
<v Chris Gammell>Bike Trails specifically, it was a combination of like, uh, city owned bike data that they acquired plus, uh, just information from rails to trails.

00:04:09.660 --> 00:04:10.320
<v Chris Gammell>Oh, cool.

00:04:10.320 --> 00:04:17.740
<v Chris Gammell>Which is this national effort that turned old railway, railway grids into great, uh, grades into trails.

00:04:18.080 --> 00:04:18.200
<v Scott Shawcroft>Yeah.

00:04:18.300 --> 00:04:18.940
<v Scott Shawcroft>No, I love that stuff.

00:04:19.000 --> 00:04:20.740
<v Scott Shawcroft>There's one right near me and it's, it's, it's great.

00:04:20.780 --> 00:04:26.740
<v Scott Shawcroft>Cause it's like out of, out of the, the traffic and yeah, it's really, really good use of, you know, former, former,

00:04:26.920 --> 00:04:28.060
<v Scott Shawcroft>industrial land pretty much.

00:04:28.440 --> 00:04:28.600
<v Chris Gammell>Yeah.

00:04:28.600 --> 00:04:36.440
<v Chris Gammell>So when we, when we launched back in 2010, that was like kind of our national coverage was the rails to trail stuff.

00:04:36.740 --> 00:04:37.440
<v Chris Gammell>Oh, very cool.

00:04:38.000 --> 00:04:44.680
<v Scott Shawcroft>Well, so, uh, you know, you eventually got sick of, you know, just solving bike problems and, you know, map problems, whatever.

00:04:44.680 --> 00:04:45.960
<v Scott Shawcroft>So what happened after that?

00:04:46.360 --> 00:04:46.520
<v Chris Gammell>Yeah.

00:04:46.640 --> 00:04:52.520
<v Chris Gammell>So, um, I, I spent six years doing software in the cloud way far away from the hardware.

00:04:52.520 --> 00:04:59.220
<v Chris Gammell>I'd gotten really into quadcopters and drones and, uh, decided to kind of pursue that.

00:04:59.540 --> 00:05:09.920
<v Chris Gammell>I decided to leave Google and then decided to pursue hardware design, uh, for, uh, flight controllers, particular in particular.

00:05:09.920 --> 00:05:19.860
<v Chris Gammell>And, uh, there's open source software called clean flight and beta flight, which are, uh, open source STM 32 based flight controllers for racing quadcopters.

00:05:19.860 --> 00:05:20.340
<v Chris Gammell>Okay.

00:05:20.340 --> 00:05:27.200
<v Chris Gammell>And so I spent about a year developing my own modular, uh, flight control system, which I don't recommend people do.

00:05:27.840 --> 00:05:34.020
<v Chris Gammell>Um, it didn't, I didn't sell very many, um, because they were very expensive.

00:05:34.620 --> 00:05:37.240
<v Scott Shawcroft>And yeah, the thing is modular always needs lots of connectors, right?

00:05:37.240 --> 00:05:37.720
<v Chris Gammell>Yeah.

00:05:37.900 --> 00:05:40.620
<v Chris Gammell>And I was using Hirose, like 80 pin.

00:05:41.680 --> 00:05:43.740
<v Chris Gammell>Oh, I think it was very well engineered.

00:05:43.880 --> 00:05:44.820
<v Scott Shawcroft>It was just way too expensive.

00:05:44.820 --> 00:05:46.560
<v Scott Shawcroft>You know, when it's an API, it's just, it's just a couple more characters, right?

00:05:46.640 --> 00:05:50.280
<v Scott Shawcroft>But, uh, you know, that interface, that, that, that'll, that'll, that'll bite your ass, huh?

00:05:50.360 --> 00:05:50.640
<v Chris Gammell>Yeah.

00:05:50.740 --> 00:05:51.740
<v Chris Gammell>So I, it did.

00:05:52.180 --> 00:05:52.580
<v Chris Gammell>Yeah.

00:05:52.880 --> 00:05:58.140
<v Chris Gammell>Um, but as I got further and further through that, I started talking about what I was doing.

00:05:58.460 --> 00:06:04.420
<v Chris Gammell>Um, another pro tip is I, I was in this mode of like, I want to be secretive cause it's amazing what I'm doing.

00:06:04.420 --> 00:06:06.640
<v Chris Gammell>When in reality, people would have told you.

00:06:06.640 --> 00:06:07.040
<v Chris Gammell>Right, right.

00:06:07.040 --> 00:06:07.180
<v Scott Shawcroft>Wait until the launch, man.

00:06:07.540 --> 00:06:08.540
<v Chris Gammell>Everyone's going to care.

00:06:09.080 --> 00:06:09.860
<v Chris Gammell>And nobody cares.

00:06:10.060 --> 00:06:10.300
<v Chris Gammell>Yeah.

00:06:10.660 --> 00:06:18.400
<v Chris Gammell>Um, but I did starting, I did start talking about it, um, on the, I was on the macro fab engineering podcast one time.

00:06:18.540 --> 00:06:21.380
<v Chris Gammell>They were the people that did like my quote unquote production run.

00:06:21.380 --> 00:06:32.460
<v Chris Gammell>And then I had been watching a ton of Adafruit videos because there was really, really useful, like desk of lady Adas talking about like test jigs and things like that.

00:06:32.520 --> 00:06:38.040
<v Chris Gammell>So I was learning a lot about the production side of, of electronics through Adafruit.

00:06:38.040 --> 00:06:44.480
<v Chris Gammell>And I had also started doing, um, show and tell to show off all of the stuff that I was making.

00:06:45.260 --> 00:06:57.620
<v Chris Gammell>And after my, my business, uh, product side chickity of chickity tech, which is my company, uh, kind of was clear that it was not going to pay the bills anytime soon.

00:06:57.620 --> 00:07:02.880
<v Chris Gammell>And then I went on show and tell Adafruit show and tell and was like, Hey, I'm looking for a job.

00:07:03.200 --> 00:07:07.080
<v Chris Gammell>And, uh, Phil, a Mr. Lady Ada was like, what do you do?

00:07:07.200 --> 00:07:08.820
<v Chris Gammell>And I said, Oh, I'm a software engineer.

00:07:09.280 --> 00:07:10.420
<v Chris Gammell>And he's like, Oh, okay.

00:07:10.880 --> 00:07:14.160
<v Chris Gammell>And then the next day he emailed me saying like, Hey, we have a project in mind.

00:07:14.240 --> 00:07:14.820
<v Chris Gammell>Are you interested?

00:07:14.960 --> 00:07:16.760
<v Chris Gammell>And I was like, yes, sweet.

00:07:17.040 --> 00:07:18.060
<v Chris Gammell>And I never looked back.

00:07:18.640 --> 00:07:18.840
<v Scott Shawcroft>Nice.

00:07:19.040 --> 00:07:19.600
<v Scott Shawcroft>That's great.

00:07:19.800 --> 00:07:20.380
<v Scott Shawcroft>That's yeah.

00:07:20.420 --> 00:07:22.000
<v Scott Shawcroft>I mean, Lamar and Phil, we love them here.

00:07:22.580 --> 00:07:27.100
<v Scott Shawcroft>And, uh, yeah, that, that's, uh, that's a, I mean, that's a good rule for people listening to, you know,

00:07:27.100 --> 00:07:28.160
<v Scott Shawcroft>you got to put yourself out there, right?

00:07:28.160 --> 00:07:29.280
<v Scott Shawcroft>Talk about what you're working on.

00:07:29.380 --> 00:07:30.960
<v Scott Shawcroft>It sounds like you're showcasing your product.

00:07:31.120 --> 00:07:34.980
<v Scott Shawcroft>You know, you have a personal site where you showcase stuff.

00:07:35.160 --> 00:07:35.860
<v Scott Shawcroft>Tan newt.

00:07:35.940 --> 00:07:38.140
<v Scott Shawcroft>Is that how that's your handle online all the time?

00:07:38.400 --> 00:07:39.520
<v Scott Shawcroft>Yeah, pretty much.

00:07:39.660 --> 00:07:40.220
<v Scott Shawcroft>What does that mean?

00:07:40.400 --> 00:07:41.120
<v Scott Shawcroft>Tan newt.

00:07:41.420 --> 00:07:42.900
<v Chris Gammell>Uh, it's, it's two words.

00:07:43.060 --> 00:07:48.300
<v Chris Gammell>It comes from like the late nineties when they had these like random word generators.

00:07:48.880 --> 00:07:49.320
<v Chris Gammell>Really?

00:07:49.580 --> 00:07:52.860
<v Chris Gammell>Um, I remember a password I got from something like that.

00:07:52.900 --> 00:07:54.840
<v Chris Gammell>It was like pork filled pansy.

00:07:54.840 --> 00:07:57.120
<v Chris Gammell>It was another like completely random.

00:07:57.120 --> 00:07:58.680
<v Chris Gammell>And now we all know his password to everything still.

00:07:59.300 --> 00:08:05.380
<v Chris Gammell>Um, not, not a password I use anymore, but yeah, so tan newt was another thing that was

00:08:05.380 --> 00:08:10.380
<v Chris Gammell>randomly generated and I just thought it was a very funny image and it turns out to be relatively

00:08:10.380 --> 00:08:10.820
<v Chris Gammell>unique.

00:08:10.820 --> 00:08:14.560
<v Chris Gammell>So I was able to get it in a lot of places and I kind of just rode that.

00:08:15.000 --> 00:08:15.140
<v Chris Gammell>Nice.

00:08:15.300 --> 00:08:21.660
<v Chris Gammell>It is a little hard for people to pronounce, uh, which is something I would consider next

00:08:21.660 --> 00:08:23.040
<v Chris Gammell>time I choose a username.

00:08:23.040 --> 00:08:23.320
<v Chris Gammell>Right.

00:08:23.380 --> 00:08:25.040
<v Chris Gammell>You click the button a few more times and then you're good.

00:08:25.120 --> 00:08:25.220
<v Chris Gammell>Right?

00:08:25.900 --> 00:08:26.220
<v Scott Shawcroft>Right.

00:08:26.500 --> 00:08:26.700
<v Scott Shawcroft>Yeah.

00:08:27.720 --> 00:08:28.000
<v Scott Shawcroft>Okay.

00:08:28.000 --> 00:08:29.280
<v Scott Shawcroft>But, uh, yeah, that's great.

00:08:29.460 --> 00:08:29.660
<v Scott Shawcroft>No, I know.

00:08:29.660 --> 00:08:30.740
<v Scott Shawcroft>That stuck with me a while.

00:08:31.280 --> 00:08:33.820
<v Scott Shawcroft>I, I, again, again, pointing to, to your stuff.

00:08:33.860 --> 00:08:38.520
<v Scott Shawcroft>It's like, uh, you know, this is, this is the classic portfolio style site and it's good.

00:08:38.580 --> 00:08:40.120
<v Scott Shawcroft>You know, you're showing off the stuff you're working on.

00:08:40.360 --> 00:08:41.000
<v Scott Shawcroft>Not just where you're working.

00:08:41.020 --> 00:08:41.900
<v Chris Gammell>My personal website.

00:08:42.080 --> 00:08:42.340
<v Scott Shawcroft>Yeah.

00:08:42.440 --> 00:08:42.800
<v Scott Shawcroft>But I'll see.

00:08:42.840 --> 00:08:42.940
<v Scott Shawcroft>Yeah.

00:08:43.000 --> 00:08:44.340
<v Scott Shawcroft>Like what's kind of out of date, but yeah.

00:08:44.380 --> 00:08:45.060
<v Scott Shawcroft>Well, that's okay.

00:08:45.060 --> 00:08:46.820
<v Scott Shawcroft>But I just mean like the stuff that you were working on.

00:08:46.860 --> 00:08:48.300
<v Scott Shawcroft>That's an important thing.

00:08:48.300 --> 00:08:53.100
<v Scott Shawcroft>So if people were ever looking for a portfolio style site, I think this is a good, good example.

00:08:53.580 --> 00:08:53.700
<v Chris Gammell>Yeah.

00:08:53.820 --> 00:08:54.060
<v Chris Gammell>Yeah.

00:08:54.140 --> 00:08:56.100
<v Chris Gammell>I don't update it much, but yeah.

00:08:56.160 --> 00:08:57.420
<v Chris Gammell>Well, you know, that's what it's for.

00:08:57.500 --> 00:09:02.200
<v Chris Gammell>It's just like links to things that I've done and putting my name to all the things that I've

00:09:02.200 --> 00:09:02.400
<v Chris Gammell>done.

00:09:02.660 --> 00:09:02.880
<v Scott Shawcroft>Yeah.

00:09:02.880 --> 00:09:02.920
<v Scott Shawcroft>Yeah.

00:09:03.140 --> 00:09:07.620
<v Scott Shawcroft>So what was it, what was this project that, that, uh, Phil said you should maybe think

00:09:07.620 --> 00:09:08.220
<v Chris Gammell>about working on?

00:09:08.440 --> 00:09:14.480
<v Chris Gammell>Uh, they asked me to port MicroPython to the Sam D21, which is, uh, at the time it was Atmel,

00:09:14.620 --> 00:09:16.580
<v Chris Gammell>but now it's owned, they're owned by Microchip.

00:09:16.780 --> 00:09:17.020
<v Scott Shawcroft>Yeah.

00:09:17.100 --> 00:09:23.960
<v Chris Gammell>Uh, it's a microcontroller from them that, um, kind of came, uh, came to market with the,

00:09:23.960 --> 00:09:26.980
<v Chris Gammell>or I think was popularized with Arduino zero.

00:09:27.380 --> 00:09:27.640
<v Scott Shawcroft>Mm-hmm.

00:09:28.040 --> 00:09:36.120
<v Chris Gammell>Um, but because of the conflict between Arduino.org and .cc never really got traction.

00:09:36.480 --> 00:09:36.760
<v Chris Gammell>Mm-hmm.

00:09:36.900 --> 00:09:43.340
<v Chris Gammell>Um, but the Sam D21 got on Adafruit's radar there and, and all of the M0 line products,

00:09:43.580 --> 00:09:45.500
<v Chris Gammell>um, run that chip.

00:09:45.660 --> 00:09:45.980
<v Scott Shawcroft>Right.

00:09:46.240 --> 00:09:46.540
<v Scott Shawcroft>Right.

00:09:46.540 --> 00:09:46.640
<v Scott Shawcroft>Right.

00:09:46.740 --> 00:09:52.440
<v Scott Shawcroft>And, uh, speaking from the other products that I've used from Adafruit, you know, like they,

00:09:52.440 --> 00:09:58.000
<v Scott Shawcroft>they, and you by extension have worked hard by, to basically make it a more seamless experience

00:09:58.000 --> 00:10:04.540
<v Scott Shawcroft>from, you know, going from a, you know, the, the 328, that Mel 328, uh, P, is that right?

00:10:04.940 --> 00:10:05.400
<v Scott Shawcroft>Whatever the.

00:10:05.480 --> 00:10:06.200
<v Scott Shawcroft>I don't actually know.

00:10:06.580 --> 00:10:11.400
<v Scott Shawcroft>I think it's, I think it's the P, uh, but the 328, which is, uh, on the original Arduino

00:10:11.400 --> 00:10:18.160
<v Scott Shawcroft>Uno and, uh, and now the, uh, yeah, this, the M0, I mean, it's just like such a significant

00:10:18.160 --> 00:10:22.300
<v Scott Shawcroft>upgrade, you know, in terms of memory and, you know, processing power and everything.

00:10:22.300 --> 00:10:23.080
<v Scott Shawcroft>It's right.

00:10:23.320 --> 00:10:23.560
<v Scott Shawcroft>Yeah.

00:10:23.660 --> 00:10:25.960
<v Scott Shawcroft>It's, it's, it's, it's, it's silly.

00:10:26.360 --> 00:10:26.720
<v Chris Gammell>Uh, yeah.

00:10:26.720 --> 00:10:29.760
<v Chris Gammell>And it's not even a, it's not a price upgrade either.

00:10:29.760 --> 00:10:35.120
<v Chris Gammell>It's actually tends to be cheaper than the, the 328s now, I believe.

00:10:35.300 --> 00:10:35.600
<v Scott Shawcroft>Right.

00:10:35.720 --> 00:10:35.960
<v Scott Shawcroft>Yep.

00:10:35.960 --> 00:10:36.320
<v Scott Shawcroft>Exactly.

00:10:36.320 --> 00:10:41.720
<v Scott Shawcroft>Because I mean, yeah, I mean all the M0 parts these days are just so scraping the bottom

00:10:41.720 --> 00:10:42.600
<v Scott Shawcroft>of the barrel kind of cheap.

00:10:42.760 --> 00:10:44.080
<v Scott Shawcroft>So yeah, really nice.

00:10:44.260 --> 00:10:48.340
<v Scott Shawcroft>Uh, it's got a lot of the same or even more, I think it depends on which flavor of the part

00:10:48.340 --> 00:10:50.240
<v Scott Shawcroft>you have, but it has, you know, other peripherals too.

00:10:50.240 --> 00:10:55.340
<v Scott Shawcroft>So, and again, this is, this is the Atmel slash microchip version, but like really the

00:10:55.340 --> 00:11:01.360
<v Scott Shawcroft>M0 and the ARM ecosystem in general, like all of the Cortex stuff, it's just, you get so

00:11:01.360 --> 00:11:03.360
<v Scott Shawcroft>much stuff for so little money these days.

00:11:03.600 --> 00:11:03.800
<v Scott Shawcroft>Yeah.

00:11:03.800 --> 00:11:04.580
<v Scott Shawcroft>It's insane.

00:11:04.800 --> 00:11:05.120
<v Scott Shawcroft>You know?

00:11:05.120 --> 00:11:10.060
<v Scott Shawcroft>And then, and that's before you even jump into the ESP 32 world where it's like, you

00:11:10.060 --> 00:11:14.360
<v Scott Shawcroft>know, even cheaper, way more stuff, but obviously not as, not as accessible.

00:11:15.080 --> 00:11:15.240
<v Scott Shawcroft>Yeah.

00:11:16.240 --> 00:11:17.140
<v Scott Shawcroft>So, okay.

00:11:17.320 --> 00:11:19.280
<v Scott Shawcroft>So, I mean, how did you feel about all this?

00:11:19.360 --> 00:11:21.960
<v Scott Shawcroft>I mean, you'd done, you were doing STM 32 stuff, right?

00:11:22.020 --> 00:11:24.940
<v Scott Shawcroft>So, so did it cross over pretty well or what?

00:11:24.940 --> 00:11:33.000
<v Chris Gammell>Um, I had only dabbled in it a little bit, like most of the beta flight code I was working

00:11:33.000 --> 00:11:34.980
<v Chris Gammell>with, like they did the hard part.

00:11:34.980 --> 00:11:39.780
<v Chris Gammell>It was, is understanding that like pin mapping was a thing and figuring out like how pins

00:11:39.780 --> 00:11:40.480
<v Chris Gammell>mucks together.

00:11:41.040 --> 00:11:47.840
<v Chris Gammell>That's most of the experience I got, uh, with the STM stuff and then bringing MicroPython,

00:11:47.840 --> 00:11:54.520
<v Chris Gammell>which is actually STM 32 by design or with the PI board, which is kind of its flagship

00:11:54.520 --> 00:11:57.320
<v Chris Gammell>board, um, over to the SAM D 21.

00:11:57.500 --> 00:12:04.020
<v Chris Gammell>It was kind of a matter of learning to interact with all the peripherals and, and making that

00:12:04.020 --> 00:12:04.360
<v Chris Gammell>work.

00:12:04.860 --> 00:12:05.020
<v Chris Gammell>Got it.

00:12:05.220 --> 00:12:05.460
<v Chris Gammell>Okay.

00:12:05.800 --> 00:12:10.860
<v Scott Shawcroft>Well, and we should, I should mention too, uh, so this is when it was still MicroPython at

00:12:10.860 --> 00:12:11.740
<v Scott Shawcroft>Adafruit, right?

00:12:12.220 --> 00:12:12.560
<v Scott Shawcroft>Yeah.

00:12:12.580 --> 00:12:14.320
<v Scott Shawcroft>And we have had Tony on the show.

00:12:14.320 --> 00:12:21.100
<v Scott Shawcroft>So, so your coworker is Tony DeCola, uh, who also works on, uh, MicroPython, now Circuit

00:12:21.100 --> 00:12:21.440
<v Scott Shawcroft>Python.

00:12:21.860 --> 00:12:23.360
<v Scott Shawcroft>Uh, but Tony's been on the show before.

00:12:23.480 --> 00:12:24.040
<v Scott Shawcroft>So yeah.

00:12:24.100 --> 00:12:24.400
<v Scott Shawcroft>Yeah.

00:12:24.400 --> 00:12:24.560
<v Chris Gammell>Yeah.

00:12:24.560 --> 00:12:24.820
<v Chris Gammell>Yeah.

00:12:24.880 --> 00:12:26.400
<v Chris Gammell>Really early on, I think as well.

00:12:26.760 --> 00:12:28.700
<v Chris Gammell>Uh, early on for us, early on for him.

00:12:29.360 --> 00:12:31.580
<v Chris Gammell>Early on for MicroPython at Adafruit.

00:12:31.880 --> 00:12:32.140
<v Scott Shawcroft>Yeah.

00:12:32.180 --> 00:12:32.840
<v Scott Shawcroft>I think so too.

00:12:32.840 --> 00:12:37.960
<v Scott Shawcroft>And yeah, and it, uh, yeah, Tony was showcasing a bunch of this stuff as it was, as it was being

00:12:37.960 --> 00:12:39.360
<v Scott Shawcroft>used more and more at Adafruit, I think.

00:12:40.280 --> 00:12:43.460
<v Scott Shawcroft>And, uh, and, but it seems like it's taken on a kind of a bigger role there.

00:12:44.320 --> 00:12:44.960
<v Chris Gammell>Yeah.

00:12:45.100 --> 00:12:45.800
<v Chris Gammell>Within Adafruit.

00:12:46.080 --> 00:12:46.180
<v Chris Gammell>Yeah.

00:12:46.180 --> 00:12:52.240
<v Chris Gammell>I mean, I don't actually have much experience with Adafruit prior to that because I was actually

00:12:52.240 --> 00:12:53.220
<v Chris Gammell>hired to work on it.

00:12:53.620 --> 00:12:53.740
<v Chris Gammell>Uh-huh.

00:12:53.900 --> 00:12:58.580
<v Chris Gammell>Um, so my view is very Sandy 21, uh, MicroPython centric.

00:12:59.240 --> 00:13:08.200
<v Chris Gammell>Um, but the impression I get is that, uh, Lamore and Phil have really bet on MicroPython and,

00:13:08.200 --> 00:13:11.200
<v Chris Gammell>and CircuitPython as a platform for the future.

00:13:11.560 --> 00:13:11.780
<v Scott Shawcroft>Yeah.

00:13:11.780 --> 00:13:14.080
<v Scott Shawcroft>Um, no, I think it's, I think it's, I think it's really smart too.

00:13:14.160 --> 00:13:18.180
<v Scott Shawcroft>I mean, you know, and it's interesting, like, obviously, you know, I, I know you don't want

00:13:18.180 --> 00:13:21.920
<v Scott Shawcroft>to speak for them and I'm just speaking as an outsider, but like watching all that Arduino

00:13:21.920 --> 00:13:27.480
<v Scott Shawcroft>crap, it was like the biggest risk for, for me as a user, not even for someone, people that

00:13:27.480 --> 00:13:31.040
<v Scott Shawcroft>are selling it and, you know, their livelihood based on products that were using this software.

00:13:31.040 --> 00:13:34.780
<v Scott Shawcroft>It's like, if that, you know, centralized tool went away with me and Dave talked about

00:13:34.780 --> 00:13:35.240
<v Scott Shawcroft>this too.

00:13:35.240 --> 00:13:39.160
<v Scott Shawcroft>It's like the centralized tool of Arduino is the real value there, right?

00:13:39.200 --> 00:13:45.660
<v Scott Shawcroft>The hardware was varied throughout the ecosystem and ultimately didn't matter as much, right?

00:13:45.700 --> 00:13:50.380
<v Scott Shawcroft>Obviously it was using a very old processor, but I think that this move too is like, basically

00:13:50.380 --> 00:13:51.720
<v Scott Shawcroft>it's, it's accessible still.

00:13:51.820 --> 00:13:52.780
<v Scott Shawcroft>It has all the same things.

00:13:52.820 --> 00:13:56.780
<v Scott Shawcroft>It's accessible, uh, maybe even more so in turn because it's closer to Python.

00:13:56.780 --> 00:14:01.980
<v Scott Shawcroft>It's, it's, it loads fast and, uh, it works, you know, pretty seamlessly with the hardware

00:14:01.980 --> 00:14:05.060
<v Scott Shawcroft>because of the stuff you're doing, the stuff Lamar is doing, the stuff Tony's doing.

00:14:05.580 --> 00:14:10.040
<v Scott Shawcroft>So, um, yeah, I think it's a really cool move and, uh, and I've been using it and I like it

00:14:10.040 --> 00:14:10.500
<v Scott Shawcroft>a lot actually.

00:14:11.160 --> 00:14:11.200
<v Scott Shawcroft>Yeah.

00:14:11.280 --> 00:14:12.800
<v Scott Shawcroft>I was happy to hear that you like it a lot.

00:14:13.000 --> 00:14:13.220
<v Scott Shawcroft>Yeah.

00:14:13.440 --> 00:14:17.920
<v Scott Shawcroft>Maybe, can you give people like, uh, uh, a feel for what it is if they, if they haven't

00:14:17.920 --> 00:14:18.800
<v Scott Shawcroft>listened to another show with Tony?

00:14:19.120 --> 00:14:19.420
<v Chris Gammell>Yeah.

00:14:19.500 --> 00:14:24.320
<v Chris Gammell>So, um, I was thinking about this in the car, uh, how I would answer the question, what is

00:14:24.320 --> 00:14:24.860
<v Chris Gammell>CircuitPython?

00:14:24.860 --> 00:14:28.920
<v Chris Gammell>And I think what we should talk about first is what Python is.

00:14:29.500 --> 00:14:31.700
<v Chris Gammell>Um, yeah, indeed, indeed.

00:14:31.780 --> 00:14:32.200
<v Chris Gammell>What is Python?

00:14:32.300 --> 00:14:32.460
<v Chris Gammell>Right.

00:14:32.580 --> 00:14:38.100
<v Chris Gammell>So, uh, Python is a programming language, uh, which is programming languages are a way that

00:14:38.100 --> 00:14:40.160
<v Chris Gammell>you can tell the computer what to do.

00:14:40.660 --> 00:14:45.480
<v Chris Gammell>And when I talk about what computers are good at, I like to say that they're very fast at

00:14:45.480 --> 00:14:46.300
<v Chris Gammell>being very dumb.

00:14:47.140 --> 00:14:48.120
<v Chris Gammell>Um, okay.

00:14:48.260 --> 00:14:51.340
<v Chris Gammell>So, so they're so fast, you can't tell that they're extremely dumb.

00:14:51.340 --> 00:14:56.920
<v Chris Gammell>Um, but programming languages are human readable forms of telling the computer what to do.

00:14:56.920 --> 00:15:02.720
<v Chris Gammell>They get, gets boiled down to a binary version that the computer can understand.

00:15:03.420 --> 00:15:04.340
<v Chris Gammell>Um, I like that.

00:15:04.360 --> 00:15:05.400
<v Chris Gammell>That's, that's a very high level.

00:15:05.520 --> 00:15:06.000
<v Chris Gammell>Yeah, that's good.

00:15:06.180 --> 00:15:06.400
<v Chris Gammell>Yeah.

00:15:06.400 --> 00:15:08.280
<v Chris Gammell>We were talking about that too, about top down.

00:15:08.500 --> 00:15:08.980
<v Chris Gammell>Right.

00:15:09.080 --> 00:15:09.220
<v Chris Gammell>Yeah.

00:15:09.280 --> 00:15:09.480
<v Chris Gammell>Yeah.

00:15:09.540 --> 00:15:09.840
<v Chris Gammell>Yeah.

00:15:10.180 --> 00:15:15.300
<v Chris Gammell>So, so I wanted to start there and, uh, some people may be familiar with programming languages

00:15:15.300 --> 00:15:18.760
<v Chris Gammell>like C, um, really popular in the embedded world.

00:15:18.760 --> 00:15:26.920
<v Chris Gammell>And that lives kind of from the hardware up in my mind, whereas Python, which is Python

00:15:26.920 --> 00:15:32.840
<v Chris Gammell>is a couple of decades old and it really grew up on the other end of the spectrum of it's

00:15:32.840 --> 00:15:34.580
<v Chris Gammell>really good for beginners and novices.

00:15:34.580 --> 00:15:41.840
<v Chris Gammell>Um, it's very, a lot of schools have moved to using it instead of, um, languages like

00:15:41.840 --> 00:15:43.980
<v Chris Gammell>Scratch or Java in their intro courses.

00:15:44.400 --> 00:15:45.500
<v Chris Gammell>Or C++ in my day.

00:15:46.020 --> 00:15:46.820
<v Chris Gammell>Or C++.

00:15:47.160 --> 00:15:47.320
<v Chris Gammell>Yeah.

00:15:47.420 --> 00:15:48.200
<v Chris Gammell>I learned Java.

00:15:48.200 --> 00:15:48.460
<v Chris Gammell>Not friendly.

00:15:48.820 --> 00:15:49.000
<v Chris Gammell>Yeah.

00:15:49.820 --> 00:15:52.120
<v Chris Gammell>Um, so it's hit that sweet spot with novices.

00:15:52.120 --> 00:15:58.300
<v Chris Gammell>And I would also say that, uh, because its strength is there, it's also grown into a variety

00:15:58.300 --> 00:16:03.360
<v Chris Gammell>of not traditionally computer savvy, uh, spaces.

00:16:03.660 --> 00:16:06.280
<v Chris Gammell>So it's very heavily used in data science.

00:16:06.480 --> 00:16:09.400
<v Chris Gammell>It's heavily used in hard sciences.

00:16:09.860 --> 00:16:10.060
<v Chris Gammell>Yeah.

00:16:10.160 --> 00:16:15.240
<v Chris Gammell>Um, because it is so accessible to people who don't do programming as their day job.

00:16:15.500 --> 00:16:15.940
<v Scott Shawcroft>Yeah.

00:16:15.940 --> 00:16:17.420
<v Scott Shawcroft>It's like a, it's like a language of math.

00:16:17.500 --> 00:16:19.600
<v Scott Shawcroft>It's like a, it's like a math helper.

00:16:19.600 --> 00:16:22.400
<v Scott Shawcroft>It's a, it's a, it's a spreadsheet helper.

00:16:22.580 --> 00:16:23.480
<v Scott Shawcroft>It's a whatever helper.

00:16:23.480 --> 00:16:23.660
<v Scott Shawcroft>Yeah.

00:16:23.660 --> 00:16:26.080
<v Scott Shawcroft>Like, like the, what's that one book that automate everything?

00:16:26.840 --> 00:16:27.280
<v Scott Shawcroft>Yeah.

00:16:27.280 --> 00:16:28.580
<v Scott Shawcroft>I think it's a no starts press book.

00:16:28.940 --> 00:16:29.260
<v Scott Shawcroft>Yeah.

00:16:29.260 --> 00:16:30.160
<v Scott Shawcroft>I know what you're talking about.

00:16:30.240 --> 00:16:34.040
<v Scott Shawcroft>I can't remember what it is, but it's a book basically where you can automate tasks using

00:16:34.040 --> 00:16:34.360
<v Scott Shawcroft>Python.

00:16:34.400 --> 00:16:35.440
<v Scott Shawcroft>And that's what a lot of people use it for.

00:16:35.500 --> 00:16:38.080
<v Scott Shawcroft>Like, you know, so it depends, it depends on the audience you're talking to.

00:16:38.100 --> 00:16:40.400
<v Scott Shawcroft>It feels like it's like some people are doing text manipulation.

00:16:40.400 --> 00:16:42.200
<v Scott Shawcroft>Some people are doing image manipulation.

00:16:42.200 --> 00:16:44.280
<v Scott Shawcroft>Some people are, it's really data manipulation.

00:16:44.540 --> 00:16:45.360
<v Scott Shawcroft>Some people are Instagram.

00:16:46.180 --> 00:16:47.340
<v Scott Shawcroft>Some Instagram.

00:16:47.520 --> 00:16:47.660
<v Scott Shawcroft>Really?

00:16:48.100 --> 00:16:48.320
<v Chris Gammell>Yeah.

00:16:48.620 --> 00:16:49.060
<v Chris Gammell>Oh, really?

00:16:49.200 --> 00:16:50.060
<v Chris Gammell>I think it's Instagram.

00:16:50.420 --> 00:16:50.820
<v Chris Gammell>Oh, wow.

00:16:51.240 --> 00:16:54.780
<v Chris Gammell>Uh, they were one of the keynotes at, uh, PyCon last year.

00:16:54.860 --> 00:16:57.160
<v Chris Gammell>They were talking about switching all over to Python.

00:16:57.280 --> 00:16:57.600
<v Chris Gammell>Three.

00:16:58.660 --> 00:17:00.780
<v Chris Gammell>Um, so it does scale.

00:17:01.100 --> 00:17:03.040
<v Scott Shawcroft>The ultimate, uh, we don't need to talk about that.

00:17:03.120 --> 00:17:03.220
<v Scott Shawcroft>Yeah.

00:17:05.260 --> 00:17:05.700
<v Scott Shawcroft>Yes.

00:17:06.560 --> 00:17:06.820
<v Scott Shawcroft>So.

00:17:07.060 --> 00:17:07.200
<v Scott Shawcroft>Yeah.

00:17:07.200 --> 00:17:10.420
<v Scott Shawcroft>And server, server front and backend type stuff too, which is fun.

00:17:10.500 --> 00:17:14.700
<v Scott Shawcroft>Again, not really what we're talking about here, but it's, but now it's taking that similar

00:17:14.700 --> 00:17:19.460
<v Scott Shawcroft>user friendliness and kind of now what kind of diving down to lower levels.

00:17:19.460 --> 00:17:23.540
<v Chris Gammell>Well, it's, it's bringing it to a new platform, I would say.

00:17:23.540 --> 00:17:32.700
<v Chris Gammell>So, um, micro Python and by extension circuit Python bring that ease of use that, um, that

00:17:32.700 --> 00:17:37.020
<v Chris Gammell>Python has to the, uh, the microcontroller world.

00:17:37.240 --> 00:17:37.800
<v Chris Gammell>Yeah.

00:17:37.800 --> 00:17:44.100
<v Chris Gammell>Um, and, and I should say that also Python and circuit Python have this strength where

00:17:44.100 --> 00:17:48.040
<v Chris Gammell>it may not be the fastest to execute, but it's really fast to iterate.

00:17:48.200 --> 00:17:48.720
<v Chris Gammell>Yeah.

00:17:48.720 --> 00:17:55.720
<v Chris Gammell>And for beginners, uh, iteration time as low as possible is a good thing because that means

00:17:55.720 --> 00:18:01.000
<v Chris Gammell>that you change the code and you immediately see how you've impacted what the behavior,

00:18:01.000 --> 00:18:04.260
<v Chris Gammell>uh, and getting that down is super critical.

00:18:04.260 --> 00:18:08.840
<v Chris Gammell>And that's a trade-off that I think Python had made previously in circuit Python makes

00:18:08.840 --> 00:18:09.280
<v Chris Gammell>as well.

00:18:09.280 --> 00:18:15.560
<v Chris Gammell>That has really caused it or is one reason that it's very, very popular with beginners

00:18:15.560 --> 00:18:18.060
<v Chris Gammell>is because of that very fast iteration time.

00:18:18.680 --> 00:18:19.120
<v Scott Shawcroft>That sounds right.

00:18:19.280 --> 00:18:19.460
<v Scott Shawcroft>Yeah.

00:18:19.580 --> 00:18:24.320
<v Scott Shawcroft>And I think, so another thing that, that really never sunk in, and I'm, and I'm not sure if

00:18:24.320 --> 00:18:29.720
<v Scott Shawcroft>you and I talking about it now would matter for, it's sinking for people listening rather.

00:18:30.000 --> 00:18:36.480
<v Scott Shawcroft>Um, but the whole like interpreted versus compiled, I never, I never understood what that was until,

00:18:36.480 --> 00:18:39.440
<v Scott Shawcroft>until I started using micro Python circuit Python.

00:18:39.720 --> 00:18:42.120
<v Scott Shawcroft>So can you try to explain that?

00:18:42.180 --> 00:18:44.240
<v Scott Shawcroft>Maybe I'll try to explain it if I don't understand what you're saying.

00:18:45.560 --> 00:18:46.400
<v Chris Gammell>Sure.

00:18:46.720 --> 00:18:51.920
<v Chris Gammell>So the question is, is what is the difference between something that's interpreted and what

00:18:51.920 --> 00:18:53.440
<v Chris Gammell>something that's compiled?

00:18:53.940 --> 00:18:54.200
<v Scott Shawcroft>Yes.

00:18:54.440 --> 00:18:58.420
<v Chris Gammell>So for example, Arduino is compiled.

00:18:58.720 --> 00:19:02.500
<v Chris Gammell>Arduino is C, C plus plus under the hood.

00:19:02.640 --> 00:19:07.660
<v Chris Gammell>They do some funny tricks to make it proper C before they actually compile it.

00:19:07.660 --> 00:19:15.640
<v Chris Gammell>Um, but the advantage to that is, uh, you have a very strong computer like your desktop or your

00:19:15.640 --> 00:19:21.340
<v Chris Gammell>laptop that can spend time optimizing, uh, the code for you.

00:19:21.460 --> 00:19:26.760
<v Chris Gammell>And then in the end, what you end up getting is some code that runs directly on the CPU.

00:19:26.760 --> 00:19:36.200
<v Chris Gammell>And what I mean by that is that code that you wrote leads to instructions that the CPU can directly execute.

00:19:36.700 --> 00:19:36.760
<v Scott Shawcroft>Right.

00:19:37.120 --> 00:19:43.040
<v Scott Shawcroft>Um, it's basically taking it from, let's say C plus plus, and it's making assembly, right?

00:19:43.120 --> 00:19:49.900
<v Scott Shawcroft>Which then gets, well, you can view it as assembly, but it's really just have these instructions that are relate to machine code.

00:19:49.900 --> 00:19:50.200
<v Scott Shawcroft>Yeah.

00:19:50.200 --> 00:19:50.840
<v Chris Gammell>Yeah.

00:19:50.840 --> 00:19:51.020
<v Chris Gammell>Yeah.

00:19:51.020 --> 00:19:56.520
<v Chris Gammell>It literally is machine code where shift left or jump or whatever.

00:19:57.000 --> 00:19:57.160
<v Chris Gammell>Yep.

00:19:57.480 --> 00:20:15.260
<v Chris Gammell>So, uh, interpreted languages have an extra step where instead of when you compile something, you get machine code, you get what is called byte code, uh, which is a different intermediate layer that does similar stuff to machine code.

00:20:15.260 --> 00:20:22.140
<v Chris Gammell>But in reality, it has a layer of C code essentially underneath it that executes based on the byte code.

00:20:22.920 --> 00:20:28.680
<v Chris Gammell>Um, I don't know if that, is it good enough explanation?

00:20:28.680 --> 00:20:29.500
<v Scott Shawcroft>No, that doesn't really help me actually.

00:20:29.680 --> 00:20:31.980
<v Scott Shawcroft>Well, I actually didn't even know that was a thing.

00:20:32.060 --> 00:20:33.220
<v Scott Shawcroft>So that's, that's really what I'm saying.

00:20:33.300 --> 00:20:34.280
<v Scott Shawcroft>I'm not saying it doesn't help me.

00:20:34.320 --> 00:20:36.200
<v Scott Shawcroft>I'm just saying I didn't know byte code was a thing.

00:20:36.200 --> 00:20:36.980
<v Scott Shawcroft>So, right.

00:20:36.980 --> 00:20:51.220
<v Scott Shawcroft>I always thought the interpreted piece was like now that basically you have written a small application that sits there and is like a, it's like a, uh, what's it called?

00:20:51.800 --> 00:20:54.120
<v Scott Shawcroft>What's the bug that they stick in your ear in Hitchcock's Guide?

00:20:54.580 --> 00:20:54.780
<v Scott Shawcroft>Yeah.

00:20:56.480 --> 00:20:56.920
<v Scott Shawcroft>Uh.

00:20:57.140 --> 00:20:57.540
<v Scott Shawcroft>Uh.

00:20:57.540 --> 00:20:59.900
<v Scott Shawcroft>I'm thinking earworm, but I don't think that's what you're thinking.

00:21:00.020 --> 00:21:00.260
<v Scott Shawcroft>Yeah.

00:21:00.440 --> 00:21:02.620
<v Scott Shawcroft>It's, it's a Babelfish.

00:21:02.740 --> 00:21:03.580
<v Scott Shawcroft>It's a Babelfish.

00:21:03.580 --> 00:21:04.000
<v Scott Shawcroft>Yeah, yeah.

00:21:04.000 --> 00:21:09.580
<v Scott Shawcroft>Or going, so it, it consumes some kind of code and it craps out machine code, right?

00:21:09.600 --> 00:21:17.160
<v Scott Shawcroft>And it does that live though, versus doing it once and then always just pushing that, that crapped out machine code to your device.

00:21:17.620 --> 00:21:20.380
<v Scott Shawcroft>Now, now the Babelfish lives on your device.

00:21:21.080 --> 00:21:22.300
<v Scott Shawcroft>Does that sound right or no?

00:21:22.440 --> 00:21:24.700
<v Scott Shawcroft>Is that, is that a weird, I mean, it is weird, but.

00:21:25.140 --> 00:21:33.980
<v Chris Gammell>I don't, I, I understand what you're saying, but I, I, when, when you load a file in CircuitPy,

00:21:34.000 --> 00:21:35.260
<v Chris Gammell>Python or MicroPython.

00:21:35.720 --> 00:21:35.840
<v Chris Gammell>Yeah.

00:21:35.940 --> 00:21:38.420
<v Chris Gammell>Um, you don't, and I think Python works this way as well.

00:21:38.500 --> 00:21:43.940
<v Chris Gammell>You don't get out instructions that are equivalent to instructions that the CPU knows about.

00:21:44.260 --> 00:21:44.980
<v Scott Shawcroft>Oh, okay.

00:21:45.120 --> 00:21:54.500
<v Chris Gammell>Um, instead what you're getting is, what you have is you have a C function somewhere that reads the byte code and then does some stuff.

00:21:55.500 --> 00:21:55.980
<v Scott Shawcroft>Interesting.

00:21:56.420 --> 00:21:59.500
<v Chris Gammell>Um, so there, there is a layer of indirection there.

00:21:59.920 --> 00:22:05.500
<v Scott Shawcroft>Um, but it's not like, there's not some machine that's sitting there and just consuming a lot.

00:22:05.580 --> 00:22:09.500
<v Scott Shawcroft>You're saying that there is, it's consuming the intermediate step that you're loading into there.

00:22:09.560 --> 00:22:10.360
<v Scott Shawcroft>It doesn't care.

00:22:10.540 --> 00:22:11.920
<v Scott Shawcroft>It doesn't need to do it dynamically.

00:22:11.920 --> 00:22:15.180
<v Scott Shawcroft>It doesn't need to keep going and going and going and retranslating.

00:22:15.900 --> 00:22:16.460
<v Chris Gammell>Right.

00:22:16.560 --> 00:22:23.580
<v Chris Gammell>So it does like CircuitPython will translate your source code to byte code up front.

00:22:24.180 --> 00:22:24.740
<v Scott Shawcroft>Okay.

00:22:24.840 --> 00:22:30.100
<v Chris Gammell>Um, it'll do that once and then it'll execute it just like the machine would do machine code.

00:22:30.280 --> 00:22:30.620
<v Chris Gammell>Uh huh.

00:22:30.980 --> 00:22:33.780
<v Chris Gammell>Um, but that byte code is dynamically loaded.

00:22:33.940 --> 00:22:39.580
<v Chris Gammell>Not it's, it's the byte code is stored in Ram.

00:22:39.580 --> 00:22:41.760
<v Chris Gammell>It's not stored in your flash every time.

00:22:42.860 --> 00:22:43.560
<v Scott Shawcroft>Oh, okay.

00:22:43.860 --> 00:22:46.280
<v Scott Shawcroft>And, and, and does that distinction matter too then?

00:22:46.380 --> 00:22:51.080
<v Scott Shawcroft>Because so, yeah, cause maybe that's a good, a good, uh, comparison point as well.

00:22:51.080 --> 00:22:51.240
<v Scott Shawcroft>Right.

00:22:51.300 --> 00:22:56.880
<v Scott Shawcroft>So, so you compile something, you have an Arduino sketch, you compile it down, you're going to load

00:22:56.880 --> 00:22:58.180
<v Scott Shawcroft>that into flash.

00:22:58.180 --> 00:23:02.900
<v Scott Shawcroft>And then when you hit go, it's going to hit reset and it's going to load the flash into

00:23:02.900 --> 00:23:04.120
<v Scott Shawcroft>Ram and operate out of Ram.

00:23:04.320 --> 00:23:04.340
<v Scott Shawcroft>Right.

00:23:04.420 --> 00:23:04.620
<v Scott Shawcroft>Right.

00:23:04.620 --> 00:23:11.560
<v Chris Gammell>So in comparison, CircuitPython, what you've loaded into flash is basically your tools.

00:23:11.800 --> 00:23:14.400
<v Chris Gammell>So your compiler you've loaded in there as well.

00:23:14.720 --> 00:23:18.780
<v Chris Gammell>And so there's some code that says like, Hey, I'm going to look for this file code.py.

00:23:19.120 --> 00:23:20.140
<v Chris Gammell>I'm going to load it.

00:23:20.320 --> 00:23:23.920
<v Chris Gammell>I'm going to convert it to byte code, which I'm going to store in memory.

00:23:23.920 --> 00:23:29.480
<v Chris Gammell>And then I'm going to run what is called the virtual machine, which is a big complicated

00:23:29.480 --> 00:23:31.680
<v Chris Gammell>loop that I don't really understand.

00:23:32.100 --> 00:23:40.480
<v Chris Gammell>Uh, that's written in C, um, and it interprets those byte codes to into machine code.

00:23:40.680 --> 00:23:42.240
<v Chris Gammell>But it only does that once you're saying?

00:23:43.600 --> 00:23:46.680
<v Chris Gammell>Uh, so it'll do that the first time it starts up.

00:23:46.680 --> 00:23:51.980
<v Chris Gammell>And then the way CircuitPython works, if you save the file again, it will stop that VM.

00:23:52.880 --> 00:23:55.300
<v Chris Gammell>Um, and then it will go through that process.

00:23:55.340 --> 00:23:59.800
<v Chris Gammell>It will parse the file into byte code and then rerun it again.

00:24:00.160 --> 00:24:04.200
<v Scott Shawcroft>See the VM in that case would be the Babelfish in my, in my weird example.

00:24:04.420 --> 00:24:05.000
<v Scott Shawcroft>So yeah.

00:24:05.340 --> 00:24:05.640
<v Scott Shawcroft>Okay.

00:24:05.940 --> 00:24:06.320
<v Scott Shawcroft>Yeah.

00:24:06.320 --> 00:24:08.880
<v Chris Gammell>I guess I'm thinking what is stored.

00:24:08.880 --> 00:24:12.960
<v Chris Gammell>It's machine instructions for your code is never stored.

00:24:13.100 --> 00:24:14.740
<v Chris Gammell>It's interpreted from byte code.

00:24:14.740 --> 00:24:19.080
<v Scott Shawcroft>Machine instructions for your code is never stored.

00:24:19.300 --> 00:24:20.480
<v Scott Shawcroft>Never stored in flash.

00:24:21.360 --> 00:24:21.840
<v Scott Shawcroft>Correct.

00:24:22.540 --> 00:24:22.820
<v Scott Shawcroft>Okay.

00:24:22.960 --> 00:24:24.160
<v Scott Shawcroft>Cause that's like what an Arduino does.

00:24:24.820 --> 00:24:25.020
<v Scott Shawcroft>Yes.

00:24:25.020 --> 00:24:25.640
<v Scott Shawcroft>Or that's what, yeah.

00:24:25.800 --> 00:24:25.960
<v Scott Shawcroft>Yeah.

00:24:25.960 --> 00:24:26.140
<v Scott Shawcroft>Right.

00:24:26.560 --> 00:24:26.700
<v Scott Shawcroft>Right.

00:24:27.120 --> 00:24:27.300
<v Scott Shawcroft>Okay.

00:24:27.380 --> 00:24:28.560
<v Chris Gammell>Well, we store in flash.

00:24:28.740 --> 00:24:35.780
<v Chris Gammell>We, our express boards have a separate flash chip that stores, uh, the text version of your

00:24:35.780 --> 00:24:36.080
<v Chris Gammell>code.

00:24:36.760 --> 00:24:37.340
<v Chris Gammell>Oh, okay.

00:24:37.340 --> 00:24:37.820
<v Chris Gammell>Interesting.

00:24:38.260 --> 00:24:41.640
<v Chris Gammell>So it's, it's always dynamically compiled to byte code.

00:24:42.020 --> 00:24:42.160
<v Chris Gammell>Right.

00:24:42.320 --> 00:24:42.540
<v Chris Gammell>Right.

00:24:42.660 --> 00:24:42.880
<v Chris Gammell>Okay.

00:24:43.400 --> 00:24:43.820
<v Scott Shawcroft>Okay.

00:24:43.820 --> 00:24:45.200
<v Scott Shawcroft>So that was a lot of discussion.

00:24:45.540 --> 00:24:45.720
<v Scott Shawcroft>Yeah.

00:24:45.720 --> 00:24:46.580
<v Scott Shawcroft>That was in the weeds.

00:24:46.580 --> 00:24:51.380
<v Scott Shawcroft>Let's, let's zoom back out and like, so practically how does this work then?

00:24:51.500 --> 00:24:55.560
<v Scott Shawcroft>So someone buys a Trinket M zero, which is like my new favorite board.

00:24:55.580 --> 00:24:59.280
<v Scott Shawcroft>And I think I've said that on the show before, which has a little Sam D 21 on it.

00:24:59.280 --> 00:25:01.780
<v Scott Shawcroft>And it's what eight pins, 10 pins, something like that.

00:25:02.620 --> 00:25:03.320
<v Scott Shawcroft>What do they do?

00:25:03.320 --> 00:25:03.400
<v Scott Shawcroft>Yeah.

00:25:03.400 --> 00:25:04.940
<v Chris Gammell>Something like that.

00:25:04.940 --> 00:25:07.940
<v Chris Gammell>So it ships with circuit Python.

00:25:07.940 --> 00:25:08.440
<v Chris Gammell>Yeah.

00:25:08.440 --> 00:25:15.080
<v Chris Gammell>So all you have to do is you plug it into your computer and it will show up as a USB drive

00:25:15.080 --> 00:25:22.160
<v Chris Gammell>and it will have example code on it in a file called code.py, which you can double click

00:25:22.160 --> 00:25:26.900
<v Chris Gammell>and open in a text editor, which you may have installed already.

00:25:26.900 --> 00:25:29.400
<v Chris Gammell>If you don't, Adam is a great text editor.

00:25:30.860 --> 00:25:37.140
<v Chris Gammell>You edit the file, you hit save and it runs on the, on the board.

00:25:38.240 --> 00:25:39.260
<v Scott Shawcroft>That's pretty crazy.

00:25:39.440 --> 00:25:44.540
<v Scott Shawcroft>That is, that's what I've, I've talked about on the show before, but that, that kind of

00:25:44.540 --> 00:25:46.840
<v Scott Shawcroft>iteration loop is kind of insane.

00:25:46.840 --> 00:25:47.280
<v Chris Gammell>Yeah.

00:25:47.280 --> 00:25:51.580
<v Chris Gammell>For, for seasoned programmers, it's kind of like a, I don't want it doing that on behalf

00:25:51.580 --> 00:25:56.660
<v Chris Gammell>of me, but then you use it and you're like, you know, it ran before I had a chance to even

00:25:56.660 --> 00:25:57.820
<v Chris Gammell>go to the other window.

00:25:58.220 --> 00:25:58.580
<v Chris Gammell>Yeah.

00:25:58.740 --> 00:25:58.960
<v Chris Gammell>Right.

00:25:59.160 --> 00:26:00.280
<v Chris Gammell>To see the output.

00:26:00.520 --> 00:26:00.840
<v Chris Gammell>Right.

00:26:01.080 --> 00:26:01.980
<v Chris Gammell>And it's really nice.

00:26:02.900 --> 00:26:04.040
<v Chris Gammell>Yeah, it is.

00:26:05.320 --> 00:26:06.500
<v Scott Shawcroft>I'm glad you like it.

00:26:06.660 --> 00:26:09.440
<v Scott Shawcroft>I mean, especially for like, for like, well, like, like I've said before, right.

00:26:09.440 --> 00:26:14.160
<v Scott Shawcroft>It's on, I said, maybe not to you, but on the show, uh, you know, like if, if I'm just

00:26:14.160 --> 00:26:19.180
<v Scott Shawcroft>throwing values at a, at a ADC and I just need to read, read and write to registers, like

00:26:19.180 --> 00:26:23.200
<v Scott Shawcroft>that kind of thing, that kind of iteration and cycle of like, and it's, it's effectively

00:26:23.200 --> 00:26:24.500
<v Scott Shawcroft>what I was doing on Arduino anyways.

00:26:24.500 --> 00:26:24.800
<v Scott Shawcroft>Right.

00:26:25.060 --> 00:26:25.280
<v Chris Gammell>Right.

00:26:25.760 --> 00:26:30.980
<v Chris Gammell>Um, but now you're not erasing the entire chip compiling and then uploading it all back.

00:26:31.240 --> 00:26:31.640
<v Scott Shawcroft>Right.

00:26:31.900 --> 00:26:37.420
<v Scott Shawcroft>And actually one other thing that I found out too is, uh, about myself is that, you know,

00:26:37.420 --> 00:26:42.440
<v Scott Shawcroft>like, you know, like that terrible, like when you get like that, like fever, feverish, uh,

00:26:42.440 --> 00:26:46.300
<v Scott Shawcroft>troubleshoot, you ever get in that feverish troubleshoot loop where you're like, Oh, I'll

00:26:46.300 --> 00:26:47.160
<v Scott Shawcroft>just change this one thing.

00:26:47.220 --> 00:26:47.440
<v Scott Shawcroft>Save.

00:26:47.820 --> 00:26:48.760
<v Scott Shawcroft>I'll just change this one thing.

00:26:48.840 --> 00:26:49.080
<v Scott Shawcroft>Save.

00:26:49.260 --> 00:26:50.380
<v Scott Shawcroft>I'll just change this one thing.

00:26:50.440 --> 00:26:50.660
<v Scott Shawcroft>Save.

00:26:50.680 --> 00:26:51.760
<v Scott Shawcroft>And I'm like, Oh, it's broken.

00:26:51.940 --> 00:26:53.820
<v Scott Shawcroft>And I can't control Z it, you know?

00:26:53.820 --> 00:26:56.380
<v Scott Shawcroft>And I'm, and I've, for some reason I've, I'm, I'm feverish.

00:26:56.420 --> 00:26:59.520
<v Scott Shawcroft>So I haven't been like doing revision control or anything like that.

00:26:59.520 --> 00:27:04.560
<v Scott Shawcroft>And so, you know, the thing that was working the first 30 times and on the 31st time I changed

00:27:04.560 --> 00:27:05.620
<v Scott Shawcroft>something that I don't remember.

00:27:05.620 --> 00:27:08.380
<v Scott Shawcroft>Uh, I'm screwed.

00:27:08.640 --> 00:27:12.160
<v Scott Shawcroft>Whereas, or, or, you know, I save it in a different location or whatever, whatever.

00:27:12.240 --> 00:27:13.700
<v Scott Shawcroft>And I have to actually keep track of that file.

00:27:13.800 --> 00:27:17.160
<v Scott Shawcroft>And now it's like, I pick up a board that I was working on.

00:27:17.240 --> 00:27:21.260
<v Scott Shawcroft>It was working when I put it down and I just load it up and I'm like, Oh, Hey, here's the

00:27:21.260 --> 00:27:21.520
<v Scott Shawcroft>file.

00:27:22.240 --> 00:27:22.460
<v Chris Gammell>Yeah.

00:27:22.660 --> 00:27:22.900
<v Chris Gammell>Yeah.

00:27:22.900 --> 00:27:23.180
<v Chris Gammell>Yeah.

00:27:23.180 --> 00:27:23.360
<v Chris Gammell>Yeah.

00:27:23.360 --> 00:27:23.440
<v Chris Gammell>Yeah.

00:27:23.440 --> 00:27:27.560
<v Chris Gammell>I was just talking with a friend of mine, Sophie Wong, and she was saying she loves that

00:27:27.560 --> 00:27:28.520
<v Chris Gammell>part of it as well.

00:27:29.340 --> 00:27:30.780
<v Chris Gammell>Just her codes on the device.

00:27:31.040 --> 00:27:31.660
<v Scott Shawcroft>Codes on the device.

00:27:31.800 --> 00:27:32.180
<v Scott Shawcroft>It's just there.

00:27:32.260 --> 00:27:35.580
<v Scott Shawcroft>I mean, it's probably, it's probably like it's, it's lulling you to sleep, but, uh,

00:27:35.940 --> 00:27:36.260
<v Scott Shawcroft>you know.

00:27:36.680 --> 00:27:37.000
<v Chris Gammell>Yeah.

00:27:37.100 --> 00:27:38.540
<v Chris Gammell>I always back up your stuff.

00:27:38.720 --> 00:27:38.980
<v Scott Shawcroft>Yeah.

00:27:39.020 --> 00:27:39.300
<v Scott Shawcroft>Right.

00:27:39.580 --> 00:27:40.780
<v Scott Shawcroft>But it is still really nice.

00:27:40.940 --> 00:27:41.660
<v Scott Shawcroft>Revision control.

00:27:41.780 --> 00:27:42.560
<v Scott Shawcroft>It's a thing folks.

00:27:43.080 --> 00:27:43.920
<v Scott Shawcroft>Uh, okay.

00:27:44.960 --> 00:27:49.200
<v Scott Shawcroft>So, um, so we've talked about how it works.

00:27:49.680 --> 00:27:49.900
<v Scott Shawcroft>Yeah.

00:27:49.900 --> 00:27:51.040
<v Scott Shawcroft>A little bit too much probably.

00:27:51.440 --> 00:27:51.740
<v Scott Shawcroft>Yeah.

00:27:52.240 --> 00:27:55.360
<v Scott Shawcroft>Um, but we haven't talked about why it works.

00:27:55.440 --> 00:27:55.760
<v Scott Shawcroft>That's fine.

00:27:55.800 --> 00:27:56.580
<v Scott Shawcroft>Not the right question either.

00:27:56.920 --> 00:27:57.800
<v Scott Shawcroft>Why it works.

00:27:57.920 --> 00:27:58.080
<v Scott Shawcroft>Yeah.

00:27:58.100 --> 00:28:00.220
<v Scott Shawcroft>I mean like, so I can, I can talk about our goals.

00:28:00.560 --> 00:28:00.800
<v Chris Gammell>Yeah.

00:28:00.880 --> 00:28:01.120
<v Scott Shawcroft>Okay.

00:28:01.120 --> 00:28:01.520
<v Scott Shawcroft>That's good.

00:28:01.660 --> 00:28:01.820
<v Scott Shawcroft>Yeah.

00:28:01.820 --> 00:28:06.220
<v Chris Gammell>Like, um, and, and this gets into a little bit of why we aren't still MicroPython.

00:28:06.860 --> 00:28:07.800
<v Chris Gammell>Um, oh yeah, that's good.

00:28:07.800 --> 00:28:15.340
<v Chris Gammell>Um, like our goal is to be an excellent experience for people who have never programmed in their

00:28:15.340 --> 00:28:15.640
<v Chris Gammell>life.

00:28:16.380 --> 00:28:20.880
<v Chris Gammell>Um, those, those are the people that we're, we're going for with CircuitPython.

00:28:20.880 --> 00:28:21.480
<v Chris Gammell>Mm-hmm.

00:28:21.600 --> 00:28:26.440
<v Chris Gammell>And that's not to say we don't, we aren't happy to see people come from Arduino or MicroPython

00:28:26.440 --> 00:28:28.560
<v Chris Gammell>or C, um, to enjoy it.

00:28:28.560 --> 00:28:33.920
<v Chris Gammell>It's just to say that like the decisions we make are not necessarily, not necessarily for

00:28:33.920 --> 00:28:34.480
<v Chris Gammell>those people.

00:28:35.220 --> 00:28:35.800
<v Scott Shawcroft>Um, okay.

00:28:36.060 --> 00:28:41.040
<v Chris Gammell>The auto reload that you love so much is one example of a decision we've made explicitly

00:28:41.040 --> 00:28:42.660
<v Chris Gammell>to make it easy for those people.

00:28:43.160 --> 00:28:43.340
<v Chris Gammell>Mm-hmm.

00:28:43.340 --> 00:28:48.700
<v Chris Gammell>Another example is that we call it code.py and we actually support calling the file code.text

00:28:48.700 --> 00:28:52.100
<v Chris Gammell>as well, because we're not assuming that the people who have never coded in their life

00:28:52.100 --> 00:28:58.040
<v Chris Gammell>actually understand what Python is or what main is, um, but may have heard this kind of

00:28:58.040 --> 00:28:59.020
<v Chris Gammell>code is a buzzword.

00:28:59.440 --> 00:28:59.920
<v Chris Gammell>Oh, okay.

00:29:00.100 --> 00:29:07.400
<v Chris Gammell>Um, and then we've also made some decisions to, uh, change the way that you work in CircuitPython

00:29:07.400 --> 00:29:14.060
<v Chris Gammell>to better match CPython compared to, uh, MicroPython who has made some trade-offs in how you use

00:29:14.060 --> 00:29:15.680
<v Chris Gammell>it in order to get more performance.

00:29:15.680 --> 00:29:22.140
<v Chris Gammell>Um, so we've, we've explicitly chosen to be less performant than MicroPython in order

00:29:22.140 --> 00:29:29.040
<v Chris Gammell>to be more similar to Python, uh, because Python has tons of resources on its own that we want

00:29:29.040 --> 00:29:29.980
<v Chris Gammell>to take advantage of.

00:29:30.780 --> 00:29:32.520
<v Scott Shawcroft>So can you give us an example of that?

00:29:32.900 --> 00:29:35.260
<v Chris Gammell>I can't, like, like the API stuff?

00:29:35.700 --> 00:29:39.820
<v Scott Shawcroft>No, well, like what, uh, what, what would, what would MicroPython do that CircuitPython

00:29:39.820 --> 00:29:40.420
<v Scott Shawcroft>doesn't do?

00:29:40.420 --> 00:29:44.980
<v Scott Shawcroft>Like you said, it's, it's made to be more performant in MicroPython versus CircuitPython.

00:29:45.200 --> 00:29:45.700
<v Scott Shawcroft>So like, right.

00:29:45.940 --> 00:29:53.100
<v Chris Gammell>So one example is, uh, there's a thing called, so there, there's two ways of, of doing things

00:29:53.100 --> 00:29:55.480
<v Chris Gammell>on an object in CircuitPython.

00:29:55.880 --> 00:30:01.500
<v Chris Gammell>So, uh, in C land, you always just have functions in C plus plus you have objects.

00:30:01.500 --> 00:30:08.160
<v Chris Gammell>And then in languages like C sharp, you're, you start to get, um, both attributes and

00:30:08.160 --> 00:30:08.900
<v Chris Gammell>functions.

00:30:08.900 --> 00:30:14.580
<v Chris Gammell>So a function is something you can think of that performs behavior for a thing.

00:30:14.780 --> 00:30:17.880
<v Chris Gammell>So that might be like blink five times as a function.

00:30:18.180 --> 00:30:18.220
<v Chris Gammell>Yeah.

00:30:18.280 --> 00:30:19.840
<v Chris Gammell>It's like a tiny little loop, right?

00:30:19.960 --> 00:30:20.260
<v Chris Gammell>Yeah.

00:30:20.540 --> 00:30:20.780
<v Chris Gammell>Yeah.

00:30:20.880 --> 00:30:21.860
<v Chris Gammell>It's like this little loop.

00:30:21.920 --> 00:30:22.720
<v Scott Shawcroft>You say, go do that thing.

00:30:22.820 --> 00:30:23.080
<v Scott Shawcroft>And then come.

00:30:23.240 --> 00:30:23.340
<v Chris Gammell>Yeah.

00:30:23.380 --> 00:30:24.580
<v Chris Gammell>And it takes some time.

00:30:24.580 --> 00:30:27.720
<v Chris Gammell>It does multiple things in a C, a particular sequence.

00:30:27.720 --> 00:30:28.940
<v Chris Gammell>That's what a function is.

00:30:29.500 --> 00:30:34.640
<v Chris Gammell>Um, but in Python, there's also attributes, which is just state, right?

00:30:34.640 --> 00:30:40.920
<v Chris Gammell>It's just, um, is the led on or not is the digital pin high or low?

00:30:41.480 --> 00:30:46.880
<v Chris Gammell>Um, that's just state that exists, whether you read it or write it or, or whatever, it's

00:30:46.880 --> 00:30:47.420
<v Chris Gammell>always there.

00:30:47.760 --> 00:30:54.080
<v Chris Gammell>And, uh, Python has this really cool feature where you can actually internally use functions

00:30:54.080 --> 00:30:55.360
<v Chris Gammell>to, to do that.

00:30:55.640 --> 00:31:00.900
<v Chris Gammell>So we've chosen to use properties, which look like.

00:31:01.080 --> 00:31:01.620
<v Scott Shawcroft>There's a lot of words here, Scott.

00:31:01.700 --> 00:31:02.120
<v Scott Shawcroft>I'm just saying.

00:31:02.160 --> 00:31:02.420
<v Scott Shawcroft>I know.

00:31:02.560 --> 00:31:02.820
<v Scott Shawcroft>I'm sorry.

00:31:03.200 --> 00:31:03.360
<v Scott Shawcroft>Yeah.

00:31:03.440 --> 00:31:06.760
<v Scott Shawcroft>Um, this is like, this is like your Google or internally.

00:31:06.760 --> 00:31:08.480
<v Scott Shawcroft>You're like, oh, everything's an object, right?

00:31:08.900 --> 00:31:09.160
<v Scott Shawcroft>Yeah.

00:31:09.660 --> 00:31:10.600
<v Scott Shawcroft>Everything's a bike lane.

00:31:10.860 --> 00:31:12.540
<v Scott Shawcroft>Let me, let me, let me think about it.

00:31:12.800 --> 00:31:13.140
<v Scott Shawcroft>So.

00:31:13.660 --> 00:31:14.240
<v Scott Shawcroft>Well, okay.

00:31:14.240 --> 00:31:16.000
<v Chris Gammell>So you're saying, okay, well.

00:31:16.000 --> 00:31:18.780
<v Chris Gammell>So, so say we have a temperature sensor, right?

00:31:18.780 --> 00:31:19.060
<v Scott Shawcroft>Perfect.

00:31:19.200 --> 00:31:20.500
<v Scott Shawcroft>I love tangible examples.

00:31:20.680 --> 00:31:20.860
<v Scott Shawcroft>Yes.

00:31:21.020 --> 00:31:21.380
<v Chris Gammell>Yeah.

00:31:21.760 --> 00:31:22.800
<v Chris Gammell>Let me ground it.

00:31:22.800 --> 00:31:29.920
<v Chris Gammell>So the way that we've written our drivers, which we have like 70 now, um, is that for

00:31:29.920 --> 00:31:34.340
<v Chris Gammell>all of our temperature sensors, the object for that sensor will have a dot temperature

00:31:34.340 --> 00:31:34.960
<v Chris Gammell>property.

00:31:35.380 --> 00:31:35.900
<v Scott Shawcroft>Okay.

00:31:36.220 --> 00:31:42.940
<v Chris Gammell>Um, and under the hood that is running a function because it's actually got to go out over I

00:31:42.940 --> 00:31:49.680
<v Chris Gammell>squared C, you know, set some registers to maybe do the, to do the reading and then read

00:31:49.680 --> 00:31:50.380
<v Scott Shawcroft>the value back.

00:31:50.380 --> 00:31:50.840
<v Scott Shawcroft>Got it.

00:31:50.960 --> 00:31:51.120
<v Scott Shawcroft>Okay.

00:31:51.120 --> 00:31:52.500
<v Scott Shawcroft>So I call, I call this object.

00:31:52.600 --> 00:31:54.040
<v Scott Shawcroft>I say sensor one.

00:31:54.960 --> 00:31:57.680
<v Scott Shawcroft>I say, you just say this new thing is sensor one, right?

00:31:57.760 --> 00:31:57.920
<v Scott Shawcroft>Yep.

00:31:58.260 --> 00:32:00.180
<v Chris Gammell>And then you say sensor one dot temperature.

00:32:00.420 --> 00:32:00.740
<v Chris Gammell>Right.

00:32:00.860 --> 00:32:01.880
<v Chris Gammell>And that's how I can go.

00:32:02.080 --> 00:32:03.460
<v Chris Gammell>And as if you were reading X.

00:32:03.760 --> 00:32:04.040
<v Chris Gammell>Right.

00:32:04.340 --> 00:32:04.600
<v Scott Shawcroft>Okay.

00:32:04.900 --> 00:32:05.140
<v Chris Gammell>Yep.

00:32:05.460 --> 00:32:05.680
<v Chris Gammell>Cool.

00:32:05.680 --> 00:32:12.900
<v Chris Gammell>Um, but that has a slight overhead to it, which, uh, micro Python has chosen not to.

00:32:13.300 --> 00:32:14.140
<v Scott Shawcroft>Oh, interesting.

00:32:14.280 --> 00:32:14.500
<v Scott Shawcroft>Okay.

00:32:14.640 --> 00:32:14.900
<v Scott Shawcroft>All right.

00:32:14.900 --> 00:32:17.660
<v Scott Shawcroft>So it's kind of just, it's saying it's a style thing.

00:32:17.840 --> 00:32:22.200
<v Scott Shawcroft>It's like a laundry list of what is capable so that you, it, so it's a little bit friendly

00:32:22.200 --> 00:32:27.700
<v Scott Shawcroft>you're saying for users because now they would expect that every time you call a new sensor

00:32:27.700 --> 00:32:28.960
<v Scott Shawcroft>that it would have a dot temperature.

00:32:28.960 --> 00:32:29.560
<v Scott Shawcroft>Right.

00:32:29.560 --> 00:32:29.720
<v Scott Shawcroft>Right.

00:32:30.240 --> 00:32:30.580
<v Chris Gammell>Right.

00:32:31.300 --> 00:32:35.660
<v Chris Gammell>Not only is it the same, but it's also, we're, we're choosing to be explicit and saying,

00:32:35.740 --> 00:32:36.740
<v Chris Gammell>this is state.

00:32:36.900 --> 00:32:38.200
<v Chris Gammell>This is something you can read.

00:32:38.700 --> 00:32:39.400
<v Chris Gammell>Oh, okay.

00:32:39.400 --> 00:32:41.640
<v Chris Gammell>But it's also something that just is there.

00:32:41.800 --> 00:32:43.400
<v Scott Shawcroft>So why doesn't micro Python do that?

00:32:44.500 --> 00:32:47.560
<v Scott Shawcroft>Because I mean, again, because people were listening last time, hopefully to Tony.

00:32:47.840 --> 00:32:48.060
<v Scott Shawcroft>Yeah.

00:32:48.060 --> 00:32:49.860
<v Scott Shawcroft>And I think he talked about some of this stuff.

00:32:50.040 --> 00:32:57.740
<v Chris Gammell>I, it's been, um, micro Python's audience is, I understand it is more technical, uh, folks.

00:32:57.740 --> 00:33:02.940
<v Chris Gammell>So one, one feature, Damien George is the creator of micro Python and he did an amazing

00:33:02.940 --> 00:33:08.320
<v Chris Gammell>job, um, because Python is complicated and getting it running on a microcontroller is really

00:33:08.320 --> 00:33:08.600
<v Chris Gammell>hard.

00:33:08.600 --> 00:33:08.980
<v Scott Shawcroft>Yeah.

00:33:09.400 --> 00:33:12.680
<v Chris Gammell>Um, so the Python, you got to know what to cut, right?

00:33:13.460 --> 00:33:13.940
<v Chris Gammell>Yeah.

00:33:14.180 --> 00:33:16.840
<v Chris Gammell>So the Python core is really, really strong.

00:33:17.060 --> 00:33:22.680
<v Chris Gammell>Um, but the APIs around it, um, have made some decisions to be slightly different from

00:33:22.680 --> 00:33:27.800
<v Chris Gammell>the way that you would do it with normal Python, um, in order to be faster.

00:33:28.600 --> 00:33:32.240
<v Chris Gammell>Um, so that's more of their priority is being fast.

00:33:32.600 --> 00:33:33.280
<v Chris Gammell>Got it.

00:33:34.280 --> 00:33:39.320
<v Chris Gammell>So using, not using properties as one example of, of something they choose to do to be,

00:33:39.320 --> 00:33:40.760
<v Chris Gammell>faster.

00:33:40.760 --> 00:33:45.480
<v Chris Gammell>Um, they also allow you to do like inline assembly and interrupts and stuff like that.

00:33:45.480 --> 00:33:48.940
<v Chris Gammell>And, and we haven't even turned it on for circuit Python.

00:33:49.260 --> 00:33:49.800
<v Chris Gammell>Got it.

00:33:49.860 --> 00:33:50.020
<v Chris Gammell>Okay.

00:33:50.140 --> 00:33:53.260
<v Scott Shawcroft>Um, well, let's talk about the, the hardware.

00:33:53.480 --> 00:33:58.320
<v Scott Shawcroft>So I, when, when I heard that Adafruit was doing, uh, circuit Python versus micro Python,

00:33:58.760 --> 00:34:04.800
<v Scott Shawcroft>I had heard or read or talked to someone about, I, uh, I thought it was because of the hardware

00:34:04.800 --> 00:34:05.660
<v Scott Shawcroft>focus of it all.

00:34:05.660 --> 00:34:10.040
<v Scott Shawcroft>But I actually like this mission based of like, I like, I like this.

00:34:10.100 --> 00:34:14.460
<v Scott Shawcroft>It's, it's more like, I mean, Adafruit obviously has a very large portfolio of, of, of products

00:34:14.460 --> 00:34:15.000
<v Scott Shawcroft>now as well.

00:34:15.180 --> 00:34:15.360
<v Scott Shawcroft>Right.

00:34:15.400 --> 00:34:19.680
<v Scott Shawcroft>And I think that making it a very pleasant experience within that portfolio makes a lot

00:34:19.680 --> 00:34:20.080
<v Scott Shawcroft>of sense.

00:34:20.320 --> 00:34:20.420
<v Scott Shawcroft>Right.

00:34:20.480 --> 00:34:26.260
<v Scott Shawcroft>So, um, whereas micro Python's like, well, you know, come as you are, whatever, whatever

00:34:26.260 --> 00:34:28.460
<v Scott Shawcroft>devices are out there, we're going to try and make it work for all of them.

00:34:28.460 --> 00:34:31.980
<v Scott Shawcroft>But there's obviously a lot of hand wringing that goes along with that because you get a new

00:34:31.980 --> 00:34:34.840
<v Scott Shawcroft>device and you're like, Oh, well got to redo it for this one now.

00:34:35.420 --> 00:34:35.480
<v Scott Shawcroft>Right.

00:34:36.360 --> 00:34:36.760
<v Chris Gammell>Yeah.

00:34:36.780 --> 00:34:42.080
<v Chris Gammell>So, I mean, the fork was originally just created because we were doing Sam D work.

00:34:42.380 --> 00:34:49.240
<v Chris Gammell>Uh, um, and then when we, when I started talking with Damien about, you know, the hardware API,

00:34:49.400 --> 00:34:53.880
<v Chris Gammell>the thing that the, that the drivers are built on, it wasn't clear to me that there was a

00:34:53.880 --> 00:34:56.760
<v Chris Gammell>consistent story across all of the boards that they supported.

00:34:57.080 --> 00:34:59.560
<v Chris Gammell>Like the ESP 8266 was one.

00:34:59.940 --> 00:35:00.040
<v Scott Shawcroft>Yeah.

00:35:00.040 --> 00:35:00.420
<v Scott Shawcroft>All right.

00:35:00.460 --> 00:35:04.980
<v Scott Shawcroft>That's specifically when I used and I was, I think cause Tony told me about it and it

00:35:04.980 --> 00:35:07.060
<v Scott Shawcroft>was like, yeah, a bunch of this stuff just didn't work in there.

00:35:07.660 --> 00:35:08.020
<v Chris Gammell>Yeah.

00:35:08.180 --> 00:35:08.460
<v Chris Gammell>Yeah.

00:35:08.460 --> 00:35:15.920
<v Chris Gammell>So they have a, an API called machine and it was not uniform across the different ports,

00:35:15.920 --> 00:35:20.040
<v Chris Gammell>which is ports is their term for different microcontroller families.

00:35:20.560 --> 00:35:20.660
<v Scott Shawcroft>Right.

00:35:20.940 --> 00:35:21.300
<v Scott Shawcroft>Right.

00:35:21.420 --> 00:35:26.200
<v Scott Shawcroft>So using micro Python would feel similar if you're looking at the code, but if you took the code

00:35:26.200 --> 00:35:32.420
<v Scott Shawcroft>from your 8266 and you tried to put it onto a STM 32 wouldn't necessarily work.

00:35:32.500 --> 00:35:33.880
<v Scott Shawcroft>In fact, probably wouldn't work.

00:35:35.060 --> 00:35:35.460
<v Chris Gammell>Yeah.

00:35:35.700 --> 00:35:36.400
<v Chris Gammell>Well, other way around.

00:35:36.400 --> 00:35:36.940
<v Chris Gammell>There was no guarantee.

00:35:37.120 --> 00:35:37.240
<v Chris Gammell>Yeah.

00:35:37.320 --> 00:35:37.500
<v Chris Gammell>Yeah.

00:35:37.500 --> 00:35:38.000
<v Chris Gammell>There was no guarantee.

00:35:38.000 --> 00:35:45.220
<v Chris Gammell>And so one of the things that, that I did early on, um, with circuit Python was, uh, it's a software

00:35:45.220 --> 00:35:49.480
<v Chris Gammell>engineering thing, but the idea is that the API is shared, like the code that implements

00:35:49.480 --> 00:35:50.600
<v Chris Gammell>the API is shared.

00:35:50.600 --> 00:35:57.880
<v Chris Gammell>Um, so the, the way that circuit Python works under the hood is that it's all C code and

00:35:57.880 --> 00:36:02.580
<v Chris Gammell>there's just structs that represent objects that you can use from Python.

00:36:03.300 --> 00:36:08.460
<v Chris Gammell>And so what I did is I factored that out of all the ports and made, and therefore it's

00:36:08.460 --> 00:36:09.900
<v Chris Gammell>uniform across all of them.

00:36:10.280 --> 00:36:15.020
<v Chris Gammell>And then that code just calls other C code that is port specific.

00:36:15.020 --> 00:36:17.000
<v Scott Shawcroft>Um, okay.

00:36:17.220 --> 00:36:21.260
<v Chris Gammell>This is, I, I know I'm out of my element, but okay, well let's do a little hand waving

00:36:21.260 --> 00:36:22.100
<v Scott Shawcroft>and yeah, that's good.

00:36:22.100 --> 00:36:22.120
<v Scott Shawcroft>Yeah.

00:36:22.120 --> 00:36:30.520
<v Chris Gammell>So the, the goal was that we, one thing Adafruit does really well is drivers and, and guides

00:36:30.520 --> 00:36:31.360
<v Chris Gammell>tutorials.

00:36:31.640 --> 00:36:31.840
<v Scott Shawcroft>Yes.

00:36:31.940 --> 00:36:38.980
<v Chris Gammell>And we wanted to ensure that we had a foundation that was uniform across all of the places we

00:36:38.980 --> 00:36:39.860
<v Chris Gammell>could bring circuit Python.

00:36:40.280 --> 00:36:40.680
<v Scott Shawcroft>Yeah.

00:36:40.820 --> 00:36:41.220
<v Scott Shawcroft>Uh, right.

00:36:41.220 --> 00:36:43.180
<v Scott Shawcroft>Especially for longevity of those guides, right?

00:36:43.180 --> 00:36:46.520
<v Scott Shawcroft>If you want to make a guide tomorrow, you don't want to have to rewrite it.

00:36:46.560 --> 00:36:49.100
<v Scott Shawcroft>The guide every time a processor changes or whatever, right?

00:36:49.580 --> 00:36:49.920
<v Chris Gammell>Yes.

00:36:50.100 --> 00:36:50.400
<v Chris Gammell>Right.

00:36:50.500 --> 00:36:57.200
<v Chris Gammell>So, so we want to be able to bring it like early on, we had Sandy 21 and ESP 8266 support.

00:36:57.540 --> 00:36:57.700
<v Chris Gammell>Yep.

00:36:57.880 --> 00:37:03.380
<v Chris Gammell>Um, we just added Sandy 51 support in our three O, which is in alpha.

00:37:03.680 --> 00:37:09.560
<v Chris Gammell>And we're also adding NRF 52 support at the same time, um, which is going to be super awesome.

00:37:09.560 --> 00:37:15.380
<v Chris Gammell>And adding those, that support for those new architectures is actually easier because the

00:37:15.380 --> 00:37:18.920
<v Chris Gammell>Python side, the Python to C side doesn't need to be redone.

00:37:19.060 --> 00:37:23.000
<v Chris Gammell>We just, you implement some C functions and you get the Python side for free.

00:37:23.440 --> 00:37:27.760
<v Scott Shawcroft>So you're basically in C, you're kind of fitting different puzzle pieces together, but you're

00:37:27.760 --> 00:37:30.160
<v Scott Shawcroft>creating like an in-between layer with C code.

00:37:30.220 --> 00:37:30.540
<v Scott Shawcroft>Is that right?

00:37:30.620 --> 00:37:30.740
<v Scott Shawcroft>Right.

00:37:30.740 --> 00:37:39.800
<v Chris Gammell>So, so if you say import digital in or digital IO, right, that maps to a table in C that

00:37:39.800 --> 00:37:42.020
<v Chris Gammell>says like all these names go to these other structs.

00:37:42.020 --> 00:37:42.160
<v Chris Gammell>Right.

00:37:42.260 --> 00:37:42.400
<v Chris Gammell>Yeah.

00:37:42.520 --> 00:37:42.660
<v Chris Gammell>Right.

00:37:43.080 --> 00:37:45.760
<v Scott Shawcroft>And here's where they're, here's where they're pinned, physical pin locations are.

00:37:46.100 --> 00:37:46.440
<v Chris Gammell>Yeah.

00:37:46.800 --> 00:37:47.080
<v Scott Shawcroft>Okay.

00:37:47.300 --> 00:37:47.520
<v Chris Gammell>Yep.

00:37:47.700 --> 00:37:49.800
<v Chris Gammell>So that's all just like C structs under the head.

00:37:50.440 --> 00:37:50.760
<v Scott Shawcroft>Cool.

00:37:51.320 --> 00:37:53.380
<v Chris Gammell>So I write more C than I actually write Python.

00:37:54.600 --> 00:37:56.400
<v Chris Gammell>Well, someone's got to do it and I sure as hell learn.

00:37:56.760 --> 00:37:57.000
<v Chris Gammell>Yeah.

00:37:57.220 --> 00:37:57.620
<v Chris Gammell>Yeah.

00:37:57.660 --> 00:38:00.240
<v Chris Gammell>I mean, that's the whole goal is that you don't have to worry about it.

00:38:00.240 --> 00:38:04.560
<v Chris Gammell>But I think something Tony did touch on is that like for people who feel that it's too

00:38:04.560 --> 00:38:08.800
<v Chris Gammell>slow, there is that avenue for you to write C that can hook into the Python.

00:38:09.700 --> 00:38:09.960
<v Scott Shawcroft>Yeah.

00:38:10.080 --> 00:38:15.180
<v Scott Shawcroft>And, and, you know, I think I talked to Tony after the fact about that because I remember

00:38:15.180 --> 00:38:19.560
<v Scott Shawcroft>thinking like, oh, well, like how would I go and take this, say I did have a new processor

00:38:19.560 --> 00:38:22.340
<v Scott Shawcroft>and I, what if I wanted to port to that new processor, what would it take?

00:38:22.620 --> 00:38:22.780
<v Scott Shawcroft>Right.

00:38:23.360 --> 00:38:26.520
<v Scott Shawcroft>That did, I mean, I looked at it and I'm like, oh, I don't think so.

00:38:27.100 --> 00:38:27.460
<v Scott Shawcroft>Yeah.

00:38:27.460 --> 00:38:31.060
<v Scott Shawcroft>I mean, that's, that's what your job, that's what you are doing your job and Tony's job

00:38:31.060 --> 00:38:32.920
<v Scott Shawcroft>and Lamore's job and like everybody who's doing this stuff.

00:38:33.060 --> 00:38:34.220
<v Scott Shawcroft>That's what you guys do.

00:38:34.260 --> 00:38:34.500
<v Scott Shawcroft>Right.

00:38:34.540 --> 00:38:34.980
<v Scott Shawcroft>I mean, like.

00:38:35.740 --> 00:38:37.780
<v Chris Gammell>We don't do new platforms that often.

00:38:38.660 --> 00:38:42.160
<v Chris Gammell>The Sam D21 has taken us pretty, pretty far.

00:38:42.280 --> 00:38:48.460
<v Chris Gammell>But yeah, Dan Halbert and I are, are currently working on the Sam D51 and Kevin Townsend and

00:38:48.460 --> 00:38:52.180
<v Chris Gammell>HotTac are working on the NRF52 stuff.

00:38:52.360 --> 00:38:52.620
<v Chris Gammell>Wow.

00:38:53.020 --> 00:38:53.060
<v Chris Gammell>Yeah.

00:38:53.060 --> 00:38:54.180
<v Chris Gammell>Which.

00:38:54.180 --> 00:38:57.740
<v Scott Shawcroft>I'm just saying that's a lot of, that's a lot of, you know, hours it seems like.

00:38:57.860 --> 00:38:58.240
<v Scott Shawcroft>Oh yeah.

00:38:58.660 --> 00:39:01.040
<v Scott Shawcroft>So like a new platform is not like a small thing.

00:39:01.140 --> 00:39:04.860
<v Scott Shawcroft>And, and I, for some reason I thought like, oh, well, it sounds like it's, you know, this

00:39:04.860 --> 00:39:11.380
<v Scott Shawcroft>is, but the, the implementation layer in each, uh, on each new platform is, is the tough part.

00:39:11.780 --> 00:39:12.020
<v Chris Gammell>Yeah.

00:39:12.020 --> 00:39:17.920
<v Chris Gammell>And we're trying to like share as much code as we can between, um, different ports to make

00:39:17.920 --> 00:39:18.440
<v Chris Gammell>that easier.

00:39:18.440 --> 00:39:18.600
<v Chris Gammell>Yeah.

00:39:18.660 --> 00:39:19.000
<v Chris Gammell>No doubt.

00:39:19.100 --> 00:39:19.280
<v Chris Gammell>No doubt.

00:39:19.340 --> 00:39:23.700
<v Chris Gammell>And we're restructuring to make that more feasible in the future as well.

00:39:24.100 --> 00:39:24.480
<v Chris Gammell>Cool.

00:39:24.740 --> 00:39:26.580
<v Scott Shawcroft>Um, so what about the, so, okay.

00:39:27.040 --> 00:39:28.720
<v Scott Shawcroft>Because it's a hardware world, right?

00:39:29.180 --> 00:39:32.260
<v Scott Shawcroft>Uh, so if there's a Sam D, let's say 51, right?

00:39:32.540 --> 00:39:32.800
<v Scott Shawcroft>Yep.

00:39:33.040 --> 00:39:35.600
<v Scott Shawcroft>I don't actually know anything about that processor, but, um.

00:39:35.660 --> 00:39:36.280
<v Scott Shawcroft>It's awesome.

00:39:36.680 --> 00:39:37.560
<v Scott Shawcroft>I'm sure it is.

00:39:37.980 --> 00:39:42.160
<v Scott Shawcroft>Uh, but say it's a 32 bit part and then there's also.

00:39:42.360 --> 00:39:42.740
<v Scott Shawcroft>It's a Cortex M4.

00:39:43.200 --> 00:39:43.560
<v Scott Shawcroft>Okay.

00:39:44.020 --> 00:39:46.740
<v Scott Shawcroft>But say there's a 32, sorry, not, sorry, it's a 32 bit.

00:39:46.860 --> 00:39:47.660
<v Scott Shawcroft>I meant 32 pin.

00:39:47.660 --> 00:39:50.200
<v Scott Shawcroft>Say there's a 32 pin part and a 48 pin part.

00:39:50.460 --> 00:39:50.560
<v Scott Shawcroft>Yep.

00:39:50.840 --> 00:39:53.040
<v Scott Shawcroft>What is the, what's the swaparoo?

00:39:53.460 --> 00:39:57.120
<v Scott Shawcroft>Like, is it, is it as hard to go from those, between those families of parts?

00:39:57.540 --> 00:39:58.720
<v Scott Shawcroft>No, it's super easy.

00:39:58.940 --> 00:39:59.180
<v Scott Shawcroft>Okay.

00:39:59.300 --> 00:40:00.180
<v Scott Shawcroft>So that's just a remap.

00:40:00.700 --> 00:40:00.940
<v Chris Gammell>Yeah.

00:40:01.240 --> 00:40:01.500
<v Chris Gammell>Okay.

00:40:01.560 --> 00:40:01.720
<v Chris Gammell>Yeah.

00:40:01.780 --> 00:40:06.320
<v Chris Gammell>We, uh, for the ports, we just have a table of all the possible pins.

00:40:06.320 --> 00:40:13.320
<v Chris Gammell>And then when you have a board with a particular, uh, package on it, you just say like, I'm

00:40:13.320 --> 00:40:19.720
<v Chris Gammell>going to say that I have a one on this board and it maps to this, this one internally to

00:40:19.720 --> 00:40:20.480
<v Chris Gammell>the microcontroller.

00:40:20.740 --> 00:40:21.140
<v Chris Gammell>Okay.

00:40:21.460 --> 00:40:22.660
<v Chris Gammell>Uh, makes it really easy.

00:40:22.660 --> 00:40:27.140
<v Chris Gammell>And the code's written in a way that it's just, it's like, Oh, you want to do digital

00:40:27.140 --> 00:40:28.060
<v Chris Gammell>IO on that?

00:40:28.140 --> 00:40:30.080
<v Chris Gammell>Like we can do that or we can't do that.

00:40:30.380 --> 00:40:30.560
<v Scott Shawcroft>Yeah.

00:40:30.960 --> 00:40:31.220
<v Scott Shawcroft>Okay.

00:40:31.680 --> 00:40:32.780
<v Chris Gammell>So that stuff is easy.

00:40:32.860 --> 00:40:34.620
<v Chris Gammell>New supporting new boards is really easy.

00:40:34.620 --> 00:40:39.380
<v Chris Gammell>So like the itsy bitsy M zero express came out recently and the hardest part of supporting

00:40:39.380 --> 00:40:42.000
<v Chris Gammell>that was like the new spy flash chip that was on it.

00:40:42.120 --> 00:40:42.640
<v Scott Shawcroft>Got it.

00:40:42.780 --> 00:40:43.040
<v Scott Shawcroft>Got it.

00:40:43.960 --> 00:40:44.240
<v Scott Shawcroft>Okay.

00:40:44.540 --> 00:40:47.840
<v Scott Shawcroft>Well, you mentioned there's a bunch of, there's 70 plus drivers.

00:40:48.100 --> 00:40:48.580
<v Scott Shawcroft>Oh yeah.

00:40:48.580 --> 00:40:50.360
<v Scott Shawcroft>Does that, does that mean then, okay.

00:40:50.360 --> 00:40:55.000
<v Scott Shawcroft>So does that driver, uh, so now let's, we're going to just assume that the three parts that

00:40:55.000 --> 00:40:58.560
<v Scott Shawcroft>you mentioned are out at the 20, the D 21, the D 51, the, the NRF 52.

00:40:58.960 --> 00:40:59.180
<v Scott Shawcroft>Yep.

00:40:59.880 --> 00:41:03.620
<v Scott Shawcroft>If you, if you were to drive, if you write a driver now, is it, is it approaching the same

00:41:03.620 --> 00:41:10.080
<v Scott Shawcroft>place where you have a driver for like the, like a DHT 11 or a 21 or whatever, a temperature

00:41:10.080 --> 00:41:10.440
<v Scott Shawcroft>sensor?

00:41:10.560 --> 00:41:11.880
<v Scott Shawcroft>Does it just work on all of them?

00:41:12.800 --> 00:41:13.620
<v Scott Shawcroft>That's the goal.

00:41:14.500 --> 00:41:18.840
<v Scott Shawcroft>I mean, like, is it, is that like, I mean, yeah, I know it's a mess right now, I'm sure,

00:41:18.840 --> 00:41:21.420
<v Scott Shawcroft>but like, uh, or not a mess, but like it's a challenge.

00:41:21.900 --> 00:41:23.780
<v Scott Shawcroft>Most of the time it's true, I would say.

00:41:24.260 --> 00:41:28.620
<v Scott Shawcroft>So it's almost like you guys are making like a mini Linux for like, cause again, there's

00:41:28.620 --> 00:41:33.080
<v Scott Shawcroft>a callback to previous episodes when, uh, Jason Kreidner and, uh,

00:41:33.620 --> 00:41:36.220
<v Scott Shawcroft>uh, geez, Robert Nelson were on, right?

00:41:36.360 --> 00:41:38.200
<v Scott Shawcroft>I, I, I was kind of out of my element there.

00:41:38.480 --> 00:41:40.280
<v Scott Shawcroft>So, um, yeah.

00:41:40.340 --> 00:41:45.920
<v Chris Gammell>You could think of it as another platform like that where it's, there's a standard API that

00:41:45.920 --> 00:41:47.260
<v Chris Gammell>you can build drivers on.

00:41:47.440 --> 00:41:47.840
<v Chris Gammell>Okay.

00:41:48.460 --> 00:41:51.540
<v Chris Gammell>Um, Linux has that and cool.

00:41:51.620 --> 00:41:51.940
<v Chris Gammell>We do too.

00:41:52.180 --> 00:41:52.540
<v Chris Gammell>Yeah.

00:41:52.540 --> 00:41:56.780
<v Scott Shawcroft>So what about for the people out there that are like, ah, but I need it to be fast or

00:41:56.780 --> 00:41:58.060
<v Scott Shawcroft>I need it to be low power or whatever.

00:41:58.280 --> 00:41:58.800
<v Scott Shawcroft>So, right.

00:41:58.920 --> 00:42:01.140
<v Scott Shawcroft>So I'm sure you get that stuff a lot too.

00:42:02.180 --> 00:42:03.480
<v Chris Gammell>Yeah, it does come up.

00:42:03.680 --> 00:42:09.640
<v Chris Gammell>Um, and I would say circuit Python may not be for you.

00:42:09.640 --> 00:42:17.220
<v Chris Gammell>Um, there are other good example or like Arduino is better about power and speed and micro Python

00:42:17.220 --> 00:42:18.080
<v Chris Gammell>is better as well.

00:42:18.080 --> 00:42:24.640
<v Chris Gammell>I would say, um, you could take a look at those, but I would also say don't optimize too early.

00:42:24.640 --> 00:42:29.540
<v Chris Gammell>Like make sure that that's what you actually need and make sure that circuit Python's actually

00:42:29.540 --> 00:42:30.460
<v Chris Gammell>too slow.

00:42:30.980 --> 00:42:31.380
<v Scott Shawcroft>Yeah.

00:42:31.500 --> 00:42:31.740
<v Scott Shawcroft>Okay.

00:42:31.900 --> 00:42:32.140
<v Scott Shawcroft>Okay.

00:42:32.280 --> 00:42:35.580
<v Chris Gammell>Because you're going to save a lot of time in the iteration cycle.

00:42:35.920 --> 00:42:36.320
<v Chris Gammell>Yeah.

00:42:36.680 --> 00:42:36.920
<v Scott Shawcroft>Right.

00:42:36.920 --> 00:42:38.760
<v Scott Shawcroft>And that is kind of like a top down idea as well, right?

00:42:38.780 --> 00:42:41.060
<v Scott Shawcroft>It's like, you're, you're just trying to get the function to start with.

00:42:41.080 --> 00:42:44.120
<v Scott Shawcroft>You're just trying to get something working and a sensor talking.

00:42:44.260 --> 00:42:45.000
<v Scott Shawcroft>You're trying to get whatever.

00:42:45.800 --> 00:42:45.940
<v Scott Shawcroft>Yeah.

00:42:46.040 --> 00:42:46.240
<v Scott Shawcroft>Yeah.

00:42:46.460 --> 00:42:46.860
<v Chris Gammell>Yeah.

00:42:46.860 --> 00:42:51.940
<v Chris Gammell>Lamore was just telling me yesterday that she was, we just launched a new temperature sensor

00:42:51.940 --> 00:42:52.860
<v Chris Gammell>in the store yesterday.

00:42:53.540 --> 00:42:56.860
<v Chris Gammell>And she was like, I wrote the circuit Python driver first rather than Arduino.

00:42:57.240 --> 00:42:57.900
<v Chris Gammell>Oh, nice.

00:42:58.020 --> 00:43:02.480
<v Chris Gammell>Um, which is a huge milestone given that she's been working in Arduino for over a decade,

00:43:02.720 --> 00:43:03.800
<v Chris Gammell>I believe.

00:43:04.060 --> 00:43:04.920
<v Chris Gammell>Yeah, that's awesome.

00:43:04.920 --> 00:43:10.820
<v Chris Gammell>So, so, so to, to have a system where it's easier for her to get going with circuit Python,

00:43:11.000 --> 00:43:14.760
<v Chris Gammell>despite all that history is just so satisfying.

00:43:15.760 --> 00:43:19.700
<v Scott Shawcroft>But I understand, I mean, like, and obviously Lamore is doing that, those new things too,

00:43:19.760 --> 00:43:23.940
<v Scott Shawcroft>but I imagine that anyone using the, you know, like as more and more people start using it

00:43:23.940 --> 00:43:27.960
<v Scott Shawcroft>as a primary tool as well, that would be another thing where it's like, if it's just

00:43:27.960 --> 00:43:29.480
<v Scott Shawcroft>a friendlier, friendlier method.

00:43:29.800 --> 00:43:30.380
<v Scott Shawcroft>Yeah, totally.

00:43:30.380 --> 00:43:30.460
<v Scott Shawcroft>Yeah.

00:43:32.540 --> 00:43:33.940
<v Scott Shawcroft>It's, it's interesting in the software world too.

00:43:34.000 --> 00:43:37.740
<v Scott Shawcroft>I mean, like I, I've leaned on Adafruit for the, uh, you know, for borrowing drivers and

00:43:37.740 --> 00:43:38.280
<v Scott Shawcroft>stuff like that.

00:43:38.280 --> 00:43:39.700
<v Scott Shawcroft>And, you know, a lot of people out there.

00:43:39.880 --> 00:43:48.460
<v Scott Shawcroft>So, um, I, I do wonder like, you know, writing drivers in, in your mind, is it tough for easier

00:43:48.460 --> 00:43:48.880
<v Scott Shawcroft>or whatever?

00:43:48.880 --> 00:43:52.720
<v Chris Gammell>Um, there's always corner cases that make it hard.

00:43:53.100 --> 00:43:53.560
<v Scott Shawcroft>Uh-huh.

00:43:53.740 --> 00:43:55.600
<v Chris Gammell>Um, that's another thing.

00:43:55.760 --> 00:43:57.400
<v Chris Gammell>So my background is software engineering.

00:43:57.560 --> 00:43:59.460
<v Chris Gammell>So I like to think about how to make it easier.

00:44:00.200 --> 00:44:05.460
<v Chris Gammell>Um, one thing that I've kind of played around with that we don't do that much in our drivers,

00:44:05.460 --> 00:44:10.700
<v Chris Gammell>but is, uh, making it very easy to just say like the temperature is this register and

00:44:10.700 --> 00:44:11.520
<v Chris Gammell>then it just works.

00:44:12.060 --> 00:44:16.020
<v Chris Gammell>Um, we're not there yet, but we're getting there.

00:44:16.020 --> 00:44:20.660
<v Chris Gammell>Well, I just think about, like in your Python code, you just map like names to registers

00:44:20.660 --> 00:44:21.340
<v Chris Gammell>and that's it.

00:44:22.120 --> 00:44:22.240
<v Scott Shawcroft>Interesting.

00:44:22.660 --> 00:44:22.900
<v Scott Shawcroft>Yeah.

00:44:22.900 --> 00:44:28.180
<v Scott Shawcroft>Cause I think about like when I've done the, the limited stuff that I've done in C, uh,

00:44:28.640 --> 00:44:32.320
<v Scott Shawcroft>you know, like the, you know, usually I am setting up like data structures, right?

00:44:32.340 --> 00:44:34.580
<v Scott Shawcroft>You're have this pretty tight loop.

00:44:34.720 --> 00:44:40.000
<v Scott Shawcroft>So like in Python, are you setting up like, you know, eight bit variables and stuff like

00:44:40.000 --> 00:44:40.160
<v Scott Shawcroft>that?

00:44:40.160 --> 00:44:44.440
<v Scott Shawcroft>Or is it just kind of this loose, are you just saying like everything's afloat, you know,

00:44:44.440 --> 00:44:45.020
<v Scott Shawcroft>is it like that?

00:44:45.020 --> 00:44:51.200
<v Chris Gammell>Um, um, Python actually has a really great library called, or module called struct, uh,

00:44:51.200 --> 00:44:57.600
<v Chris Gammell>which is, comes out of the fact that desktop Python is very well integrated with C.

00:44:58.140 --> 00:45:04.100
<v Chris Gammell>And all this does is it takes a string of bytes and you can tell it like what C type it would

00:45:04.100 --> 00:45:07.640
<v Chris Gammell>be and it'll unpack it in as if it was packed by C.

00:45:08.060 --> 00:45:08.520
<v Chris Gammell>Oh, cool.

00:45:08.700 --> 00:45:08.820
<v Chris Gammell>Okay.

00:45:08.820 --> 00:45:15.780
<v Chris Gammell>Um, so if you have a 16 bit unsigned register, you just pick the character that represents

00:45:15.780 --> 00:45:19.180
<v Chris Gammell>a 16 bit unsigned register and you'll get a Python int back.

00:45:20.560 --> 00:45:21.980
<v Scott Shawcroft>Um, okay.

00:45:21.980 --> 00:45:24.560
<v Chris Gammell>So it makes that interpretation really easy.

00:45:25.220 --> 00:45:25.580
<v Chris Gammell>Okay.

00:45:26.280 --> 00:45:26.540
<v Scott Shawcroft>Neat.

00:45:26.940 --> 00:45:27.580
<v Scott Shawcroft>All right, cool.

00:45:27.720 --> 00:45:28.280
<v Scott Shawcroft>Yeah, that's great.

00:45:28.480 --> 00:45:32.120
<v Scott Shawcroft>Um, so what were we going to talk about otherwise though?

00:45:32.160 --> 00:45:32.520
<v Scott Shawcroft>Oh, okay.

00:45:32.520 --> 00:45:37.440
<v Scott Shawcroft>So you're doing, uh, so you're, so now you have to take all this stuff and implement it

00:45:37.440 --> 00:45:43.560
<v Scott Shawcroft>now on a ARM processor, which is really the reason that I was gnashing, wailing and gnashing

00:45:43.560 --> 00:45:44.860
<v Scott Shawcroft>my teeth last week as well.

00:45:44.860 --> 00:45:47.100
<v Scott Shawcroft>Cause I'm doing, I've got this debugger.

00:45:47.320 --> 00:45:53.560
<v Scott Shawcroft>I want to be, I'm trying to get better at firmware and I want to do some debugging and

00:45:53.560 --> 00:45:54.860
<v Scott Shawcroft>you have to do that too, obviously.

00:45:55.220 --> 00:45:55.600
<v Scott Shawcroft>Oh yeah.

00:45:55.940 --> 00:46:00.400
<v Scott Shawcroft>So, so maybe walk us through like, so you're, you're loading this stuff up on a daily basis

00:46:00.400 --> 00:46:03.560
<v Scott Shawcroft>onto a CMD 21 and then debugging it directly.

00:46:04.320 --> 00:46:04.760
<v Scott Shawcroft>Is that the idea?

00:46:04.780 --> 00:46:05.540
<v Chris Gammell>Yeah, I tend to.

00:46:05.880 --> 00:46:06.160
<v Chris Gammell>Okay.

00:46:06.980 --> 00:46:10.980
<v Scott Shawcroft>Um, can you walk us through some of your, some of your steps if you're firing it up for

00:46:10.980 --> 00:46:12.180
<v Scott Shawcroft>the, for the morning, in the morning?

00:46:12.180 --> 00:46:13.580
<v Chris Gammell>Yep.

00:46:13.720 --> 00:46:14.040
<v Chris Gammell>Sure.

00:46:14.660 --> 00:46:20.780
<v Chris Gammell>So, uh, we use make to compile, so I will make clean and then I will rebuild it.

00:46:21.260 --> 00:46:25.000
<v Chris Gammell>And I'll also start J link GDB server.

00:46:25.700 --> 00:46:32.420
<v Chris Gammell>Uh, so I have on my desk, uh, J link connected to the SWD port that's on a Metro.

00:46:32.720 --> 00:46:34.800
<v Chris Gammell>I'm just straight up looking at it.

00:46:35.000 --> 00:46:40.140
<v Chris Gammell>Um, I also have a nine volt, uh, barrel connector with a switch on it.

00:46:40.140 --> 00:46:42.000
<v Chris Gammell>So I turned that on as well.

00:46:42.180 --> 00:46:46.460
<v Chris Gammell>And then I, I'll fire up GDB with the, with the binary as an argument.

00:46:47.240 --> 00:46:52.960
<v Chris Gammell>And then I will connect to the J link and I will load reset and run the code I'm working

00:46:52.960 --> 00:46:53.200
<v Chris Gammell>on.

00:46:53.800 --> 00:46:58.220
<v Chris Gammell>Um, the code I'm working on right now actually is a spy flash code.

00:46:58.220 --> 00:47:03.440
<v Chris Gammell>So I actually have a salient hooked up to the spy flash that I just used to understand whether

00:47:03.440 --> 00:47:05.300
<v Chris Gammell>my code is working as I expect or not.

00:47:05.640 --> 00:47:05.900
<v Chris Gammell>Okay.

00:47:06.660 --> 00:47:08.460
<v Chris Gammell>Um, okay, cool.

00:47:08.900 --> 00:47:12.460
<v Scott Shawcroft>So yeah, the, is that what you're thinking?

00:47:12.740 --> 00:47:13.100
<v Scott Shawcroft>Yeah.

00:47:13.200 --> 00:47:13.360
<v Scott Shawcroft>Yeah.

00:47:13.360 --> 00:47:14.240
<v Scott Shawcroft>That was exactly what I was thinking.

00:47:14.280 --> 00:47:14.640
<v Scott Shawcroft>That's great.

00:47:14.640 --> 00:47:19.700
<v Scott Shawcroft>And I think the, so you and I were talking on email as well about like, so how do you,

00:47:19.780 --> 00:47:22.600
<v Scott Shawcroft>how do you explain what a debugger is in this case?

00:47:22.880 --> 00:47:23.120
<v Scott Shawcroft>Mm-hmm.

00:47:23.120 --> 00:47:30.080
<v Scott Shawcroft>And I was trying to say it's like, it's effective like a serial port into the processor, but you

00:47:30.080 --> 00:47:30.760
<v Scott Shawcroft>didn't like that.

00:47:31.720 --> 00:47:31.920
<v Chris Gammell>Yeah.

00:47:31.920 --> 00:47:39.040
<v Chris Gammell>I think, um, serial port, especially from the Arduino land means text back and forth.

00:47:39.040 --> 00:47:40.480
<v Chris Gammell>Oh, okay.

00:47:40.640 --> 00:47:40.820
<v Scott Shawcroft>Yeah.

00:47:40.980 --> 00:47:41.280
<v Scott Shawcroft>Right.

00:47:41.880 --> 00:47:45.640
<v Chris Gammell>I was thinking just more like clock and data, you know?

00:47:45.660 --> 00:47:46.040
<v Chris Gammell>Sure.

00:47:46.300 --> 00:47:46.520
<v Chris Gammell>Sure.

00:47:46.660 --> 00:47:46.800
<v Chris Gammell>Sure.

00:47:47.180 --> 00:47:47.460
<v Chris Gammell>Yeah.

00:47:47.500 --> 00:47:50.580
<v Chris Gammell>I mean, in, on the implementation side, it's two wire.

00:47:51.040 --> 00:47:51.220
<v Chris Gammell>Right.

00:47:51.440 --> 00:47:56.240
<v Chris Gammell>I think, um, I mean, you need a ground for return.

00:47:56.240 --> 00:47:56.540
<v Scott Shawcroft>Right.

00:47:56.620 --> 00:47:56.960
<v Scott Shawcroft>But yeah.

00:47:57.340 --> 00:47:57.640
<v Scott Shawcroft>Right.

00:47:57.640 --> 00:48:05.420
<v Chris Gammell>So, um, yeah, the way that I was, I was saying, I think about it is that it's basically controlling

00:48:05.420 --> 00:48:06.660
<v Chris Gammell>what the processor is doing.

00:48:06.660 --> 00:48:07.900
<v Chris Gammell>So is it stopped?

00:48:07.900 --> 00:48:08.740
<v Chris Gammell>Is it going?

00:48:09.700 --> 00:48:12.740
<v Chris Gammell>Um, can I reset it?

00:48:12.780 --> 00:48:14.960
<v Chris Gammell>So it's, it's those basic primitives.

00:48:15.100 --> 00:48:20.880
<v Chris Gammell>And then you also have the ability of reading memory and memory is a very vast thing.

00:48:20.900 --> 00:48:26.000
<v Chris Gammell>It has the Ram that you have, but it also has the registers of the CPU itself.

00:48:26.300 --> 00:48:28.360
<v Chris Gammell>So you can tell where in the code it is.

00:48:28.360 --> 00:48:33.840
<v Chris Gammell>And then it also has all of the peripheral registers, um, which I've started to think of

00:48:33.840 --> 00:48:38.600
<v Chris Gammell>all the peripherals on a, on a system, on a chip, just as if it was an I squared C device.

00:48:39.140 --> 00:48:39.460
<v Chris Gammell>Right.

00:48:39.540 --> 00:48:43.360
<v Chris Gammell>It's not I squared C that it talks to the peripheral, but it's essentially that.

00:48:44.020 --> 00:48:46.400
<v Scott Shawcroft>Oh, like it's like hanging out in the middle of space somewhere.

00:48:46.700 --> 00:48:49.380
<v Scott Shawcroft>And if you want to talk to it, you need to know what its address is.

00:48:49.380 --> 00:48:49.780
<v Scott Shawcroft>You're saying.

00:48:49.940 --> 00:48:50.140
<v Scott Shawcroft>Right.

00:48:50.280 --> 00:48:52.000
<v Chris Gammell>You need to know its address.

00:48:52.100 --> 00:48:53.620
<v Chris Gammell>You need to know its register layout.

00:48:54.140 --> 00:48:54.220
<v Chris Gammell>Yeah.

00:48:54.300 --> 00:48:58.920
<v Chris Gammell>Um, the only thing that's a little bit different from that analogy is that it's clocked, right?

00:48:58.920 --> 00:49:03.580
<v Chris Gammell>It's clocked in with a similar clock line as the, as the CPU.

00:49:04.360 --> 00:49:08.160
<v Chris Gammell>Um, but it really is like something that you have to go out and talk to.

00:49:08.200 --> 00:49:10.660
<v Chris Gammell>And then something that can run on its own as well.

00:49:11.460 --> 00:49:16.160
<v Scott Shawcroft>Um, Oh, like if you wanted to just let it freewheel and wait for an interrupt from it or.

00:49:16.500 --> 00:49:16.780
<v Chris Gammell>Right.

00:49:17.080 --> 00:49:17.860
<v Scott Shawcroft>Uh, right.

00:49:17.860 --> 00:49:18.040
<v Chris Gammell>Okay.

00:49:18.660 --> 00:49:18.940
<v Chris Gammell>Yeah.

00:49:18.940 --> 00:49:24.840
<v Chris Gammell>And, and that I've been doing a lot of work on the same D 51, which is like the newer version

00:49:24.840 --> 00:49:27.220
<v Chris Gammell>of the 21 and the peripherals are very similar.

00:49:27.220 --> 00:49:32.060
<v Chris Gammell>Um, and so the code that you write because you're just talking to the registers of the

00:49:32.060 --> 00:49:34.740
<v Chris Gammell>peripheral doesn't necessarily change that much.

00:49:35.880 --> 00:49:36.640
<v Chris Gammell>Oh, really?

00:49:36.760 --> 00:49:36.980
<v Chris Gammell>Okay.

00:49:37.080 --> 00:49:38.780
<v Chris Gammell>The addresses are similar and stuff too.

00:49:40.020 --> 00:49:44.620
<v Chris Gammell>Um, the memory map is different.

00:49:44.620 --> 00:49:51.120
<v Chris Gammell>So memory map is this idea of like what memory address is it located at, but the actual register

00:49:51.120 --> 00:49:54.720
<v Chris Gammell>layout, once you have the offset, um, may or may not be that different.

00:49:55.440 --> 00:49:56.100
<v Scott Shawcroft>Oh, okay.

00:49:56.220 --> 00:49:56.460
<v Scott Shawcroft>Okay.

00:49:56.460 --> 00:49:56.900
<v Scott Shawcroft>Okay.

00:49:56.900 --> 00:49:57.260
<v Scott Shawcroft>Okay.

00:49:57.360 --> 00:49:58.120
<v Scott Shawcroft>Oh, yeah.

00:49:58.160 --> 00:50:02.600
<v Scott Shawcroft>So you're saying the address space might be wider, but the, it's pretty similar to you

00:50:02.600 --> 00:50:05.400
<v Scott Shawcroft>just change the address and you're like, Oh, it's like you moved your house down the road

00:50:05.400 --> 00:50:07.160
<v Scott Shawcroft>instead of changing the layout.

00:50:07.160 --> 00:50:08.260
<v Scott Shawcroft>But the house is the same shape.

00:50:08.520 --> 00:50:08.560
<v Scott Shawcroft>Yeah.

00:50:08.560 --> 00:50:08.740
<v Scott Shawcroft>Right.

00:50:08.860 --> 00:50:09.040
<v Scott Shawcroft>Yeah.

00:50:09.240 --> 00:50:12.540
<v Chris Gammell>Or maybe you just bolted on a garage, but the rest of it's the same.

00:50:12.740 --> 00:50:13.020
<v Scott Shawcroft>Right.

00:50:13.060 --> 00:50:13.220
<v Scott Shawcroft>Yeah.

00:50:13.220 --> 00:50:14.060
<v Scott Shawcroft>You can still go walk through.

00:50:14.100 --> 00:50:14.840
<v Scott Shawcroft>It's still the same.

00:50:15.040 --> 00:50:15.160
<v Scott Shawcroft>Yeah.

00:50:15.180 --> 00:50:16.380
<v Scott Shawcroft>That's, that's, that's good analogy.

00:50:16.480 --> 00:50:16.760
<v Scott Shawcroft>I like that.

00:50:16.900 --> 00:50:17.140
<v Chris Gammell>Yeah.

00:50:17.400 --> 00:50:17.700
<v Chris Gammell>Yeah.

00:50:17.700 --> 00:50:23.000
<v Chris Gammell>And it's the same way as if you took a I squared C temperature sensor and hooked it up to your,

00:50:23.000 --> 00:50:27.740
<v Chris Gammell>you know, M zero or your ESP 8266.

00:50:27.740 --> 00:50:30.480
<v Chris Gammell>Like the temperature sensor didn't change at all.

00:50:31.160 --> 00:50:31.560
<v Scott Shawcroft>Right.

00:50:31.940 --> 00:50:34.440
<v Scott Shawcroft>There might be a new version of it, but you didn't want to break the old version.

00:50:34.440 --> 00:50:36.500
<v Scott Shawcroft>So you didn't change the base functionality.

00:50:36.840 --> 00:50:36.980
<v Scott Shawcroft>Right.

00:50:37.660 --> 00:50:38.020
<v Scott Shawcroft>Okay.

00:50:38.380 --> 00:50:38.840
<v Scott Shawcroft>That's good.

00:50:39.960 --> 00:50:46.460
<v Scott Shawcroft>Um, I mean, how much, how much of the, so the, the debugger is, is like you're saying,

00:50:46.520 --> 00:50:50.220
<v Scott Shawcroft>you said there's, you know, there's like play, there's stop, there's, you know, you can go

00:50:50.220 --> 00:50:51.720
<v Scott Shawcroft>and read stuff back out.

00:50:52.500 --> 00:50:52.860
<v Scott Shawcroft>Right.

00:50:52.900 --> 00:50:56.500
<v Scott Shawcroft>How much, how much of that are you utilizing on a, you know, like how much do you need to

00:50:56.500 --> 00:50:57.580
<v Scott Shawcroft>do break points in this stuff?

00:50:58.260 --> 00:51:03.060
<v Chris Gammell>Well, so break points you can think of as something that's a special way of stopping.

00:51:03.060 --> 00:51:04.140
<v Chris Gammell>Right.

00:51:04.480 --> 00:51:10.260
<v Chris Gammell>Um, a lot of the time, well, a lot of the debugging I've been doing recently, I'm not actually

00:51:10.260 --> 00:51:11.080
<v Chris Gammell>hitting a break point.

00:51:11.300 --> 00:51:16.300
<v Chris Gammell>I just have a loop that's looping until a register is a particular value, right?

00:51:16.340 --> 00:51:20.440
<v Chris Gammell>Like I'm doing DMA and I'm waiting for an interrupt to happen and I'm checking for the

00:51:20.440 --> 00:51:23.860
<v Chris Gammell>interrupt by just reading a register and the DMA is not working.

00:51:24.040 --> 00:51:27.020
<v Chris Gammell>So I just control C and I'm stopped.

00:51:27.160 --> 00:51:29.960
<v Chris Gammell>So I haven't, I didn't do a break point to stop there.

00:51:29.960 --> 00:51:36.260
<v Chris Gammell>Um, but yeah, break points are a special way of, of picking where you want to stop when

00:51:36.260 --> 00:51:36.800
<v Chris Gammell>you get there.

00:51:37.820 --> 00:51:38.180
<v Scott Shawcroft>Okay.

00:51:39.440 --> 00:51:40.180
<v Scott Shawcroft>That makes sense.

00:51:41.280 --> 00:51:41.640
<v Scott Shawcroft>Yeah.

00:51:41.680 --> 00:51:42.940
<v Scott Shawcroft>I guess, I guess in that case though.

00:51:43.020 --> 00:51:46.880
<v Scott Shawcroft>So I feel like, I feel, I feel like a little guilty here.

00:51:46.880 --> 00:51:50.600
<v Scott Shawcroft>Like, cause I'm like, I'm, you know, I'm obviously doing a little bit of my own learning as I ask

00:51:50.600 --> 00:51:52.500
<v Scott Shawcroft>you these questions and I've talked in the past weeks too.

00:51:52.520 --> 00:51:54.220
<v Scott Shawcroft>And I, I feel like I should know some of this stuff.

00:51:54.220 --> 00:51:57.460
<v Scott Shawcroft>And then I also feel like a lot of this stuff should be on the embedded podcast, but I feel

00:51:57.460 --> 00:52:00.080
<v Scott Shawcroft>like hardware people need to know this stuff sometimes.

00:52:00.240 --> 00:52:02.180
<v Scott Shawcroft>You know, I, I speak for the hardware person.

00:52:02.580 --> 00:52:08.180
<v Chris Gammell>Uh, and I'm, I'm like, I'm a software person definitely by training and I have picked up

00:52:08.180 --> 00:52:09.180
<v Chris Gammell>some of the hardware stuff.

00:52:09.440 --> 00:52:09.800
<v Scott Shawcroft>Cool.

00:52:10.640 --> 00:52:15.500
<v Scott Shawcroft>Um, but in this case, like, okay, so say, say you, so you're waiting for an interrupt and

00:52:15.500 --> 00:52:20.340
<v Scott Shawcroft>what, and, and what have you, but, uh, it's never going to come cause it's broken.

00:52:20.340 --> 00:52:22.880
<v Scott Shawcroft>Oh, okay.

00:52:23.340 --> 00:52:24.600
<v Scott Shawcroft>Say it, say it did show up though.

00:52:24.940 --> 00:52:27.020
<v Scott Shawcroft>Uh, so you, I mean, yeah.

00:52:27.100 --> 00:52:31.860
<v Scott Shawcroft>So an interrupt is basically just like a, a, a bit in an internal register of the processor,

00:52:31.860 --> 00:52:32.220
<v Scott Shawcroft>right?

00:52:32.680 --> 00:52:34.900
<v Scott Shawcroft>That flips from a zero to one or whatever.

00:52:34.900 --> 00:52:36.520
<v Scott Shawcroft>And then it goes off and does its routine.

00:52:36.620 --> 00:52:37.020
<v Scott Shawcroft>Right.

00:52:37.340 --> 00:52:37.780
<v Chris Gammell>Right.

00:52:38.500 --> 00:52:40.960
<v Scott Shawcroft>But who's actually, it's not polling for that.

00:52:40.980 --> 00:52:41.220
<v Scott Shawcroft>Right.

00:52:41.780 --> 00:52:44.200
<v Scott Shawcroft>Or is, is the debugger actually polling for that?

00:52:44.820 --> 00:52:47.020
<v Chris Gammell>So the, my code.

00:52:47.020 --> 00:52:51.980
<v Chris Gammell>Um, so there's two places an interrupt can, I'm Sam D 21.

00:52:52.120 --> 00:52:53.640
<v Chris Gammell>There's two places interrupts can live.

00:52:54.440 --> 00:52:58.760
<v Chris Gammell>There's, uh, interrupts that are on the peripheral side.

00:52:58.900 --> 00:53:04.220
<v Chris Gammell>And then those interrupts might get, um, joined together to have one interrupt to the CPU.

00:53:04.940 --> 00:53:11.400
<v Chris Gammell>Um, and then the interrupts to the CPU, uh, the CPU says, Oh, I have an interrupt and I

00:53:11.400 --> 00:53:14.240
<v Chris Gammell>need to run this other piece of code instead.

00:53:14.240 --> 00:53:20.200
<v Chris Gammell>And that's just a table somewhere in, in memory that it looks it up when it, when it happens.

00:53:21.140 --> 00:53:26.500
<v Chris Gammell>Um, and so it'll pause your code and then I'll jump to where that interrupt table points

00:53:26.500 --> 00:53:26.760
<v Chris Gammell>to.

00:53:27.220 --> 00:53:30.920
<v Chris Gammell>And then in there, your code has to say like, let me clear the interrupt so I don't get

00:53:30.920 --> 00:53:32.020
<v Chris Gammell>called immediately again.

00:53:32.780 --> 00:53:35.280
<v Chris Gammell>Um, otherwise you end up in an infinite loop.

00:53:35.680 --> 00:53:36.120
<v Scott Shawcroft>Right.

00:53:36.480 --> 00:53:36.700
<v Chris Gammell>Yeah.

00:53:36.780 --> 00:53:38.620
<v Chris Gammell>There's like an interrupt routine you're talking about there, right?

00:53:38.820 --> 00:53:39.220
<v Chris Gammell>Correct.

00:53:39.220 --> 00:53:39.740
<v Chris Gammell>Yeah.

00:53:39.840 --> 00:53:40.000
<v Chris Gammell>Yeah.

00:53:40.220 --> 00:53:40.540
<v Chris Gammell>Yeah.

00:53:40.580 --> 00:53:44.500
<v Chris Gammell>It's also abbreviated ISR interrupt service routine.

00:53:45.200 --> 00:53:45.680
<v Chris Gammell>Okay.

00:53:46.000 --> 00:53:52.780
<v Scott Shawcroft>Um, so, but, but the, the, in the case of the debugger though, is the debugger sitting in

00:53:52.780 --> 00:53:54.880
<v Scott Shawcroft>the ISR and looking at that or is it?

00:53:55.300 --> 00:53:55.620
<v Scott Shawcroft>No.

00:53:55.700 --> 00:54:06.260
<v Chris Gammell>So the, the ISR or the debugger in, in my mental model is just like, it can pause the CPU or it

00:54:06.260 --> 00:54:10.400
<v Chris Gammell>can tell the CPU like, Hey, when you reach this code, pause or stop.

00:54:10.560 --> 00:54:10.740
<v Chris Gammell>Right.

00:54:11.200 --> 00:54:17.060
<v Chris Gammell>And so when you set a break point, the GDB side of the debugger, the, the code on your,

00:54:17.380 --> 00:54:21.160
<v Chris Gammell>on your computer says, Hey, you wanted this like particular function.

00:54:21.400 --> 00:54:25.280
<v Chris Gammell>What, um, program counter is it at?

00:54:25.280 --> 00:54:31.040
<v Chris Gammell>And then the debugger says, Hey, CPU, when you hit this program counter, stop, please.

00:54:31.880 --> 00:54:32.360
<v Chris Gammell>Okay.

00:54:32.360 --> 00:54:37.880
<v Chris Gammell>Um, so it doesn't have anything to do with the ISR, although you could say when the program

00:54:37.880 --> 00:54:43.260
<v Chris Gammell>counter hits the, the address of the ISR, stop.

00:54:43.800 --> 00:54:48.020
<v Scott Shawcroft>Well, I guess the reason I asked about this too, is because I was, I was actually, so as

00:54:48.020 --> 00:54:53.700
<v Scott Shawcroft>I was troubleshooting my clock pin being plugged into the wrong pin, uh, when none of my debugger

00:54:53.700 --> 00:54:53.980
<v Scott Shawcroft>working.

00:54:54.140 --> 00:54:56.520
<v Chris Gammell>You learn a lot, a lot of other stuff in the meantime.

00:54:56.740 --> 00:54:56.940
<v Scott Shawcroft>Right.

00:54:56.940 --> 00:54:58.840
<v Scott Shawcroft>I was like looking at it and I'm like, Oh, okay.

00:54:58.840 --> 00:55:02.720
<v Scott Shawcroft>That obviously there was a clock and a data signal going back and forth with the debugger

00:55:02.720 --> 00:55:06.000
<v Scott Shawcroft>and like, they kind of, some of the stuff felt, you know, fell into place.

00:55:06.100 --> 00:55:08.220
<v Scott Shawcroft>So I do recommend plugging things into the wrong place sometimes.

00:55:09.800 --> 00:55:10.380
<v Scott Shawcroft>Excuse me.

00:55:10.760 --> 00:55:11.840
<v Scott Shawcroft>Um, like you have a choice.

00:55:12.140 --> 00:55:12.440
<v Scott Shawcroft>Right.

00:55:12.460 --> 00:55:12.800
<v Scott Shawcroft>Exactly.

00:55:13.100 --> 00:55:17.980
<v Scott Shawcroft>Uh, so, but in this case though, what I'm, what I'm really asking, I guess, is what is

00:55:17.980 --> 00:55:22.640
<v Scott Shawcroft>physically streaming back out of the processor and then who is controlling things?

00:55:22.640 --> 00:55:23.420
<v Scott Shawcroft>So, okay.

00:55:23.420 --> 00:55:27.340
<v Scott Shawcroft>So we're, let's go to that case where we're now setting a, a break point, right?

00:55:27.500 --> 00:55:27.720
<v Scott Shawcroft>Mm-hmm.

00:55:28.480 --> 00:55:34.040
<v Scott Shawcroft>Is it streaming where the code is like in a, in the counter?

00:55:34.160 --> 00:55:35.780
<v Scott Shawcroft>Is that what's streaming back out?

00:55:35.960 --> 00:55:37.680
<v Scott Shawcroft>I don't, I don't believe so.

00:55:37.980 --> 00:55:38.240
<v Scott Shawcroft>Okay.

00:55:38.340 --> 00:55:39.720
<v Scott Shawcroft>So how does it know when to stop though?

00:55:39.740 --> 00:55:40.660
<v Scott Shawcroft>That's what, that's what I'm really saying.

00:55:40.660 --> 00:55:43.060
<v Scott Shawcroft>Like who's the brain, who's the brains of the operation here?

00:55:43.420 --> 00:55:49.260
<v Chris Gammell>Well, so the, the debugger, like GDB on your computer is the thing that figures out.

00:55:49.260 --> 00:55:55.660
<v Chris Gammell>You said this function and I will interpret it into this number for the processor.

00:55:56.480 --> 00:56:02.880
<v Chris Gammell>And then you'll see that the, the processor, like the same D 21, the cortex M zero plus

00:56:02.880 --> 00:56:10.800
<v Chris Gammell>supports four hardware break points, which is four 32 bit numbers that represent the code

00:56:10.800 --> 00:56:12.540
<v Chris Gammell>that it's executing at any one point.

00:56:12.900 --> 00:56:17.020
<v Chris Gammell>And every time it executes, it's comparing against those four numbers.

00:56:17.020 --> 00:56:21.840
<v Chris Gammell>And if it hits that four numbers, it stops like the CPU will stop.

00:56:21.840 --> 00:56:28.480
<v Chris Gammell>And then the, the debugger software, like GDB through the J link can then understand that,

00:56:28.600 --> 00:56:29.280
<v Chris Gammell>Hey, I have stopped.

00:56:29.540 --> 00:56:29.760
<v Scott Shawcroft>Okay.

00:56:29.800 --> 00:56:31.240
<v Scott Shawcroft>So it's not streaming back out.

00:56:31.400 --> 00:56:32.300
<v Scott Shawcroft>We're at line one.

00:56:32.340 --> 00:56:33.060
<v Scott Shawcroft>We're at line two.

00:56:33.180 --> 00:56:33.680
<v Scott Shawcroft>We're at line three.

00:56:33.780 --> 00:56:34.340
<v Scott Shawcroft>We're at line four.

00:56:34.340 --> 00:56:40.020
<v Scott Shawcroft>And then it gets to line 7,461 or something and says, Oh now, and now the computer says to

00:56:40.020 --> 00:56:40.300
<v Scott Shawcroft>stop.

00:56:40.420 --> 00:56:40.620
<v Scott Shawcroft>Right.

00:56:40.620 --> 00:56:45.800
<v Scott Shawcroft>It's more, it's counting internally and saying, I just said 761 or whatever they said.

00:56:46.060 --> 00:56:46.220
<v Chris Gammell>Yep.

00:56:46.480 --> 00:56:46.660
<v Scott Shawcroft>Yep.

00:56:46.660 --> 00:56:49.220
<v Scott Shawcroft>And then it just, it just, it says, okay, I'm pausing here.

00:56:49.580 --> 00:56:49.840
<v Scott Shawcroft>Yep.

00:56:50.320 --> 00:56:51.620
<v Scott Shawcroft>Come and take a look at what's going on.

00:56:51.620 --> 00:56:51.680
<v Chris Gammell>Yeah.

00:56:51.740 --> 00:56:53.000
<v Chris Gammell>Tell me what you want to do next.

00:56:53.000 --> 00:56:54.340
<v Chris Gammell>Like, do you want me to keep going?

00:56:54.820 --> 00:57:01.620
<v Chris Gammell>Or if you do something like what's known as a step, you're telling like, do the next line

00:57:01.620 --> 00:57:02.460
<v Chris Gammell>of source code.

00:57:02.780 --> 00:57:02.960
<v Chris Gammell>Yep.

00:57:03.080 --> 00:57:06.460
<v Chris Gammell>And your computer is figuring out what program counter that is.

00:57:06.520 --> 00:57:11.060
<v Chris Gammell>It sets another hardware break point and then continues until the CPU says, okay, I hit

00:57:11.060 --> 00:57:11.840
<v Chris Gammell>another break point.

00:57:12.340 --> 00:57:12.520
<v Chris Gammell>Got it.

00:57:13.060 --> 00:57:13.180
<v Chris Gammell>Okay.

00:57:13.180 --> 00:57:17.240
<v Scott Shawcroft>Um, now there's a, because, and sometimes that, that breaks, right?

00:57:17.240 --> 00:57:18.900
<v Scott Shawcroft>It doesn't like doing single steps sometimes.

00:57:19.600 --> 00:57:19.960
<v Chris Gammell>Right.

00:57:20.460 --> 00:57:20.740
<v Chris Gammell>Yeah.

00:57:21.440 --> 00:57:22.760
<v Chris Gammell>Single step can be tricky.

00:57:23.140 --> 00:57:23.300
<v Scott Shawcroft>Yeah.

00:57:24.400 --> 00:57:24.720
<v Scott Shawcroft>Yeah.

00:57:24.720 --> 00:57:24.840
<v Scott Shawcroft>Yeah.

00:57:24.920 --> 00:57:25.920
<v Scott Shawcroft>Break points are better for that.

00:57:26.020 --> 00:57:26.480
<v Scott Shawcroft>I know.

00:57:26.480 --> 00:57:27.100
<v Scott Shawcroft>I knew that one.

00:57:27.100 --> 00:57:30.980
<v Scott Shawcroft>Cause, uh, yeah, I've, I've definitely had problems with that in the past.

00:57:31.100 --> 00:57:31.200
<v Chris Gammell>Yeah.

00:57:31.280 --> 00:57:36.520
<v Chris Gammell>And that, I think that tends to occur if you don't have your entire source code, if your

00:57:36.520 --> 00:57:41.660
<v Chris Gammell>code goes in somewhere that it didn't know it could, like, uh, we have a bootloader on

00:57:41.660 --> 00:57:47.620
<v Chris Gammell>our boards and if you go into the bootloader, but the GDB didn't know about the bootloader

00:57:47.620 --> 00:57:49.000
<v Chris Gammell>that can get tricky.

00:57:49.380 --> 00:57:49.720
<v Chris Gammell>Okay.

00:57:49.940 --> 00:57:50.280
<v Chris Gammell>Okay.

00:57:50.460 --> 00:57:50.880
<v Chris Gammell>Interesting.

00:57:50.880 --> 00:57:51.320
<v Chris Gammell>Yeah.

00:57:51.440 --> 00:57:56.640
<v Chris Gammell>So there are like advanced J links where it does actually stream data back the J trace

00:57:56.640 --> 00:57:58.400
<v Chris Gammell>and all of that high end stuff.

00:57:58.480 --> 00:58:03.600
<v Chris Gammell>But, um, in general, that's not something I use day to day.

00:58:03.740 --> 00:58:04.180
<v Scott Shawcroft>Right.

00:58:04.340 --> 00:58:09.640
<v Scott Shawcroft>Well, and I was thinking even with, uh, I mean like this, like you could set how fast the,

00:58:09.640 --> 00:58:16.180
<v Scott Shawcroft>the serial can actually talk between like the, over the S the single wire debug SWD.

00:58:16.300 --> 00:58:16.500
<v Scott Shawcroft>Right.

00:58:16.600 --> 00:58:16.780
<v Scott Shawcroft>Right.

00:58:16.780 --> 00:58:20.800
<v Scott Shawcroft>You could say it's default four megahertz, you could say a hundred kilohertz and it won't

00:58:20.800 --> 00:58:21.080
<v Scott Shawcroft>care.

00:58:21.360 --> 00:58:21.520
<v Scott Shawcroft>Right.

00:58:21.520 --> 00:58:25.120
<v Scott Shawcroft>But it's, it's gonna, not gonna be able to stream data back as fast or at all really.

00:58:25.120 --> 00:58:25.300
<v Scott Shawcroft>Right.

00:58:25.700 --> 00:58:27.280
<v Scott Shawcroft>So, okay.

00:58:27.420 --> 00:58:28.900
<v Scott Shawcroft>So that, that makes a lot of sense actually.

00:58:28.900 --> 00:58:34.220
<v Scott Shawcroft>So then, so basically the GDB server is running on your computer.

00:58:34.380 --> 00:58:34.780
<v Scott Shawcroft>Yep.

00:58:34.860 --> 00:58:39.580
<v Scott Shawcroft>It's talking through this hardware chip, the SEGGER hardware chip on the J link.

00:58:39.820 --> 00:58:40.000
<v Scott Shawcroft>Yep.

00:58:40.060 --> 00:58:42.320
<v Scott Shawcroft>And that's basically translating it to some kind of serial thing.

00:58:42.320 --> 00:58:46.720
<v Scott Shawcroft>And then it's going in and saying, all right, I know where to talk to in these, through

00:58:46.720 --> 00:58:48.060
<v Scott Shawcroft>this quasi serial port.

00:58:48.140 --> 00:58:54.760
<v Scott Shawcroft>It's saying, go to this location, set this, set this, uh, you know, this rant, this weird

00:58:54.760 --> 00:58:55.180
<v Scott Shawcroft>number.

00:58:55.540 --> 00:58:56.800
<v Scott Shawcroft>And that's where the code's going to break.

00:58:57.080 --> 00:58:57.220
<v Scott Shawcroft>Yep.

00:58:57.300 --> 00:59:00.640
<v Scott Shawcroft>And, uh, and then, and then we can go and poke around inside.

00:59:00.760 --> 00:59:00.900
<v Scott Shawcroft>Right.

00:59:01.440 --> 00:59:01.800
<v Scott Shawcroft>Okay.

00:59:01.940 --> 00:59:02.160
<v Scott Shawcroft>Right.

00:59:03.180 --> 00:59:09.640
<v Scott Shawcroft>Any idea how it's actually, so it's like, it's like special access into the, into the

00:59:09.640 --> 00:59:10.500
<v Scott Shawcroft>processor at that point.

00:59:10.500 --> 00:59:10.740
<v Scott Shawcroft>Right.

00:59:10.740 --> 00:59:11.100
<v Scott Shawcroft>Yeah.

00:59:11.140 --> 00:59:15.480
<v Chris Gammell>Like the debug hardware, if you've ever looked at a diagram for MCU, it's like right next

00:59:15.480 --> 00:59:16.680
<v Chris Gammell>to the actual processor.

00:59:17.060 --> 00:59:17.320
<v Scott Shawcroft>Yeah.

00:59:17.920 --> 00:59:19.640
<v Scott Shawcroft>So it's like, it's very integrated.

00:59:19.960 --> 00:59:20.180
<v Scott Shawcroft>Yeah.

00:59:20.180 --> 00:59:21.500
<v Scott Shawcroft>You get to like see everything.

00:59:21.800 --> 00:59:25.040
<v Scott Shawcroft>Uh, which is also why all the hackers are always looking for the J tag port.

00:59:25.220 --> 00:59:25.500
<v Scott Shawcroft>Oh yeah.

00:59:25.500 --> 00:59:27.900
<v Scott Shawcroft>I was just talking to Joe grand the other day with his J tagulator.

00:59:28.360 --> 00:59:31.020
<v Scott Shawcroft>Uh, uh, uh, yeah.

00:59:31.020 --> 00:59:35.320
<v Scott Shawcroft>So they love that stuff because it is your, you get to be right there and you can poke around.

00:59:35.680 --> 00:59:35.860
<v Chris Gammell>Yeah.

00:59:35.940 --> 00:59:40.120
<v Chris Gammell>You're, you're controlling the processor and you're able to read all the memory.

00:59:40.940 --> 00:59:41.720
<v Scott Shawcroft>That's pretty cool.

00:59:42.200 --> 00:59:42.420
<v Scott Shawcroft>Yeah.

00:59:42.820 --> 00:59:45.080
<v Scott Shawcroft>Um, okay.

00:59:45.740 --> 00:59:46.520
<v Scott Shawcroft>This is helpful.

00:59:47.220 --> 00:59:47.520
<v Scott Shawcroft>Good.

00:59:47.600 --> 00:59:50.880
<v Scott Shawcroft>So, uh, you have a great tutorial about this too.

00:59:51.000 --> 00:59:53.140
<v Scott Shawcroft>So it's kind of showing a lot of what we're talking about here.

00:59:53.300 --> 00:59:53.580
<v Scott Shawcroft>Yeah.

00:59:53.580 --> 00:59:55.440
<v Scott Shawcroft>Debugging the Sam D 21 with the GDB.

00:59:55.440 --> 00:59:55.720
<v Scott Shawcroft>Yep.

00:59:56.140 --> 01:00:02.140
<v Chris Gammell>And that, that, uh, tutorial was kind of inspired by my, um, talking about tracing.

01:00:02.140 --> 01:00:08.900
<v Chris Gammell>So like keeping track of every program counter, uh, that tutorial was written because I had

01:00:08.900 --> 01:00:15.020
<v Chris Gammell>figured out how to use, uh, an optional feature on the cortex M zero plus.

01:00:15.500 --> 01:00:15.700
<v Scott Shawcroft>Uh huh.

01:00:15.700 --> 01:00:18.520
<v Chris Gammell>I think it's optional called the micro trace buffer.

01:00:18.880 --> 01:00:19.220
<v Chris Gammell>Okay.

01:00:19.220 --> 01:00:24.720
<v Chris Gammell>And what it does is every time the program counter.

01:00:24.720 --> 01:00:32.000
<v Chris Gammell>So a code executes by just having a program counter that says I'm executing code at this

01:00:32.000 --> 01:00:32.480
<v Chris Gammell>address.

01:00:32.480 --> 01:00:41.600
<v Chris Gammell>And by default, every cycle of the CPU, that address increments by a fixed amount, right?

01:00:41.640 --> 01:00:45.440
<v Chris Gammell>If it's 32 bit processor, it will go four bytes more.

01:00:45.440 --> 01:00:53.980
<v Chris Gammell>Um, but if you have a branch, which is like an if statement, um, it might not go to that

01:00:53.980 --> 01:00:56.480
<v Chris Gammell>next line, that next address.

01:00:56.480 --> 01:00:59.060
<v Chris Gammell>Instead, what it's going to do is it's going to load a different address.

01:00:59.920 --> 01:01:04.020
<v Chris Gammell>Um, and so what you can do is you can tell where your code has been.

01:01:04.020 --> 01:01:06.880
<v Chris Gammell>If you keep track of all of the branches that you took.

01:01:07.420 --> 01:01:12.700
<v Chris Gammell>So the micro trace buffer says I was here and now I'm jumping to this other part.

01:01:12.700 --> 01:01:16.980
<v Chris Gammell>It's a history of where your processor, what code your processor is executed.

01:01:17.460 --> 01:01:21.660
<v Scott Shawcroft>And that's kept on the, on the device instead of like in the computer.

01:01:21.960 --> 01:01:22.340
<v Chris Gammell>Right.

01:01:22.460 --> 01:01:23.740
<v Chris Gammell>So the, right.

01:01:23.860 --> 01:01:26.620
<v Chris Gammell>So the micro trace buffer is a little piece.

01:01:26.920 --> 01:01:29.580
<v Chris Gammell>It's a little peripheral that can actually write to Ram.

01:01:30.180 --> 01:01:34.280
<v Chris Gammell>So you just say like, here's my Ram address that I want you to keep this buffer in.

01:01:34.480 --> 01:01:36.100
<v Chris Gammell>And then you can go back and read it.

01:01:36.340 --> 01:01:37.600
<v Chris Gammell>How much can you keep in there?

01:01:38.760 --> 01:01:40.100
<v Chris Gammell>It, you can change it.

01:01:40.220 --> 01:01:42.680
<v Chris Gammell>I think I had like 256 bytes.

01:01:43.240 --> 01:01:43.480
<v Chris Gammell>Okay.

01:01:44.020 --> 01:01:45.920
<v Chris Gammell>Um, so then a couple, a couple branches.

01:01:46.820 --> 01:01:50.720
<v Chris Gammell>Well, well, no, one branch is eight bytes.

01:01:50.720 --> 01:01:52.700
<v Chris Gammell>Cause it's two 32 bit numbers.

01:01:52.820 --> 01:01:53.420
<v Chris Gammell>Oh, okay.

01:01:53.920 --> 01:01:55.880
<v Chris Gammell>Where you were to where you're going.

01:01:55.880 --> 01:01:57.420
<v Chris Gammell>And that's, that's all it has.

01:01:57.860 --> 01:01:58.400
<v Chris Gammell>Got it.

01:01:58.400 --> 01:02:01.780
<v Chris Gammell>So you get about eight steps in eight steps.

01:02:02.080 --> 01:02:02.480
<v Scott Shawcroft>Yeah.

01:02:02.700 --> 01:02:04.720
<v Scott Shawcroft>No 32 steps, whatever.

01:02:05.140 --> 01:02:05.380
<v Scott Shawcroft>Yeah.

01:02:05.380 --> 01:02:09.160
<v Chris Gammell>It's not that many, but it's usually enough to like, it's really handy if you end up in

01:02:09.160 --> 01:02:12.140
<v Chris Gammell>a hard fault handler or something and you want to know why you got there.

01:02:12.140 --> 01:02:12.620
<v Scott Shawcroft>Okay.

01:02:12.840 --> 01:02:16.060
<v Chris Gammell>Um, you can actually basically see the history of where you are.

01:02:16.660 --> 01:02:21.820
<v Chris Gammell>Um, and that guide includes links to a Python script that you can use in GDB to actually

01:02:21.820 --> 01:02:26.740
<v Chris Gammell>tell you like a line, like source code line numbers for all of those addresses.

01:02:27.060 --> 01:02:28.000
<v Scott Shawcroft>Okay, cool.

01:02:28.000 --> 01:02:28.860
<v Scott Shawcroft>All right.

01:02:28.860 --> 01:02:31.040
<v Scott Shawcroft>So let's, let's, let's zoom back up a little bit here.

01:02:31.320 --> 01:02:31.520
<v Scott Shawcroft>Yeah.

01:02:31.520 --> 01:02:32.540
<v Scott Shawcroft>So, so the good thing.

01:02:32.640 --> 01:02:33.660
<v Scott Shawcroft>Community at some point too.

01:02:33.940 --> 01:02:34.700
<v Scott Shawcroft>Oh, definitely that.

01:02:35.120 --> 01:02:37.540
<v Scott Shawcroft>Um, but on this side of things.

01:02:37.560 --> 01:02:39.520
<v Scott Shawcroft>So, so one of the things that, okay.

01:02:39.520 --> 01:02:42.020
<v Scott Shawcroft>So let me step back on my stuff.

01:02:42.020 --> 01:02:44.240
<v Scott Shawcroft>I came from the world of IDEs, right.

01:02:44.280 --> 01:02:48.720
<v Scott Shawcroft>And this was like, again, back to that episode with, uh, the BeagleBone guys.

01:02:49.360 --> 01:02:52.620
<v Scott Shawcroft>Um, like I, I just don't do like make file.

01:02:52.700 --> 01:02:54.720
<v Scott Shawcroft>I've not done make files and all that stuff.

01:02:54.840 --> 01:02:55.020
<v Scott Shawcroft>Yeah.

01:02:55.020 --> 01:02:57.320
<v Scott Shawcroft>And that's something I'd like to work towards for sure.

01:02:57.600 --> 01:02:57.780
<v Scott Shawcroft>Yeah.

01:02:57.820 --> 01:03:02.320
<v Scott Shawcroft>Um, but I come from the world of IDEs where you, you know, you basically, you download

01:03:02.320 --> 01:03:07.800
<v Scott Shawcroft>the whole tool chain from one vendor and you just hope to God it works and, you know, and

01:03:07.800 --> 01:03:09.660
<v Scott Shawcroft>if it doesn't, you call someone and they help you, right.

01:03:09.660 --> 01:03:10.640
<v Scott Shawcroft>Or you have coworkers.

01:03:11.200 --> 01:03:11.300
<v Scott Shawcroft>Yeah.

01:03:11.540 --> 01:03:17.000
<v Scott Shawcroft>Um, and so my tact has been like, I want to like learn this other stuff about Eclipse.

01:03:17.300 --> 01:03:22.100
<v Scott Shawcroft>So I have this stuff, but even so it's like Eclipse is like a IDE is basically just

01:03:22.100 --> 01:03:26.460
<v Scott Shawcroft>a text editor with some hooks into stuff like GDB and everything else.

01:03:26.540 --> 01:03:27.260
<v Scott Shawcroft>Does that sound right?

01:03:28.160 --> 01:03:29.660
<v Chris Gammell>Yeah, I would, I would say so.

01:03:30.180 --> 01:03:35.620
<v Chris Gammell>Um, it's, uh, IDEs are integrated desktop environments, right?

01:03:35.620 --> 01:03:39.280
<v Chris Gammell>So they're trying to integrate all of the, your workflow into one application.

01:03:39.280 --> 01:03:39.760
<v Chris Gammell>Right.

01:03:40.160 --> 01:03:43.000
<v Scott Shawcroft>So, so can you tell us how, how you're using this stuff?

01:03:43.080 --> 01:03:44.540
<v Scott Shawcroft>So, so you said make files.

01:03:44.540 --> 01:03:49.400
<v Scott Shawcroft>So the make file basically does the compilation and does the linking and does the, all that

01:03:49.400 --> 01:03:49.840
<v Scott Shawcroft>stuff.

01:03:49.920 --> 01:03:50.140
<v Chris Gammell>Yep.

01:03:50.140 --> 01:03:50.580
<v Scott Shawcroft>Yeah.

01:03:51.580 --> 01:03:52.780
<v Scott Shawcroft>So I tend not to use IDs.

01:03:53.540 --> 01:03:53.660
<v Scott Shawcroft>Right.

01:03:53.800 --> 01:03:54.640
<v Scott Shawcroft>But, but then what?

01:03:54.760 --> 01:03:54.900
<v Scott Shawcroft>Right.

01:03:54.960 --> 01:03:58.580
<v Scott Shawcroft>So then you start the, you start the server, the GDB server.

01:03:58.780 --> 01:03:59.060
<v Scott Shawcroft>Right.

01:03:59.260 --> 01:04:00.560
<v Scott Shawcroft>And open OCD as well.

01:04:01.400 --> 01:04:03.480
<v Chris Gammell>Well, there's the J link GDB server.

01:04:03.480 --> 01:04:06.760
<v Chris Gammell>And then I use GDB proper to connect to that.

01:04:07.720 --> 01:04:12.020
<v Chris Gammell>Um, which is just like the GDB prompt command line prompt thing.

01:04:12.260 --> 01:04:12.600
<v Chris Gammell>Okay.

01:04:13.080 --> 01:04:15.340
<v Chris Gammell>Which is, I think in the guide, you can see it there.

01:04:15.400 --> 01:04:15.580
<v Chris Gammell>Yeah.

01:04:15.580 --> 01:04:15.840
<v Scott Shawcroft>Okay.

01:04:15.920 --> 01:04:17.200
<v Scott Shawcroft>And we'll definitely link people there.

01:04:17.200 --> 01:04:21.300
<v Scott Shawcroft>But I guess, I guess the whole thing that I think about is like, so like even the IDE

01:04:21.300 --> 01:04:21.900
<v Scott Shawcroft>world, right?

01:04:21.920 --> 01:04:26.260
<v Scott Shawcroft>It, it, it kind of felt like, like FPJs do this a lot as well.

01:04:26.500 --> 01:04:30.140
<v Scott Shawcroft>You know, like there's all these command line tools underneath and the IDs are basically

01:04:30.140 --> 01:04:31.240
<v Scott Shawcroft>calling these tools.

01:04:31.240 --> 01:04:31.560
<v Scott Shawcroft>Yep.

01:04:31.700 --> 01:04:32.520
<v Scott Shawcroft>And, and, and.

01:04:32.640 --> 01:04:32.820
<v Scott Shawcroft>Yep.

01:04:32.820 --> 01:04:36.120
<v Scott Shawcroft>And The Amp Houring thing is like, you can call them yourself, right?

01:04:36.220 --> 01:04:37.120
<v Scott Shawcroft>Yes, totally.

01:04:37.360 --> 01:04:38.500
<v Scott Shawcroft>And in different orders.

01:04:39.380 --> 01:04:39.740
<v Scott Shawcroft>Yep.

01:04:41.420 --> 01:04:42.620
<v Scott Shawcroft>But that's also a little scary.

01:04:43.880 --> 01:04:44.240
<v Chris Gammell>Yeah.

01:04:44.240 --> 01:04:48.840
<v Chris Gammell>I think it takes, I think as a software person, command line is not that scary.

01:04:49.740 --> 01:04:52.240
<v Chris Gammell>Um, I think you see it more there.

01:04:52.240 --> 01:04:57.900
<v Chris Gammell>Um, I've definitely felt coming, coming into the hardware world as a software person, I

01:04:57.900 --> 01:05:02.700
<v Chris Gammell>kind of feel that the hardware world's a little behind in terms of software engineering.

01:05:02.820 --> 01:05:03.460
<v Chris Gammell>I would agree with that.

01:05:03.520 --> 01:05:03.620
<v Chris Gammell>Yeah.

01:05:03.800 --> 01:05:03.960
<v Chris Gammell>Yeah.

01:05:04.440 --> 01:05:07.900
<v Chris Gammell>Um, maybe I should pick on Atmel just a little bit.

01:05:08.080 --> 01:05:08.400
<v Scott Shawcroft>Um.

01:05:10.160 --> 01:05:13.620
<v Scott Shawcroft>Like on their, what, with their, uh, the, the studio thing they have, the.

01:05:14.280 --> 01:05:20.460
<v Chris Gammell>Well, yeah, I don't use Atmel studio at all, but, um, just the, the, like maybe CircuitPython

01:05:20.460 --> 01:05:25.600
<v Chris Gammell>is very different than other hardware projects where if you're making a toaster and you need

01:05:25.600 --> 01:05:30.580
<v Chris Gammell>the microcontroller code to do one thing, a wizard that says like, how do you want to

01:05:30.580 --> 01:05:33.180
<v Chris Gammell>set up all the pins and then spits out code for you is really great.

01:05:33.840 --> 01:05:35.820
<v Chris Gammell>Um, but we're not that at all.

01:05:36.820 --> 01:05:39.060
<v Chris Gammell>CircuitPython is very, very dynamic.

01:05:39.100 --> 01:05:42.900
<v Chris Gammell>Like we don't know the code that the user is going to write and we don't know what pin

01:05:42.900 --> 01:05:44.140
<v Chris Gammell>they're going to want to use for something.

01:05:44.640 --> 01:05:49.840
<v Chris Gammell>And so we're, we're much more in this model of like, we just want to download the USB

01:05:49.840 --> 01:05:51.340
<v Chris Gammell>code and use the USB code.

01:05:51.460 --> 01:05:54.720
<v Chris Gammell>We don't want to have to run a wizard every time we want to update our USB code.

01:05:55.420 --> 01:05:55.520
<v Chris Gammell>Yeah.

01:05:55.700 --> 01:06:02.400
<v Chris Gammell>Um, and that's the, Atmel has Atmel start, uh, currently, which is definitely that model.

01:06:02.580 --> 01:06:07.400
<v Chris Gammell>And, and we've run into that because the SAMD 51 is only supported through that.

01:06:07.840 --> 01:06:08.320
<v Chris Gammell>Oh, really?

01:06:08.540 --> 01:06:08.780
<v Chris Gammell>Yeah.

01:06:08.780 --> 01:06:11.720
<v Scott Shawcroft>And I mean, that's like what the STM 32 cube is, I think too, right?

01:06:11.800 --> 01:06:14.540
<v Scott Shawcroft>Like that's like, they're like these, there are these interfaces.

01:06:14.840 --> 01:06:15.240
<v Scott Shawcroft>They're wizards.

01:06:15.620 --> 01:06:15.980
<v Chris Gammell>Yeah.

01:06:15.980 --> 01:06:16.420
<v Chris Gammell>Yeah.

01:06:16.780 --> 01:06:20.220
<v Chris Gammell>I feel like that was something the software world already grew out of.

01:06:20.660 --> 01:06:22.260
<v Chris Gammell>Um, but that's my bias.

01:06:22.480 --> 01:06:22.700
<v Scott Shawcroft>Okay.

01:06:22.740 --> 01:06:24.380
<v Scott Shawcroft>So that, well, no, here's, that's interesting.

01:06:24.500 --> 01:06:26.380
<v Scott Shawcroft>So, so what do you do instead?

01:06:26.380 --> 01:06:27.980
<v Scott Shawcroft>I guess that that's probably the best thing.

01:06:27.980 --> 01:06:31.860
<v Scott Shawcroft>Cause I'm sure that some of our people listening, like they're at least used to wizards.

01:06:31.860 --> 01:06:33.620
<v Scott Shawcroft>If not, you know, they like them.

01:06:33.620 --> 01:06:38.600
<v Chris Gammell>So I, I think the answer is something that Lamore realized long ago.

01:06:38.600 --> 01:06:40.480
<v Chris Gammell>It's good examples and good documentation.

01:06:40.480 --> 01:06:46.440
<v Chris Gammell>Um, the frustrating thing that I have when I'm using at my start to pick it on a little

01:06:46.440 --> 01:06:53.100
<v Chris Gammell>bit more is that I'm working on DMAing QSPI and I can't find an example.

01:06:53.400 --> 01:06:59.200
<v Chris Gammell>What I end up doing is I end up going into at my start and I just get a dropdown of all

01:06:59.200 --> 01:07:00.780
<v Chris Gammell>of the register values essentially.

01:07:01.440 --> 01:07:01.880
<v Chris Gammell>Right.

01:07:01.960 --> 01:07:02.800
<v Chris Gammell>And that doesn't help me.

01:07:02.860 --> 01:07:07.040
<v Chris Gammell>I can read the data sheet and understand the individual registers, but I don't have an

01:07:07.040 --> 01:07:08.840
<v Chris Gammell>example of how I actually want to use it.

01:07:08.840 --> 01:07:11.580
<v Chris Gammell>Um, so I think that.

01:07:12.340 --> 01:07:13.140
<v Scott Shawcroft>I do like that.

01:07:13.200 --> 01:07:13.980
<v Scott Shawcroft>No, I, I like that.

01:07:13.980 --> 01:07:17.560
<v Scott Shawcroft>Like, you know, the, the example, obviously that fits well with my mindset as well.

01:07:17.560 --> 01:07:23.040
<v Scott Shawcroft>It's like most people can take that and then, and then, you know, make it extensible to whatever

01:07:23.040 --> 01:07:23.800
<v Scott Shawcroft>they need to do.

01:07:23.860 --> 01:07:24.220
<v Scott Shawcroft>Right.

01:07:25.020 --> 01:07:30.880
<v Scott Shawcroft>It's not gonna be a hundred percent of course, but there are almost infinite things you can

01:07:30.880 --> 01:07:31.100
<v Scott Shawcroft>do.

01:07:31.200 --> 01:07:33.140
<v Scott Shawcroft>So at least an example gets you one.

01:07:33.380 --> 01:07:33.620
<v Scott Shawcroft>Right.

01:07:34.700 --> 01:07:35.060
<v Scott Shawcroft>Yeah.

01:07:35.160 --> 01:07:35.360
<v Scott Shawcroft>Yeah.

01:07:35.420 --> 01:07:35.640
<v Chris Gammell>Yeah.

01:07:35.640 --> 01:07:35.700
<v Chris Gammell>Yeah.

01:07:35.700 --> 01:07:38.440
<v Chris Gammell>And the more examples you have, the more starting points people have.

01:07:38.840 --> 01:07:44.500
<v Chris Gammell>Um, and I think that's something that Adafruit's been excellent at from the start and something

01:07:44.500 --> 01:07:45.520
<v Chris Gammell>that we really value.

01:07:45.700 --> 01:07:51.560
<v Chris Gammell>You'll see like all of the products we release have, um, for the circuit Python stuff, we have

01:07:51.560 --> 01:07:54.780
<v Chris Gammell>API reference docs, but we also have guides and tutorials as well.

01:07:55.460 --> 01:08:01.220
<v Chris Gammell>Um, I think that a wizard is an easy answer to that problem of how do you get people started?

01:08:01.700 --> 01:08:04.480
<v Chris Gammell>Um, but I don't feel like it actually helps that much.

01:08:04.480 --> 01:08:05.380
<v Chris Gammell>Right.

01:08:05.440 --> 01:08:08.340
<v Chris Gammell>Cause it kind of hides the, the actual thing that's happening.

01:08:08.340 --> 01:08:08.600
<v Chris Gammell>Right.

01:08:09.920 --> 01:08:14.760
<v Chris Gammell>It just puts a different, it, it's asking you all the same questions in a different way.

01:08:15.320 --> 01:08:15.400
<v Chris Gammell>Hmm.

01:08:15.520 --> 01:08:19.340
<v Chris Gammell>And this is kind of how I feel about an ID as well as like, you still need to understand

01:08:19.340 --> 01:08:23.920
<v Chris Gammell>what a break point is, whether you're clicking a button next to the line of code you want to

01:08:23.920 --> 01:08:28.760
<v Chris Gammell>break point or whether you're just typing it into a command line, uh, doesn't change the

01:08:28.760 --> 01:08:30.380
<v Chris Gammell>concepts that you have to understand.

01:08:31.960 --> 01:08:32.100
<v Scott Shawcroft>Yeah.

01:08:33.220 --> 01:08:37.500
<v Scott Shawcroft>Like, so it's, it's almost like, so what do you think they're like, they're so the hardware,

01:08:37.980 --> 01:08:43.100
<v Scott Shawcroft>uh, the software that made for hardware people then is like, is basically removing responsibility

01:08:43.100 --> 01:08:43.900
<v Scott Shawcroft>or what do you think?

01:08:43.940 --> 01:08:46.400
<v Scott Shawcroft>I mean, like what, what is, what is that method that they're doing?

01:08:46.800 --> 01:08:53.000
<v Chris Gammell>Well, I think, I think a wizard is a reaction to understanding that people don't understand it

01:08:53.000 --> 01:08:53.820
<v Chris Gammell>right away.

01:08:54.720 --> 01:08:57.520
<v Chris Gammell>Um, but not understanding how to teach it.

01:08:58.340 --> 01:08:58.780
<v Chris Gammell>Yeah.

01:08:58.940 --> 01:09:03.700
<v Chris Gammell>Um, I think like teaching, teaching people to program is really hard.

01:09:04.840 --> 01:09:10.120
<v Chris Gammell>That's something that like all of our circuit Python docs have, have been iterated on a number

01:09:10.120 --> 01:09:10.820
<v Chris Gammell>of times already.

01:09:10.820 --> 01:09:12.760
<v Chris Gammell>And that's something we continue to work on.

01:09:13.440 --> 01:09:20.000
<v Chris Gammell>Um, so it just, it takes time and effort to make good docs, but good docs are what are

01:09:20.000 --> 01:09:20.860
<v Chris Gammell>going to put you ahead.

01:09:21.080 --> 01:09:21.560
<v Chris Gammell>Yeah.

01:09:21.560 --> 01:09:22.560
<v Chris Gammell>Sorry about that.

01:09:23.580 --> 01:09:25.400
<v Chris Gammell>That's my shade going up.

01:09:26.340 --> 01:09:27.620
<v Chris Gammell>You have motorized shades?

01:09:28.260 --> 01:09:29.400
<v Chris Gammell>Automated motorized shades.

01:09:29.580 --> 01:09:30.520
<v Chris Gammell>Hey, all right.

01:09:30.720 --> 01:09:31.520
<v Chris Gammell>It's getting dark.

01:09:31.800 --> 01:09:32.940
<v Chris Gammell>So it's opening it up.

01:09:32.960 --> 01:09:33.340
<v Scott Shawcroft>Verified nerd.

01:09:33.560 --> 01:09:34.140
<v Chris Gammell>All right, cool.

01:09:35.260 --> 01:09:35.700
<v Chris Gammell>Yeah.

01:09:35.980 --> 01:09:36.380
<v Scott Shawcroft>Nice.

01:09:36.420 --> 01:09:40.480
<v Chris Gammell>That's kind of how I got into Adafruit actually was doing home automation sensors.

01:09:40.820 --> 01:09:41.260
<v Chris Gammell>Oh, nice.

01:09:41.400 --> 01:09:41.560
<v Chris Gammell>Okay.

01:09:41.560 --> 01:09:41.780
<v Chris Gammell>Mm-hmm.

01:09:42.180 --> 01:09:42.440
<v Chris Gammell>Cool.

01:09:43.620 --> 01:09:43.800
<v Chris Gammell>Yeah.

01:09:43.800 --> 01:09:47.820
<v Chris Gammell>I hope that's, I don't mean to dump on Atmel too much, but I think.

01:09:47.860 --> 01:09:48.200
<v Scott Shawcroft>No, no, no.

01:09:48.240 --> 01:09:52.600
<v Scott Shawcroft>I think, I really, I think it is an interesting, it's a, it's a software person looking at,

01:09:52.600 --> 01:09:56.620
<v Scott Shawcroft>the state of the hardware slash firmware industry.

01:09:57.020 --> 01:09:57.180
<v Scott Shawcroft>Yeah.

01:09:57.180 --> 01:10:02.020
<v Scott Shawcroft>And it's, it's interesting because, well, first off, I mean, like it or not, more software

01:10:02.020 --> 01:10:04.620
<v Scott Shawcroft>people are entering the hardware than ever, I think.

01:10:04.620 --> 01:10:04.940
<v Scott Shawcroft>Yeah.

01:10:04.940 --> 01:10:06.660
<v Scott Shawcroft>So it's going to happen more and more.

01:10:06.860 --> 01:10:10.340
<v Scott Shawcroft>And if people don't, if the tool makers don't react, then other people are going to react,

01:10:10.440 --> 01:10:10.700
<v Scott Shawcroft>obviously.

01:10:10.700 --> 01:10:11.000
<v Scott Shawcroft>Mm-hmm.

01:10:11.000 --> 01:10:11.040
<v Scott Shawcroft>Mm-hmm.

01:10:11.340 --> 01:10:12.740
<v Scott Shawcroft>So it's, it's good to know.

01:10:13.440 --> 01:10:17.940
<v Scott Shawcroft>From a hardware perspective coming the other direction, I've been confused no matter what.

01:10:18.020 --> 01:10:19.880
<v Scott Shawcroft>So if there's a better way to do it, like bring it on, man.

01:10:20.000 --> 01:10:20.180
<v Scott Shawcroft>Like.

01:10:20.760 --> 01:10:20.960
<v Scott Shawcroft>Yeah.

01:10:21.420 --> 01:10:21.740
<v Chris Gammell>Yeah.

01:10:21.740 --> 01:10:25.500
<v Chris Gammell>And it's always good for people to try different, different ways of doing things.

01:10:25.500 --> 01:10:31.120
<v Chris Gammell>Like a lot of our more modern boards, the MZeros also support Microsoft MakeCode,

01:10:31.180 --> 01:10:33.660
<v Chris Gammell>which is a block-based code editor.

01:10:34.500 --> 01:10:38.100
<v Chris Gammell>And that's a great way for other people to get started if they're intimidated by text

01:10:38.100 --> 01:10:38.440
<v Chris Gammell>editing.

01:10:38.820 --> 01:10:39.040
<v Scott Shawcroft>Yeah.

01:10:40.120 --> 01:10:40.520
<v Chris Gammell>Yeah.

01:10:40.520 --> 01:10:40.720
<v Chris Gammell>Yeah.

01:10:40.720 --> 01:10:42.800
<v Scott Shawcroft>Well, like, I mean, like Dave always says that, right?

01:10:42.800 --> 01:10:45.240
<v Scott Shawcroft>So Dave always says, don't, I, he doesn't want a text editor.

01:10:45.580 --> 01:10:46.660
<v Scott Shawcroft>He doesn't want a command line.

01:10:46.740 --> 01:10:48.360
<v Scott Shawcroft>That, that is just not what he expects.

01:10:48.540 --> 01:10:48.700
<v Scott Shawcroft>Right.

01:10:48.700 --> 01:10:52.020
<v Scott Shawcroft>And I think, especially like, you know, a lot of the, the interesting distinction for

01:10:52.020 --> 01:10:55.340
<v Scott Shawcroft>me is that like, there's a lot of people that come from like the microchip pick world,

01:10:55.420 --> 01:10:55.640
<v Scott Shawcroft>right?

01:10:56.000 --> 01:11:00.400
<v Scott Shawcroft>And pick was one of the first ones that felt like to make it really easy for people, but it's

01:11:00.400 --> 01:11:01.960
<v Scott Shawcroft>also its own flavor of things.

01:11:01.960 --> 01:11:04.320
<v Scott Shawcroft>So now anything outside of that, it's like, oh, well, this.

01:11:05.140 --> 01:11:05.580
<v Scott Shawcroft>What's that?

01:11:05.760 --> 01:11:06.680
<v Scott Shawcroft>Because it's not arm.

01:11:07.920 --> 01:11:08.820
<v Chris Gammell>Uh, what do you mean?

01:11:08.900 --> 01:11:10.340
<v Chris Gammell>Is that why it wasn't hard or?

01:11:10.880 --> 01:11:15.960
<v Chris Gammell>Or why it's a different flavor from other, other MCUs?

01:11:16.980 --> 01:11:20.320
<v Chris Gammell>Oh, um, this is where you're getting me out of my element.

01:11:20.440 --> 01:11:22.400
<v Scott Shawcroft>Cause I, I've never used a pick like.

01:11:22.580 --> 01:11:23.140
<v Scott Shawcroft>Oh yeah.

01:11:23.180 --> 01:11:27.740
<v Scott Shawcroft>A pick was just like a, you know, it's like a, I think it was a slightly abstracted hardware,

01:11:27.740 --> 01:11:32.600
<v Scott Shawcroft>where, you know, like, um, yeah, I guess I'm out of my element too.

01:11:32.600 --> 01:11:36.140
<v Chris Gammell>Well, I think maybe what you're getting at is that it's just what it was well documented

01:11:36.140 --> 01:11:41.720
<v Chris Gammell>and, and within the pick ecosystem, if you used spy, for example, you knew how it would

01:11:41.720 --> 01:11:42.040
<v Chris Gammell>work.

01:11:42.320 --> 01:11:42.880
<v Scott Shawcroft>Yes, exactly.

01:11:42.940 --> 01:11:43.140
<v Scott Shawcroft>Yeah.

01:11:43.160 --> 01:11:45.480
<v Scott Shawcroft>I think, yeah, there was the pick way of doing things.

01:11:45.480 --> 01:11:48.200
<v Scott Shawcroft>And now recently I went over and I tried something.

01:11:48.260 --> 01:11:49.780
<v Scott Shawcroft>I'm like, oh, I don't even know what I'm looking at either.

01:11:49.880 --> 01:11:50.040
<v Scott Shawcroft>Right.

01:11:50.040 --> 01:11:51.980
<v Scott Shawcroft>It's like, it's basically what you get used to.

01:11:52.140 --> 01:11:52.800
<v Scott Shawcroft>And yep.

01:11:52.800 --> 01:11:55.220
<v Scott Shawcroft>That's not right or wrong in any case, I think, right?

01:11:55.220 --> 01:11:58.960
<v Scott Shawcroft>Some people that like the Microsoft stuff you mentioned or, you know, the wizards or whatever,

01:11:59.320 --> 01:12:00.320
<v Scott Shawcroft>some people are just used to it.

01:12:00.360 --> 01:12:04.320
<v Scott Shawcroft>And I think it's just about, um, you know, having more options for people.

01:12:04.640 --> 01:12:04.660
<v Chris Gammell>So.

01:12:04.900 --> 01:12:05.040
<v Chris Gammell>Yeah.

01:12:05.780 --> 01:12:06.000
<v Chris Gammell>Yeah.

01:12:06.040 --> 01:12:09.800
<v Chris Gammell>The challenge is when you, when you do it as an expensive other things, like,

01:12:10.120 --> 01:12:12.160
<v Chris Gammell>yeah, I would love more example code from.

01:12:12.360 --> 01:12:12.600
<v Chris Gammell>Right.

01:12:12.820 --> 01:12:17.320
<v Scott Shawcroft>Well, like you said, like the new, the new parts that are only available in this, you know,

01:12:17.320 --> 01:12:18.460
<v Scott Shawcroft>in the wizard format.

01:12:18.460 --> 01:12:20.440
<v Scott Shawcroft>So yeah, that, that does happen.

01:12:20.440 --> 01:12:26.320
<v Scott Shawcroft>Um, so before we talk about the community stuff, cause I would like about talk about

01:12:26.320 --> 01:12:26.740
<v Scott Shawcroft>that too.

01:12:27.420 --> 01:12:32.000
<v Scott Shawcroft>Um, just to take us a little bit further down the road of, of how you're using this.

01:12:32.260 --> 01:12:37.060
<v Scott Shawcroft>And if you could do it specifically from the realm of, I mean, you reporting some of this

01:12:37.060 --> 01:12:37.420
<v Scott Shawcroft>stuff.

01:12:37.820 --> 01:12:40.300
<v Scott Shawcroft>I don't, I don't still quite understand how the virtual machine works.

01:12:41.020 --> 01:12:41.940
<v Scott Shawcroft>And yeah, I don't either.

01:12:42.440 --> 01:12:43.140
<v Scott Shawcroft>Oh, okay.

01:12:43.500 --> 01:12:44.420
<v Scott Shawcroft>We skip that then.

01:12:44.640 --> 01:12:49.820
<v Chris Gammell>The point, the point is, is that I don't need to know the intricate details of how the

01:12:49.820 --> 01:12:54.080
<v Chris Gammell>VM works because that's something that works across all of the microcontrollers in the

01:12:54.080 --> 01:12:54.500
<v Chris Gammell>same way.

01:12:55.720 --> 01:12:57.040
<v Scott Shawcroft>So how does that, how?

01:12:57.180 --> 01:12:58.600
<v Scott Shawcroft>I don't, yeah, I guess I don't understand that.

01:12:58.680 --> 01:13:02.320
<v Scott Shawcroft>Like what is, what, like you said that that stuff gets loaded into flash, right?

01:13:02.340 --> 01:13:05.380
<v Scott Shawcroft>The virtual machine code that runs it is loaded into flash.

01:13:05.580 --> 01:13:05.760
<v Chris Gammell>Yep.

01:13:06.400 --> 01:13:07.000
<v Scott Shawcroft>But then what?

01:13:08.380 --> 01:13:10.760
<v Chris Gammell>So like it just, it's written in C?

01:13:10.980 --> 01:13:11.240
<v Chris Gammell>Yeah.

01:13:11.300 --> 01:13:12.040
<v Chris Gammell>It's written in C.

01:13:12.040 --> 01:13:15.100
<v Chris Gammell>We call a function that says, Hey, run this file for us.

01:13:15.100 --> 01:13:16.420
<v Chris Gammell>And it does.

01:13:16.760 --> 01:13:18.140
<v Chris Gammell>Is it a binary or is it a?

01:13:19.120 --> 01:13:23.280
<v Chris Gammell>Uh, you could, well, the file itself is, is text.

01:13:23.720 --> 01:13:24.020
<v Chris Gammell>Okay.

01:13:24.140 --> 01:13:29.520
<v Chris Gammell>So it will parse the text and then run it for us from the outside.

01:13:29.700 --> 01:13:31.180
<v Chris Gammell>So why does it work on every processor?

01:13:31.560 --> 01:13:33.600
<v Chris Gammell>That's, um, well, it's C code.

01:13:33.740 --> 01:13:36.680
<v Chris Gammell>So as long as you could compile it across them.

01:13:36.680 --> 01:13:42.020
<v Scott Shawcroft>Um, but who's, so when you, when you install it though, that's what I mean.

01:13:42.140 --> 01:13:44.900
<v Scott Shawcroft>So like is, it's not, it's not machine code.

01:13:45.500 --> 01:13:48.180
<v Scott Shawcroft>So, so the V the VM is machine code.

01:13:48.500 --> 01:13:49.300
<v Scott Shawcroft>Oh, it is.

01:13:49.380 --> 01:13:49.500
<v Scott Shawcroft>Okay.

01:13:49.500 --> 01:13:51.200
<v Scott Shawcroft>The VM interprets by code.

01:13:51.840 --> 01:13:52.240
<v Scott Shawcroft>Okay.

01:13:52.360 --> 01:13:55.280
<v Scott Shawcroft>So the VM is, is machine code that's loaded into flash.

01:13:55.420 --> 01:13:55.660
<v Scott Shawcroft>Yep.

01:13:55.960 --> 01:13:57.780
<v Scott Shawcroft>That acts as a little engine that can then.

01:13:58.000 --> 01:13:58.400
<v Scott Shawcroft>Correct.

01:13:58.420 --> 01:13:59.620
<v Scott Shawcroft>That does the interpretation.

01:13:59.960 --> 01:14:00.140
<v Scott Shawcroft>Yep.

01:14:00.240 --> 01:14:00.520
<v Scott Shawcroft>Okay.

01:14:00.520 --> 01:14:02.360
<v Scott Shawcroft>So who compiles the VM?

01:14:02.860 --> 01:14:05.320
<v Scott Shawcroft>Is that, that's done on a computer somewhere?

01:14:05.560 --> 01:14:05.680
<v Scott Shawcroft>Yep.

01:14:05.680 --> 01:14:08.560
<v Scott Shawcroft>And it says I'm targeting a Sam D 21.

01:14:08.940 --> 01:14:09.180
<v Scott Shawcroft>Yep.

01:14:09.240 --> 01:14:11.120
<v Scott Shawcroft>So use that Sam D 21 compiler.

01:14:11.380 --> 01:14:11.540
<v Scott Shawcroft>Yep.

01:14:11.620 --> 01:14:13.860
<v Scott Shawcroft>To take the C code and make machine code.

01:14:14.060 --> 01:14:14.440
<v Chris Gammell>Yeah.

01:14:14.460 --> 01:14:20.560
<v Chris Gammell>You go to GitHub slash Adafruit slash circuit Python slash releases and see the latest release.

01:14:20.640 --> 01:14:23.480
<v Chris Gammell>You'll see a number of files for different boards there.

01:14:23.580 --> 01:14:24.060
<v Chris Gammell>Okay.

01:14:24.140 --> 01:14:27.040
<v Chris Gammell>Um, like you can download the, you said you like the trinket.

01:14:27.040 --> 01:14:34.720
<v Chris Gammell>So trinket M zero, and that will be the binary format for, uh, that will be the machine

01:14:34.720 --> 01:14:39.640
<v Chris Gammell>code that has all of the VM and, and all of the data structures to tell you what pin is

01:14:39.640 --> 01:14:40.420
<v Chris Gammell>what and all that.

01:14:40.780 --> 01:14:41.020
<v Scott Shawcroft>Okay.

01:14:41.020 --> 01:14:45.200
<v Scott Shawcroft>So if I wanted to go and configure for a new part or a new board, I'd have to mess with

01:14:45.200 --> 01:14:46.360
<v Scott Shawcroft>that stuff if I was so bold.

01:14:46.660 --> 01:14:46.980
<v Scott Shawcroft>Okay.

01:14:47.540 --> 01:14:47.740
<v Scott Shawcroft>Yeah.

01:14:47.740 --> 01:14:49.980
<v Scott Shawcroft>So you pile it down, load it onto there.

01:14:49.980 --> 01:14:51.360
<v Scott Shawcroft>And then, yeah.

01:14:51.360 --> 01:14:55.340
<v Scott Shawcroft>And I think I actually did this at one point too, cause I, I had taken my circuit, my trinket

01:14:55.340 --> 01:14:55.820
<v Scott Shawcroft>M zero.

01:14:56.160 --> 01:15:03.940
<v Scott Shawcroft>I had put the, I had, I had taken the circuit Python stuff off of there and I, or not, I'd

01:15:03.940 --> 01:15:04.500
<v Scott Shawcroft>taken it off there.

01:15:04.540 --> 01:15:11.040
<v Scott Shawcroft>I just loaded a new, uh, a new bit of machine code into flash using the, the Arduino.

01:15:11.580 --> 01:15:12.520
<v Scott Shawcroft>Uh, yeah.

01:15:13.060 --> 01:15:13.420
<v Scott Shawcroft>Okay.

01:15:13.420 --> 01:15:13.820
<v Chris Gammell>Yeah.

01:15:13.900 --> 01:15:15.820
<v Chris Gammell>People ask how to uninstall circuit Python.

01:15:16.020 --> 01:15:19.040
<v Chris Gammell>And the answer is you just write your Arduino sketch over it.

01:15:19.040 --> 01:15:19.400
<v Chris Gammell>Yeah.

01:15:19.740 --> 01:15:19.960
<v Chris Gammell>Right.

01:15:20.040 --> 01:15:21.300
<v Chris Gammell>I figured that out eventually.

01:15:21.440 --> 01:15:21.600
<v Chris Gammell>Okay.

01:15:21.760 --> 01:15:21.960
<v Chris Gammell>Yeah.

01:15:22.400 --> 01:15:22.620
<v Chris Gammell>Yeah.

01:15:22.620 --> 01:15:23.900
<v Chris Gammell>Maybe we should say that explicitly.

01:15:24.360 --> 01:15:24.520
<v Scott Shawcroft>Yeah.

01:15:24.540 --> 01:15:24.960
<v Scott Shawcroft>That's good.

01:15:25.080 --> 01:15:25.460
<v Scott Shawcroft>That's good.

01:15:26.300 --> 01:15:27.700
<v Scott Shawcroft>Um, cool.

01:15:27.820 --> 01:15:28.120
<v Scott Shawcroft>All right.

01:15:28.200 --> 01:15:33.780
<v Scott Shawcroft>So that's, but, but in, in this case, most people don't need to compile that cause it's

01:15:33.780 --> 01:15:34.460
<v Scott Shawcroft>already been compiled.

01:15:34.460 --> 01:15:35.840
<v Scott Shawcroft>So that's why it's in the releases folder.

01:15:36.000 --> 01:15:41.940
<v Scott Shawcroft>So if you write over it in Arduino, so you're in the Arduino IDE, you load up a new sketch,

01:15:42.360 --> 01:15:43.940
<v Scott Shawcroft>you mess up your circuit Python thing.

01:15:44.020 --> 01:15:47.280
<v Scott Shawcroft>You can then go and just load in this new file into flash.

01:15:47.620 --> 01:15:47.980
<v Scott Shawcroft>Yeah.

01:15:47.980 --> 01:15:48.060
<v Scott Shawcroft>Yeah.

01:15:48.380 --> 01:15:50.580
<v Scott Shawcroft>And then boots up, ready to go.

01:15:50.780 --> 01:15:51.100
<v Scott Shawcroft>Mm-hmm.

01:15:51.340 --> 01:15:51.680
<v Scott Shawcroft>Boom.

01:15:52.700 --> 01:15:52.920
<v Scott Shawcroft>Yep.

01:15:52.920 --> 01:15:54.520
<v Scott Shawcroft>I've got some circuit Python again.

01:15:54.880 --> 01:15:55.200
<v Scott Shawcroft>Yes.

01:15:56.500 --> 01:16:00.820
<v Scott Shawcroft>Uh, so what else are you using debugging for then?

01:16:00.820 --> 01:16:03.800
<v Scott Shawcroft>I guess I was, I was going to ask about that stuff, but it sounds like that's kind of,

01:16:04.040 --> 01:16:04.940
<v Scott Shawcroft>it's taken care of.

01:16:04.940 --> 01:16:12.700
<v Scott Shawcroft>So day to day, what are you debugging low level that, so is it like when you're testing out

01:16:12.700 --> 01:16:14.240
<v Scott Shawcroft>new drivers?

01:16:14.800 --> 01:16:15.100
<v Chris Gammell>Right.

01:16:15.160 --> 01:16:19.540
<v Chris Gammell>So if I, so there's a lot of different levels, I guess I would say what, what I was talking

01:16:19.540 --> 01:16:23.240
<v Chris Gammell>about previously is when I'm working on core circuit Python code.

01:16:23.240 --> 01:16:30.240
<v Chris Gammell>But a lot of the contributions that we have to our kind of project and the things that

01:16:30.240 --> 01:16:33.840
<v Chris Gammell>we can do day to day are things that we can just run with circuit Python.

01:16:33.840 --> 01:16:37.660
<v Chris Gammell>Um, we don't need to get the J link out.

01:16:38.060 --> 01:16:38.500
<v Chris Gammell>Yeah.

01:16:38.660 --> 01:16:43.880
<v Chris Gammell>Like if, if we're creating a new device driver, we can just use the I squared C stuff and write

01:16:43.880 --> 01:16:46.400
<v Chris Gammell>Python code and don't have to worry about it.

01:16:46.400 --> 01:16:47.080
<v Chris Gammell>Mm.

01:16:47.620 --> 01:16:49.420
<v Chris Gammell>Like we don't have to worry about the J link at all.

01:16:49.800 --> 01:16:50.420
<v Scott Shawcroft>That's great.

01:16:50.700 --> 01:16:50.880
<v Scott Shawcroft>Yeah.

01:16:51.000 --> 01:16:51.280
<v Scott Shawcroft>Right.

01:16:51.320 --> 01:16:54.460
<v Scott Shawcroft>So you make like these, these structural things that you're just done with.

01:16:54.460 --> 01:16:54.800
<v Scott Shawcroft>Right.

01:16:54.860 --> 01:16:57.620
<v Scott Shawcroft>And, and then you, you build the tools first and then you use the tools.

01:16:57.980 --> 01:16:58.280
<v Chris Gammell>Right.

01:16:58.400 --> 01:16:58.640
<v Chris Gammell>Right.

01:16:58.640 --> 01:17:03.300
<v Chris Gammell>So a lot of the work that happens within like this broader circuit Python project is driver

01:17:03.300 --> 01:17:06.200
<v Chris Gammell>work and, and example and guide work.

01:17:06.200 --> 01:17:10.920
<v Chris Gammell>And that all happens without ever needing to even think about compiling circuit Python yourself

01:17:10.920 --> 01:17:11.700
<v Chris Gammell>on your computer.

01:17:11.860 --> 01:17:12.240
<v Chris Gammell>Right.

01:17:12.300 --> 01:17:13.640
<v Chris Gammell>Or loading it with a J link.

01:17:13.860 --> 01:17:14.120
<v Scott Shawcroft>Right.

01:17:14.120 --> 01:17:18.140
<v Scott Shawcroft>Until you get a new, a new processor type or a new board that has different pinouts and

01:17:18.140 --> 01:17:18.620
<v Scott Shawcroft>stuff like that.

01:17:18.620 --> 01:17:18.760
<v Scott Shawcroft>Right.

01:17:19.380 --> 01:17:19.720
<v Chris Gammell>Yeah.

01:17:19.860 --> 01:17:23.820
<v Chris Gammell>I, you could, if you had new pinouts, you could probably get away with not using a J link

01:17:23.820 --> 01:17:25.580
<v Chris Gammell>as long as you can load it somehow.

01:17:25.800 --> 01:17:26.200
<v Chris Gammell>Okay.

01:17:26.360 --> 01:17:30.560
<v Chris Gammell>Um, because it's usually not the end of the world if your pinout map is wrong.

01:17:31.480 --> 01:17:32.920
<v Chris Gammell>Um, really?

01:17:33.720 --> 01:17:34.120
<v Chris Gammell>Yeah.

01:17:34.840 --> 01:17:37.140
<v Chris Gammell>Circuit Python has two ways to map pins.

01:17:37.260 --> 01:17:38.880
<v Chris Gammell>One is with the name of that.

01:17:38.920 --> 01:17:44.100
<v Chris Gammell>The board knows that's the board module has like a one, but we also have the,

01:17:44.120 --> 01:17:46.520
<v Chris Gammell>the actual names from the microcontroller itself.

01:17:47.240 --> 01:17:49.360
<v Chris Gammell>So even if you get that board mapping wrong.

01:17:49.360 --> 01:17:51.420
<v Scott Shawcroft>Oh, so you could just like make a little map yourself and, and then you just refer to

01:17:51.420 --> 01:17:54.480
<v Scott Shawcroft>the pin 37 is, is the ADC or whatever.

01:17:54.760 --> 01:17:55.000
<v Chris Gammell>Yeah.

01:17:55.000 --> 01:17:58.400
<v Chris Gammell>You can always refer to PA 17 directly if you want.

01:17:58.660 --> 01:18:02.600
<v Scott Shawcroft>Are people starting to take, I mean, so are they take, let's just stick with the SamD21.

01:18:02.720 --> 01:18:06.860
<v Scott Shawcroft>Are people putting a SamD21 on and do a new custom board and then using CircuitPython?

01:18:06.860 --> 01:18:08.960
<v Scott Shawcroft>Have you, have you been seeing examples about that?

01:18:08.960 --> 01:18:09.300
<v Chris Gammell>Yeah.

01:18:09.300 --> 01:18:11.420
<v Chris Gammell>We have a couple people within our community.

01:18:11.680 --> 01:18:14.980
<v Chris Gammell>Um, the ship who, whose name is Radomir.

01:18:15.100 --> 01:18:19.240
<v Chris Gammell>He's, he did the micro game, um, which has been on hackaday.

01:18:19.320 --> 01:18:22.860
<v Chris Gammell>It's kind of Game Boy sized and it's a SamD21.

01:18:22.860 --> 01:18:28.380
<v Chris Gammell>It's basically a trinket, but on a, uh, on a different form factor with a screen.

01:18:28.980 --> 01:18:31.260
<v Chris Gammell>Um, and that's, that's running CircuitPython.

01:18:31.440 --> 01:18:32.940
<v Chris Gammell>He's actually selling those on Tindy.

01:18:33.080 --> 01:18:33.740
<v Chris Gammell>Oh, cool.

01:18:33.880 --> 01:18:38.860
<v Chris Gammell>Um, I don't know if he has them in stock, but, uh, that's one example.

01:18:39.560 --> 01:18:48.520
<v Chris Gammell>Um, I, there's another person on our discord sedacious, um, who is working on their own

01:18:48.520 --> 01:18:49.800
<v Chris Gammell>M4 board.

01:18:49.960 --> 01:18:51.200
<v Chris Gammell>So using the SamD51.

01:18:51.560 --> 01:18:55.860
<v Chris Gammell>So that's been really nice because they're hammering on the SamD51 at the same time we

01:18:55.860 --> 01:18:56.100
<v Chris Gammell>are.

01:18:56.200 --> 01:18:56.600
<v Scott Shawcroft>Yeah.

01:18:56.680 --> 01:19:00.000
<v Chris Gammell>And they're living on the bleeding edge of what we're doing, which is, which is really

01:19:00.000 --> 01:19:00.360
<v Scott Shawcroft>nice.

01:19:00.820 --> 01:19:01.220
<v Scott Shawcroft>Right.

01:19:01.320 --> 01:19:06.460
<v Scott Shawcroft>I'm just imagining like a, so like imagining a future where there's more and more parts

01:19:06.460 --> 01:19:10.000
<v Scott Shawcroft>supported by the, by, you know, MicroPython, CircuitPython, whatever.

01:19:10.200 --> 01:19:10.360
<v Scott Shawcroft>Yep.

01:19:10.440 --> 01:19:10.660
<v Scott Shawcroft>Right.

01:19:10.660 --> 01:19:13.080
<v Scott Shawcroft>I imagine it'd be really nice to have.

01:19:13.660 --> 01:19:17.180
<v Scott Shawcroft>So I already use like the, the feathers, which is one of the form factors Adafruit cells.

01:19:17.180 --> 01:19:17.460
<v Scott Shawcroft>Right.

01:19:18.020 --> 01:19:24.220
<v Scott Shawcroft>So be on a feather, use something like that, refactor, put the exact processor, take that

01:19:24.220 --> 01:19:28.700
<v Scott Shawcroft>processor, put it on a board that I have, you know, refactor it however I need to drop

01:19:28.700 --> 01:19:33.320
<v Scott Shawcroft>CircuitPython onto it, make sure the code's working that I've already had on the other

01:19:33.320 --> 01:19:33.680
<v Scott Shawcroft>board.

01:19:34.100 --> 01:19:34.500
<v Scott Shawcroft>Yeah.

01:19:34.620 --> 01:19:40.840
<v Scott Shawcroft>And then eventually as I need to then go in and refactor or then if I need to, uh, you

01:19:40.840 --> 01:19:45.140
<v Scott Shawcroft>know, save power or, you know, work on my, uh, you know, the speed of my code or

01:19:45.140 --> 01:19:45.360
<v Scott Shawcroft>whatever.

01:19:45.520 --> 01:19:45.700
<v Scott Shawcroft>Right.

01:19:45.700 --> 01:19:46.640
<v Scott Shawcroft>Then I can do it there.

01:19:46.640 --> 01:19:46.960
<v Chris Gammell>Yeah.

01:19:46.960 --> 01:19:49.340
<v Chris Gammell>You could make some C code for the stuff that's slow.

01:19:49.740 --> 01:19:50.040
<v Scott Shawcroft>Yeah.

01:19:50.420 --> 01:19:50.620
<v Chris Gammell>Right.

01:19:50.620 --> 01:19:50.760
<v Chris Gammell>Yeah.

01:19:50.760 --> 01:19:51.660
<v Chris Gammell>That's totally possible.

01:19:51.660 --> 01:19:59.060
<v Chris Gammell>I actually, I built a board myself of that's used for a toaster oven controller, um, to replace

01:19:59.060 --> 01:20:01.300
<v Chris Gammell>like the control panel of a toaster oven.

01:20:01.680 --> 01:20:02.160
<v Chris Gammell>Nice.

01:20:02.260 --> 01:20:04.660
<v Chris Gammell>To make it a reflow oven, but it's not done yet.

01:20:05.020 --> 01:20:05.180
<v Scott Shawcroft>Yeah.

01:20:05.540 --> 01:20:09.240
<v Scott Shawcroft>I think it, it sounds like, it sounds like one of the stumbling blocks would be like if

01:20:09.240 --> 01:20:14.420
<v Scott Shawcroft>someone evaluated or using, you know, using that method that I just explained, the stumbling

01:20:14.420 --> 01:20:18.740
<v Scott Shawcroft>block would be if you get to the end and you optimize and you optimize and you optimize and

01:20:18.740 --> 01:20:19.540
<v Scott Shawcroft>it's still not enough.

01:20:20.120 --> 01:20:21.700
<v Scott Shawcroft>You, that's way too late, right?

01:20:21.720 --> 01:20:22.980
<v Scott Shawcroft>You've already got this thing on your board.

01:20:23.280 --> 01:20:23.420
<v Scott Shawcroft>Yeah.

01:20:23.500 --> 01:20:28.480
<v Scott Shawcroft>So it's like, it's almost like you should, I mean, it's hard to do that at the beginning,

01:20:28.480 --> 01:20:29.640
<v Scott Shawcroft>but.

01:20:29.640 --> 01:20:30.080
<v Scott Shawcroft>Yeah.

01:20:30.440 --> 01:20:30.800
<v Chris Gammell>Yeah.

01:20:30.800 --> 01:20:35.400
<v Chris Gammell>I would say like, you'd probably find yourself not using the Python slide at all.

01:20:35.500 --> 01:20:36.800
<v Chris Gammell>You'd just end up with a bunch of C.

01:20:37.320 --> 01:20:37.580
<v Scott Shawcroft>Yeah.

01:20:37.780 --> 01:20:38.480
<v Chris Gammell>And that's okay.

01:20:39.380 --> 01:20:39.800
<v Chris Gammell>Oh, sure.

01:20:39.860 --> 01:20:40.020
<v Chris Gammell>Sure.

01:20:40.020 --> 01:20:40.160
<v Scott Shawcroft>Sure.

01:20:40.160 --> 01:20:40.240
<v Scott Shawcroft>Sure.

01:20:40.240 --> 01:20:43.240
<v Scott Shawcroft>I just mean that from a prototyping, like it's really, this is all talking about iteration

01:20:43.240 --> 01:20:44.320
<v Scott Shawcroft>and design as well.

01:20:44.320 --> 01:20:44.600
<v Scott Shawcroft>Right.

01:20:45.000 --> 01:20:45.240
<v Scott Shawcroft>Yeah.

01:20:45.240 --> 01:20:50.660
<v Scott Shawcroft>You know, I, you know, like again, like thinking like top down, it's best to, it's best to start

01:20:50.660 --> 01:20:53.140
<v Scott Shawcroft>with off the shelf modules, like a feather or something.

01:20:53.360 --> 01:20:53.540
<v Scott Shawcroft>Right.

01:20:53.540 --> 01:20:57.560
<v Scott Shawcroft>Um, and just to get the concept working first, because that's usually the hardest thing.

01:20:57.640 --> 01:20:57.840
<v Scott Shawcroft>Yeah.

01:20:57.840 --> 01:21:00.920
<v Scott Shawcroft>And if you're waiting for boards to come back, if you're waiting for all this stuff to work,

01:21:00.920 --> 01:21:05.300
<v Scott Shawcroft>it's like, eh, it's like, you know, like it's like the longer you wait, the longer,

01:21:05.480 --> 01:21:08.920
<v Scott Shawcroft>the longer you stretch out your decision time of if it, if it's a viable idea.

01:21:08.920 --> 01:21:09.160
<v Scott Shawcroft>Right.

01:21:09.440 --> 01:21:09.640
<v Scott Shawcroft>Right.

01:21:09.800 --> 01:21:10.200
<v Scott Shawcroft>Right.

01:21:10.860 --> 01:21:11.120
<v Chris Gammell>Yeah.

01:21:11.220 --> 01:21:17.160
<v Chris Gammell>Well, it's, um, it's a great way to find the things that you do need to optimize to get

01:21:17.160 --> 01:21:17.480
<v Chris Gammell>going.

01:21:17.480 --> 01:21:22.160
<v Chris Gammell>And there's lots of avenues that you can take to do that optimization because it's open source

01:21:22.160 --> 01:21:23.160
<v Chris Gammell>and it's all C code.

01:21:23.540 --> 01:21:23.760
<v Chris Gammell>Yeah.

01:21:23.980 --> 01:21:28.200
<v Chris Gammell>Um, you need the technical skills to be able to do that, but it's possible.

01:21:28.620 --> 01:21:28.920
<v Scott Shawcroft>Right.

01:21:29.200 --> 01:21:29.520
<v Scott Shawcroft>Right.

01:21:30.100 --> 01:21:30.460
<v Scott Shawcroft>And yeah.

01:21:30.500 --> 01:21:33.160
<v Scott Shawcroft>And you know, I've talked to people in the past too.

01:21:33.180 --> 01:21:36.940
<v Scott Shawcroft>I think, I think that over time, you know, and I've talked to, you know, the embedded

01:21:36.940 --> 01:21:38.560
<v Scott Shawcroft>folks about this as well, embedded FM.

01:21:38.840 --> 01:21:39.040
<v Scott Shawcroft>Yeah.

01:21:39.080 --> 01:21:44.900
<v Scott Shawcroft>Um, and you know, I think more and more people are, you know, the, especially people coming

01:21:44.900 --> 01:21:50.120
<v Scott Shawcroft>up, like they've worked in Arduino stuff before now they've worked in a micro Python

01:21:50.120 --> 01:21:51.080
<v Scott Shawcroft>or even just Python.

01:21:51.220 --> 01:21:51.360
<v Scott Shawcroft>Right.

01:21:51.360 --> 01:21:55.760
<v Scott Shawcroft>And it's like people that need to get down lower into the, into the stack, like, like

01:21:55.760 --> 01:21:56.860
<v Scott Shawcroft>the kind of stuff that you're doing.

01:21:57.080 --> 01:21:57.300
<v Scott Shawcroft>Right.

01:21:57.520 --> 01:21:59.080
<v Scott Shawcroft>I feel like there's more and more need for that.

01:21:59.080 --> 01:22:03.260
<v Scott Shawcroft>And if people are listening and no more resources about it, I'd be personally interested.

01:22:03.520 --> 01:22:06.480
<v Scott Shawcroft>But I think also like, that's just a thing that is needed.

01:22:06.480 --> 01:22:06.740
<v Scott Shawcroft>Right.

01:22:06.760 --> 01:22:09.700
<v Scott Shawcroft>There's, there's no shortage of need for embedded engineers.

01:22:09.700 --> 01:22:10.460
<v Scott Shawcroft>Yeah.

01:22:10.460 --> 01:22:11.200
<v Scott Shawcroft>And, uh, yeah.

01:22:11.880 --> 01:22:12.300
<v Scott Shawcroft>So yeah.

01:22:12.300 --> 01:22:15.960
<v Chris Gammell>And I think circuit Python is a great way to get started because there are those layers

01:22:15.960 --> 01:22:18.780
<v Chris Gammell>that you can peel back as you find that you need to.

01:22:19.260 --> 01:22:19.360
<v Chris Gammell>Right.

01:22:19.480 --> 01:22:23.220
<v Scott Shawcroft>And you're, and I think that it'll get more people comfortable with the actual hands on

01:22:23.220 --> 01:22:28.020
<v Scott Shawcroft>hardware, which is in my experience, like the embedded stuff's fine.

01:22:28.020 --> 01:22:30.780
<v Scott Shawcroft>But like usually the embed, even a lot of the embedded folks are like, I don't want to

01:22:30.780 --> 01:22:33.680
<v Scott Shawcroft>mess with the hardware, but it's, you kind of need that crossover piece, you know?

01:22:33.940 --> 01:22:34.240
<v Scott Shawcroft>Yeah.

01:22:34.620 --> 01:22:35.640
<v Scott Shawcroft>Hardware is super fun.

01:22:35.640 --> 01:22:40.060
<v Chris Gammell>Um, not always, not always, well, I live in the digital realm.

01:22:40.160 --> 01:22:42.780
<v Chris Gammell>I'm, I'm scared of the analog side, but, uh, that's fine.

01:22:42.900 --> 01:22:44.880
<v Chris Gammell>Uh, in the low speed stuff, but yeah.

01:22:44.960 --> 01:22:45.240
<v Scott Shawcroft>Okay.

01:22:45.460 --> 01:22:49.660
<v Chris Gammell>Um, it's, we all have different demons, I suppose.

01:22:49.660 --> 01:22:49.880
<v Chris Gammell>Yeah.

01:22:50.060 --> 01:22:50.300
<v Chris Gammell>Yeah.

01:22:50.300 --> 01:22:51.340
<v Scott Shawcroft>I'll get there eventually.

01:22:51.820 --> 01:22:52.140
<v Scott Shawcroft>Yeah.

01:22:52.280 --> 01:22:56.420
<v Scott Shawcroft>No, I think, well, I think like you said, like writing, writing drivers is a, I mean,

01:22:56.420 --> 01:22:58.900
<v Scott Shawcroft>you're going to, you're going to be hands on with the hardware because you need to make

01:22:58.900 --> 01:23:00.000
<v Scott Shawcroft>sure the hardware is actually working.

01:23:00.400 --> 01:23:00.600
<v Scott Shawcroft>Yeah.

01:23:00.640 --> 01:23:03.540
<v Scott Shawcroft>Um, and like you said, that's a big, that's a big piece of the work.

01:23:03.540 --> 01:23:07.960
<v Scott Shawcroft>When I think of embedded work that's out there, it is a lot of that, you know, I got a new

01:23:07.960 --> 01:23:10.280
<v Scott Shawcroft>sensor, I got a new ADC or I got a new whatever.

01:23:10.500 --> 01:23:10.720
<v Scott Shawcroft>Right.

01:23:10.780 --> 01:23:11.840
<v Scott Shawcroft>I got to talk to it somehow.

01:23:12.220 --> 01:23:12.400
<v Scott Shawcroft>Yep.

01:23:12.780 --> 01:23:13.720
<v Scott Shawcroft>That's what that work is.

01:23:13.860 --> 01:23:14.100
<v Scott Shawcroft>Yeah.

01:23:14.100 --> 01:23:16.040
<v Chris Gammell>And it's super fast to do that in circuit Python.

01:23:16.380 --> 01:23:16.960
<v Scott Shawcroft>That's great.

01:23:17.120 --> 01:23:20.880
<v Chris Gammell>Um, and we have people like hinting at our community.

01:23:20.880 --> 01:23:26.200
<v Chris Gammell>Like we've asked people to just like, we had a forum user yesterday who said like this temperature

01:23:26.200 --> 01:23:28.800
<v Chris Gammell>sensor is getting stuck at a particular value.

01:23:28.800 --> 01:23:32.760
<v Chris Gammell>And I just, I asked somebody else in our community, like, Hey, can you rep reproduce this?

01:23:33.180 --> 01:23:33.500
<v Chris Gammell>Right.

01:23:33.560 --> 01:23:35.940
<v Chris Gammell>So they're not even creating a driver from scratch.

01:23:35.940 --> 01:23:39.420
<v Chris Gammell>All they're doing is like trying to validate this bug that we found.

01:23:39.660 --> 01:23:40.260
<v Scott Shawcroft>Oh, wow.

01:23:40.320 --> 01:23:41.100
<v Chris Gammell>And that's super helpful.

01:23:41.100 --> 01:23:44.200
<v Chris Gammell>Cause now I, now I know it's a real bug that I've got to fix.

01:23:44.360 --> 01:23:44.720
<v Chris Gammell>Yep.

01:23:45.000 --> 01:23:49.960
<v Chris Gammell>And, uh, I haven't done it yet, but I didn't have to take it.

01:23:49.960 --> 01:23:50.520
<v Chris Gammell>It was just yesterday.

01:23:50.640 --> 01:23:50.920
<v Chris Gammell>Come on.

01:23:51.040 --> 01:23:51.320
<v Chris Gammell>Yeah.

01:23:51.320 --> 01:23:56.480
<v Chris Gammell>I didn't, I didn't, uh, have to take the time to be able to tell the difference between whether

01:23:56.480 --> 01:23:58.440
<v Chris Gammell>it was a bug or whether it was just a setup issue.

01:23:58.780 --> 01:24:01.840
<v Chris Gammell>Like somebody else did that for me, which is really valuable.

01:24:02.160 --> 01:24:02.480
<v Scott Shawcroft>Right.

01:24:02.560 --> 01:24:07.820
<v Scott Shawcroft>And I think that especially in the, uh, in, I mean like Adafruit serves a lot of, uh, beginners

01:24:07.820 --> 01:24:08.340
<v Scott Shawcroft>as well.

01:24:08.560 --> 01:24:12.760
<v Scott Shawcroft>And yeah, it's, it, it's, it stinks when you just chase ghosts.

01:24:12.760 --> 01:24:13.000
<v Scott Shawcroft>Right.

01:24:13.000 --> 01:24:14.040
<v Scott Shawcroft>I mean like it happens, right.

01:24:14.040 --> 01:24:14.400
<v Scott Shawcroft>Of course.

01:24:14.400 --> 01:24:18.800
<v Scott Shawcroft>But like, it was like, Oh, well, yeah, you, you turns out you, you didn't plug in the battery

01:24:18.800 --> 01:24:19.220
<v Scott Shawcroft>after all.

01:24:19.220 --> 01:24:19.400
<v Scott Shawcroft>Right.

01:24:19.620 --> 01:24:21.300
<v Scott Shawcroft>So, yeah.

01:24:21.540 --> 01:24:21.740
<v Chris Gammell>Yeah.

01:24:21.740 --> 01:24:25.580
<v Chris Gammell>And we're, we're trying to build out and really encourage people to help other people

01:24:25.580 --> 01:24:30.100
<v Chris Gammell>to figure out they haven't plugged in the battery rather than having us, us having to do it directly.

01:24:30.200 --> 01:24:30.360
<v Scott Shawcroft>Yep.

01:24:30.560 --> 01:24:30.780
<v Scott Shawcroft>Right.

01:24:30.900 --> 01:24:31.240
<v Scott Shawcroft>So yeah.

01:24:31.240 --> 01:24:32.340
<v Scott Shawcroft>Tell us about the community stuff.

01:24:32.400 --> 01:24:37.100
<v Scott Shawcroft>I mean, what is, what is, what is this mystical forum slash chat that you talk of?

01:24:37.100 --> 01:24:37.580
<v Chris Gammell>Yeah.

01:24:37.800 --> 01:24:42.920
<v Chris Gammell>So, um, it's been really interesting for me personally, because when I first started working

01:24:42.920 --> 01:24:47.140
<v Chris Gammell>with Adafruit, it was simply port this to port microbytes on those AMD 21.

01:24:47.140 --> 01:24:53.060
<v Chris Gammell>And it wasn't so much about thinking of circuit Python as a larger project.

01:24:53.280 --> 01:24:55.340
<v Chris Gammell>At some point we decided to rename it.

01:24:55.460 --> 01:24:57.380
<v Chris Gammell>That was like January of last year.

01:24:57.580 --> 01:25:04.600
<v Chris Gammell>It was like, okay, you know, I think we're going to take, like, take it in our direction

01:25:04.600 --> 01:25:08.960
<v Chris Gammell>and not try to, to merge explicitly back with micro Python.

01:25:09.140 --> 01:25:10.620
<v Chris Gammell>So we'll, we'll call it something else.

01:25:10.620 --> 01:25:11.840
<v Chris Gammell>So people don't get it confused.

01:25:12.580 --> 01:25:16.200
<v Chris Gammell>And, uh, at that point it was like, okay, well, well, how do we define it?

01:25:16.200 --> 01:25:20.260
<v Chris Gammell>And we talked about this before of, of being really easy for beginners and prioritizing

01:25:20.260 --> 01:25:22.560
<v Chris Gammell>that even at the expense of other things.

01:25:23.260 --> 01:25:27.860
<v Chris Gammell>Um, and then we also said like, you know, we want to do the same thing.

01:25:27.980 --> 01:25:31.260
<v Chris Gammell>We want to be just as deliberate with the community that we build around it.

01:25:31.760 --> 01:25:39.780
<v Chris Gammell>Um, I had seen what PyCon last year, there was a lightning talk that said, Hey, the Rust

01:25:39.780 --> 01:25:41.980
<v Chris Gammell>community is really, really strong.

01:25:41.980 --> 01:25:49.480
<v Chris Gammell>And out of that, I found these, uh, really great videos from, uh, E Dunham.

01:25:49.620 --> 01:25:54.080
<v Chris Gammell>I think her name is Emily, uh, talking about how to automate your community.

01:25:54.340 --> 01:25:57.180
<v Chris Gammell>And, and she meant kind of two things by that.

01:25:57.260 --> 01:26:03.660
<v Chris Gammell>One is, um, setting expectations for behavior in your community upfront, uh, using a code of

01:26:03.660 --> 01:26:04.100
<v Chris Gammell>conduct.

01:26:04.100 --> 01:26:08.140
<v Chris Gammell>And that's automating in the sense of you already set expectations.

01:26:08.140 --> 01:26:09.980
<v Chris Gammell>You don't need to manually set them later.

01:26:10.200 --> 01:26:12.920
<v Chris Gammell>You may need to enforce them, but you don't need to set them.

01:26:13.620 --> 01:26:19.780
<v Chris Gammell>Um, and then also things like, uh, automating the, some of the menial tasks when it comes

01:26:19.780 --> 01:26:22.620
<v Chris Gammell>to issues and pull requests and things like that.

01:26:22.940 --> 01:26:28.600
<v Chris Gammell>And, and we've done a little bit of that within circuit Python, which is like we have, when

01:26:28.600 --> 01:26:32.580
<v Chris Gammell>somebody proposes a new file change, we'll automatically make sure it's fits within our

01:26:32.580 --> 01:26:33.020
<v Chris Gammell>style.

01:26:33.020 --> 01:26:36.400
<v Chris Gammell>If it's a circuit Python change, we'll make sure it automatically compiles.

01:26:37.040 --> 01:26:41.240
<v Chris Gammell>Um, just those, those basics that sometimes people miss.

01:26:41.680 --> 01:26:44.960
<v Chris Gammell>Um, so the rest can be.

01:26:44.960 --> 01:26:48.780
<v Scott Shawcroft>It would suck a bunch of time if, if, if you accepted it and then you're like, Oh, I got

01:26:48.780 --> 01:26:49.200
<v Scott Shawcroft>to read it.

01:26:49.200 --> 01:26:50.100
<v Scott Shawcroft>I'll just do it myself.

01:26:50.100 --> 01:26:50.420
<v Scott Shawcroft>Right.

01:26:50.860 --> 01:26:51.300
<v Chris Gammell>Yeah.

01:26:51.460 --> 01:26:51.760
<v Chris Gammell>Yeah.

01:26:51.760 --> 01:26:57.080
<v Chris Gammell>And, and having that mentality as a maintainer, like I was the first person to maintain

01:26:57.080 --> 01:27:05.600
<v Chris Gammell>Adafruit circuit Python and really having that, that mentality of people coming in to the project

01:27:05.600 --> 01:27:06.800
<v Chris Gammell>are assets.

01:27:07.100 --> 01:27:08.440
<v Chris Gammell>They're not burdens.

01:27:08.800 --> 01:27:13.860
<v Chris Gammell>It may sound simple, but some people see those other people coming in as burdens and, and

01:27:13.860 --> 01:27:16.280
<v Chris Gammell>want to avoid interacting with those people.

01:27:16.960 --> 01:27:20.240
<v Chris Gammell>And, um, while it does take.

01:27:20.240 --> 01:27:20.320
<v Chris Gammell>Right.

01:27:20.320 --> 01:27:23.520
<v Scott Shawcroft>You're like, you're like assuming success versus assuming failure.

01:27:23.520 --> 01:27:23.880
<v Scott Shawcroft>Right.

01:27:25.040 --> 01:27:25.480
<v Scott Shawcroft>Right.

01:27:25.600 --> 01:27:25.920
<v Scott Shawcroft>Right.

01:27:25.920 --> 01:27:26.200
<v Scott Shawcroft>Right.

01:27:26.200 --> 01:27:27.540
<v Scott Shawcroft>But you set a standard for that success.

01:27:27.660 --> 01:27:33.680
<v Scott Shawcroft>You're like, well, I'm sure they'll be successful because I said it has to, tabs, not spaces or

01:27:33.680 --> 01:27:34.000
<v Scott Shawcroft>whatever.

01:27:34.640 --> 01:27:34.860
<v Scott Shawcroft>Right.

01:27:35.100 --> 01:27:37.560
<v Chris Gammell>And it's, yeah, that's a whole nother thing.

01:27:37.640 --> 01:27:38.480
<v Chris Gammell>Tabs versus spaces.

01:27:38.800 --> 01:27:41.300
<v Chris Gammell>Like automating style is really valuable too.

01:27:42.180 --> 01:27:43.220
<v Chris Gammell>Um, because if you.

01:27:43.260 --> 01:27:45.520
<v Scott Shawcroft>Did you see, did you see what Bill Gates said?

01:27:45.520 --> 01:27:46.400
<v Scott Shawcroft>I don't know if you saw.

01:27:46.860 --> 01:27:47.620
<v Scott Shawcroft>Not recently.

01:27:47.820 --> 01:27:49.480
<v Scott Shawcroft>He had an AMA recently and he answered.

01:27:49.840 --> 01:27:50.240
<v Scott Shawcroft>I'll link it.

01:27:50.240 --> 01:27:51.020
<v Scott Shawcroft>I'll link it in.

01:27:51.200 --> 01:27:52.360
<v Scott Shawcroft>People can find out.

01:27:52.960 --> 01:27:53.740
<v Scott Shawcroft>Tabs versus spaces.

01:27:54.000 --> 01:27:54.700
<v Scott Shawcroft>Bill Gates weighs in.

01:27:54.940 --> 01:27:59.040
<v Chris Gammell>I, what I would say is it doesn't matter either way, as long as you have it automatically,

01:27:59.040 --> 01:28:03.800
<v Chris Gammell>uh, found out and, and reported for all code changes.

01:28:03.800 --> 01:28:06.140
<v Scott Shawcroft>What I'm really wondering is when's the last time Bill Gates wrote code?

01:28:06.280 --> 01:28:06.560
<v Scott Shawcroft>That's all.

01:28:06.880 --> 01:28:08.200
<v Scott Shawcroft>Why are you even asking him that question?

01:28:08.880 --> 01:28:09.280
<v Chris Gammell>Yeah.

01:28:09.280 --> 01:28:09.460
<v Chris Gammell>Yeah.

01:28:10.060 --> 01:28:13.560
<v Chris Gammell>Because it's a classic debate that.

01:28:13.560 --> 01:28:13.880
<v Chris Gammell>Of course.

01:28:13.880 --> 01:28:15.680
<v Chris Gammell>Silicon Valley also brought up.

01:28:15.900 --> 01:28:16.080
<v Chris Gammell>Yes.

01:28:16.100 --> 01:28:16.320
<v Chris Gammell>Right.

01:28:16.800 --> 01:28:24.960
<v Chris Gammell>Um, but yeah, I, I think the more important bit as a project maintainer is, is, um, automate

01:28:24.960 --> 01:28:30.080
<v Chris Gammell>the, the answer to that question so that you, when you're doing your review, when you're

01:28:30.080 --> 01:28:33.900
<v Chris Gammell>spending your time, you're not spending your time telling somebody to switch their tabs

01:28:33.900 --> 01:28:35.080
<v Chris Gammell>to spaces or vice versa.

01:28:35.340 --> 01:28:35.680
<v Chris Gammell>Yep.

01:28:36.040 --> 01:28:41.720
<v Chris Gammell>Um, because that is like one of the paper cuts that will kill you when working with a community

01:28:41.720 --> 01:28:44.360
<v Chris Gammell>is death by a thousand paper cuts is right.

01:28:44.360 --> 01:28:47.640
<v Chris Gammell>You want to remove those, those friction things as much as you can.

01:28:48.880 --> 01:28:55.060
<v Chris Gammell>Um, and the people that are coming into your community can also be really helpful, um, to

01:28:55.060 --> 01:28:56.140
<v Chris Gammell>remove those things as well.

01:28:56.320 --> 01:29:01.460
<v Chris Gammell>Uh, the example of testing the device driver to make sure it was actually broken is a great

01:29:01.460 --> 01:29:02.180
<v Chris Gammell>example of that.

01:29:02.180 --> 01:29:04.560
<v Chris Gammell>Like that's one small thing I didn't have to do.

01:29:04.560 --> 01:29:07.060
<v Chris Gammell>Um, so that's great.

01:29:07.180 --> 01:29:11.280
<v Chris Gammell>The way that we organize our community, which is kind of getting in the, into the tools side

01:29:11.280 --> 01:29:15.560
<v Chris Gammell>of community building is, uh, we do all of our GitHub.

01:29:15.560 --> 01:29:20.640
<v Chris Gammell>So we have the Adafruit support forums and that's existed for a long time.

01:29:20.640 --> 01:29:26.040
<v Chris Gammell>And that's the place that people can go to get like official support from Adafruit, official

01:29:26.040 --> 01:29:27.040
<v Chris Gammell>technical support.

01:29:27.540 --> 01:29:31.600
<v Chris Gammell>And then, uh, we have live streams that happen every week.

01:29:31.600 --> 01:29:35.140
<v Chris Gammell>We have ask an engineer and we have show and tell, which is how I got the job.

01:29:35.720 --> 01:29:37.920
<v Chris Gammell>Um, and Wednesday nights, if people don't know.

01:29:38.000 --> 01:29:42.060
<v Chris Gammell>Wednesday nights, four 30 Pacific, seven 30 Eastern.

01:29:42.060 --> 01:29:42.860
<v Chris Gammell>Please.

01:29:43.480 --> 01:29:43.920
<v Chris Gammell>Right.

01:29:43.920 --> 01:29:45.000
<v Chris Gammell>Hey, I'm in Seattle.

01:29:45.140 --> 01:29:45.480
<v Chris Gammell>I got it.

01:29:45.540 --> 01:29:46.300
<v Chris Gammell>I got to do it that way.

01:29:46.940 --> 01:29:53.580
<v Chris Gammell>Um, and what was happening is that we were having people, uh, chat in the chat channel

01:29:53.580 --> 01:29:56.240
<v Chris Gammell>with the live streams recurring week to week.

01:29:56.420 --> 01:30:00.060
<v Chris Gammell>And at some point they said, Hey, we should have a discord server.

01:30:00.620 --> 01:30:07.380
<v Chris Gammell>Um, discord is kind of like Slack, kind of like hip chat, kind of like Gitter, uh, but it

01:30:07.380 --> 01:30:09.120
<v Chris Gammell>grew up out of the live streaming community.

01:30:09.120 --> 01:30:11.660
<v Chris Gammell>And I think that's one of the reasons that it grew.

01:30:11.660 --> 01:30:13.940
<v Chris Gammell>It was the thing that people asked for.

01:30:14.280 --> 01:30:14.680
<v Chris Gammell>Right.

01:30:14.780 --> 01:30:18.820
<v Scott Shawcroft>And it also has a voice function like the program you and I are using right now called

01:30:18.820 --> 01:30:19.140
<v Scott Shawcroft>mumble.

01:30:19.400 --> 01:30:19.620
<v Scott Shawcroft>Yeah.

01:30:19.780 --> 01:30:20.220
<v Scott Shawcroft>Yeah.

01:30:20.260 --> 01:30:20.380
<v Scott Shawcroft>Yeah.

01:30:20.900 --> 01:30:21.100
<v Chris Gammell>Yeah.

01:30:21.180 --> 01:30:23.420
<v Chris Gammell>So, uh, discord's a free application.

01:30:23.420 --> 01:30:24.540
<v Chris Gammell>You can get it on your phone.

01:30:24.820 --> 01:30:26.800
<v Chris Gammell>Um, you can get it on your computer.

01:30:26.800 --> 01:30:30.800
<v Chris Gammell>Uh, there's, uh, there's invite link that you need to join the server.

01:30:30.980 --> 01:30:31.840
<v Chris Gammell>We have one.

01:30:31.900 --> 01:30:33.760
<v Chris Gammell>That's just a, we have a short link for it.

01:30:33.760 --> 01:30:37.480
<v Chris Gammell>It's 80 a F R U dot it slash discord.

01:30:38.100 --> 01:30:42.560
<v Chris Gammell>Um, and that will jump you into our discord server, quote unquote.

01:30:42.560 --> 01:30:47.500
<v Chris Gammell>Um, which is kind of our space where we can have multiple channels.

01:30:47.500 --> 01:30:50.940
<v Chris Gammell>We can set a code of conduct and the moderators can moderate.

01:30:51.680 --> 01:30:53.360
<v Chris Gammell>Um, which I really like.

01:30:53.440 --> 01:30:58.140
<v Chris Gammell>We, I had experimented with a Gitter a little bit, which has really nice GitHub integration,

01:30:58.140 --> 01:31:01.180
<v Chris Gammell>but it's very vague as to what those boundaries are.

01:31:01.180 --> 01:31:06.580
<v Chris Gammell>Um, and so discord's really nice, uh, as a tool for that.

01:31:06.920 --> 01:31:12.600
<v Chris Gammell>So what that brought to our community and particularly the circuit Python community is a way that people

01:31:12.600 --> 01:31:18.580
<v Chris Gammell>can chat all the time, um, and get really quick iterative feedback when debugging.

01:31:19.240 --> 01:31:22.040
<v Chris Gammell>Um, I was on there a couple weeks ago.

01:31:22.160 --> 01:31:22.340
<v Scott Shawcroft>Yeah.

01:31:22.340 --> 01:31:23.420
<v Scott Shawcroft>I was asking questions.

01:31:23.620 --> 01:31:24.000
<v Chris Gammell>Yep.

01:31:24.280 --> 01:31:25.180
<v Chris Gammell>And Scott was in there.

01:31:25.280 --> 01:31:25.480
<v Chris Gammell>Yeah.

01:31:26.140 --> 01:31:26.620
<v Chris Gammell>Yeah.

01:31:27.500 --> 01:31:30.880
<v Chris Gammell>It's a balance between paying attention to it and not paying attention to it.

01:31:30.880 --> 01:31:31.500
<v Scott Shawcroft>Uh, yeah.

01:31:31.520 --> 01:31:31.760
<v Scott Shawcroft>Right.

01:31:31.800 --> 01:31:34.780
<v Scott Shawcroft>You got to lock, lock down sometimes and just do the, do the code.

01:31:34.840 --> 01:31:35.000
<v Scott Shawcroft>Right.

01:31:35.320 --> 01:31:36.100
<v Chris Gammell>Yeah, exactly.

01:31:36.280 --> 01:31:36.640
<v Chris Gammell>Yes.

01:31:36.740 --> 01:31:43.480
<v Chris Gammell>But, um, because I've had this mentality and, and the people that we've started working with

01:31:43.480 --> 01:31:49.380
<v Chris Gammell>have this mentality of like, above all else, helping people and teaching people is, is valuable

01:31:49.380 --> 01:31:50.660
<v Chris Gammell>and it's time well spent.

01:31:51.080 --> 01:31:56.400
<v Chris Gammell>Um, that means that we have a lot of people that sit in discord along with me and can answer

01:31:56.400 --> 01:31:58.520
<v Chris Gammell>questions when I am heads down in code.

01:31:58.520 --> 01:32:03.480
<v Chris Gammell>Um, and that is, is immensely, immensely valuable.

01:32:03.480 --> 01:32:07.580
<v Chris Gammell>And that's also the way that we find people that we want to start paying to do work.

01:32:08.160 --> 01:32:14.520
<v Chris Gammell>Um, which we now have, uh, two new folks since I came on.

01:32:14.560 --> 01:32:19.560
<v Chris Gammell>So Tony was doing some work and then, uh, Dan Halbert is full time as well.

01:32:19.560 --> 01:32:27.320
<v Chris Gammell>Um, and Katni remember is kind of all hands on deck doing stuff as well now for Adafruit

01:32:27.320 --> 01:32:28.240
<v Chris Gammell>with CircuitPython.

01:32:28.900 --> 01:32:29.560
<v Chris Gammell>That's cool.

01:32:30.000 --> 01:32:32.300
<v Chris Gammell>So on the, on the team side, we're growing a lot.

01:32:32.340 --> 01:32:34.220
<v Chris Gammell>And then we have like a dozen people.

01:32:34.400 --> 01:32:39.860
<v Chris Gammell>We have a weekly voice meeting that happens on discord and you can get the recordings of

01:32:39.860 --> 01:32:41.520
<v Chris Gammell>the previous ones through our YouTube channel.

01:32:41.520 --> 01:32:46.220
<v Chris Gammell>Um, we regularly have a dozen people that sit in on those.

01:32:46.420 --> 01:32:52.300
<v Chris Gammell>Uh, and that ranges from people who are, you know, making projects with CircuitPython and

01:32:52.300 --> 01:32:56.660
<v Chris Gammell>just letting us know, like things work, things didn't work, what worked well, what, what didn't

01:32:56.660 --> 01:33:03.380
<v Chris Gammell>work well to discussion that Dan and I will have about the DMA and at Mel start and all

01:33:03.380 --> 01:33:03.800
<v Chris Gammell>of that.

01:33:04.160 --> 01:33:04.280
<v Chris Gammell>Yeah.

01:33:04.280 --> 01:33:08.900
<v Chris Gammell>Um, but it's one place that anybody can go if they're interested.

01:33:09.260 --> 01:33:10.960
<v Chris Gammell>So everybody's welcome to join that.

01:33:11.620 --> 01:33:12.160
<v Chris Gammell>That's great.

01:33:12.240 --> 01:33:12.340
<v Chris Gammell>Yeah.

01:33:12.360 --> 01:33:13.620
<v Chris Gammell>We'll have links to all that stuff too.

01:33:13.740 --> 01:33:14.160
<v Scott Shawcroft>That's great.

01:33:14.420 --> 01:33:14.620
<v Chris Gammell>Yeah.

01:33:14.620 --> 01:33:17.700
<v Chris Gammell>That's Mondays at 11 Pacific 2 PM Eastern.

01:33:18.560 --> 01:33:18.920
<v Chris Gammell>Yeah.

01:33:18.980 --> 01:33:19.180
<v Chris Gammell>It's nice.

01:33:19.260 --> 01:33:21.840
<v Scott Shawcroft>You can just kind of listen in if you want to, you can put on headphones and.

01:33:21.920 --> 01:33:22.100
<v Scott Shawcroft>Yep.

01:33:22.480 --> 01:33:22.640
<v Scott Shawcroft>Yeah.

01:33:22.640 --> 01:33:23.560
<v Scott Shawcroft>Just let us know.

01:33:25.220 --> 01:33:27.680
<v Chris Gammell>Um, yeah.

01:33:27.760 --> 01:33:29.080
<v Chris Gammell>And then, sorry, go ahead.

01:33:29.360 --> 01:33:29.760
<v Chris Gammell>No, no, please.

01:33:29.820 --> 01:33:30.640
<v Chris Gammell>I've been talking a lot.

01:33:30.640 --> 01:33:36.240
<v Chris Gammell>I was going to say the last thing is, um, we do all of our, or a lot of our project

01:33:36.240 --> 01:33:37.480
<v Chris Gammell>management all through GitHub.

01:33:37.780 --> 01:33:43.160
<v Chris Gammell>So we have lots of issues and we have issues particularly marked that are good first issues.

01:33:43.480 --> 01:33:48.480
<v Chris Gammell>So if you want to get into the, the core work side or the driver work side, there's,

01:33:48.620 --> 01:33:50.560
<v Chris Gammell>there's good first issues that are marked for that.

01:33:51.180 --> 01:33:56.400
<v Chris Gammell>Um, and people are always welcome to reach out to me or any of the other folks to get help

01:33:56.400 --> 01:33:57.220
<v Chris Gammell>with those as well.

01:33:57.700 --> 01:33:57.880
<v Scott Shawcroft>Hmm.

01:33:58.160 --> 01:33:59.780
<v Scott Shawcroft>What, what, what, what's an example of one of those?

01:33:59.780 --> 01:34:03.820
<v Scott Shawcroft>So it's like kind of like small things that could be chased down by someone that's new

01:34:03.820 --> 01:34:04.560
<v Scott Shawcroft>kind of, that's the idea.

01:34:05.040 --> 01:34:05.200
<v Chris Gammell>Yeah.

01:34:05.400 --> 01:34:05.640
<v Chris Gammell>Yeah.

01:34:05.820 --> 01:34:07.880
<v Chris Gammell>Um, drivers are a great way to start.

01:34:08.300 --> 01:34:14.860
<v Chris Gammell>Um, so say like there's a new temperature sensor or there's a, those Nokia phone displays

01:34:14.860 --> 01:34:15.900
<v Chris Gammell>that are kind of prolific.

01:34:16.040 --> 01:34:16.540
<v Chris Gammell>Oh yeah.

01:34:16.540 --> 01:34:20.320
<v Chris Gammell>There's currently an issue out that says like, we need a driver for this.

01:34:21.060 --> 01:34:27.640
<v Chris Gammell>Um, I think one thing that is important in a community like ours is to just ask people

01:34:27.640 --> 01:34:28.320
<v Chris Gammell>to do stuff.

01:34:28.320 --> 01:34:31.820
<v Chris Gammell>Um, and if they say they can do it, believe that they can do it.

01:34:32.260 --> 01:34:32.580
<v Scott Shawcroft>Yeah.

01:34:32.700 --> 01:34:36.720
<v Chris Gammell>And give them the time and the support to be able to be able to do that.

01:34:36.840 --> 01:34:38.960
<v Chris Gammell>So that's worked out really well.

01:34:38.960 --> 01:34:42.840
<v Chris Gammell>Like I, I had some work that I wanted to do with all of our documentation.

01:34:43.140 --> 01:34:44.380
<v Chris Gammell>We've got 70 drivers.

01:34:44.560 --> 01:34:48.980
<v Chris Gammell>They all have their own docs and I wanted to restructure them a bit to be better.

01:34:48.980 --> 01:34:51.240
<v Chris Gammell>And I was starting to do it myself.

01:34:51.240 --> 01:34:56.040
<v Chris Gammell>And then I had, um, uh, another community member, Mike McWethy come to me and say like,

01:34:56.100 --> 01:34:56.860
<v Chris Gammell>he just emailed me.

01:34:56.900 --> 01:34:58.520
<v Chris Gammell>So I'm like, can I just help with this?

01:34:58.800 --> 01:34:59.800
<v Chris Gammell>And I was like, you know what?

01:35:00.060 --> 01:35:00.840
<v Chris Gammell>Oh no.

01:35:00.840 --> 01:35:02.260
<v Chris Gammell>Yes, you can.

01:35:03.120 --> 01:35:05.500
<v Chris Gammell>I'll like, I wrote up a GitHub issue on it.

01:35:05.660 --> 01:35:11.000
<v Chris Gammell>I had a list of like all of the repos, all of the drivers that needed work and him and

01:35:11.000 --> 01:35:14.820
<v Chris Gammell>some other folks just went in and checked all that stuff off and it was amazing.

01:35:15.080 --> 01:35:15.600
<v Chris Gammell>That's great.

01:35:15.600 --> 01:35:21.980
<v Chris Gammell>Um, so just ask people and, and respect that they're giving you their time and, and give

01:35:21.980 --> 01:35:27.260
<v Chris Gammell>them the time they need to get over humps, uh, any hurdles that they hit and it'll pay

01:35:27.260 --> 01:35:27.620
<v Chris Gammell>off.

01:35:28.160 --> 01:35:28.660
<v Scott Shawcroft>Like, right.

01:35:28.980 --> 01:35:32.680
<v Scott Shawcroft>I think this is good too, because this is a little bit, um, you know, I always, people

01:35:32.680 --> 01:35:36.020
<v Scott Shawcroft>who are like in school are usually asking like, oh, well I, you know, I hear I'm supposed

01:35:36.020 --> 01:35:38.960
<v Scott Shawcroft>to like join open source projects or like do this stuff.

01:35:39.120 --> 01:35:45.120
<v Scott Shawcroft>And it's like, this is a little bit more, this isn't quite as like high, uh, you know,

01:35:45.120 --> 01:35:47.420
<v Scott Shawcroft>this is, this is obviously it's a commercial venture, right?

01:35:47.440 --> 01:35:50.300
<v Scott Shawcroft>But it's, it is a, you know, it's a project that helps people, right?

01:35:50.340 --> 01:35:55.040
<v Scott Shawcroft>And it's probably a project that could help you build your next sensor into a project.

01:35:55.040 --> 01:35:57.580
<v Scott Shawcroft>So like there are some, some real benefits here.

01:35:57.620 --> 01:35:58.400
<v Scott Shawcroft>So I think that's good.

01:35:58.400 --> 01:35:58.720
<v Scott Shawcroft>Yeah.

01:35:58.920 --> 01:36:05.620
<v Chris Gammell>And, and on the experience side, we work like I have six years experience with Google and

01:36:05.620 --> 01:36:08.980
<v Chris Gammell>Dan has like two or three decades worth of experience.

01:36:09.260 --> 01:36:11.020
<v Chris Gammell>So, um, yeah.

01:36:11.020 --> 01:36:12.100
<v Scott Shawcroft>So like from a mentoring perspective.

01:36:12.100 --> 01:36:12.340
<v Chris Gammell>Yeah.

01:36:12.340 --> 01:36:17.320
<v Chris Gammell>From a mentoring perspective and understanding the way that professionals work, it's a very

01:36:17.320 --> 01:36:18.480
<v Chris Gammell>easy way to get in there.

01:36:19.000 --> 01:36:19.240
<v Scott Shawcroft>Yeah.

01:36:19.340 --> 01:36:24.080
<v Chris Gammell>Um, you'll work directly with Lamore and as well as Dean.

01:36:24.080 --> 01:36:28.100
<v Chris Gammell>So like, yeah, it's, it's surprisingly easy.

01:36:29.180 --> 01:36:30.320
<v Scott Shawcroft>Hey, yeah.

01:36:30.500 --> 01:36:35.780
<v Scott Shawcroft>I mean, do you, you do the work you, you get, you, you know, like it gets rewarded, right?

01:36:35.840 --> 01:36:36.380
<v Scott Shawcroft>So that's good.

01:36:36.480 --> 01:36:36.640
<v Chris Gammell>Yeah.

01:36:36.640 --> 01:36:41.340
<v Chris Gammell>And, and, but we also understand that people are better at other things like they have

01:36:41.340 --> 01:36:42.380
<v Chris Gammell>different strengths.

01:36:42.860 --> 01:36:49.020
<v Chris Gammell>And, and one thing that I went into 2018, really wanting to think about, and there's a blog

01:36:49.020 --> 01:36:50.820
<v Chris Gammell>post I can, I can link you to that I did.

01:36:50.900 --> 01:36:51.020
<v Chris Gammell>Sure.

01:36:51.380 --> 01:36:51.520
<v Chris Gammell>Yeah.

01:36:51.520 --> 01:36:56.400
<v Chris Gammell>Is that I, when I first started working on CircuitPython, it was very much, this is a

01:36:56.400 --> 01:36:57.560
<v Chris Gammell>software project, right?

01:36:57.560 --> 01:37:02.540
<v Chris Gammell>I'm, I'm just worried about what I'm going to implement tomorrow and, and what hardware

01:37:02.540 --> 01:37:03.320
<v Chris Gammell>is coming down the pike.

01:37:03.400 --> 01:37:08.780
<v Chris Gammell>I'm not really thinking about everything else, but going into 2018 with our community, Discord

01:37:08.780 --> 01:37:11.640
<v Chris Gammell>started in June and that really grew our community a lot.

01:37:12.160 --> 01:37:16.900
<v Chris Gammell>Um, I really wanted to think about CircuitPython much more broadly than the actual thing you

01:37:16.900 --> 01:37:18.060
<v Chris Gammell>install, right?

01:37:18.100 --> 01:37:22.960
<v Chris Gammell>It includes the guides, it includes the API reference docs, it includes the driver support.

01:37:22.960 --> 01:37:27.680
<v Chris Gammell>Um, it includes the Discord community and the code of conduct and all of these things.

01:37:27.760 --> 01:37:32.220
<v Chris Gammell>These are all things that we need to work on to make CircuitPython as a project really

01:37:32.220 --> 01:37:32.720
<v Chris Gammell>successful.

01:37:33.720 --> 01:37:38.700
<v Chris Gammell>Um, and you'll, that's something that a lot of open source projects do really well.

01:37:38.940 --> 01:37:39.220
<v Scott Shawcroft>Yeah.

01:37:39.380 --> 01:37:39.600
<v Scott Shawcroft>Yeah.

01:37:40.460 --> 01:37:45.600
<v Chris Gammell>Um, but it was a re it was like a recognition in my mind of like, oh, I'm doing a lot more

01:37:45.600 --> 01:37:47.260
<v Chris Gammell>than just code coding every day.

01:37:47.800 --> 01:37:48.460
<v Scott Shawcroft>Well, yeah.

01:37:48.500 --> 01:37:51.140
<v Scott Shawcroft>I mean, you're, you're an organizer now as well.

01:37:51.140 --> 01:37:52.940
<v Scott Shawcroft>Uh, what's, what's, what's, what's, what's, what's, what's, what's, what's, what's,

01:37:52.960 --> 01:37:53.960
<v Scott Shawcroft>what's coming up tonight?

01:37:55.000 --> 01:37:55.360
<v Chris Gammell>Yeah.

01:37:55.360 --> 01:37:59.160
<v Chris Gammell>Uh, we have the second Seattle hardware happy hour tonight.

01:37:59.440 --> 01:38:02.720
<v Scott Shawcroft>And Mike, he's been revealed as the creator of the hardware happy hour.

01:38:02.920 --> 01:38:03.520
<v Scott Shawcroft>Number two.

01:38:03.620 --> 01:38:04.660
<v Scott Shawcroft>We are the, yes.

01:38:04.980 --> 01:38:05.300
<v Scott Shawcroft>Oh yeah.

01:38:05.820 --> 01:38:06.100
<v Scott Shawcroft>Yeah.

01:38:06.140 --> 01:38:09.000
<v Scott Shawcroft>So I, uh, I don't think I mentioned that, that you were the one doing it.

01:38:09.080 --> 01:38:09.160
<v Scott Shawcroft>So that's.

01:38:09.160 --> 01:38:09.980
<v Chris Gammell>No, I don't think so.

01:38:10.180 --> 01:38:10.700
<v Chris Gammell>But yeah.

01:38:10.780 --> 01:38:12.580
<v Chris Gammell>You're like, yeah, you didn't.

01:38:12.880 --> 01:38:17.640
<v Chris Gammell>Well, Chris, you deserve a lot of credit because you, you connected a bunch of us in Seattle

01:38:17.640 --> 01:38:18.860
<v Chris Gammell>here via email.

01:38:19.460 --> 01:38:21.340
<v Chris Gammell>And so many hardware people out there now.

01:38:21.420 --> 01:38:22.340
<v Chris Gammell>What the heck happened?

01:38:22.960 --> 01:38:25.240
<v Scott Shawcroft>I don't know.

01:38:25.240 --> 01:38:27.320
<v Scott Shawcroft>I think it's the software people coming over, man.

01:38:27.460 --> 01:38:29.120
<v Scott Shawcroft>You got a lot of software people out there.

01:38:29.200 --> 01:38:29.380
<v Scott Shawcroft>So.

01:38:29.480 --> 01:38:29.620
<v Scott Shawcroft>We do.

01:38:29.740 --> 01:38:30.080
<v Chris Gammell>We do.

01:38:30.180 --> 01:38:31.140
<v Chris Gammell>We have a lot of tech.

01:38:31.640 --> 01:38:31.820
<v Chris Gammell>Yeah.

01:38:32.120 --> 01:38:34.620
<v Chris Gammell>Um, and hardware is super fun.

01:38:34.880 --> 01:38:37.620
<v Chris Gammell>So I, I understand why people would go that direction.

01:38:37.780 --> 01:38:38.040
<v Scott Shawcroft>Right.

01:38:38.080 --> 01:38:38.460
<v Scott Shawcroft>Exactly.

01:38:38.580 --> 01:38:41.660
<v Scott Shawcroft>Don't, don't just layer bike stuff onto a map, you know.

01:38:41.740 --> 01:38:42.060
<v Scott Shawcroft>Oh yeah.

01:38:42.340 --> 01:38:44.740
<v Scott Shawcroft>Build the bike or, you know, instrument the bike.

01:38:44.740 --> 01:38:45.180
<v Scott Shawcroft>Yeah.

01:38:45.180 --> 01:38:45.500
<v Speaker ?>Yeah.

01:38:46.140 --> 01:38:48.980
<v Chris Gammell>I think the Google AIY kit stuff.

01:38:48.980 --> 01:38:49.240
<v Chris Gammell>Oh yeah.

01:38:49.240 --> 01:38:49.580
<v Chris Gammell>That's cool.

01:38:49.660 --> 01:38:49.960
<v Chris Gammell>Seattle.

01:38:50.200 --> 01:38:51.400
<v Chris Gammell>The Seattle office as well.

01:38:51.780 --> 01:38:51.920
<v Chris Gammell>Yeah.

01:38:51.920 --> 01:38:52.980
<v Chris Gammell>I've been trying that actually.

01:38:53.120 --> 01:38:54.100
<v Chris Gammell>It's, it's a cool little kit.

01:38:54.640 --> 01:38:55.000
<v Chris Gammell>Yeah.

01:38:55.120 --> 01:38:55.240
<v Chris Gammell>So.

01:38:55.440 --> 01:38:55.580
<v Chris Gammell>That's good.

01:38:56.360 --> 01:38:56.620
<v Chris Gammell>Yeah.

01:38:56.620 --> 01:39:01.520
<v Chris Gammell>So you connected us and I picked up time and location last month and one this month.

01:39:01.520 --> 01:39:03.020
<v Chris Gammell>And so we have that tonight.

01:39:03.020 --> 01:39:04.100
<v Chris Gammell>It's very chill.

01:39:04.100 --> 01:39:05.840
<v Chris Gammell>Like you, you do in Chicago.

01:39:05.840 --> 01:39:10.200
<v Chris Gammell>It's just hanging out at a brewery, showing, showing stuff off and chatting.

01:39:11.080 --> 01:39:13.060
<v Chris Gammell>Um, so I'm really looking forward to it.

01:39:13.060 --> 01:39:14.460
<v Scott Shawcroft>Is there, is there a Kaiser sighting?

01:39:14.540 --> 01:39:17.980
<v Scott Shawcroft>Can you, can you tell him we said yes, uh, remotely?

01:39:18.400 --> 01:39:19.800
<v Chris Gammell>I'll try to remember that.

01:39:19.940 --> 01:39:20.240
<v Chris Gammell>Okay.

01:39:20.240 --> 01:39:24.340
<v Chris Gammell>He RSVP'd yes on the, on the meetup when I saw it last.

01:39:24.400 --> 01:39:27.100
<v Chris Gammell>So I think, I think Jeff will be there.

01:39:27.420 --> 01:39:27.720
<v Chris Gammell>Okay.

01:39:27.920 --> 01:39:32.520
<v Chris Gammell>Um, I didn't actually get a much of a chance to talk with him last time cause I was too

01:39:32.520 --> 01:39:33.680
<v Chris Gammell>busy talking with other people.

01:39:33.880 --> 01:39:33.960
<v Chris Gammell>So.

01:39:34.120 --> 01:39:34.260
<v Scott Shawcroft>Yeah.

01:39:34.280 --> 01:39:34.780
<v Scott Shawcroft>That's good.

01:39:34.820 --> 01:39:38.400
<v Scott Shawcroft>That's, that's what these, uh, you know, like these community things like hardware and

01:39:38.400 --> 01:39:40.720
<v Scott Shawcroft>software nerds like talking to each other.

01:39:40.760 --> 01:39:44.780
<v Scott Shawcroft>It helps when there's beer too, but you know, there's a, you know, just projects and hanging

01:39:44.780 --> 01:39:45.280
<v Scott Shawcroft>out and.

01:39:45.580 --> 01:39:45.800
<v Scott Shawcroft>Yeah.

01:39:45.820 --> 01:39:47.020
<v Scott Shawcroft>It's, it's super fun.

01:39:47.020 --> 01:39:49.740
<v Chris Gammell>I was looking forward to it for sure.

01:39:49.740 --> 01:39:52.060
<v Chris Gammell>And I, I appreciate you connecting us.

01:39:52.280 --> 01:39:52.640
<v Chris Gammell>Yeah.

01:39:52.640 --> 01:39:54.200
<v Chris Gammell>Cause I'm, I'm kind of bad about it.

01:39:55.600 --> 01:39:57.160
<v Scott Shawcroft>It's just, you gotta, you just gotta keep it up.

01:39:57.220 --> 01:39:58.600
<v Scott Shawcroft>You know, like that's, that's the thing over time.

01:39:58.600 --> 01:40:00.460
<v Scott Shawcroft>It, it gets, it gets tougher over time.

01:40:00.460 --> 01:40:01.420
<v Scott Shawcroft>I think that's the main thing.

01:40:01.600 --> 01:40:01.880
<v Chris Gammell>Yeah.

01:40:02.140 --> 01:40:02.460
<v Chris Gammell>Yeah.

01:40:02.460 --> 01:40:05.300
<v Chris Gammell>And we don't have a particular space we're doing it in right now.

01:40:05.300 --> 01:40:07.240
<v Chris Gammell>So we're, I think it's better to move around.

01:40:08.160 --> 01:40:08.320
<v Scott Shawcroft>Yeah.

01:40:08.640 --> 01:40:08.900
<v Chris Gammell>Yeah.

01:40:09.520 --> 01:40:13.600
<v Scott Shawcroft>Uh, if other people are interested in starting a, you know, a, there are franchise opportunities

01:40:13.600 --> 01:40:16.200
<v Scott Shawcroft>here, folks, uh, you know, the benefits await.

01:40:16.680 --> 01:40:17.040
<v Scott Shawcroft>Yeah.

01:40:17.040 --> 01:40:20.860
<v Scott Shawcroft>Uh, one last thing I think you should mention though, is you were going to be at PyCon,

01:40:20.980 --> 01:40:21.140
<v Scott Shawcroft>right?

01:40:21.860 --> 01:40:23.040
<v Scott Shawcroft>Yes, for sure.

01:40:23.960 --> 01:40:24.360
<v Scott Shawcroft>In?

01:40:25.060 --> 01:40:25.500
<v Scott Shawcroft>In?

01:40:25.640 --> 01:40:26.000
<v Scott Shawcroft>In Cleveland.

01:40:26.400 --> 01:40:26.800
<v Scott Shawcroft>Cleveland!

01:40:27.800 --> 01:40:28.860
<v Scott Shawcroft>I saw that this year.

01:40:28.900 --> 01:40:30.000
<v Scott Shawcroft>I was like, really?

01:40:30.200 --> 01:40:30.620
<v Chris Gammell>Like why?

01:40:30.860 --> 01:40:32.560
<v Chris Gammell>It's next year as well, actually.

01:40:32.960 --> 01:40:33.280
<v Chris Gammell>What?

01:40:33.280 --> 01:40:34.740
<v Chris Gammell>Um, what is going on there?

01:40:34.980 --> 01:40:41.140
<v Chris Gammell>Well, they, the way that PyCon does it is they negotiate hotels and conference centers

01:40:41.140 --> 01:40:44.820
<v Chris Gammell>for two years in a row to lower the overhead of doing that.

01:40:45.240 --> 01:40:46.140
<v Scott Shawcroft>That's actually pretty smart.

01:40:46.300 --> 01:40:46.400
<v Scott Shawcroft>Okay.

01:40:46.400 --> 01:40:46.620
<v Scott Shawcroft>Yeah.

01:40:46.620 --> 01:40:49.160
<v Chris Gammell>So the last two were in Portland, the next two are in Cleveland.

01:40:49.380 --> 01:40:51.780
<v Chris Gammell>And then I don't know where the next one is after that.

01:40:52.160 --> 01:40:52.520
<v Scott Shawcroft>Wow.

01:40:52.700 --> 01:40:52.900
<v Scott Shawcroft>Um.

01:40:53.780 --> 01:40:54.140
<v Scott Shawcroft>Cleveland.

01:40:54.600 --> 01:40:55.280
<v Chris Gammell>Bringing it on.

01:40:55.420 --> 01:40:56.240
<v Chris Gammell>How big is PyCon?

01:40:56.240 --> 01:40:59.440
<v Chris Gammell>It's 3,300 people.

01:40:59.940 --> 01:41:00.260
<v Chris Gammell>Oof.

01:41:00.480 --> 01:41:00.680
<v Chris Gammell>Okay.

01:41:00.680 --> 01:41:05.020
<v Chris Gammell>Um, so we have a goodie bag or we have an item in the goodie bag.

01:41:05.220 --> 01:41:05.760
<v Chris Gammell>Oh yeah?

01:41:05.880 --> 01:41:08.400
<v Chris Gammell>Which we are not revealing what it is, but it's quite exciting.

01:41:08.620 --> 01:41:11.880
<v Chris Gammell>And it does, I guess I could say it runs CircuitPython.

01:41:12.280 --> 01:41:13.360
<v Chris Gammell>I mean, that's okay.

01:41:13.560 --> 01:41:14.580
<v Chris Gammell>That's smart.

01:41:15.240 --> 01:41:15.740
<v Chris Gammell>Right, right.

01:41:16.180 --> 01:41:17.380
<v Scott Shawcroft>And this one runs JavaScript.

01:41:18.420 --> 01:41:22.400
<v Chris Gammell>There are, there is an equivalent JavaScript equivalent thing.

01:41:22.400 --> 01:41:24.060
<v Chris Gammell>I don't think it's as popular, but.

01:41:24.360 --> 01:41:24.520
<v Chris Gammell>Got it.

01:41:24.880 --> 01:41:25.560
<v Chris Gammell>Um, yeah.

01:41:25.620 --> 01:41:27.200
<v Chris Gammell>So I'll be, I'll be at PyCon.

01:41:27.780 --> 01:41:30.720
<v Chris Gammell>Um, I'll be in New York in April just to visit.

01:41:30.880 --> 01:41:32.900
<v Chris Gammell>So if you're in New York, feel free to hit me up.

01:41:32.960 --> 01:41:33.840
<v Chris Gammell>I'd love to do lunch.

01:41:34.500 --> 01:41:40.140
<v Chris Gammell>Um, I'll be in Cleveland for PyCon and I'm thinking about visiting Boston for the Open

01:41:40.140 --> 01:41:41.960
<v Chris Gammell>Hardware Summit in September.

01:41:42.640 --> 01:41:44.680
<v Scott Shawcroft>Oh, actually I didn't even know what that was decided.

01:41:44.880 --> 01:41:45.020
<v Scott Shawcroft>So.

01:41:45.280 --> 01:41:46.840
<v Chris Gammell>Yeah, I think they just posted it.

01:41:46.960 --> 01:41:47.260
<v Chris Gammell>Okay.

01:41:47.520 --> 01:41:49.720
<v Chris Gammell>Um, September 27th at MIT.

01:41:49.720 --> 01:41:55.080
<v Chris Gammell>So I'm going to, I think I'm going to try to make a New York, Boston trip out of it.

01:41:55.080 --> 01:41:58.080
<v Chris Gammell>Uh, because Dan Halbert is based out of Boston as well.

01:41:58.140 --> 01:41:58.740
<v Chris Gammell>Oh, very cool.

01:41:58.800 --> 01:42:00.920
<v Chris Gammell>My other core dev.

01:42:01.400 --> 01:42:01.640
<v Scott Shawcroft>Yep.

01:42:02.040 --> 01:42:02.180
<v Scott Shawcroft>Yeah.

01:42:02.180 --> 01:42:03.240
<v Scott Shawcroft>Boston's a fun town.

01:42:03.660 --> 01:42:04.760
<v Scott Shawcroft>I've never actually been in it.

01:42:04.760 --> 01:42:06.240
<v Scott Shawcroft>They've got some robots up there and stuff.

01:42:06.680 --> 01:42:06.660
<v Speaker ?>So.

01:42:06.740 --> 01:42:07.140
<v Scott Shawcroft>Yeah.

01:42:08.420 --> 01:42:09.660
<v Chris Gammell>Some engineers there too.

01:42:10.080 --> 01:42:10.760
<v Scott Shawcroft>Yeah, I guess so.

01:42:12.220 --> 01:42:12.620
<v Chris Gammell>Yeah.

01:42:12.620 --> 01:42:17.200
<v Chris Gammell>But then as I'm, I'm based in Seattle and I'm also always willing to get out and have

01:42:17.200 --> 01:42:18.820
<v Chris Gammell>coffee with, or tea with people.

01:42:18.820 --> 01:42:22.160
<v Scott Shawcroft>I guess if you're, if you're working from home, you need, you need that, uh, that break,

01:42:22.240 --> 01:42:22.360
<v Scott Shawcroft>huh?

01:42:22.400 --> 01:42:23.860
<v Scott Shawcroft>I definitely do.

01:42:24.080 --> 01:42:24.340
<v Scott Shawcroft>Yeah.

01:42:24.420 --> 01:42:25.080
<v Scott Shawcroft>Definitely do.

01:42:25.300 --> 01:42:30.080
<v Scott Shawcroft>Even a discord server doesn't, doesn't, doesn't, uh, cure the, the stir crazies.

01:42:30.340 --> 01:42:31.040
<v Scott Shawcroft>It helps.

01:42:31.480 --> 01:42:34.360
<v Scott Shawcroft>It definitely helps, but it, it, yeah.

01:42:34.400 --> 01:42:36.140
<v Chris Gammell>Working from home is a whole nother topic.

01:42:36.960 --> 01:42:39.580
<v Scott Shawcroft>Did, I don't know if I've ever, I mean, you listen to the show once in a while.

01:42:39.620 --> 01:42:39.900
<v Scott Shawcroft>Is that right?

01:42:40.300 --> 01:42:40.560
<v Scott Shawcroft>Yeah.

01:42:40.560 --> 01:42:41.200
<v Scott Shawcroft>Pretty regularly.

01:42:41.440 --> 01:42:41.720
<v Scott Shawcroft>Okay.

01:42:41.720 --> 01:42:45.820
<v Scott Shawcroft>So I don't know if I've ever mentioned why I joined the workspace I'm out of.

01:42:46.880 --> 01:42:50.900
<v Scott Shawcroft>There was like, uh, so I was, I, and I've told, I tell the story around here once in

01:42:50.900 --> 01:42:53.320
<v Scott Shawcroft>a while, or usually when I'm at, at M hub, which is where I work out of now.

01:42:53.420 --> 01:42:53.740
<v Scott Shawcroft>Yeah.

01:42:53.740 --> 01:42:54.720
<v Scott Shawcroft>People ask like, why'd you join?

01:42:54.760 --> 01:43:00.460
<v Scott Shawcroft>I'm like, well, uh, I was working remote and I had a really busy day of meetings and,

01:43:00.460 --> 01:43:03.900
<v Scott Shawcroft>uh, I was on the computer all day long and just talking to people, talking to people,

01:43:03.960 --> 01:43:04.980
<v Scott Shawcroft>mostly, mostly by text.

01:43:04.980 --> 01:43:08.200
<v Scott Shawcroft>And, uh, uh, you know, I didn't really think much about it.

01:43:08.280 --> 01:43:11.080
<v Scott Shawcroft>And then about one, one AM I'm finally done with everything.

01:43:11.200 --> 01:43:13.240
<v Scott Shawcroft>I'd working on a board, I think, or something.

01:43:13.460 --> 01:43:16.940
<v Scott Shawcroft>I fall into bed and I say out loud, ah, crap.

01:43:16.940 --> 01:43:18.140
<v Scott Shawcroft>I forgot to schedule that meeting.

01:43:19.260 --> 01:43:23.820
<v Scott Shawcroft>And, uh, and then I think to myself, well, no, no, I think to myself, that's the first

01:43:23.820 --> 01:43:26.640
<v Scott Shawcroft>time I've spoken out loud or left the house in two days.

01:43:27.320 --> 01:43:28.120
<v Scott Shawcroft>Uh, yeah.

01:43:28.120 --> 01:43:30.640
<v Scott Shawcroft>And then the next day I joined a shared workspace.

01:43:31.220 --> 01:43:31.620
<v Speaker ?>Yep.

01:43:32.420 --> 01:43:32.740
<v Chris Gammell>Yeah.

01:43:32.740 --> 01:43:35.300
<v Chris Gammell>So I, yeah, I can totally relate to that.

01:43:35.380 --> 01:43:38.740
<v Chris Gammell>I didn't have quite the same experience, but I did like three days.

01:43:38.740 --> 01:43:44.560
<v Chris Gammell>I was like, I think I've only gone outside to get the mail and like take the garbage out.

01:43:44.760 --> 01:43:51.420
<v Chris Gammell>So I actually, I, I started doing what I call as a commute with air quotes, um, where I try

01:43:51.420 --> 01:43:56.600
<v Chris Gammell>to actually get outside for not that long, but just go walk around my neighborhood, like

01:43:56.600 --> 01:43:57.980
<v Chris Gammell>in the morning before I get going.

01:43:58.200 --> 01:44:00.220
<v Chris Gammell>And then at night as well.

01:44:00.500 --> 01:44:01.100
<v Chris Gammell>That's smart.

01:44:01.580 --> 01:44:02.460
<v Chris Gammell>It really helps.

01:44:02.740 --> 01:44:03.060
<v Chris Gammell>Yeah.

01:44:03.300 --> 01:44:04.860
<v Scott Shawcroft>It's been hard because it's bad, but.

01:44:04.860 --> 01:44:04.960
<v Scott Shawcroft>Yeah.

01:44:04.960 --> 01:44:08.860
<v Scott Shawcroft>And then doing like 3H and like meeting with humans and like, or having coffees, like you're

01:44:08.860 --> 01:44:12.920
<v Scott Shawcroft>saying, like these things are all survival mechanisms of the remote workers.

01:44:13.460 --> 01:44:13.860
<v Scott Shawcroft>It is.

01:44:14.000 --> 01:44:14.960
<v Scott Shawcroft>Yeah, it is.

01:44:15.660 --> 01:44:16.340
<v Chris Gammell>For sure.

01:44:16.820 --> 01:44:19.940
<v Scott Shawcroft>Well, and we can always, you know, chat again on, uh, the amp hour.

01:44:20.140 --> 01:44:21.040
<v Scott Shawcroft>So that also helps.

01:44:21.480 --> 01:44:21.780
<v Scott Shawcroft>Cool.

01:44:22.180 --> 01:44:23.340
<v Scott Shawcroft>I'll take you up on that.

01:44:23.420 --> 01:44:25.580
<v Scott Shawcroft>I think we covered the core stuff, but.

01:44:25.580 --> 01:44:30.320
<v Scott Shawcroft>I'm sure that there's a lot of people that were shouting about my lack of knowledge about,

01:44:30.320 --> 01:44:32.760
<v Scott Shawcroft>uh, uh, debuggers, but I don't know what they were expecting.

01:44:32.920 --> 01:44:33.580
<v Scott Shawcroft>Honestly, folks.

01:44:33.980 --> 01:44:36.560
<v Chris Gammell>What I was thinking actually is a challenge.

01:44:36.700 --> 01:44:40.980
<v Chris Gammell>The challenge is if you think you can explain it better, write it up and share it.

01:44:41.300 --> 01:44:42.240
<v Chris Gammell>That's a great idea.

01:44:42.480 --> 01:44:42.820
<v Chris Gammell>Yes.

01:44:43.280 --> 01:44:48.640
<v Chris Gammell>Um, it's, it's hard to explain things well and it takes a lot of practice and I certainly

01:44:48.640 --> 01:44:49.440
<v Chris Gammell>need more of it.

01:44:49.440 --> 01:44:52.480
<v Scott Shawcroft>And there's not as much out there as you'd think there would be.

01:44:52.620 --> 01:44:53.000
<v Scott Shawcroft>You know what I mean?

01:44:53.180 --> 01:44:53.960
<v Scott Shawcroft>Like, yeah.

01:44:54.100 --> 01:44:55.260
<v Scott Shawcroft>So that's a great point.

01:44:55.540 --> 01:44:57.800
<v Scott Shawcroft>So a challenge from Scott.

01:44:58.220 --> 01:44:58.320
<v Scott Shawcroft>Yeah.

01:44:58.400 --> 01:45:02.940
<v Scott Shawcroft>Uh, Scott, thank you for being on the show and, uh, uh, Twitter.

01:45:03.300 --> 01:45:06.260
<v Scott Shawcroft>I will post all your links, I suppose, to everywhere you can be found.

01:45:06.420 --> 01:45:06.520
<v Scott Shawcroft>So.

01:45:07.000 --> 01:45:07.260
<v Scott Shawcroft>Yeah.

01:45:07.420 --> 01:45:11.460
<v Scott Shawcroft>Uh, don't expect to, for me to see Twitter cause I don't use Twitter.

01:45:11.920 --> 01:45:13.520
<v Scott Shawcroft>Oh, uh, where's the best way then?

01:45:13.740 --> 01:45:16.780
<v Chris Gammell>Um, you could just email me.

01:45:16.920 --> 01:45:17.320
<v Chris Gammell>Okay.

01:45:17.320 --> 01:45:19.200
<v Chris Gammell>I'm Scott at adafruit.com.

01:45:19.440 --> 01:45:19.800
<v Chris Gammell>Okay.

01:45:19.920 --> 01:45:22.120
<v Chris Gammell>Um, you can find me on our discord.

01:45:22.500 --> 01:45:22.880
<v Chris Gammell>Yeah.

01:45:22.900 --> 01:45:23.660
<v Chris Gammell>It's probably the best place.

01:45:23.760 --> 01:45:23.860
<v Chris Gammell>Huh?

01:45:24.100 --> 01:45:24.420
<v Chris Gammell>Yeah.

01:45:24.560 --> 01:45:27.940
<v Chris Gammell>But Twitter, I, I try not to be on.

01:45:28.060 --> 01:45:28.420
<v Chris Gammell>That's healthy.

01:45:28.560 --> 01:45:28.720
<v Chris Gammell>Yeah.

01:45:28.760 --> 01:45:29.000
<v Chris Gammell>Okay.

01:45:29.400 --> 01:45:29.640
<v Scott Shawcroft>Yeah.

01:45:29.640 --> 01:45:29.960
<v Scott Shawcroft>All right.

01:45:30.040 --> 01:45:31.340
<v Scott Shawcroft>Well, enjoy 3H tonight.

01:45:31.500 --> 01:45:32.240
<v Scott Shawcroft>Tell everyone out there.

01:45:32.320 --> 01:45:32.860
<v Scott Shawcroft>I said hello.

01:45:33.160 --> 01:45:33.600
<v Scott Shawcroft>Thank you.

01:45:33.640 --> 01:45:34.040
<v Scott Shawcroft>I will.

01:45:34.340 --> 01:45:34.960
<v Scott Shawcroft>We'll talk to you soon.

01:45:35.460 --> 01:45:35.820
<v Scott Shawcroft>Bye.

01:45:35.820 --> 01:45:35.880
<v Scott Shawcroft>Bye.

01:45:35.880 --> 01:45:35.880
<v Speaker ?>

01:45:35.880 --> 01:45:35.880
<v Speaker ?>

01:45:35.880 --> 01:45:35.880
<v Speaker ?>

01:45:35.880 --> 01:45:35.880
<v Speaker ?>

01:45:35.880 --> 01:45:35.880
<v Speaker ?>

01:45:35.880 --> 01:45:37.880
<v Scott Shawcroft>Bye.

01:45:37.880 --> 01:45:37.880
<v Speaker ?>

01:45:37.880 --> 01:45:37.880
<v Speaker ?>

01:45:37.880 --> 01:45:37.880
<v Speaker ?>

01:45:37.880 --> 01:45:37.880
<v Speaker ?>

01:45:37.880 --> 01:45:39.880
<v Speaker ?>Bye.

01:45:39.880 --> 01:45:39.880
<v Speaker ?>

01:45:39.880 --> 01:45:39.880
<v Speaker ?>

01:45:39.880 --> 01:45:41.880
<v Speaker ?>Bye.

01:45:41.880 --> 01:45:41.880
<v Speaker ?>

01:45:41.880 --> 01:45:41.880
<v Speaker ?>

01:45:41.880 --> 01:45:43.880
<v Speaker ?>Bye.

01:45:43.880 --> 01:45:43.880
<v Speaker ?>

01:45:43.880 --> 01:45:45.880
<v Speaker ?>Bye.

01:45:45.880 --> 01:45:45.880
<v Speaker ?>

01:45:45.880 --> 01:45:45.880
<v Speaker ?>

01:45:45.880 --> 01:45:45.880
<v Speaker ?>

01:45:45.880 --> 01:45:45.880
<v Speaker ?>

01:45:45.880 --> 01:45:45.880
<v Speaker ?>

01:45:45.880 --> 01:45:54.800
<v Speaker ?>Bye.

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:45:54.800
<v Speaker ?>

01:45:54.800 --> 01:46:24.780
<v Speaker ?>Thank you.
