FMUSER Wirless Transmit Video And Audio More Easier !

[email protected] WhatsApp +8618078869184
Language

    51 single-chip microcomputer LED class programming skills

     

    First of all, I: (as an example of the simplest 8x8, then say later) 8x8 o'clock Personally feel that there is a place to pay attention to: The first thing is the way to drive the dot matrix I think the 8x8 dot matrix driver is divided into line scanning and column scanning. For example, the row scan is a layer of Forcy: First select the first line, then send the data of this line, then select the second line, then send it into the second line of data, so get loop until it is displayed (ie 8 lines), remember to blanking and micro Delay (after the mirroring and slightly faintness), the column scanning. Figure is a code example: 8x8 dot matrix, no scrolling effect The second is the implementation of the scroll effect. The idea is: One: The scan function is constant, each scan a screen, all data moves one; (simple code implementation) Second: The data is unchanged, and one bit is moved each time the starting position of the data is read. (The code implementation is a bit difficult, anyway, I will not be ╮ (╯ ▽ ╰) ╭) Take the first as an example: Code implementation: The basis for implementing the scrolling effect is a scan function and a data processing function. The scan function has two FOR cycles: the first layer FOR loop control image each time the time interval, then the second layer FOR loop displays the entire screen . As diagram scan function: Scan function The focus of scrolling is the writing of the data cycle function, I think the data processing is divided into two types: (only personal ignorance, novice) The first: If the content displayed is enough to display (this is generally not yet), then it is not necessary to write data processing functions, directly using the _cror _(*, *) function inside in Intrins.h, or _crol _(*, *) function. It is possible to loop processing on the data. No. 1881.< And >> Whether the left and right movements of the following cannot loops, the data will be lost. Second: Naturally, the data displayed is displayed on a screen, causing scroll displaying. At this point, you must write a data processing function. The principle is simple, such as StreamData [80] stored in this array, then you can move one of the data in the data (or afterward). Finally, the position of StreamData [0] is moved to StreamData [79]. Note: The above scan is still scanning a screen (of course, only one screen can only be scanned), every time the screen is scanned, then the data is processed. As shown in the figure, the second data processing function: Note: But I have trouble this method, but I have never thought of other better ways, so if the reader has a better way, I hope I can share it. For the display of the LED light, I don't say the principle of LED, I don't say, everyone understands, I said a few small details: (make up the pit digging above) 1, slightly. When the dynamic digital tube is operated, each digital tube is bright, and it is necessary to improve the brightness before spotting a digital tube, which can improve the brightness, the overall effect of the time is too long, will be greatly reduced (commonly known as: shaking ), But without delay, the brightness will be very low, so how long does it take to delay in the process, but in fact, it depends on your eyes. (If you don't sway your eyes are good delay!) 2, blanking. (It is to eliminate vague light, that is, ghost) The blanking is to say that all the lights will be detached before all the data is refreshed next time. Otherwise, it will appear. I remember that I have just gotten it when I have just learned, and then change the time (it won't know, I don't know how to fight this), how to change it, until I finally retrieve the original video, routines I saw it once I know to blanking. Here is what I just did when I started to learn a microcontroller: My own heart-shaped light, I updated my hand, more food, everyone don't laugh. (When you do that light, you just started learning, the electrical resistance is small, causing too bright, the eyes are so blind ....) 16x16 o'clock generally drove with 74HC595, so there should be other knowledge, so you will not say it here, then say it next time. Bye ~ ☂, read full text, original title: 51 single-chip - LeD class programming skills Article Source: [Micro Signal: Weixin21ic, WeChat public number: 21IC electronic network] Welcome to add attention! Please indicate the source of the article.

     

     

     

     

    List all Question

    Nickname

    Email

    Questions

    Our other product:

    Professional FM Radio Station Equipment Package

     



     

    Hotel IPTV Solution

     


      Enter email  to get a surprise

      fmuser.org

      es.fmuser.org
      it.fmuser.org
      fr.fmuser.org
      de.fmuser.org
      af.fmuser.org ->Afrikaans
      sq.fmuser.org ->Albanian
      ar.fmuser.org ->Arabic
      hy.fmuser.org ->Armenian
      az.fmuser.org ->Azerbaijani
      eu.fmuser.org ->Basque
      be.fmuser.org ->Belarusian
      bg.fmuser.org ->Bulgarian
      ca.fmuser.org ->Catalan
      zh-CN.fmuser.org ->Chinese (Simplified)
      zh-TW.fmuser.org ->Chinese (Traditional)
      hr.fmuser.org ->Croatian
      cs.fmuser.org ->Czech
      da.fmuser.org ->Danish
      nl.fmuser.org ->Dutch
      et.fmuser.org ->Estonian
      tl.fmuser.org ->Filipino
      fi.fmuser.org ->Finnish
      fr.fmuser.org ->French
      gl.fmuser.org ->Galician
      ka.fmuser.org ->Georgian
      de.fmuser.org ->German
      el.fmuser.org ->Greek
      ht.fmuser.org ->Haitian Creole
      iw.fmuser.org ->Hebrew
      hi.fmuser.org ->Hindi
      hu.fmuser.org ->Hungarian
      is.fmuser.org ->Icelandic
      id.fmuser.org ->Indonesian
      ga.fmuser.org ->Irish
      it.fmuser.org ->Italian
      ja.fmuser.org ->Japanese
      ko.fmuser.org ->Korean
      lv.fmuser.org ->Latvian
      lt.fmuser.org ->Lithuanian
      mk.fmuser.org ->Macedonian
      ms.fmuser.org ->Malay
      mt.fmuser.org ->Maltese
      no.fmuser.org ->Norwegian
      fa.fmuser.org ->Persian
      pl.fmuser.org ->Polish
      pt.fmuser.org ->Portuguese
      ro.fmuser.org ->Romanian
      ru.fmuser.org ->Russian
      sr.fmuser.org ->Serbian
      sk.fmuser.org ->Slovak
      sl.fmuser.org ->Slovenian
      es.fmuser.org ->Spanish
      sw.fmuser.org ->Swahili
      sv.fmuser.org ->Swedish
      th.fmuser.org ->Thai
      tr.fmuser.org ->Turkish
      uk.fmuser.org ->Ukrainian
      ur.fmuser.org ->Urdu
      vi.fmuser.org ->Vietnamese
      cy.fmuser.org ->Welsh
      yi.fmuser.org ->Yiddish

       
  •  

    FMUSER Wirless Transmit Video And Audio More Easier !

  • Contact

    Address:
    No.305 Room HuiLan Building No.273 Huanpu Road Guangzhou China 510620

    E-mail:
    [email protected]

    Tel / WhatApps:
    +8618078869184

  • Categories

  • Newsletter

    FIRST OR FULL NAME

    E-mail

  • paypal solution  Western UnionBank OF China
    E-mail:[email protected]   WhatsApp:+8618078869184   Skype:sky198710021 Chat with me
    Copyright 2006-2020 Powered By www.fmuser.org

    Contact Us