资源简介
Mixly第三方公司扩展,一款创客工具第三方库 ,适合中小学创客培训使用
代码片段和文件信息
/*
This is the core graphics library for all our displays providing a common
set of graphics primitives (points lines circles etc.). It needs to be
paired with a hardware-specific library for each display device we carry
(to handle the lower-level functions).
Adafruit invests time and resources providing this open source code please
support Adafruit & open-source hardware by purchasing products from Adafruit!
Copyright (c) 2013 Adafruit Industries. All rights reserved.
Redistribution and use in source and binary forms with or without
modification are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice
this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS“
AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR
CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT LIMITED TO PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE DATA OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY WHETHER IN
CONTRACT STRICT LIABILITY OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
#include “Adafruit_GFX.h“
#include “glcdfont.c“
#ifdef __AVR__
#include
#else
#define pgm_read_byte(addr) (*(const unsigned char *)(addr))
#endif
Adafruit_GFX::Adafruit_GFX(int16_t w int16_t h):
WIDTH(w) HEIGHT(h)
{
_width = WIDTH;
_height = HEIGHT;
rotation = 0;
cursor_y = cursor_x = 0;
textsize = 1;
textcolor = textbgcolor = 0xFFFF;
wrap = true;
}
// Draw a circle outline
void Adafruit_GFX::drawCircle(int16_t x0 int16_t y0 int16_t r
uint16_t color) {
int16_t f = 1 - r;
int16_t ddF_x = 1;
int16_t ddF_y = -2 * r;
int16_t x = 0;
int16_t y = r;
drawPixel(x0 y0+r color);
drawPixel(x0 y0-r color);
drawPixel(x0+r y0 color);
drawPixel(x0-r y0 color);
while (x if (f >= 0) {
y--;
ddF_y += 2;
f += ddF_y;
}
x++;
ddF_x += 2;
f += ddF_x;
drawPixel(x0 + x y0 + y color);
drawPixel(x0 - x y0 + y color);
drawPixel(x0 + x y0 - y color);
drawPixel(x0 - x y0 - y color);
drawPixel(x0 + y y0 + x color);
drawPixel(x0 - y y0 + x color);
drawPixel(x0 + y y0 - x color);
drawPixel(x0 - y y0 - x color);
}
}
void Adafruit_GFX::drawCircleHelper( int16_t x0 int16_t y0
int
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-06-28 09:23 Mixly第三方公司扩展\
文件 0 2016-06-13 19:54 Mixly第三方公司扩展\Mixly_Company_Extend-master\xxx\language\xxx\zh-hant.js
文件 0 2016-06-13 19:54 Mixly第三方公司扩展\Mixly_Company_Extend-master\xxx\language\xxx\zh-hans.js
文件 0 2016-06-13 19:54 Mixly第三方公司扩展\Mixly_Company_Extend-master\xxx\language\xxx\spa.js
文件 0 2016-06-13 19:54 Mixly第三方公司扩展\Mixly_Company_Extend-master\xxx\language\xxx\en.js
目录 0 2016-06-28 09:23 Mixly第三方公司扩展\Mixly_Company_Extend-master\xxx\language\xxx\
目录 0 2016-06-28 09:23 Mixly第三方公司扩展\Mixly_Company_Extend-master\xxx\language\
文件 0 2016-06-13 19:54 Mixly第三方公司扩展\Mixly_Company_Extend-master\xxx\generator\xxx.js
目录 0 2016-06-28 09:23 Mixly第三方公司扩展\Mixly_Company_Extend-master\xxx\generator\
文件 0 2016-06-13 19:54 Mixly第三方公司扩展\Mixly_Company_Extend-master\xxx\companypin\xxx\pin.js
目录 0 2016-06-28 09:23 Mixly第三方公司扩展\Mixly_Company_Extend-master\xxx\companypin\xxx\
目录 0 2016-06-28 09:23 Mixly第三方公司扩展\Mixly_Company_Extend-master\xxx\companypin\
文件 0 2016-06-13 19:54 Mixly第三方公司扩展\Mixly_Company_Extend-master\xxx\block\xxx.js
目录 0 2016-06-28 09:23 Mixly第三方公司扩展\Mixly_Company_Extend-master\xxx\block\
目录 0 2016-06-28 09:23 Mixly第三方公司扩展\Mixly_Company_Extend-master\xxx\
文件 3187 2016-06-13 19:54 Mixly第三方公司扩展\Mixly_Company_Extend-master\seeedstudio\seeedstudio.xm
文件 7147 2016-06-13 19:54 Mixly第三方公司扩展\Mixly_Company_Extend-master\seeedstudio\media\seeed\seeed_touch.png
文件 4136 2016-06-13 19:54 Mixly第三方公司扩展\Mixly_Company_Extend-master\seeedstudio\media\seeed\seeed_tilt.jpg
文件 8929 2016-06-13 19:54 Mixly第三方公司扩展\Mixly_Company_Extend-master\seeedstudio\media\seeed\seeed_temperature.png
文件 7004 2016-06-13 19:54 Mixly第三方公司扩展\Mixly_Company_Extend-master\seeedstudio\media\seeed\seeed_sound.jpg
文件 21115 2016-06-13 19:54 Mixly第三方公司扩展\Mixly_Company_Extend-master\seeedstudio\media\seeed\seeed_servo.png
文件 3787 2016-06-13 19:54 Mixly第三方公司扩展\Mixly_Company_Extend-master\seeedstudio\media\seeed\seeed_rotation.jpg
文件 4715 2016-06-13 19:54 Mixly第三方公司扩展\Mixly_Company_Extend-master\seeedstudio\media\seeed\seeed_relay.jpg
文件 7100 2016-06-13 19:54 Mixly第三方公司扩展\Mixly_Company_Extend-master\seeedstudio\media\seeed\seeed_light.png
文件 4142 2016-06-13 19:54 Mixly第三方公司扩展\Mixly_Company_Extend-master\seeedstudio\media\seeed\seeed_led.jpg
文件 13498 2016-06-13 19:54 Mixly第三方公司扩展\Mixly_Company_Extend-master\seeedstudio\media\seeed\seeed_lcd.png
文件 3759 2016-06-13 19:54 Mixly第三方公司扩展\Mixly_Company_Extend-master\seeedstudio\media\seeed\seeed_buzzer.jpg
文件 4221 2016-06-13 19:54 Mixly第三方公司扩展\Mixly_Company_Extend-master\seeedstudio\media\seeed\seeed_btn.jpg
目录 0 2016-06-28 09:23 Mixly第三方公司扩展\Mixly_Company_Extend-master\seeedstudio\media\seeed\
目录 0 2016-06-28 09:23 Mixly第三方公司扩展\Mixly_Company_Extend-master\seeedstudio\media\
文件 5457 2016-06-13 19:54 Mixly第三方公司扩展\Mixly_Company_Extend-master\seeedstudio\generator\seeed.js
............此处省略10286个文件信息
评论
共有 条评论