"Off Topic" Code Discussion from Q8 Thread.. (code discussion not related to the Q8)

Haha thanks Teacher, yea coding for stupid people would probably be more up my alley as well!

I hear ya’ JA. :smiley:

I am going to the Library & check it out if they have it…. just to see IF I can learn to do anything…… anything at all. Big “IF” but as long as I don’t screw up my ‘pooter’… I’m good with trying to do something. :wink:

#include <stdio.h>

static char hello_world[] = {
0x48, 0x45, 0x09, 0x24, 0x2a,
0x66, 0x36, 0x23, 0x36, 0x2b,
0x2f, 0x66, 0x32, 0x23, 0x35,
0x36, 0x6d, 0x4c, 0x48, 0x4c
};
static char blf[] = "BLF";

int main(void)
{
int x, l;

l = sizeof( hello_world );
for( x=0; x<l; x++) { printf("%c", ((hello_world[x]^blf[x%3]) & 0xff) ); }

return 0;
}

Maybe people dont know the difference anymore nowadays between RUDE and the dislike of your opinion.
They give negative credits as it were hot baquettes :slight_smile:

:smiley: …… That may very well be Yokiamy. :+1:
At this point it is so pathetic it is actually comical…. :wink:
In my personal opinion of course…….

@Teacher

I think that you might like learning the Python programming language. Interestingly, it is actually called “Python” in tribute to Monty Python, and you can see a lot of references to the various works in the programming. There are a lot of free tutorials online, and is a really good first language to learn since it is considered much easier to read than other languages that use lots of symbols.

Here is one of the many free classes: https://www.datacamp.com/courses/intro-to-python-for-data-science/?utm_source=learnpython_com&utm_campaign=learnpython_tutorials

Have you heard of the arduino? For a person new to programming and circuits, THAT is the place to go.

Thank you amplificus, I appreciate the info & link. At this point I have only had a chance to glance at “Python”…. but it appears it starts very basic
I am certainly going to explore it in depth.

I had/have never heard of “arduino”, but I did a quick search amd came up with this….

I will certainly check it out in-depth also…. because I am certainly “new to programming and circuits”….
……as in totally new. :wink:

Again, thank you very much for the info and heads up. :+1:
.
:slight_smile:

This is just something I have always been curious about & never had nor taken the time to explore in any way. I have a bit of time now… so why not. :slight_smile:

Check this one out

Honestly, the Arduino is awesome because it’s a great intro into programming and circuits, but can be used for so many things. I’ve used them for programming the MCU in flashlight driver’s to get exactly the modes i want, made a battery capacity tester for the laptop pulled 18650’s, and a variable speed fan controller for my bench LED test heatsink.

The list of what you can do with just a few lines of code is endless, and so many tutorials online make it easy. When my son is old enough to read, I’m going to push him learning to code really hard.

I’m not sure what the item linked to is, but I figured it important… and it is as cheap as dirt. :+1:

See, that is what I have in the back of my mind… trying to learn to program flashlight driver MCU’s.
It does sound like you have done a lot of things with it…. that’s pretty neat.

I’ll take your word about this, “so many tutorials online make it easy”; and start to dig into it.

I do appreciate the info also.
It gives me hope this might not be as far out of reach as I had thought…. the basic stuff anyway. :+1:

Sounds like a plan about your son also… a good plan. Looks like ‘code’ is the thing now & I am sure will be only more so in the future.

Again, I appreciate the info. :slight_smile:
Feel free to offer anything you feel is relevant to a total newbie…… :smiley:

Short explaination: The item linked is an arduino clone. Get one (or 3!).

Long explaination: That is a microcontroller development board, which you can plug into your computer using a usb cable, send some code onto it, and it will perform actions. The little plugs on the outside are for input/output. For example, you can attach a small LED to one of the pins and ground, and tell the controller to turn it on and off. Tutorial Here!

OK…… thanks. I understand the generalities of what you said. I’ll check the tutorial out you sent the link to. :+1:

I appreciate the understandable info you are communicating to, thank you. :slight_smile:

OK, I split the difference; I ordered 2…
……… & even paid a bit for shipping so they might get here quicker. :wink:

After reading the Tutorial you linked to, I figured there was no time to start like the present. :+1:
And so, it begins…… :smiley:

Nice to see you picking up new things!

Thanks, I must admit it has always intrigued me how lights were programmed. If I could learn to do a little of that even… I’d be a happy camper.

My Arduino clones arrived today. Fast ship time too. :+1:

Time to try & figure things out…. :wink:

Cool! Just think, one day, YOU might be the one building better BLF drivers and firmware! :wink:
By the way: remember that loneoceans is releasing his firmware for his drivers in Arduino code.

Dream big teacher. Maybe you’ll be the first programmer to intensively use, italic, bold and underline simultaneously in programming language. :+1: :beer:

Lol…. Maybe. But don’t hold your breath guys. :wink: Most likely you’d have a looooong wait.
.
.
Seriously ……. :smiley:

Spammer above! Marked as spam.

2 in a row by the looks of it. :person_facepalming: