Arduino

ReadPage v0.33 maar dit is nu wat langer hé. Of gaat dit niet?

{newstitle-1

2016-04-25 20:36:50

Geschreven door: Jakob

De voorlopige software voor de Pixelbox

/*BewerktHet laat op de 7-Segment Display Een ingegeven bericht ingeven via de Serial monitor. Anders laat het een standaard bericht ingeven.Het is Hardware onafhankelijk wat inhoud dat de pinaansluitingen instelbaar zijn.We sturen '1' naar een anode pin (10-13) om het aan te zetten.We sturen '0' naar de pinnen van de 7segmenten om het aan te zetten.Extra uitleg om de lettercode beter te begrijpen:7Segment pinnen--a--f | | b|--g--|e | | c--d--0b 1 1 1 1 1 1 0 0 in dit geval een 0a b c d e f g Dp© Jakob 5H08 2014-2015*/

//Instelbare Variabelen
char Bericht[] = {"5H08"}; //<== Geef hier je bericht in. (0-9, A-Z, Speciale tekens zoals -_.)

const byte pinnummerDp = 11;
const byte pinnummerg = 13;
const byte pinnummerf = A1;
const byte pinnummere = 9;
const byte pinnummerd = 10;
const byte pinnummerc = 12;
const byte pinnummerb = A0;
const byte pinnummera = A2;

const byte pinnummerD1 = 4;
const byte pinnummerD2 = 5;
const byte pinnummerD3 = 6;
const byte pinnummerD4 = 7;
//Definieren van variabelen
const byte SegmentToBoardpins[8] = {
  pinnummerDp, pinnummerg, pinnummerf, pinnummere, pinnummerd, pinnummerc, pinnummerb, pinnummera
};
const byte DeelToBoardpins[4] = {
  pinnummerD1, pinnummerD2, pinnummerD3, pinnummerD4
};
int string_lengte = sizeof(Bericht) + 1; //leest de stringlengte
byte laatstbericht = string_lengte;
int Displaynumber = 0;
byte Deel = 0;
String inputString = ""; // a string to hold incoming data
boolean stringComplete = false; // whether the string is complete
byte plaats = 0;
//De nummers die moeten worden gedisplayd via de ASCII (char) waarde. Later in het programma gaat de ASCIIwaarde worden omgevormd in een byte waarde.
byte lettercode[] = {

  //0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x80, 0x01, 0x01, 0x01, 0x01, 0x01, 0x02, 0x01, 0x01,
  0b00000000, 0b00000001, 0b00000001, 0b00000001, 0b00000001, 0b00000001, 0b00000001, 0b010000000, 0b00000001, 0b00000001, 0b00000001, 0b00000001, 0b00000001, 0b00000010, 0b00000001, 0b00000001,
  // spatie ! " # $ % & ' ( ) * + , - . /

  //0xfc, 0x60, 0xda, 0xf2, 0x66, 0xb6, 0xbe, 0xe0, 0xfe, 0xf6
  0b11111100, 0b01100000, 0b11011010, 0b11110010, 0b01100110, 0b10110110, 0b10111110, 0b11100000, 0b11111110, 0b11110110, //Van 0-9 (ASCII Dec van 48-57)
  // 0 1 2 3 4 5 6 7 8 9

  //0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
  0b00000000, 0b00000001, 0b00000001, 0b00000001, 0b00000001, 0b00000010, 0b00000001, //Overige symbolen die onnodig zijn. (ASCII Dec van 58-64)
  //:(spatie) ; < = > ?(error) @

  //
  0b11101110, 0b00111110, 0b10011100, 0b01111010, 0b10011110, 0b10001110, 0b000000001, 0b01101110, 0b00001100, 0b01111000, 0b00000001, 0b00011100, 0b00000001, 0b00000001, 0b11111100 , 0b11001110, 0b00000001, 0b00000001, 0b10110110, 00011110, 0b01111100, 0b000000001, 0b000000001, 0b000000001, 0b01110110, 0b00000001, //Van A-Z (ASCII Dec van 65-90)
  //A b C d E F / (g) H I J / (k) L /(M) /(n) O P /(q) /(r) S t U /(v) /(w) /(X) y /(Z)



  //0x01, 0x01, 0x01, 0x01, 0x01, 0x01
  0b00000001, 0b00000001, 0b00000001, 0b00000001, 0b00000001, 0b00000010, //Overige symbolen die onnodig zijn. (ASCII Dec van 92-96)
  // [ \ ] ^ _ '

  //
  0b11101110, 0b00111110, 0b00011010, 0b01111010, 0b10011110, 0b10001110, 0b000000001, 0b01101110, 0b00001100, 0b01111000, 0b00000001, 0b00011100, 0b00000001, 0b00000001, 0b00111010 , 0b11001110, 0b00000001, 0b00000001, 0b10110110, 00011110, 0b01111100, 0b000000001, 0b000000001, 0b000000001, 0b01110110, 0b00000001 //Van a-z (ASCII Dec van 97-122)
  //A b c d E F / (g) H I J / (k) L /(M) /(n) o P /(q) /(r) S t U /(v) /(w) /(X) y /(Z)


};

void setup()
{
  inputString.reserve(200);
  Serial.begin(9600);
  Serial.print("Maker: Jakob Robijns");
  Serial.print("\t");
  Serial.println("5H 08");
  Serial.print("Begin Bericht: ");
  Serial.println(Bericht);
  Serial.println("");
  for (byte i = 0; i < 8; i++)
  {
    pinMode(SegmentToBoardpins[i], OUTPUT); //Zet de pinnummer als een output
    digitalWrite(SegmentToBoardpins[i], HIGH); //Stuurt een 1, en zet de led uit.
  }
  for (byte i = 0; i < 4; i++)
  {
    pinMode(DeelToBoardpins[i], OUTPUT); //Zet de pinnummer als een output
    digitalWrite(DeelToBoardpins[i], LOW); //Stuurt een 1, en zet de led uit.
  }
}

void loop()
{
  plaats = 0;
  for (byte i = 0; i < 4; i++) {
    Displaynumber = Bericht[plaats] - 32; //Zoekt de nummer positie in de ASCIItabel hierboven.

    digitalWrite(DeelToBoardpins[i], HIGH);
    ASCIItonen(); //Een display tonen van waarde
    delay(1);
    for (byte segment = 0; segment < 8; segment++) //Alles uitzetten
    {
      digitalWrite(SegmentToBoardpins[segment], HIGH);
    }
    digitalWrite(DeelToBoardpins[i], LOW);
    plaats++;
  }
}



void ASCIItonen() {

  for (byte segment = 0; segment < 8; segment++)
  {

    if (lettercode[Displaynumber] & 1 << segment)
    {
      // Serial.print(SegmentToBoardpins[segment]);
      digitalWrite(SegmentToBoardpins[segment], LOW);
    }
    else {
      digitalWrite(SegmentToBoardpins[segment], HIGH);
    }
  }
}
//© Jakob 5H08 2014-2015



Aantal likes:18

Reacties:

My husband and i ended up being so contented Michael managed to finish up his research out of the precious recommendations he was given through the web site. It's not at all simplistic to just be releasing facts which often the rest could have been making money from. And now we figure out we have got the website owner to be grateful to for that. The type of illustrations you made, the simple website menu, the relationships your site give support to foster - it is mostly awesome, and it
I definitely wanted to post a small comment in order to express gratitude to you for all of the magnificent guidelines you are sharing on this website. My incredibly long internet research has at the end of the day been honored with really good suggestions to share with my friends and classmates. I 'd assume that we website visitors are truly endowed to live in a superb place with many perfect professionals with beneficial methods. I feel rather fortunate to have encountered your entire we
I wish to convey my respect for your generosity supporting folks who require guidance on this theme. Your special dedication to getting the solution across ended up being especially effective and has in every case empowered individuals much like me to arrive at their pursuits. Your amazing informative tips and hints implies a great deal a person like me and far more to my office workers. Regards; from all of us.
off white jordan 1
Thank you so much for providing individuals with an extremely memorable chance to read articles and blog posts from this website. It's usually so fantastic and also jam-packed with fun for me personally and my office co-workers to visit your website no less than 3 times per week to find out the fresh things you have got. Not to mention, I am also usually fulfilled with all the extraordinary opinions served by you. Some 2 facts in this posting are surely the simplest we've ever had.
&
I have to show my thanks to the writer for bailing me out of this particular instance. Right after checking throughout the world wide web and obtaining tips that were not helpful, I thought my life was done. Being alive without the presence of answers to the issues you've solved by way of your entire posting is a serious case, as well as the kind which might have negatively affected my entire career if I hadn't discovered your blog post. Your own personal know-how and kindness in maneu
My spouse and i were quite contented when Michael managed to carry out his homework out of the precious recommendations he got in your web site. It's not at all simplistic to simply be making a gift of tips and tricks the rest may have been selling. And now we already know we have got the website owner to give thanks to for this. The explanations you've made, the straightforward site navigation, the friendships you can aid to instill - it is mostly unbelievable, and it is making our s
I wanted to post you the very little word to be able to thank you very much the moment again on the magnificent suggestions you've provided in this case. It's certainly extremely generous with you to make easily what most people might have advertised as an ebook in order to make some dough for their own end, mostly since you could have tried it in case you decided. The tricks also worked to be the great way to realize that the rest have a similar keenness the same as mine to grasp a lo
I wish to show my appreciation for your kind-heartedness giving support to men and women who should have help on that niche. Your very own dedication to getting the solution all around turned out to be astonishingly interesting and has really made women like me to realize their aims. Your amazing informative guideline entails a great deal to me and further more to my office colleagues. Best wishes; from all of us.
nike air max
I simply wanted to thank you so much once more. I do not know the things I would have carried out in the absence of the thoughts provided by you over that industry. It truly was a real fearsome situation in my view, but discovering a specialized tactic you processed that took me to leap with delight. I will be grateful for your work and even wish you really know what a great job you are always putting in instructing most people through your webpage. Most likely you have never come across any of
I truly wanted to develop a small message in order to appreciate you for all of the lovely pointers you are giving out at this site. My considerable internet lookup has at the end been paid with awesome information to share with my close friends. I would repeat that we site visitors actually are very endowed to exist in a decent website with many awesome professionals with interesting things. I feel somewhat blessed to have encountered your web pages and look forward to tons of more pleasurable
I wish to show appreciation to this writer just for rescuing me from this particular predicament. Just after exploring throughout the internet and getting principles which are not powerful, I assumed my life was over. Being alive without the presence of approaches to the issues you have sorted out by way of this site is a critical case, and those that could have in a wrong way affected my entire career if I had not noticed your website. Your good natural talent and kindness in handling all the
I and also my pals appeared to be viewing the best advice found on your web site and quickly I got a horrible feeling I had not expressed respect to the web blog owner for those techniques. All the guys came for that reason stimulated to read all of them and have in effect very much been having fun with those things. Many thanks for truly being quite kind and also for making a decision on some impressive things millions of individuals are really wanting to be aware of. Our honest regret for not
I not to mention my guys were actually going through the good tactics located on your web site and then quickly got a horrible feeling I never expressed respect to the site owner for those techniques. Most of the boys came consequently excited to read them and already have truly been making the most of them. Many thanks for being indeed thoughtful and for making a choice on this sort of essential information millions of individuals are really needing to discover. My very own honest apologies for
I wanted to compose you this very small remark to be able to say thanks a lot once again about the remarkable tactics you've featured in this article. It has been really extremely open-handed of you to make freely all that a few individuals might have marketed as an ebook to generate some money for their own end, primarily since you might have tried it in case you decided. The thoughts additionally served to become great way to understand that other individuals have the identical dreams jus
Thanks for your entire effort on this web page. Debby takes pleasure in engaging in research and it's really simple to grasp why. I notice all relating to the dynamic form you create precious tips on this web blog and even improve response from website visitors on that area of interest and my simple princess is truly studying a lot of things. Take advantage of the rest of the new year. You're the one doing a very good job.
chr
I simply wished to say thanks all over again. I'm not certain the things that I might have followed without the points contributed by you over such area. It became an absolute intimidating dilemma for me, nevertheless viewing a new specialised avenue you treated that took me to jump over joy. Now i'm grateful for this support and in addition sincerely hope you really know what a powerful job you are always providing educating people via your website. Most probably you have never got to
I truly wanted to construct a word to say thanks to you for some of the wonderful information you are writing here. My time intensive internet research has at the end of the day been paid with good quality details to go over with my friends. I 'd express that most of us site visitors actually are truly endowed to live in a good network with many awesome individuals with interesting plans. I feel really privileged to have seen your web pages and look forward to really more enjoyable moment
Thank you a lot for giving everyone an exceptionally pleasant opportunity to read critical reviews from this web site. It's always so superb and also full of fun for me and my office mates to visit the blog on the least thrice weekly to study the latest tips you have. Of course, I'm just actually astounded concerning the great tricks you serve. Selected two points in this article are completely the most beneficial I've had.
I intended to draft you the little bit of remark just to give thanks over again for these spectacular basics you have contributed here. This is certainly unbelievably open-handed of you to provide easily what a lot of people might have offered for sale as an e book to earn some bucks on their own, most importantly considering that you could possibly have done it if you ever desired. Those guidelines also acted like the good way to fully grasp some people have the same zeal just like my very own
I intended to compose you the very small observation to help say thanks a lot once again considering the unique tips you've documented on this site. It's simply wonderfully open-handed of you to present publicly precisely what a number of people would've marketed for an electronic book to help make some bucks for themselves, particularly seeing that you could have tried it if you ever desired. Those solutions also acted to become easy way to fully grasp that many people have the i
My spouse and i have been very ecstatic that Emmanuel managed to finish up his web research using the ideas he acquired from your own weblog. It is now and again perplexing just to choose to be making a gift of techniques people may have been trying to sell. We already know we have got the writer to give thanks to for this. Most of the explanations you've made, the straightforward web site navigation, the relationships you can make it possible to create - it's all sensational, and it&
I needed to put you that bit of note in order to say thank you again for your personal extraordinary methods you've discussed above. This is really seriously generous of you to give unreservedly precisely what a number of people could possibly have supplied for an ebook in order to make some money for themselves, and in particular given that you could have done it in the event you wanted. Those pointers also served as the easy way to comprehend the rest have the identical dreams the same as
A lot of thanks for your whole efforts on this website. My daughter take interest in going through internet research and it's obvious why. A lot of people hear all of the powerful method you make powerful strategies via your blog and as well foster response from others on that matter and my child is truly understanding a great deal. Take advantage of the remaining portion of the year. You are doing a superb job.
nike shoes for men&
I just wanted to jot down a remark to thank you for some of the magnificent ways you are giving out here. My long internet research has at the end of the day been rewarded with reasonable knowledge to talk about with my guests. I 'd suppose that many of us website visitors are rather fortunate to live in a fabulous community with many brilliant individuals with valuable opinions. I feel very happy to have seen the web site and look forward to tons of more fabulous minutes reading here. Th
I simply wanted to compose a simple note in order to express gratitude to you for the magnificent concepts you are posting here. My long internet investigation has now been paid with incredibly good strategies to talk about with my two friends. I would suppose that most of us website visitors are undoubtedly endowed to live in a great community with very many marvellous people with useful hints. I feel quite grateful to have encountered your entire website and look forward to some more exciting
I simply wanted to develop a small message in order to appreciate you for these pleasant tricks you are writing at this website. My time-consuming internet search has at the end been rewarded with brilliant suggestions to go over with my best friends. I 'd repeat that many of us readers actually are unquestionably fortunate to live in a useful community with very many perfect individuals with good things. I feel really fortunate to have come across your webpages and look forward to so many
I wanted to post you this very little word to give many thanks yet again for these superb guidelines you have discussed at this time. This has been simply shockingly open-handed of you to convey extensively exactly what some people could have advertised for an electronic book to help with making some dough for their own end, notably since you might well have tried it in case you considered necessary. The techniques in addition acted to become fantastic way to be sure that other people have the i
I must show my affection for your generosity supporting individuals who require guidance on this particular area. Your personal commitment to getting the solution all through appeared to be certainly productive and have constantly permitted employees just like me to attain their aims. Your new important tips and hints can mean a lot a person like me and a whole lot more to my colleagues. Thank you; from each one of us.
adidas ultra
My spouse and i felt ecstatic that Peter managed to conclude his web research because of the ideas he grabbed while using the web pages. It's not at all simplistic to simply choose to be giving for free tricks that many a number of people may have been making money from. And we also discover we now have the website owner to be grateful to for that. The type of illustrations you've made, the easy blog navigation, the friendships you will give support to foster - it's everything ex
I precisely needed to say thanks again. I am not sure what I might have followed in the absence of the type of techniques shared by you relating to my industry. This was a very difficult problem in my opinion, but taking note of this professional form you managed that took me to jump for delight. I will be happier for your work and then hope that you comprehend what a great job you happen to be carrying out instructing the rest thru your website. Most probably you've never got to know any o
I want to show thanks to this writer just for rescuing me from such a predicament. Right after searching through the online world and finding concepts which were not productive, I believed my life was done. Being alive devoid of the solutions to the difficulties you have sorted out all through your main site is a critical case, and those which might have badly damaged my career if I hadn't encountered your web blog. Your own personal talents and kindness in dealing with all areas was cruci
My husband and i got quite joyful Chris managed to do his preliminary research from the ideas he got from your own blog. It's not at all simplistic to simply choose to be handing out tips and tricks which usually some other people might have been selling. And we all fully grasp we now have the writer to give thanks to for this. All of the illustrations you have made, the straightforward web site menu, the relationships your site help to promote - it's got everything powerful, and it&#
I'm writing to let you be aware of of the exceptional encounter my cousin's princess encountered visiting the blog. She picked up a wide variety of things, including how it is like to possess an excellent giving mood to have other folks with no trouble know precisely specified tricky topics. You really did more than our expectations. I appreciate you for displaying these priceless, trusted, revealing and also easy guidance on your topic to Julie.
Thank you so much for giving everyone an extraordinarily special opportunity to read in detail from this website. It is usually so excellent and as well , stuffed with a lot of fun for me personally and my office mates to visit your website at a minimum three times per week to read through the latest tips you have got. And definitely, I am just certainly pleased with your splendid guidelines served by you. Some 2 ideas in this post are easily the most effective we have had.
I intended to put you a very little remark to help thank you very much again for all the beautiful guidelines you have shared above. This has been shockingly open-handed with people like you to deliver openly what many people would've offered for sale as an e-book in making some bucks for their own end, mostly seeing that you might have tried it in case you considered necessary. Those ideas additionally served to be a fantastic way to be certain that many people have similar zeal really li
I as well as my buddies came looking at the nice advice found on the blog and then developed a terrible suspicion I had not thanked the website owner for those techniques. Those people were consequently very interested to see them and have now without a doubt been tapping into them. We appreciate you turning out to be quite kind and for deciding on some quality subject matter millions of individuals are really desperate to discover. Our own honest regret for not expressing appreciation to you so
Needed to write you one little word just to say thanks a lot as before for all the unique tips you have provided on this site. It's simply incredibly open-handed of you to offer openly just what many people would have marketed as an ebook to generate some money for their own end, principally seeing that you might well have tried it in the event you decided. These advice additionally worked like a great way to be certain that most people have a similar zeal just as my own to know the truth m
I and also my friends were found to be looking at the good key points on your web page while immediately came up with a horrible feeling I never expressed respect to you for them. The boys happened to be absolutely joyful to learn them and have now in truth been tapping into those things. I appreciate you for turning out to be considerably considerate as well as for opting for such incredible areas millions of individuals are really needing to learn about. Our own sincere apologies for not expre
My husband and i have been so peaceful Louis managed to finish up his analysis with the ideas he received through the web page. It's not at all simplistic to just choose to be releasing key points which many people could have been selling. And we all acknowledge we have the blog owner to thank for this. The type of explanations you made, the straightforward site menu, the friendships you will make it possible to engender - it's got all awesome, and it's really helping our son in
I precisely had to thank you so much again. I'm not certain the things I could possibly have followed in the absence of these concepts revealed by you about this area of interest. It actually was the depressing difficulty in my position, however , taking note of the very skilled approach you solved the issue forced me to cry over gladness. Now i'm grateful for this advice and then wish you realize what a great job that you're undertaking instructing many people through a blog. Mos
Needed to create you a bit of remark to help thank you very much again for your personal spectacular solutions you've featured at this time. It's strangely generous of people like you to present without restraint all that numerous people would've offered for sale for an electronic book in making some money on their own, notably considering the fact that you might well have done it in the event you decided. Those advice additionally served like a good way to fully grasp the rest h
I have to show my thanks to you just for bailing me out of this situation. Because of looking throughout the world wide web and coming across solutions which were not powerful, I assumed my life was done. Being alive without the approaches to the difficulties you have solved by means of your main website is a critical case, as well as ones which could have in a negative way affected my career if I hadn't encountered the website. The know-how and kindness in dealing with a lot of stuff was p
I simply wanted to appreciate you again. I am not sure what I would have achieved without the entire solutions shown by you about my subject matter. Completely was the distressing circumstance in my position, however , encountering this professional manner you handled the issue forced me to cry for gladness. Extremely happy for the information and thus believe you find out what an amazing job you are always putting in teaching people thru your webpage. I'm certain you haven't come acro
I intended to draft you that bit of observation just to give many thanks as before over the great things you have shown on this page. This is certainly wonderfully open-handed of you to grant extensively all that most of us might have offered for an electronic book to generate some bucks for their own end, certainly given that you could possibly have tried it in the event you wanted. The concepts also served like the great way to comprehend other individuals have similar keenness the same as my
I must express my appreciation to you just for bailing me out of this particular trouble. As a result of looking through the online world and seeing principles which are not pleasant, I was thinking my life was well over. Living without the presence of approaches to the problems you've fixed all through this short article is a serious case, as well as ones that might have badly affected my career if I had not encountered the website. That skills and kindness in dealing with a lot of stuff w
I precisely desired to say thanks once again. I do not know the things that I would have handled without these ideas provided by you directly on that question. This was a very traumatic difficulty for me, however , finding out your specialised style you dealt with it made me to weep with joy. I'm just grateful for this work and as well , expect you really know what an amazing job you're getting into educating men and women all through your web blog. I am sure you have never encountered
I precisely wished to say thanks yet again. I am not sure the things that I might have taken care of without the type of secrets discussed by you on such situation. Certainly was the frustrating crisis for me personally, but taking note of a new professional fashion you dealt with the issue made me to jump for gladness. I am just grateful for the assistance and thus wish you find out what a great job your are undertaking educating most people all through a blog. More than likely you have never g
I wanted to type a note so as to express gratitude to you for some of the magnificent pointers you are posting at this website. My incredibly long internet research has now been rewarded with incredibly good ideas to exchange with my friends and family. I would point out that most of us site visitors are very blessed to be in a fine network with many lovely professionals with good principles. I feel pretty blessed to have seen your entire website and look forward to tons of more thrilling min
I simply wanted to type a note so as to say thanks to you for these marvelous ways you are posting on this website. My long internet research has finally been compensated with high-quality content to talk about with my companions. I 'd assert that we site visitors actually are very much fortunate to be in a great community with so many marvellous people with interesting ideas. I feel pretty lucky to have encountered your entire web pages and look forward to plenty of more cool moments read
I and my friends happened to be reading through the good key points on your website and then instantly I had an awful suspicion I never thanked the web blog owner for those techniques. Most of the young boys are already as a consequence very interested to read them and already have clearly been enjoying those things. Many thanks for truly being well helpful and also for figuring out certain outstanding subjects most people are really desperate to be aware of. Our own honest regret for not saying