Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
pmod:pmodcls:user-guide [2022/09/09 17:19] – ↷ Page moved and renamed from pmod:pmod:cls:user_guide to pmod:pmodcls:user-guide Arthur Brown | pmod:pmodcls:user-guide [2023/02/08 20:52] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | [[pmod: | ||
+ | ====== Pmod CLS User Guide ====== | ||
+ | |||
+ | Welcome to the FAQ / User Guide for the PmodCLS! As questions come up, either through the [[http:// | ||
+ | |||
+ | - __I came here because I saw there would be a list of instructions available to view.__\\ \\ //Great reason! You can view the list in the table in paragraphs below // | ||
+ | |||
+ | ==== Instruction Set ==== | ||
+ | |||
+ | | **Instruction** | ||
+ | | < | ||
+ | | s | save cursor position | ||
+ | | u | restore saved cursor position | ||
+ | | j | clear display and home cursor | ||
+ | | < | ||
+ | | < | ||
+ | | < | ||
+ | | < | ||
+ | | * | reset: equivalent to cycling power of PmodCLS | ||
+ | | < | ||
+ | | < | ||
+ | | < | ||
+ | | < | ||
+ | | < | ||
+ | | **Instruction** | ||
+ | | < | ||
+ | | < | ||
+ | | < | ||
+ | | < | ||
+ | | w | enables write to EEPROM | ||
+ | | < | ||
+ | | < | ||
+ | |||
+ | | **Symbol** | ||
+ | | < | ||
+ | | < | ||
+ | | < | ||
+ | | < | ||
+ | | < | ||
+ | |||
+ | |||
+ | ===== Custom Characters ===== | ||
+ | |||
+ | The module can display up to eight custom | ||
+ | characters at a time, but is capable of storing | ||
+ | four sets of eight characters. This consists of | ||
+ | three stored character tables in EEPROM and | ||
+ | one table loaded into the LCD’s RAM. | ||
+ | |||
+ | To create a new custom character, send the | ||
+ | command (ESC)[< | ||
+ | <pn> is a numeric parameter that describes a | ||
+ | row in the character and <ps> is a decimal | ||
+ | selection parameter (0 through 7.) A custom | ||
+ | character definition contains eight rows, so the | ||
+ | escape sequence to define one must have | ||
+ | eight <pn> values followed by the <ps> value | ||
+ | that specifies the character being defined. | ||
+ | |||
+ | To create a new character, first draw out the pattern. Then, determine the numerical value of each row in the character. Note that the left-most segment is the most significant bit. Record each row, from top to bottom, and record which character in the table to save it to. Each row of the character contains six pixels so only the low six bits of each value are used. | ||
+ | |||
+ | For example, the following character would saved by writing: | ||
+ | |||
+ | // | ||
+ | lcdString(" | ||
+ | |||
+ | where lcdChar() and lcdString() are functions that write characters and arrays of characters. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | The above command saves the character to the ' | ||
+ | |||
+ | The character will appear at the location of the LCD's cursor. | ||
+ | |||
+ | - __I noticed that the backslash character for the %%PmodCLS%% isn't programmed as such, rather it appears to be the yen symbol (¥). How do I go about changing this within the character library? Or do I need to create a custom character? | ||
+ | - __So, how does one change the character within the actual stored font? Is it possible? | ||
+ | - __Why was the backslash a ¥ symbol in the first place?__\\ \\ //Mostly because of the alternate ASCII library. See [[https:// | ||
+ | - __What is an escape sequence? | ||
+ | |||
+ | {{tag> |