您好,欢迎光临本网站![请登录][注册会员]  
文件名称: Arduboy2库技术文档.pdf
  所属分类: 其他
  开发工具:
  文件大小: 658kb
  下载次数: 0
  上传时间: 2019-10-15
  提 供 者: qq272******
 详细说明:Arduboy是基于arduino的开源掌机,可以自己开发游戏,这个文档是arduboy官方的库文档,Arduboy2的库,里面有各种api说明,英文的,pdf格式Contents 1 Arduboy2 Library 2 Software License Agreements 3 Hierarchical Index 15 3.1 Class hierarchy 15 4 Class Index 4.1 Class List 17 5 File Index 19 5.1 File list 19 6 Class Documentation 6.1 Arduboy2 Class Reterence 6.1.1 Detailed Description 6.1.2 Member Function Documentation 28 6.1. 2 1 allPixelsOn(bool on 1.2.2 begin( 29 6.1.23bank( 6124boot() 29 6.1.2.5 bootLogoO 6.1.2.6 bootLogocompressedo 6.1.2.7 bootLogo Extrao 30 6.1.2.8 bootLogo Shell(void (draw Logo (int16_t) 30 6.1.2.9 bootLogo Sprites BOverwrite 31 CONTENTS 6.1. 2 10 bootLogo SpritesBSelfMasked( 6.1.2. 11 bootLogo SpritesOverwriteO 32 6.1.2. 12 bootLogo Sprites SelfMaskedo 32 6.1. 2 13 bootLogo Text( 32 6.1.2.14 buttons StateO 6.1. 2 15 collide(Point point, Rect rect) 6.1.2.16 collide(Rect recti, Rect recta) 33 6.1.2. 17 cpuLoado 34 6.1. 2.18 delay Short(uint16_t ms)_attribute(nonline) 6.1.2.19 digitalWriteRGBquint8_t red, uint8t green, uint8 t blue) 35 6.1.2.20 digitalWriteRGB(uint8_ t color, uint8_ t val) 35 6.1221 display(). 36 6.1.2.22 display (bool clear) 6. 2.23 display offo 6.1. 2.24 displayon( 6.1.2.25 draw Bitmap(int16 tx, int 16_t y, const uint8 t *bitmap, uint8 t w, uint8 t h, uint8+ t color=WHITE 6. 1.2.26 draw Char(int16 t x, int 16 t y, unsigned char c, uint8 t color, uint8 t bg, uint8 t size) 6.1. 2.27 draw Circle(int16_t X0, int1 6_t yO, uint8_ tr, uint8_ t color-WHITE 38 6.1.2. 28 draw Compressed(int16_t sx, int16_t sy, const uint8_ t bitmap, uint8_t color=W HITE) 6.1.2. 29 draw FastHLine(int16 t x, int1 6 t y, uint8 t w, uint8 t color-WHITE 39 6.1.2. 30 draw FastVLine(int 16_tx, int_t y, uint8_ t h, uint8_t color= WHITE) 39 6.1.2. 31 draw Line(int 16_t xO, int 16 t yo, int 16_t x1, int 16_t y1, uint8_t color=WHITE)... 40 6.1.2.32 draw Pixel(int16 x, int16 t y, uint8 t color=WHITE 6.1.2. 33 draw Rect(int1_ x, int16_t y, uint8 t w, uint8_ t h, uint8_ t color=WHITE 6.1.2. 34 draw RoundRect(int16 tx, int16 ty, uint8 t W, uint8 t h, uint8 tr, uint8 t color=( WHITE) 6.1.2.35 draw Slow XY Bitmap(int16_t x, int 16_t y, const uintt *bitmap uint8_t w, uint8_t h, uint8_t color=WHITE) 6.1.2.36 draw Triangle(int16_t XO, int16_t yO, int16 x1, int16_t y1, int16_ t x2, int1 6_t y2, uint8_t color=WHITE) CONTENTS 6.1.2.37 every XFrames(uint8 t frames) 6.1.2. 38 exit To Bootloader() 42 6.1.2. 39 fillCircle(int16t XO, int1 6_t yO, uint8_t r, uint8_t color=WHITE 6. 40 fill Rect(int16 t x, int 16 t y, uint8 t w, uint8 t h, uint8 t color=WHITE) 4 6. 1.2.41 fill Round Rect(int 16_tx, int 16_t y, uint8 _ t w, uint8_th, uint8_ t r, uint8_t color=W+ HITE) 43 6.1.2. 42 fullScreen(uint8 t color=WHITE 6.1.2.43 fill Triangle(int16 t xO, int16 t yo, int16 t x1, int16 t y1, int16 t x2, int16 t y2, uint8 t color-WHITE 44 1.2 6.1. 2. 45 flipHorizontal(bool flipped 44 6.1.2. 46 flip Vertical(bool flipped) 6.1.2. 47 freeRGBledo 45 6.1.2. 48 generate Random Seedo 46 6.1.2. 49 getBuffero 46 6.1.2.50 getCursorXO 46 6.1.2.51 get CursorY 47 6.1. 2.52 getPixel(uint8 t x, uint8 t y 47 6.1. 2.53 get TextBackgroundo 6.1.2.54 get Textcoloro 48 6.1.2.55 getTextSizeo 48 6.1.2.56 get TextWrapo 48 6.1.2.57 height 9 1.258ide( 6.1.2.59 initRandom Seed( 6.1.2.60 rt(bool in 49 6.1.2.61 just uinta t button) 6. 2.62 justReleased(uint8_t button 50 6.1.2.63 LCDCommandModeo 51 6.1.2.64 LCDDataModeo 51 6.1. 2.65 next Frame( 52 generated by Doxygen CONTENTS 6.1. 2.66 nextFrameDEVO 6.1.2.67 notPressed(uint8 t buttons) 52 6. 1.2.68 paint8Pixels(uint8 t pixels) 6.1.2.69 paint Screen(const uint8 t simage 5 6.1.2.70 paint Screen(uint8 t image[ bool clear=false) 6.1.2.71 pollButtonso 54 6.1.2.72 pressed(uint8_ t buttons) 55 6.1.2.73 read Show Bootlogo Flago 55 6. 2.74 roadShow BootLOgoLEDsFlag( 6.1. 2.75 readShow UnitName Flago 6.1.2. 76 readUnitIDO 56 6.1.2.77 readUnitName(char *name) 56 6.1.278 safe Mode()... 57 6.1.2.79 sendLCDCommand(uint8_t command 6.1.2.80 setCursor(int16_t x, int16 y) 58 6.1.2. 81 setFrame Duration(uint8 t duration) 58 6. 2.82 setFrame Rate(uint8 t rate) 59 6.1.2. 83 setRGBled(_t red, uint8_t green, uint8t blue) 6.1.2.84 setRGBled(uint8_t color, uint8_t val) 6.1.2. 85 set TextBackground(uint8 t bg) 6.1.2.86 setTextColor(uint8 t color) 6.1.2.87 set TextSize(uint8 t s 6.1. 2.88 setTextWrap(bool w) 6.1.2.89 SPltransfer(uint8 t data) 62 6.1.2.90 system Buttons 6.1.2. 91 waitNoButtons( 6.1.292wdth0 6.1.2.93 write(uint8 6.1.2.94 write Show Bootlogo Flag(bool val) 63 6.1.2. 95 write Show BootLogoLE Flag(bool val) 64 CONTENTS 6. 1.2.96 write Show UnitName Flag(bool val) 64 6.1.2.97 writeUnitlD(uint 16 t id) 65 6.1.2.98 write UnitName(char *name 65 6.1.3 Member Data Documentation 6.1.3.1 audio 6.1.3.2 frame Count 66 6.1.3.3 sUffer 6.2 Arduboy 2Audio Class Reference 6.2.1 Detailed Description 6.2.2 Member Function documentation 6.2.2.1begn() 68 6.2.2.2 enabled( 69 6223of(0. 62240n0 6.2.2.5 saveOnOtf( 70 6. 2.2.6 toggle 70 6.3 Arduboy2 Base Class Reference 6.3. 1 Detailed Description 6.3.2 Member function Documentation 6.3.2.1 allPixelsOn(bool on) 6.3.2.2 begin( 6.3.2.3 blanko 6.324boot()..., 78 6.3.2.5 bootLogoO 78 6.3.2.6 bootLogo Compressed( 6.3.2.7 bootLogo Shell(void(*draw Logo (int 16 t) 6.3.2.8 bootLogo Sprites B Overwrite 6.3.2.9 bootLogo Sprites SelfMaskedo 6.3.2. 10 bootLogoSpritesOverwriteO 80 6.3.2. 11 bootLogo Sprites Self Masked( generated by Doxygen CONTENTS 6.3.2. 12 buttons Stateo 6.3.2. 13 clear( 6.3.2. 14 collide( Point point, Rect rect) 81 6.3. 2 15 collide(Rect rect, Rect recta) 6.3.2. 16 cpuLoad( 82 6.3.2. 17 delay Short(uint 16 t ms) attribute((nonline)) 6.3.2. 18 digitalWriteRGB(uint8_t red, uint8 t green, uint8 t blue) 82 6.3.2. 19 digitalWriteRGB(uint8 t color, uint8 t val) 6.3. 2.20 display 84 6.3.2.21 display(bool clear 84 6.3. 2.22 displayoffo 84 6.3.2.23 displayOn() 6.3.2. 24 draw Bitmap(int 1 6 tx, int16 t y, const uint8 t bitmap, uint8 t w, uint8 t h, uint8+ t color=WHITE) 6.3.2. 25 draw Circle (int 16_t x0, int16_t yo, uint8_tr, uint&_t color-WHITE) 85 6.3.2. 26 draw Compressed(int1 6_t sx, int16_ t sy, const uint8_t bitmap, uint8_ t color=W+ HITE) 86 6.3. 2.27 draw FastHLine(int t x, int16_t y, uint8_t w, uint8_t color=WHITE 6.3.2.28 draw FastVLine(int16_tx, int16_t y, uint8_ t h, uint8 t color=WHITE) 86 6. 2.29 draw Line(int 16 t x0, int 16 t yo, int 16 t x1, int 16 t y1, uint8 t color=WHITE 6.3.2. 30 draw Pixel(int16_t x, int16_t y, uint8_t color-WHITE) 6.3.2. 31 draw Rect(int16 tx, int16 t y, uint8 t w, uint8 t h, uint8 t color=WHITE) 87 6. 2. 32 draw Round Rect(int 16_tx, int16-ty, uint8 _t w, uint8_th, uint8 tr, uint8_ t color=+ WHITE) 6.3.2.33 draw Slow XYBitmap(int16 t x, int16 t y, const uint8 t *bitmap, uint8 t w, uint8 _t h, uint8 t color= WHITE) 88 6.3.2. 34 draw Triangle(int1 6_t 0, int1 6_t yo, int16_t x1, int16_t y1, int t x2, int16_t y2, uint8 t color-WHITE) 6.3.2. 35 every X Frames uint8 t frames) 6. 3.2. 36 exit To Bootloader 6.3.2. 37 fillCircle(int16_t xO, int_t yo, uint8_t r, uint8_ t color=WHITE) 90 6.3.2. 38 fill Rect(int16_tx, int16 t y, uint8 t w, uint8_ th, uint8 t color=WHITE 9 CONTENTS X 6.3. 2 39 fill RoundRect(int 16_tx, int 16_t y, uint8 _t w, uint8_th, uint8 t r, uint8_t color=W+ HITE) 6.3.2. 40 fullScreen(uint8 t color= WHITE 6.3.2. 41 fillTriangle(int16 t x0, int 6 t yo, int16 t 1, int16 t y1, int 16 t x2, int 6 t y2, uint8 t color=WHITE) 91 6.3.2. 42 flashlight 6.3.2. 43 flipHorizontal(bool flipped 6.3.2. 44 flip Vertical(bool flipped) 92 6.3.2. 45 freeRGBledo 6.3.2. 46 generate Random Seedo 6.3. 2.47 get Buffer 93 6.3.2. 48 getPixel(uint8_tx, uint8 t y) 93 6.32.49 height(). 94 6.3.2.50id 94 6.3.2.51 initRandom Seedo 94 6.3.2.52 invert(bool inverse) 6.3.2. 53 justPressed(uint8 t button 5 6.3.2. 54 justReleased(uint8 t button) 95 6.3. 2.55 LCDCommandModeo 6.3.2.56 LCDDataModeo 6.3.2.57 nextFrameo 6.3.2.58 next FrameDEVO 98 6.3.2. 59 notPressed(uint8 t buttons) 6.3.2. 60 paints Pixels(uint8_ t pixels) 6.3.2.61 paint Screen(const uinta_t *image) 100 6.3.2.62 paint Screen(uint8 t image[l, bool clear=false) 63263po‖ Buttons0 101 6. 3.2.64 pressed(uint8 t buttons) 101 6.3.2.65 readShow BootLogoFlago 102 6.3.2.66 readShow BootLogoLEDsFlag( 102 6.3.2.67 readShow UnitName Flag( 10 generated by Doxygen CONTENTS 6.3.2.68 readUnitIDO 6.3.2.69 readUnitName(char *name 103 6.3.2.70 safe Modeo 104 6.3.2.71 sendLCDCommand(uint8 t command) 104 6.3.2. 72 setFrame Duration(uint8 t duration) 105 6.3.2. 73 setFrame Rate(uint8_ t rat 105 6.3.2. 74 setRG Bled(uint8 t red, uint8 t green, uint8 t blue) 106 6.3.2.75 setRG Bled(uint8 t color, uint8 t val) 106 6.3.2. 76 SPltransfer(uint8 t data 107 6.3.2.77 system Buttons 6.3.2.78 waitNoButtons( 108 63279wdth(0 108 6. 3.2. 80 write Show BootLogo Flag(bool val) 108 6. 81 write Show BootLogoLEDsFlag(bool val) 109 6.3.2. 82 write Show UnitNameFlag(bool val) 109 6.3.2. 83 write Unitl D(uint16_ 109 6. 84 write UnitName(char *name 6.3.3 Member Data documentation 110 6.3.3.1 audio. 110 6.3.3.2 frame Count 6.3.3.3 sUffer 6.4 Arduboy2 Core Class Reference 112 6.4.1 Detailed description 114 6.4.2 Member Function D 114 6.4.2.1 allPixelsOn(bool on) 114 6.4.2.2 blanko 115 6.4.2.3 boot 115 6.4.2.4 buttons State 116 6. 4.2.5 delay short(uint t ms) attribute((nonline)) 116 6.4.2.6 digitalWriteRGB(uint8_t red, uint8_t green, uint8_t blue) 117
(系统自动生成,下载前可以参看下载内容)

下载文件列表

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.
 相关搜索: Arduboy2库技术文档.pdf
 输入关键字,在本站1000多万海量源码库中尽情搜索: