Arduino  1.8.10
RobotControl クラス

#include <ArduinoRobot.h>

RobotControl の継承関係図
Multiplexer EEPROM_I2C Compass SquawkSynthSD Arduino_LCD SquawkSynth Adafruit_GFX Print Print

公開メンバ関数

 RobotControl ()
 
void begin ()
 
void setMode (uint8_t mode)
 
bool digitalRead (uint8_t port)
 
int analogRead (uint8_t port)
 
void digitalWrite (uint8_t port, bool value)
 
void analogWrite (uint8_t port, uint8_t value)
 
void updateIR ()
 
int knobRead ()
 
int trimRead ()
 
void beginSpeaker (uint16_t frequency=44100)
 
void playMelody (char *script)
 
void playFile (char *filename)
 
void stopPlayFile ()
 
void beep (int beep_length=BEEP_SIMPLE)
 
void tempoWrite (int tempo)
 
void tuneWrite (float tune)
 
uint16_t compassRead ()
 
void drawCompass (uint16_t value)
 
void drawBase ()
 
void drawDire (int16_t dire)
 
void keyboardCalibrate (int *vals)
 
int8_t keyboardRead ()
 
void moveForward (int speed)
 
void moveBackward (int speed)
 
void turnLeft (int speed)
 
void turnRight (int speed)
 
void motorsStop ()
 
void motorsWritePct (int speedLeftPct, int speedRightPct)
 
void motorsWrite (int speedLeft, int speedRight)
 
void pointTo (int degrees)
 
void turn (int degress)
 
void lineFollowConfig (uint8_t KP, uint8_t KD, uint8_t robotSpeed, uint8_t intergrationTime)
 
void beginTFT (uint16_t foreGround=BLACK, uint16_t background=WHITE)
 
void debugPrint (long value, uint8_t x=0, uint8_t y=0)
 
void clearScreen ()
 
void drawBMP (char *filename, uint8_t x, uint8_t y)
 
void _drawBMP (uint32_t iconOffset, uint8_t x, uint8_t y, uint8_t width, uint8_t height)
 
void _drawBMP (char *filename, uint8_t x, uint8_t y)
 
void beginBMPFromEEPROM ()
 
void endBMPFromEEPROM ()
 
void beginSD ()
 
void userNameRead (char *container)
 
void robotNameRead (char *container)
 
void cityNameRead (char *container)
 
void countryNameRead (char *container)
 
void userNameWrite (char *text)
 
void robotNameWrite (char *text)
 
void cityNameWrite (char *text)
 
void countryNameWrite (char *text)
 
bool isActionDone ()
 
void pauseMode (uint8_t onOff)
 
void displayLogos ()
 
void waitContinue (uint8_t key=BUTTON_MIDDLE)
 
- 基底クラス Multiplexer に属する継承公開メンバ関数
void begin (uint8_t *selectors, uint8_t Z, uint8_t length)
 
void selectPin (uint8_t num)
 
int getAnalogValue ()
 
int getAnalogValueAt (uint8_t num)
 
bool getDigitalValue ()
 
bool getDigitalValueAt (uint8_t num)
 
void begin (uint8_t *selectors, uint8_t Z, uint8_t length)
 
void selectPin (uint8_t num)
 
int getAnalogValue ()
 
int getAnalogValueAt (uint8_t num)
 
bool getDigitalValue ()
 
bool getDigitalValueAt (uint8_t num)
 
- 基底クラス EEPROM_I2C に属する継承公開メンバ関数
void begin ()
 
void writeByte (unsigned int eeaddresspage, byte data)
 
byte readByte (unsigned int eeaddresspage)
 
void writePage (unsigned int eeaddresspage, byte *data, byte length)
 
void readBuffer (unsigned int eeaddress, byte *buffer, int length)
 
- 基底クラス Compass に属する継承公開メンバ関数
void begin ()
 
float getReading ()
 
- 基底クラス SquawkSynthSD に属する継承公開メンバ関数
void play ()
 
void play (Fat16 file)
 
- 基底クラス SquawkSynth に属する継承公開メンバ関数
 SquawkSynth ()
 
void begin (uint16_t sample_rate)
 
void play (const uint8_t *melody)
 
void play ()
 
void pause ()
 
void stop ()
 
void tune (float tuning)
 
void tempo (uint16_t tempo)
 
- 基底クラス Arduino_LCD に属する継承公開メンバ関数
 Arduino_LCD (uint8_t CS, uint8_t RS, uint8_t SID, uint8_t SCLK, uint8_t RST)
 
 Arduino_LCD (uint8_t CS, uint8_t RS, uint8_t RST)
 
void initB (void)
 
void initR (uint8_t options=INITR_GREENTAB)
 
void setAddrWindow (uint8_t x0, uint8_t y0, uint8_t x1, uint8_t y1)
 
void pushColor (uint16_t color)
 
void fillScreen (uint16_t color)
 
void drawPixel (int16_t x, int16_t y, uint16_t color)
 
void drawFastVLine (int16_t x, int16_t y, int16_t h, uint16_t color)
 
void drawFastHLine (int16_t x, int16_t y, int16_t w, uint16_t color)
 
void fillRect (int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)
 
void setRotation (uint8_t r)
 
void invertDisplay (boolean i)
 
uint16_t Color565 (uint8_t r, uint8_t g, uint8_t b)
 
- 基底クラス Adafruit_GFX に属する継承公開メンバ関数
 Adafruit_GFX (int16_t w, int16_t h)
 
virtual void drawLine (int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint16_t color)
 
virtual void drawFastVLine (int16_t x, int16_t y, int16_t h, uint16_t color)
 
virtual void drawFastHLine (int16_t x, int16_t y, int16_t w, uint16_t color)
 
virtual void drawRect (int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)
 
virtual void fillRect (int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)
 
virtual void fillScreen (uint16_t color)
 
virtual void invertDisplay (boolean i)
 
void drawCircle (int16_t x0, int16_t y0, int16_t r, uint16_t color)
 
void drawCircleHelper (int16_t x0, int16_t y0, int16_t r, uint8_t cornername, uint16_t color)
 
void fillCircle (int16_t x0, int16_t y0, int16_t r, uint16_t color)
 
void fillCircleHelper (int16_t x0, int16_t y0, int16_t r, uint8_t cornername, int16_t delta, uint16_t color)
 
void drawTriangle (int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color)
 
void fillTriangle (int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color)
 
