Giter Site home page Giter Site logo

ks0108.x's Introduction

ks0108.X

Project created to easily manage the LCD controller: ks0108 (Samsung, without characters ROM).

The pinmask.h is created to work with PIC-32 PINGUINO. But it can be easily adapted to any other development board due to its structure.

The code is well documented, so the only things to know are in which files we have to look. The main clock time is setup in active_delay.c file, with #pragma directives.

Library functions are defined in ks0108.h, and any function or macro is described.

At the current state, the main program will produce 8 straight lines, 1 px wide. It's only to demonstrate how to use some functions.

Usage

It's a library. Build it and enjoy.

Learning by examples

At the current state of art, we got only one example that includes pretty much any function useful for a library usage and not for a contributor.

Remember: to use libraries in MPLABX IDE, you have to include the archive library that you find in dist/default/production/, and add root path of this project to your compiler include path (to *.h)

Looking at samples/main.X/main.c for a working example).

The main program do the following steps:

  • Configures the board timer (b type, active delay, not asynchronous) with the appropriate SFRs.
  • Initializes the ks0108 library with the appropriate SFRs.
  • Uses raw methods to draw 8 straight lines, 1 px wide.
  • Wait a second
  • Turns on only left side of display and turns off the right one [the right display will not show anything, while the left one will show the 8 lines]
  • Wait a second
  • Does the step 5 for the right display
  • Wait, turns on both display and clears the screen
  • Use the function ks0108_write_string, to easily write strings to the lcd, without worrying about nothing

Contribute

Wanna contribute? Feel free to do it. But please, respect these simple...

Conventions

Macros begins with __NAME. If macros can be functions (I mean that it is a block {} of code) , use extern inline returntype __NAME

Internal variables and functions begins with _name

Any public function begins with name

Bitdeli Badge

ks0108.x's People

Contributors

bitdeli-chef avatar galeone avatar

Watchers

 avatar  avatar  avatar

Forkers

lmcharrua

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.