|
We need Python++ which requires curly braces to fix the significant whitespace bug.
It would only need to transpile to boring old significant whitespace Python, afterall.
|
|
|
|
|
What happened to C? I've done several Arduino projects - including 8266 - and all in C...
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
|
|
|
|
|
Well, Arduino C is Cish. I thought it might be cool to use something more standard.
Real programmers use butterflies
|
|
|
|
|
Arduino 'C ' is, ...well, C++ .
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
is it actually though? The reason I ask is it's not *exactly*, like there's functions in there like digitalWrite() that have no corresponding header at the top.
That's why I've been confused as to what language it actually is. Most of the constructs look Cish, but there are some C++isms. No generics to my knowledge though, and no standard library which is why i hesitate to say anything more than Cish? This is just my takeaway after getting my hands on it. I fully expect in you saying that you know something I don't.
Real programmers use butterflies
|
|
|
|
|
|
ah thanks. I just unboxed this the other day and I'm not the RTFM type.
Real programmers use butterflies
|
|
|
|
|
Well, well, well... *Gets out the 'ol pitchfork*
|
|
|
|
|
That didn't take long. Wait til you see what I've done to this poor arduino board in my upcoming article. Voiding warranties for fun and profit!
Real programmers use butterflies
|
|
|
|
|
That's the trouble with Python: it is quite powerful, and easy to test.
|
|
|
|
|
honey the codewitch wrote: I will rule the world
Ah ah ah[^]
My home automation entirely relies on a Raspberry Pi, and on python.
|
|
|
|
|
|
I would sooner trust a trained monkey to drive me around. It's got a few million years of evolution under its belt and a few hundred billion neurons more in its head. That's also why I don't expect the terminator to knock at the door any time soon. Artificial evolution takes its time, simply because it takes a (simulated) lifetime and many generations of candidates. And what environment will the simulation take place in? The Matrix? Of what use would an AI be that had been trained by playing Skyrim, just because that's a little bit easier to accomplish?
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
CodeWraith wrote: the terminator to knock at the door any time soon
It will be much worst than that...
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
|
|
|
|
|
Consider that a self driving car will want to avoid both the soccer ball and the referee.
|
|
|
|
|
There's this thing called an ESP8266 and it is a little wifi adapter that is exposed over a 2 wire serial interface basically and you communicate with it using AT commands like those old Hayes modems.
It's meant for wiring into Arduinos and some Arduinos come with one built in. The Arduino processors are little 16mhz 8 bit monsters and aren't so good at running a TCP/IP stack and all that, so these little ESP8266 widgets have a built in Tensilica processor running at like 3 times the speed of the Arduino, and the firmware for it is flashable!
So you can gut the AT firmware and flash say Micropython on it. Hello little tiny python machine.
So now I have 3 of these gadgets but only enough parts to deal with the onboard one I have. The others need their own power supply and I don't want to deal with it.
I really shouldn't brick this board since its earmarked for another project for my in-laws but I am curious and don't want to wait for the mail.
I did manage to bring this chip back from the dead once already after nuking the onboard firmware but I'm not entirely sure I could repeat it.
This seems like a perfect time for doing something foolhardy.
ETA: Micropython is neat, and I say that as someone who doesn't even like python.
Real programmers use butterflies
modified 1-Nov-20 14:54pm.
|
|
|
|
|
Brick or Treat!
|
|
|
|
|
YES PLZ!
OMG now I have to mess with these things.
Real programmers use butterflies
|
|
|
|
|
I did not try it myself, but maybe you will find this thingy interesting: nanopi-neo3[^]
|
|
|
|
|
That's adorable! I was hoping for something with digital and analog I/O pins I could tap, and then I found the pyboard which is similar to what you linked to but more geared for industrial microcontroller applications. That one was a little much for me. I think a hacked $15 arduino mega 2560+WiFi with the wifi bit cannibalized for micropython instead would serve me fine. pyboards are like $50. Still cheap, but I kinda want bragging rights of hacking it into an arduino, even if the end result is a slower machine.
Real programmers use butterflies
|
|
|
|
|
Forget all else within your post - perhaps all your posts, ever, and all of ours, as well. This, piece of wisdom - guidance and surety of purpose is far beyond even priceless:
honey the codewitch wrote: This seems like a perfect time for doing something foolhardy.
Indeed, my gratitude is beyond all frail human attempts at expression, for now I may boldly set forth upon any task or trial with the sure knowledge that a path forward is always at hand!
Excelsior!
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
I use a UWP DatePicker control in my UWP app to get a birth date.
I named my control UxDate.
DatePicker has a .Date property which is a "DateTimeOffset".
But since I want a DateTime, I can call .DateTime on .Date which will return a DateTime.
Since I don't care about the time portion, I then use just .Date on DateTime to get just the date portion.
So, once the user selects a date with the DatePicker, I can retrieve it so:
details.BirthDate = this.UxDate.Date.DateTime.Date;
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
You could use one of the programming forum
I'd rather be phishing!
|
|
|
|
|
Sorry if you think this is a "programming question".
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
I need a date too
|
|
|
|