void drawRoundRect (int16_t x0, int16_t y0, int16_t w, int16_t h, int16_t radius, uint16_t color)
 
void fillRoundRect (int16_t x0, int16_t y0, int16_t w, int16_t h, int16_t radius, uint16_t color)
 
void drawBitmap (int16_t x, int16_t y, const uint8_t *bitmap, int16_t w, int16_t h, uint16_t color)
 
void drawChar (int16_t x, int16_t y, unsigned char c, uint16_t color, uint16_t bg, uint8_t size)
 
void setCursor (int16_t x, int16_t y)
 
void setTextColor (uint16_t c)
 
void setTextColor (uint16_t c, uint16_t bg)
 
void setTextSize (uint8_t s)
 
void setTextWrap (boolean w)
 
void setRotation (uint8_t r)
 
virtual void write (uint8_t)
 
int16_t height (void)
 
int16_t width (void)
 
uint8_t getRotation (void)
 
virtual uint16_t newColor (uint8_t red, uint8_t green, uint8_t blue)
 
void background (uint8_t red, uint8_t green, uint8_t blue)
 
void background (color c)
 
void fill (uint8_t red, uint8_t green, uint8_t blue)
 
void fill (color c)
 
void noFill ()
 
void stroke (uint8_t red, uint8_t green, uint8_t blue)
 
void stroke (color c)
 
void noStroke ()
 
void text (const char *text, int16_t x, int16_t y)
 
void text (int value, uint8_t posX, uint8_t posY)
 
void text (long value, uint8_t posX, uint8_t posY)
 
void text (char value, uint8_t posX, uint8_t posY)
 
void textWrap (const char *text, int16_t x, int16_t y)
 
void textSize (uint8_t size)
 
void circle (int16_t x, int16_t y, int16_t r)
 
void point (int16_t x, int16_t y)
 
void line (int16_t x1, int16_t y1, int16_t x2, int16_t y2)
 
void quad (int16_t x1, int16_t y1, int16_t x2, int16_t y2, int16_t x3, int16_t y3, int16_t x4, int16_t y4)
 
void rect (int16_t x, int16_t y, int16_t width, int16_t height)
 
void rect (int16_t x, int16_t y, int16_t width, int16_t height, int16_t radius)
 
void triangle (int16_t x1, int16_t y1, int16_t x2, int16_t y2, int16_t x3, int16_t y3)
 
 Adafruit_GFX (int16_t w, int16_t h)
 
virtual void drawLine (int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint16_t color)
 
virtual void drawFastVLine (int16_t x, int16_t y, int16_t h, uint16_t color)
 
virtual void drawFastHLine (int16_t x, int16_t y, int16_t w, uint16_t color)
 
virtual void drawRect (int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)
 
virtual void fillRect (int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)
 
virtual void fillScreen (uint16_t color)
 
virtual void invertDisplay (boolean i)
 
void drawCircle (int16_t x0, int16_t y0, int16_t r, uint16_t color)
 
void drawCircleHelper (int16_t x0, int16_t y0, int16_t r, uint8_t cornername, uint16_t color)
 
void fillCircle (int16_t x0, int16_t y0, int16_t r, uint16_t color)
 
void fillCircleHelper (int16_t x0, int16_t y0, int16_t r, uint8_t cornername, int16_t delta, uint16_t color)
 
void drawTriangle (int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color)
 
void fillTriangle (int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color)
 
void drawRoundRect (int16_t x0, int16_t y0, int16_t w, int16_t h, int16_t radius, uint16_t color)
 
void fillRoundRect (int16_t x0, int16_t y0, int16_t w, int16_t h, int16_t radius, uint16_t color)
 
void drawBitmap (int16_t x, int16_t y, const uint8_t *bitmap, int16_t w, int16_t h, uint16_t color)
 
void drawChar (int16_t x, int16_t y, unsigned char c, uint16_t color, uint16_t bg, uint8_t size)
 
void setCursor (int16_t x, int16_t y)
 
void setTextColor (uint16_t c)
 
void setTextColor (uint16_t c, uint16_t bg)
 
void setTextSize (uint8_t s)
 
void setTextWrap (boolean w)
 
void setRotation (uint8_t r)
 
virtual void write (uint8_t)
 
int16_t height (void)
 
int16_t width (void)
 
uint8_t getRotation (void)
 
virtual uint16_t newColor (uint8_t red, uint8_t green, uint8_t blue)
 
void background (uint8_t red, uint8_t green, uint8_t blue)
 
void background (color c)
 
void fill (uint8_t red, uint8_t green, uint8_t blue)
 
void fill (color c)
 
void noFill ()
 
void stroke (uint8_t red, uint8_t green, uint8_t blue)
 
void stroke (color c)
 
void noStroke ()
 
void text (const char *text, int16_t x, int16_t y)
 
void textWrap (const char *text, int16_t x, int16_t y)
 
void textSize (uint8_t size)
 
void circle (int16_t x, int16_t y, int16_t r)
 
void point (int16_t x, int16_t y)
 
void line (int16_t x1, int16_t y1, int16_t x2, int16_t y2)
 
void quad (int16_t x1, int16_t y1, int16_t x2, int16_t y2, int16_t x3, int16_t y3, int16_t x4, int16_t y4)
 
void rect (int16_t x, int16_t y, int16_t width, int16_t height)
 
void rect (int16_t x, int16_t y, int16_t width, int16_t height, int16_t radius)
 
void triangle (int16_t x1, int16_t y1, int16_t x2, int16_t y2, int16_t x3, int16_t y3)
 
- 基底クラス Print に属する継承公開メンバ関数
 Print ()
 
int getWriteError ()
 
void clearWriteError ()
 
size_t write (const char *str)
 
virtual size_t write (const uint8_t *buffer, size_t size)
 
size_t write (const char *buffer, size_t size)
 
virtual int availableForWrite ()
 
size_t print (const __FlashStringHelper *)
 
size_t print (const String &)
 
size_t print (const char[])
 
size_t print (char)
 
size_t print (unsigned char, int=DEC)
 
size_t print (int, int=DEC)
 
size_t print (unsigned int, int=DEC)
 
size_t print (long, int=DEC)
 
size_t print (unsigned long, int=DEC)
 
size_t print (double, int=2)
 
size_t print (const Printable &)
 
size_t println (const __FlashStringHelper *)
 
size_t println (const String &s)
 
size_t println (const char[])
 
size_t println (char)
 
size_t println (unsigned char, int=DEC)
 
size_t println (int, int=DEC)
 
size_t println (unsigned int, int=DEC)
 
size_t println (long, int=DEC)
 
size_t println (unsigned long, int=DEC)
 
size_t println (double, int=2)
 
size_t println (const Printable &)
 
size_t println (void)
 
virtual void flush ()
 

公開変数類

uint16_t IRarray [5]
 
uint16_t foreGround
 
uint16_t backGround
 

その他の継承メンバ

- 基底クラス EEPROM_I2C に属する継承限定公開メンバ関数
void _beginTransmission (unsigned int eeaddress)
 
void _endTransmission ()
 
- 基底クラス SquawkSynth に属する継承限定公開メンバ関数
void play (SquawkStream *melody)
 
- 基底クラス Print に属する継承限定公開メンバ関数
void setWriteError (int err=1)
 
- 基底クラス Adafruit_GFX に属する継承限定公開変数類
const int16_t WIDTH
 
const int16_t HEIGHT
 
int16_t _width
 
int16_t _height
 
int16_t cursor_x
 
int16_t cursor_y
 
uint16_t textcolor
 
uint16_t textbgcolor
 
uint8_t textsize
 
uint8_t rotation
 
boolean wrap
 
color strokeColor
 
bool useStroke
 
color fillColor
 
bool useFill
 
int16_t WIDTH
 
int16_t HEIGHT
 

詳解

ArduinoRobot.h203 行目に定義があります。

構築子と解体子

◆ RobotControl()

RobotControl::RobotControl ( )

ArduinoRobot.cpp26 行目に定義があります。

26  :Arduino_LCD(LCD_CS,DC_LCD,RST_LCD){
27 
28 }
Arduino_LCD(uint8_t CS, uint8_t RS, uint8_t SID, uint8_t SCLK, uint8_t RST)
Definition: Arduino_LCD.cpp:28

関数詳解

◆ _drawBMP() [1/2]

void RobotControl::_drawBMP ( uint32_t  iconOffset,
uint8_t  x,
uint8_t  y,
uint8_t  width,
uint8_t  height 
)

lcd.cpp133 行目に定義があります。

133  {
134  uint8_t screenWidth=Arduino_LCD::width();
135  uint8_t screenHeight=Arduino_LCD::height();
136  if((x >= screenWidth) || (y >= screenHeight)) return;
137 
138  // Crop area to be loaded
139  if((x+width-1) >= screenWidth) width = screenWidth - x;
140  if((y+height-1) >= screenHeight) height = screenHeight - y;
141 
142  // Set TFT address window to clipped image bounds
143  Arduino_LCD::setAddrWindow(x, y, x+width-1, y+height-1);
144 
145  // launch the reading command
146  _drawBMP_EEPROM(iconOffset, width, height);
147 }
int16_t width(void)
void setAddrWindow(uint8_t x0, uint8_t y0, uint8_t x1, uint8_t y1)
int16_t height(void)

◆ _drawBMP() [2/2]

void RobotControl::_drawBMP ( char *  filename,
uint8_t  x,
uint8_t  y 
)

lcd.cpp150 行目に定義があります。

150  {
151  uint8_t bmpWidth, bmpHeight; // W+H in pixels
152  uint8_t bmpDepth; // Bit depth (currently must be 24)
153  uint32_t bmpImageoffset; // Start of image data in file
154  uint32_t rowSize; // Not always = bmpWidth; may have padding
155  uint8_t sdbuffer[3*BUFFPIXEL]; // pixel buffer (R+G+B per pixel)
156  uint8_t buffidx = sizeof(sdbuffer); // Current position in sdbuffer
157  bool goodBmp = false; // Set to true on valid header parse
158  bool flip = true; // BMP is stored bottom-to-top
159  uint8_t w, h, row, col;
160  uint8_t r, g, b;
161  uint32_t pos = 0;
162 
163  // Open requested file on SD card
164  if ((file.open(filename,O_READ)) == NULL) {
165  return;
166  }
167 
168  // Parse BMP header
169  if(read16(file) == 0x4D42) { // BMP signature
170  read32(file);//uint32_t aux = read32(file);
171  (void)read32(file); // Read & ignore creator bytes
172  bmpImageoffset = read32(file); // Start of image data
173 
174  // Read DIB header
175  (void)read32(file);//aux = read32(file);
176  bmpWidth = read32(file);
177  bmpHeight = read32(file);
178 
179  if(read16(file) == 1) { // # planes -- must be '1'
180  bmpDepth = read16(file); // bits per pixel
181  if((bmpDepth == 24) && (read32(file) == 0)) { // 0 = uncompressed
182  goodBmp = true; // Supported BMP format -- proceed!
183 
184  // BMP rows are padded (if needed) to 4-byte boundary
185  rowSize = (bmpWidth * 3 + 3) & ~3;
186 
187  // If bmpHeight is negative, image is in top-down order.
188  // This is not canon but has been observed in the wild.
189  if(bmpHeight < 0) {
190  bmpHeight = -bmpHeight;
191  flip = false;
192  }
193 
194  // Crop area to be loaded
195  w = bmpWidth;
196  h = bmpHeight;
197 
198  // Start drawing
199  //_enableLCD();
200  Arduino_LCD::setAddrWindow(posX, posY, posX+bmpWidth-1, posY+bmpHeight-1);
201 
202  for (row=0; row<h; row++) { // For each scanline...
203  if(flip) // Bitmap is stored bottom-to-top order (normal BMP)
204  pos = bmpImageoffset + (bmpHeight - 1 - row) * rowSize;
205  else // Bitmap is stored top-to-bottom
206  pos = bmpImageoffset + row * rowSize;
207 
208  if(file.curPosition() != pos) { // Need seek?
209  //_enableSD();
210  file.seekSet(pos);
211  buffidx = sizeof(sdbuffer); // Force buffer reload
212  //_enableLCD();
213  }
214  for (col=0; col<w; col++) { // For each pixel...
215  // Time to read more pixel data?
216  if (buffidx >= sizeof(sdbuffer)) { // Indeed
217  //_enableSD();
218  file.read(sdbuffer, sizeof(sdbuffer));
219  buffidx = 0; // Set index to beginning
220  //_enableLCD();
221  }
222  // Convert pixel from BMP to TFT format, push to display
223  b = sdbuffer[buffidx++];
224  g = sdbuffer[buffidx++];
225  r = sdbuffer[buffidx++];
226 
227  int color = Arduino_LCD::Color565(r,g,b);
228 
230  } // end pixel
231  } // end scanline
232  //_enableSD();
233  } // end goodBmp*/
234  }
235  }
236  file.close();
237  //_enableLCD();
238 }
uint8_t close(void)
Definition: Fat16.cpp:155
int16_t read(void)
Definition: Fat16.cpp:523
uint8_t seekSet(uint32_t pos)
Definition: Fat16.cpp:690
uint16_t Color565(uint8_t r, uint8_t g, uint8_t b)
uint8_t const O_READ
Definition: Fat16.h:44
#define BUFFPIXEL
Definition: lcd.cpp:22
uint32_t read32(Fat16 &f)
Definition: lcd.cpp:244
void pushColor(uint16_t color)
uint16_t color
Definition: Adafruit_GFX.h:39
uint8_t open(const char *fileName, uint8_t oflag)
Definition: Fat16.cpp:348
uint32_t curPosition(void) const
Definition: Fat16.h:156
#define NULL
Definition: def.h:44
uint16_t read16(Fat16 &f)
Definition: lcd.cpp:239
void setAddrWindow(uint8_t x0, uint8_t y0, uint8_t x1, uint8_t y1)

◆ analogRead()

int RobotControl::analogRead ( uint8_t  port)

Sensors.cpp36 行目に定義があります。

36  {
37  uint8_t type=_getTypeCode(port);
38  switch(type){
39  case TYPE_TOP_TK:
40  return _analogReadTopMux(port);
41  break;
42  case TYPE_TOP_TKD:
43  return _analogReadTopPin(port);
44  break;
45  case TYPE_BOTTOM_TK:
46  return _requestAnalogRead(port);
47  break;
48  }
49 }
#define TYPE_TOP_TKD
Definition: ArduinoRobot.h:93
#define TYPE_TOP_TK
Definition: ArduinoRobot.h:92
uint8_t type
Definition: FatStructs.h:62
#define TYPE_BOTTOM_TK
Definition: ArduinoRobot.h:94

◆ analogWrite()

void RobotControl::analogWrite ( uint8_t  port,
uint8_t  value 
)

Sensors.cpp64 行目に定義があります。

64  {
65  if(port==TKD4)
66  ::analogWrite(port,value);
67 }
void analogWrite(uint8_t port, uint8_t value)
Definition: Sensors.cpp:64

◆ beep()

void RobotControl::beep ( int  beep_length = BEEP_SIMPLE)

Melody.cpp82 行目に定義があります。

82  {
83  char scr1[]="8F";
84  char scr2[]="8Fe";
85  char scr3[]="1F";
86 
87  switch (beep_length)
88  {
89  case BEEP_SIMPLE:
90  default:
91  playMelody(scr1);
92  break;
93 
94  case BEEP_DOUBLE:
95  playMelody(scr2);
96  break;
97 
98  case BEEP_LONG:
99  playMelody(scr3);
100  }
101 
102 }
#define BEEP_LONG
Definition: ArduinoRobot.h:49
#define BEEP_DOUBLE
Definition: ArduinoRobot.h:48
void playMelody(char *script)
Definition: Melody.cpp:45
#define BEEP_SIMPLE
Definition: ArduinoRobot.h:47

◆ begin()

void RobotControl::begin ( void  )

ArduinoRobot.cpp30 行目に定義があります。

30  {
31  Wire.begin();
32  //Compass
33  //nothing here
34 
35  //TK sensors
36  uint8_t MuxPins[]={MUXA,MUXB,MUXC,MUXD};
37  Multiplexer::begin(MuxPins,MUX_IN,4);
38 
39  //piezo
40  pinMode(BUZZ,OUTPUT);
41 
42  //communication
43  Serial1.begin(9600);
44  messageOut.begin(&Serial1);
45  messageIn.begin(&Serial1);
46 
47  //TFT initialization
48  //Arduino_LCD::initR(INITR_GREENTAB);
49 }
void pinMode(uint8_t, uint8_t)
void begin()
Definition: Wire.cpp:55
TwoWire Wire
Definition: Wire.cpp:330
#define OUTPUT
Definition: Arduino.h:44
void begin(HardwareSerial *theSerial)
void begin(uint8_t *selectors, uint8_t Z, uint8_t length)
Definition: Multiplexer.cpp:21

◆ beginBMPFromEEPROM()

void RobotControl::beginBMPFromEEPROM ( )

lcd.cpp275 行目に定義があります。

275  {
276  _eeprom_bmp=(EEPROM_BMP*)malloc(NUM_EEPROM_BMP*sizeof(EEPROM_BMP));
279 
280  for(uint8_t j=0;j<NUM_EEPROM_BMP;j++){
282  for(uint8_t i=0;i<8;i++){
283  _eeprom_bmp[j].name[i]=Wire.read();//name
284  }
285  _eeprom_bmp[j].width=Wire.read();//width
286  _eeprom_bmp[j].height=Wire.read();//height
287 
288  _eeprom_bmp[j].address=Wire.read();
289  _eeprom_bmp[j].address=_eeprom_bmp[j].address + (Wire.read() << 8);//address
290  }
291  _isEEPROM_BMP_Allocated=true;
292 
293 }
uint16_t address
Definition: ArduinoRobot.h:197
uint8_t i
uint8_t width
Definition: ArduinoRobot.h:195
void * malloc(size_t __size) __ATTR_MALLOC__
char name[8]
Definition: ArduinoRobot.h:194
#define DEVICEADDRESS
Definition: EEPROM_I2C.h:11
uint8_t height
Definition: ArduinoRobot.h:196
void _beginTransmission(unsigned int eeaddress)
Definition: EEPROM_I2C.cpp:55
TwoWire Wire
Definition: Wire.cpp:330
#define NUM_EEPROM_BMP
Definition: ArduinoRobot.h:192
uint8_t requestFrom(uint8_t, uint8_t)
Definition: Wire.cpp:126
void _endTransmission()
Definition: EEPROM_I2C.cpp:60
virtual int read(void)
Definition: Wire.cpp:244

◆ beginSD()

void RobotControl::beginSD ( )

RobotSdCard.cpp21 行目に定義があります。

21  {
22  card.init();
23  file.init(&card);
24  melody.init(&card);
25 }
uint8_t init(void)
Definition: SdCard.h:160
static uint8_t init(SdCard *dev, uint8_t part)
Definition: Fat16.cpp:229

◆ beginSpeaker()

void RobotControl::beginSpeaker ( uint16_t  frequency = 44100)

Melody.cpp28 行目に定義があります。

28  {
29  SquawkSynth::begin(frequency);
31  osc[2].vol = 0x7F;
32 }
osc_t osc[4]
uint8_t vol
Definition: Squawk.h:58
void play()
Definition: Squawk.cpp:322
void begin(uint16_t sample_rate)
Definition: Squawk.cpp:170

◆ beginTFT()

void RobotControl::beginTFT ( uint16_t  foreGround = BLACK,
uint16_t  background = WHITE 
)

lcd.cpp29 行目に定義があります。

29  {
30  //TFT initialization
35  this->foreGround=foreGround;
36  this->backGround=backGround;
37 }
void fillScreen(uint16_t color)
uint16_t backGround
Definition: ArduinoRobot.h:282
uint16_t foreGround
Definition: ArduinoRobot.h:281
void initB(void)
void setTextColor(uint16_t c)
void setTextSize(uint8_t s)

◆ cityNameRead()

void RobotControl::cityNameRead ( char *  container)
inline

ArduinoRobot.h370 行目に定義があります。

370  {
371  EEPROM_I2C::readBuffer(ADDRESS_CITYNAME,(uint8_t*)container,18);
372 }
void readBuffer(unsigned int eeaddress, byte *buffer, int length)
Definition: EEPROM_I2C.cpp:44
#define ADDRESS_CITYNAME
Definition: ArduinoRobot.h:142

◆ cityNameWrite()

void RobotControl::cityNameWrite ( char *  text)
inline

ArduinoRobot.h383 行目に定義があります。

383  {
385 }
void text(const char *text, int16_t x, int16_t y)
void writePage(unsigned int eeaddresspage, byte *data, byte length)
Definition: EEPROM_I2C.cpp:31
#define ADDRESS_CITYNAME
Definition: ArduinoRobot.h:142

◆ clearScreen()

void RobotControl::clearScreen ( )

lcd.cpp92 行目に定義があります。

92  {
94 }
void fillScreen(uint16_t color)
uint16_t backGround
Definition: ArduinoRobot.h:282

◆ compassRead()

uint16_t RobotControl::compassRead ( )

Sensors.cpp271 行目に定義があります。

271  {
272  return Compass::getReading();
273 }
float getReading()
Definition: Compass.cpp:25

◆ countryNameRead()

void RobotControl::countryNameRead ( char *  container)
inline

ArduinoRobot.h373 行目に定義があります。

373  {
374  EEPROM_I2C::readBuffer(ADDRESS_COUNTRYNAME,(uint8_t*)container,18);
375 }
void readBuffer(unsigned int eeaddress, byte *buffer, int length)
Definition: EEPROM_I2C.cpp:44
#define ADDRESS_COUNTRYNAME
Definition: ArduinoRobot.h:144

◆ countryNameWrite()

void RobotControl::countryNameWrite ( char *  text)
inline

ArduinoRobot.h386 行目に定義があります。

386  {
388 }
void text(const char *text, int16_t x, int16_t y)
#define ADDRESS_COUNTRYNAME
Definition: ArduinoRobot.h:144
void writePage(unsigned int eeaddresspage, byte *data, byte length)
Definition: EEPROM_I2C.cpp:31

◆ debugPrint()

void RobotControl::debugPrint ( long  value,
uint8_t  x = 0,
uint8_t  y = 0 
)

lcd.cpp83 行目に定義があります。

83  {
84  static long oldVal=0;
86  text(oldVal,x,y);
88  text(value,x,y);
89  oldVal=value;
90 }
void text(const char *text, int16_t x, int16_t y)
void stroke(uint8_t red, uint8_t green, uint8_t blue)
uint16_t backGround
Definition: ArduinoRobot.h:282
uint16_t foreGround
Definition: ArduinoRobot.h:281

◆ digitalRead()

bool RobotControl::digitalRead ( uint8_t  port)

Sensors.cpp22 行目に定義があります。

22  {
23  uint8_t type=_getTypeCode(port);
24  switch(type){
25  case TYPE_TOP_TK:
26  return _digitalReadTopMux(port);
27  break;
28  case TYPE_TOP_TKD:
29  return _digitalReadTopPin(port);
30  break;
31  case TYPE_BOTTOM_TK:
32  return _requestDigitalRead(port);
33  break;
34  }
35 }
#define TYPE_TOP_TKD
Definition: ArduinoRobot.h:93
#define TYPE_TOP_TK
Definition: ArduinoRobot.h:92
uint8_t type
Definition: FatStructs.h:62
#define TYPE_BOTTOM_TK
Definition: ArduinoRobot.h:94

◆ digitalWrite()

void RobotControl::digitalWrite ( uint8_t  port,
bool  value 
)

Sensors.cpp50 行目に定義があります。

50  {
51  uint8_t type=_getTypeCode(port);
52  switch(type){
53  case TYPE_TOP_TK:
54  //Top TKs can't use digitalWrite?
55  break;
56  case TYPE_TOP_TKD:
57  _digitalWriteTopPin(port, value);
58  break;
59  case TYPE_BOTTOM_TK:
60  _requestDigitalWrite(port, value);
61  break;
62  }
63 }
#define TYPE_TOP_TKD
Definition: ArduinoRobot.h:93
#define TYPE_TOP_TK
Definition: ArduinoRobot.h:92
uint8_t type
Definition: FatStructs.h:62
#define TYPE_BOTTOM_TK
Definition: ArduinoRobot.h:94

◆ displayLogos()

void RobotControl::displayLogos ( )

helper.cpp52 行目に定義があります。

52  {
53  _drawBMP("lg0.bmp",0,0);
54  delay(2000);
55  _drawBMP("lg1.bmp",0,0);
56  delay(2000);
57  clearScreen();
58 }
void _drawBMP(uint32_t iconOffset, uint8_t x, uint8_t y, uint8_t width, uint8_t height)
Definition: lcd.cpp:133
void delay(unsigned long)
Definition: wiring.c:106
void clearScreen()
Definition: lcd.cpp:92

◆ drawBase()

void RobotControl::drawBase ( )

helper.cpp21 行目に定義があります。

21  {
23  Arduino_LCD::drawLine(64,30,64,20,foreGround);
24 }
uint16_t foreGround
Definition: ArduinoRobot.h:281
virtual void drawLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint16_t color)
void drawCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color)

◆ drawBMP()

void RobotControl::drawBMP ( char *  filename,
uint8_t  x,
uint8_t  y 
)

lcd.cpp96 行目に定義があります。

96  {
97  /*for(int j=0;j<NUM_EEPROM_BMP;j++){
98  Serial.println(_eeprom_bmp[j].name);
99  Serial.print(" ");
100  Serial.print(_eeprom_bmp[j].address);
101  Serial.print(" ");
102  Serial.print(_eeprom_bmp[j].width);
103  Serial.print(" ");
104  Serial.println(_eeprom_bmp[j].height);
105  }
106  Serial.println();*/
107  if(_isEEPROM_BMP_Allocated){
108  for(int i=0;i<NUM_EEPROM_BMP;i++){
109  if(cmp(_eeprom_bmp[i].name,filename,7)){
110  /*Serial.println(_eeprom_bmp[i].name);
111  Serial.print(" ");
112  Serial.print(_eeprom_bmp[i].address);
113  Serial.print(" ");
114  Serial.print(_eeprom_bmp[i].width);
115  Serial.print(" ");
116  Serial.println(_eeprom_bmp[i].height);*/
117  _drawBMP(_eeprom_bmp[i].address,x,y,_eeprom_bmp[i].width,_eeprom_bmp[i].height);
118  return;
119  }
120  }
121  }else{
122  _drawBMP(filename,x,y);//goes to SD
123  }
124 }
void _drawBMP(uint32_t iconOffset, uint8_t x, uint8_t y, uint8_t width, uint8_t height)
Definition: lcd.cpp:133
uint8_t name[11]
Definition: FatStructs.h:292
int16_t width(void)
uint8_t i
union address_union address
bool cmp(char *str1, char *str2, uint8_t len)
Definition: lcd.cpp:125
#define NUM_EEPROM_BMP
Definition: ArduinoRobot.h:192
int16_t height(void)

◆ drawCompass()

void RobotControl::drawCompass ( uint16_t  value)

helper.cpp45 行目に定義があります。

45  {
46  drawBase();
47  drawDire(value);
48  debugPrint(value,57,76);
49 }
void drawDire(int16_t dire)
Definition: helper.cpp:25
void debugPrint(long value, uint8_t x=0, uint8_t y=0)
Definition: lcd.cpp:83
void drawBase()
Definition: helper.cpp:21

◆ drawDire()

void RobotControl::drawDire ( int16_t  dire)

helper.cpp25 行目に定義があります。

25  {
26  static uint8_t x_old;
27  static uint8_t y_old;
28  static uint8_t x_t_old;
29  static uint8_t y_t_old;
30 
31  uint8_t x=60*sin(dire/360.0*6.28)+64;
32  uint8_t x_t=40*sin(dire/360.0*6.28)+64;
33  uint8_t y=60*cos(dire/360.0*6.28)+80;
34  uint8_t y_t=40*cos(dire/360.0*6.28)+80;
35 
36  Arduino_LCD::drawLine(x_t_old,y_t_old,x_old,y_old,backGround);
37  Arduino_LCD::drawLine(x_t,y_t,x,y,RED);
38 
39  x_old=x;
40  y_old=y;
41  x_t_old=x_t;
42  y_t_old=y_t;
43 }
#define RED
Definition: ArduinoRobot.h:150
uint16_t backGround
Definition: ArduinoRobot.h:282
virtual void drawLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint16_t color)
double sin(double __x) __ATTR_CONST__
double cos(double __x) __ATTR_CONST__

◆ endBMPFromEEPROM()

void RobotControl::endBMPFromEEPROM ( )

lcd.cpp294 行目に定義があります。

294  {
295  free(_eeprom_bmp);
296  _isEEPROM_BMP_Allocated=false;
297 }
void free(void *__ptr)

◆ isActionDone()

bool RobotControl::isActionDone ( )

communication.cpp21 行目に定義があります。

21  {
22  if(messageIn.receiveData()){
23  if(messageIn.readByte()==COMMAND_ACTION_DONE){
24  return true;
25  }
26  }
27  return false;
28 }
boolean receiveData()
uint8_t readByte()
#define COMMAND_ACTION_DONE
Definition: ArduinoRobot.h:74

◆ keyboardCalibrate()

void RobotControl::keyboardCalibrate ( int *  vals)

keyboard.cpp36 行目に定義があります。

36  {
37  for(int i=0;i<5;i++){
38  pul_min[i]=vals[i]-10;
39  pul_max[i]=vals[i]+10;
40  }
41 }
uint8_t i
int pul_min[]
Definition: keyboard.cpp:26
int pul_max[]
Definition: keyboard.cpp:27

◆ keyboardRead()

int8_t RobotControl::keyboardRead ( void  )

keyboard.cpp42 行目に定義があります。

43 {
44 
45  int lectura_pul;
46  int8_t conta_pul=0;
47  static int anterior=0;
48 
49  lectura_pul = this->averageAnalogInput(KEY);
50 
51  while ((conta_pul < NUMBER_BUTTONS) && !(lectura_pul >= pul_min[conta_pul] && lectura_pul <= pul_max[conta_pul]))
52  conta_pul++;
53 
54  if (conta_pul >= NUMBER_BUTTONS)
55  conta_pul = -1;
56  else
57  delay(100);
58 
59  return conta_pul;
60 }
void delay(unsigned long)
Definition: wiring.c:106
#define NUMBER_BUTTONS
Definition: ArduinoRobot.h:44
int pul_min[]
Definition: keyboard.cpp:26
int pul_max[]
Definition: keyboard.cpp:27

◆ knobRead()

int RobotControl::knobRead ( )

Sensors.cpp253 行目に定義があります。

253  {
254  return ::analogRead(POT);
255 }
int analogRead(uint8_t)
Definition: wiring_analog.c:38

◆ lineFollowConfig()

void RobotControl::lineFollowConfig ( uint8_t  KP,
uint8_t  KD,
uint8_t  robotSpeed,
uint8_t  intergrationTime 
)

communication.cpp40 行目に定義があります。

40  {
42  messageOut.writeByte(KP);
43  messageOut.writeByte(KD);
44  messageOut.writeByte(robotSpeed);
45  messageOut.writeByte(intergrationTime);
46  messageOut.sendData();
47 }
void writeByte(uint8_t dat)
#define KD
Definition: io90scr100.h:581
#define COMMAND_LINE_FOLLOW_CONFIG
Definition: ArduinoRobot.h:78

