On Sat, Feb 26, 2011 at 5:10 PM, muhd hanafi <[email protected]> wrote:
> > > On Sat, Feb 26, 2011 at 3:10 AM, Rob Hamerling <[email protected]>wrote: > >> >> >> On 2011/02/25 18:19, muhd hanafi wrote: >> >> i would like to know how to use getkey and how to make a program >>>> if we want to press key on keypad >>>> >>> >> >> >> i found this and it tell me if i want to keypad,use "getkey()". >>> >> >> (probably the library 'keyboard.jal'). Please tell us the whole story! We >> know nothing about what you are doing unless you tell us, and tell us >> everything. Don't assume we understand half a word! >> >> >> my keypad 4x4 is interfaced with lcd. my friend taught me this code for >>> lcd: >>> hd44780="m" --if i want to display "m" on lcd. >>> >> >> You friend seems not to use Jallib libraries! Which library do you use? >> >> >> thats where i don't understand how to use that "getkey()". if i push >>> number 1 on keypad and want lcd display number 1,how is the code? >>> could you teach me? >>> >> >> This is a teach-yourself-group. We can help you, but you have to >> do the work youtself: >> Read the Jallib library documentation >> Read the keyboard and lcd sample programs in the Jallib collection. >> Read the toturials at >> http://www.justanotherlanguage.org/content/jallib/tutorials/ >> >> sorry for bad english :) >>> >> >> No excuses needed! >> >> >> Regards, Rob. >> >> -- >> R. Hamerling, Netherlands --- http://www.robh.nl >> >> -- >> You received this message because you are subscribed to the Google Groups >> "jallib" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/jallib?hl=en. >> >> i have done the lcd code but it says "error: out of data space!" > what does that mean? > this is the lcd library i used for display -- You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jallib?hl=en.
-- -- file : hd447804.jal -- author : Wouter van Ooijen -- date : 17-NOV-1998 -- purpose : hd44780 4-bits interface -- includes : jpic, jdelay -- pins : see hd44780p -- -- Copyright (C) 1998 Wouter van Ooijen -- -- This library is free software; you can redistribute it and/or -- modify it under the terms of the GNU Library General Public -- License as published by the Free Software Foundation; either -- version 2 of the License, or (at your option) any later version. -- -- This library is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -- Library General Public License for more details. -- -- You should have received a copy of the GNU Library General Public -- License along with this library; if not, write to the -- Free Software Foundation, Inc., 59 Temple Place - Suite 330, -- Boston, MA 02111-1307, USA. -- -- required libraries -- include jpic include jdelay -- the IO pin assignment include hd44780p -- output low nibble in value to the HD44780 procedure HD44780_IO( byte in value ) is hd44780_4_E = high -- enable hd44780_4_D = value -- put value on the data lines hd44780_4_E = low -- disable delay_1uS( 250 ) -- enough for the simple operations end procedure -- output the instruction byte in value to the HD44780 procedure HD44780_instruction( byte in value ) is hd44780_4_DI = low -- select instruction HD44780_IO( value >> 4 ) -- output high nibble delay_10uS( 130 ) -- required delay HD44780_IO( value ) -- output low nibble delay_10uS( 130 ) -- required delay end procedure -- output the data byte in value to the HD44780 procedure HD44780_write( byte in value ) is hd44780_4_DI = high -- select data HD44780_IO( value >> 4 ) -- output high nibble HD44780_IO( value ) -- output low nibble end procedure -- idem, pseudo-variable procedure HD44780'put( byte in value ) is hd44780_4_DI = high -- select data HD44780_IO( value >> 4 ) -- output high nibble HD44780_IO( value ) -- output low nibble end procedure -- initialisation _hd44780_4_init -- IO pin initialisation delay_10mS( 10 ) -- gives the HD44780 time to wake up hd44780_4_DI = low -- select instructions HD44780_IO( 0b_0011 ) -- sync one delay_10uS( 50 ) -- extra delay HD44780_IO( 0b_0011 ) -- and one more delay_10uS( 50 ) -- extra delay HD44780_IO( 0b_0011 ) -- end yet another delay_10uS( 50 ) -- extra delay HD44780_instruction( 0b_0011_0010 ) -- init HD44780_instruction( 0b_0010_1000 ) -- two lines, 5x7 (high nibble) -- include the other procedures include hd44780
