Example #1
0
/*! \param mask_left mask for the left-most position
 * \param mask_lcenter mask for the left-center position
 * \param mask_rcenter mask for the right-center position
 * \param mask_right mask for the right-most position
 */
void cputc_native_user(char mask_left, char mask_lcenter, char mask_rcenter, char mask_right)
{
  cputc_native_4(mask_left);
  cputc_native_3(mask_lcenter);
  cputc_native_2(mask_rcenter);
  cputc_native_1(mask_right);
}
Example #2
0
File: kmain.c Project: abbrev/xs
//! show OFF string
extern inline void show_off(void) {
  cls();

#ifdef CONF_ASCII
  cputs("OFF");
#else
#ifdef CONF_CONIO
  cputc_native_4(0x7e);
  cputc_native_3(0x1d);
  cputc_native_2(0x1d);
#else
  lcd_digit(0);
#endif
#endif
#ifndef CONF_LCD_REFRESH
  lcd_refresh();
#endif
}
Example #3
0
File: kmain.c Project: abbrev/xs
//! show ON string
extern inline void show_on(void) {
  cls();

#ifdef CONF_ASCII
  cputs("ON");
#else
#ifdef CONF_CONIO
  cputc_native_4(0x38);
  cputc_native_3(0x3d);
  cputc_native_2(0x7c);
  cputc_native_1(0x7e);
  cputc_native_0(0x6d);
#else
  lcd_digit(1);
#endif
#endif
#ifndef CONF_LCD_REFRESH
  lcd_refresh();
#endif
  delay(250);
}
Example #4
0
File: conio.c Project: abbrev/xs
/*! \param mask the segment mask.
   \param pos  the desired display position.

   this is a dispatcher for the fixed position routines.
 */
void cputc_native(char mask, int pos)
{
  switch (pos) {
  case 0:
    cputc_native_0(mask);
    break;
  case 1:
    cputc_native_1(mask);
    break;
  case 2:
    cputc_native_2(mask);
    break;
  case 3:
    cputc_native_3(mask);
    break;
  case 4:
    cputc_native_4(mask);
    break;
  case 5:
    cputc_native_5(mask);
  }
}