Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MODSERIAL Terminal mbed
stripe.h
00001 #include <stdint.h> 00002 #ifndef STRIPE_H 00003 #define STRIPE_H 00004 00005 struct Row { 00006 char fgc[sizeof("\033[48;5;249m")-1]; 00007 char hex[16*3]; 00008 char sp[4]; 00009 char asc[16]; 00010 char eol[2]; 00011 }; 00012 00013 struct Strip { 00014 char bgc[sizeof("\033[48;5;249m")-1]; 00015 struct Row row[2]; 00016 }; 00017 00018 class Stripe { 00019 private: 00020 //uint8_t bg_color; 00021 //uint8_t out_color; 00022 //uint8_t in_color; 00023 uint8_t wp; 00024 uint8_t rp; 00025 //uint8_t wp; 00026 public: 00027 struct Strip strip; 00028 00029 public: 00030 /* contructor 00031 xterm256 color for background, output, input*/ 00032 Stripe( uint8_t bc, uint8_t oc, uint8_t ic ); 00033 00034 int inbyte( uint8_t ); 00035 int outbyte( uint8_t ); 00036 int advance( void ); 00037 uint8_t getc(void); 00038 00039 00040 00041 }; 00042 00043 #endif
Generated on Wed Jul 13 2022 07:44:32 by
1.7.2