◆ motorsStop()

void RobotControl::motorsStop ( )

Motors.cpp23 行目に定義があります。

23  {
24  messageOut.writeByte(COMMAND_MOTORS_STOP);
25  messageOut.sendData();
26 }
void writeByte(uint8_t dat)
#define COMMAND_MOTORS_STOP
Definition: ArduinoRobot.h:65

◆ motorsWrite()

void RobotControl::motorsWrite ( int  speedLeft,
int  speedRight 
)

Motors.cpp27 行目に定義があります。

27  {
28  messageOut.writeByte(COMMAND_RUN);
29  messageOut.writeInt(speedLeft);
30  messageOut.writeInt(speedRight);
31  messageOut.sendData();
32 }
void writeByte(uint8_t dat)
void writeInt(int dat)
#define COMMAND_RUN
Definition: ArduinoRobot.h:64

◆ motorsWritePct()

void RobotControl::motorsWritePct ( int  speedLeftPct,
int  speedRightPct 
)

Motors.cpp33 行目に定義があります。

33  {
34  int16_t speedLeft=255*speedLeftPct/100.0;
35  int16_t speedRight=255*speedRightPct/100.0;
36  motorsWrite(speedLeft,speedRight);
37 }
void motorsWrite(int speedLeft, int speedRight)
Definition: Motors.cpp:27

◆ moveBackward()

void RobotControl::moveBackward ( int  speed)

Motors.cpp105 行目に定義があります。

105  {
106  motorsWrite(speed,speed);
107 }
void motorsWrite(int speedLeft, int speedRight)
Definition: Motors.cpp:27

◆ moveForward()

void RobotControl::moveForward ( int  speed)

Motors.cpp102 行目に定義があります。

102  {
103  motorsWrite(speed,speed);
104 }
void motorsWrite(int speedLeft, int speedRight)
Definition: Motors.cpp:27

◆ pauseMode()

void RobotControl::pauseMode ( uint8_t  onOff)

communication.cpp30 行目に定義があります。

30  {
31  messageOut.writeByte(COMMAND_PAUSE_MODE);
32  if(onOff){
33  messageOut.writeByte(true);
34  }else{
35  messageOut.writeByte(false);
36  }
37  messageOut.sendData();
38 }
void writeByte(uint8_t dat)
#define COMMAND_PAUSE_MODE
Definition: ArduinoRobot.h:77

◆ playFile()

void RobotControl::playFile ( char *  filename)

Melody.cpp111 行目に定義があります。

111  {
112  melody.open(filename,O_READ);
113  SquawkSynthSD::play(melody);
114 }
void play()
Definition: SquawkSD.h:10
uint8_t const O_READ
Definition: Fat16.h:44
uint8_t open(const char *fileName, uint8_t oflag)
Definition: Fat16.cpp:348

◆ playMelody()

void RobotControl::playMelody ( char *  script)

Melody.cpp45 行目に定義があります。

45  {
46  // Find length of play string
47  word length = strlen(script);
48  // Set the default note time
49  word time = 500;
50  // Loop through each character in the play string
51  for(int n = 0; n < length; n++) {
52  // Fetch the character AFTER the current one - it may contain a modifier
53  char modifier = script[n + 1];
54  // Fetch the current character and branch accordingly
55  switch(script[n]) {
56  // Notes
57  case 'c': playNote(214, time, modifier); break; // Play a C
58  case 'C': playNote(202, time, modifier); break; // Play a C#
59  case 'd': playNote(190, time, modifier); break; // Play a D
60  case 'D': playNote(180, time, modifier); break; // Play a D#
61  case 'e': playNote(170, time, modifier); break; // Play an E
62  case 'f': playNote(160, time, modifier); break; // Play an F
63  case 'F': playNote(151, time, modifier); break; // Play an F#
64  case 'g': playNote(143, time, modifier); break; // Play a G
65  case 'G': playNote(135, time, modifier); break; // Play a G#
66  case 'a': playNote(127, time, modifier); break; // Play an A
67  case 'A': playNote(120, time, modifier); break; // Play an A#
68  case 'b': playNote(113, time, modifier); break; // Play a B
69  // Delay
70  case '-': playNote(0, time, modifier); break; // Play a quiet note
71  // Note lengths
72  case '1': time = 1000; break; // Full note
73  case '2': time = 500; break; // Half note
74  case '4': time = 250; break; // Quarter note
75  case '8': time = 50; break; // Eigth note
76  // Modifier '.' makes note length 2/3
77 
78  }
79  }
80 }
size_t strlen(const char *) __ATTR_PURE__
Calculate the length of a string.
union length_union length
time_t time(time_t *timer)
unsigned int word
Definition: Arduino.h:121

◆ pointTo()

void RobotControl::pointTo ( int  degrees)

Motors.cpp38 行目に定義があります。

38  {
39  int target=angle;
40  uint8_t speed=80;
41  target=target%360;
42  if(target<0){
43  target+=360;
44  }
45  int direction=angle;
46  while(1){
47  int currentAngle=compassRead();
48  int diff=target-currentAngle;
49  direction=180-(diff+360)%360;
50  if(direction>0){
51  motorsWrite(speed,-speed);//right
52  delay(10);
53  }else{
54  motorsWrite(-speed,speed);//left
55  delay(10);
56  }
57  //if(diff<-180)
58  // diff += 360;
59  //else if(diff> 180)
60  // diff -= 360;
61  //direction=-diff;
62 
63  if(abs(diff)<5){
64  motorsStop();
65  return;
66  }
67  }
68 }
int abs(int __i) __ATTR_CONST__
void delay(unsigned long)
Definition: wiring.c:106
void motorsWrite(int speedLeft, int speedRight)
Definition: Motors.cpp:27
uint16_t compassRead()
Definition: Sensors.cpp:271
void motorsStop()
Definition: Motors.cpp:23

◆ robotNameRead()

void RobotControl::robotNameRead ( char *  container)
inline

ArduinoRobot.h367 行目に定義があります。

367  {
368  EEPROM_I2C::readBuffer(ADDRESS_ROBOTNAME,(uint8_t*)container,18);
369 }
void readBuffer(unsigned int eeaddress, byte *buffer, int length)
Definition: EEPROM_I2C.cpp:44
#define ADDRESS_ROBOTNAME
Definition: ArduinoRobot.h:140

◆ robotNameWrite()

void RobotControl::robotNameWrite ( char *  text)
inline

ArduinoRobot.h380 行目に定義があります。

380  {
382 }
void text(const char *text, int16_t x, int16_t y)
void writePage(unsigned int eeaddresspage, byte *data, byte length)
Definition: EEPROM_I2C.cpp:31
#define ADDRESS_ROBOTNAME
Definition: ArduinoRobot.h:140

◆ setMode()

void RobotControl::setMode ( uint8_t  mode)

ArduinoRobot.cpp51 行目に定義があります。

51  {
52  messageOut.writeByte(COMMAND_SWITCH_MODE);
53  messageOut.writeByte(mode);
54  messageOut.sendData();
55 }
#define COMMAND_SWITCH_MODE
Definition: ArduinoRobot.h:63
void writeByte(uint8_t dat)

◆ stopPlayFile()

void RobotControl::stopPlayFile ( )

Melody.cpp116 行目に定義があります。

116  {
117  melody.close();
118 }
uint8_t close(void)
Definition: Fat16.cpp:155

◆ tempoWrite()

void RobotControl::tempoWrite ( int  tempo)

Melody.cpp104 行目に定義があります。

104  {
106 }
void tempo(uint16_t tempo)
Definition: Squawk.cpp:163

◆ trimRead()

int RobotControl::trimRead ( )

Sensors.cpp257 行目に定義があります。

257  {
258  messageOut.writeByte(COMMAND_READ_TRIM);
259  messageOut.sendData();
260  delay(10);
261  if(messageIn.receiveData()){
262  uint8_t cmd=messageIn.readByte();
263  if(!(cmd==COMMAND_READ_TRIM_RE))
264  return false;
265 
266  uint16_t pt=messageIn.readInt();
267  return pt;
268  }
269 }
boolean receiveData()
#define COMMAND_READ_TRIM_RE
Definition: ArduinoRobot.h:76
uint8_t readByte()
void delay(unsigned long)
Definition: wiring.c:106
void writeByte(uint8_t dat)
#define COMMAND_READ_TRIM
Definition: ArduinoRobot.h:75

◆ tuneWrite()

void RobotControl::tuneWrite ( float  tune)

Melody.cpp107 行目に定義があります。

107  {
109 }
void tune(float tuning)
Definition: Squawk.cpp:156

◆ turn()

void RobotControl::turn ( int  degress)

Motors.cpp69 行目に定義があります。

69  {
70  int originalAngle=compassRead();
71  int target=originalAngle+angle;
72  pointTo(target);
73  /*uint8_t speed=80;
74  target=target%360;
75  if(target<0){
76  target+=360;
77  }
78  int direction=angle;
79  while(1){
80  if(direction>0){
81  motorsWrite(speed,speed);//right
82  delay(10);
83  }else{
84  motorsWrite(-speed,-speed);//left
85  delay(10);
86  }
87  int currentAngle=compassRead();
88  int diff=target-currentAngle;
89  if(diff<-180)
90  diff += 360;
91  else if(diff> 180)
92  diff -= 360;
93  direction=-diff;
94 
95  if(abs(diff)<5){
96  motorsWrite(0,0);
97  return;
98  }
99  }*/
100 }
void pointTo(int degrees)
Definition: Motors.cpp:38
uint16_t compassRead()
Definition: Sensors.cpp:271

◆ turnLeft()

void RobotControl::turnLeft ( int  speed)

Motors.cpp108 行目に定義があります。

108  {
109  motorsWrite(speed,255);
110 }
void motorsWrite(int speedLeft, int speedRight)
Definition: Motors.cpp:27

◆ turnRight()

void RobotControl::turnRight ( int  speed)

Motors.cpp111 行目に定義があります。

111  {
112  motorsWrite(255,speed);
113 }
void motorsWrite(int speedLeft, int speedRight)
Definition: Motors.cpp:27

◆ updateIR()

void RobotControl::updateIR ( )

Sensors.cpp240 行目に定義があります。

240  {
241  messageOut.writeByte(COMMAND_READ_IR);
242  messageOut.sendData();
243  delay(10);
244  if(messageIn.receiveData()){
245  if(messageIn.readByte()==COMMAND_READ_IR_RE){
246  for(int i=0;i<5;i++){
247  IRarray[i]=messageIn.readInt();
248  }
249  }
250  }
251 }
boolean receiveData()
uint8_t readByte()
uint8_t i
void delay(unsigned long)
Definition: wiring.c:106
#define COMMAND_READ_IR
Definition: ArduinoRobot.h:72
void writeByte(uint8_t dat)
#define COMMAND_READ_IR_RE
Definition: ArduinoRobot.h:73
uint16_t IRarray[5]
Definition: ArduinoRobot.h:223

◆ userNameRead()

void RobotControl::userNameRead ( char *  container)
inline

ArduinoRobot.h364 行目に定義があります。

364  {
365  EEPROM_I2C::readBuffer(ADDRESS_USERNAME,(uint8_t*)container,18);
366 }
void readBuffer(unsigned int eeaddress, byte *buffer, int length)
Definition: EEPROM_I2C.cpp:44
#define ADDRESS_USERNAME
Definition: ArduinoRobot.h:138

◆ userNameWrite()

void RobotControl::userNameWrite ( char *  text)
inline

ArduinoRobot.h377 行目に定義があります。

377  {
379 }
void text(const char *text, int16_t x, int16_t y)
#define ADDRESS_USERNAME
Definition: ArduinoRobot.h:138
void writePage(unsigned int eeaddresspage, byte *data, byte length)
Definition: EEPROM_I2C.cpp:31

◆ waitContinue()

void RobotControl::waitContinue ( uint8_t  key = BUTTON_MIDDLE)

helper.cpp61 行目に定義があります。

61  {
62  while(!(Robot.keyboardRead()==key));
63 }
int8_t keyboardRead()
Definition: keyboard.cpp:42
RobotControl Robot

メンバ詳解

◆ backGround

uint16_t RobotControl::backGround

ArduinoRobot.h282 行目に定義があります。

◆ foreGround

uint16_t RobotControl::foreGround

ArduinoRobot.h281 行目に定義があります。

◆ IRarray

uint16_t RobotControl::IRarray[5]

ArduinoRobot.h223 行目に定義があります。


このクラス詳解は次のファイルから抽出されました: