Grid Clock亚克力版(arduino+ds1302=ws2812)
预览效果:https://mc.dfrobot.com.cn/forum.php?mod=image&aid=81850&size=300x300&key=dc48651b6fd04141&nocache=yes&type=fixnone
这是我第一次发帖子,所以先介绍一下自己,我是一个对电子作品十分感兴趣的大一学生。
价格:100-150RMB(由主控价格和亚克力厂家决定)难度系数:***(满级5*),焊接要求比较高
之前看社区里面发了一个GRID CLOCK 的3D打印版本,我就想做一个亚克力版本的,方便家里没有3D打印机的人
材料:1层茶色亚克力和3层黑色亚克力,厂家激光切割。
电路系统,,单片机(最好用小的,nano去掉针脚)+ws2812灯带 (5*17),
第三块板与第四块板之间用a4纸做一个匀光。
https://mc.dfrobot.com.cn/forum.php?mod=image&aid=81853&size=300x300&key=08c8326d0f493eaa&nocache=yes&type=fixnone
基本和那个老哥的帖子一样https://mc.dfrobot.com.cn/thread-296465-1-1.html
亚克力用的是solidworks建模
https://mc.dfrobot.com.cn/forum.php?mod=image&aid=81851&size=300x300&key=256935fca1b5fb56&nocache=yes&type=fixnonehttps://mc.dfrobot.com.cn/forum.php?mod=image&aid=81852&size=300x300&key=4c931b9935a1a730&nocache=yes&type=fixnone
我加了一些小细节,比如第三块板挖槽方便布线,第四块板挖孔方便电源线,
https://mc.dfrobot.com.cn/forum.php?mod=image&aid=81854&size=300x300&key=5af5240cfb68634b&nocache=yes&type=fixnone
(a4纸放外面效果也不错)
程序如下:
#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#endif
#define PIN 9
#define NUMPIXELS 85
#include <DS3231.h>
DS3231rtc(SDA, SCL);
Adafruit_NeoPixel pixels(NUMPIXELS, PIN, NEO_RGB + NEO_KHZ800);
#define DELAYVAL 50
#define changek 30
byte change = 0;
byte dataHELLO = {0, 2, 4, 5, 6, 8, 11, 14, 15, 16, 33, 31, 29, 25, 22, 19, 17, 34, 35, 36, 38, 39, 40, 42, 45, 48, 50, 67, 65, 63, 59, 56, 53, 51, 68, 70, 72, 73, 74, 76, 77, 79, 80, 82, 83, 84};
byte Adatanumber = {
{0, 1, 2, 33, 31, 34, 36, 67, 65, 68, 69, 70, 100}, //0
{2, 31, 36, 65, 70, 100}, //1
{0, 1, 2, 31, 36, 35, 34, 67, 68, 69, 70, 100}, //2
{0, 1, 2, 31, 36, 35, 34, 65, 65, 68, 69, 70, 100}, //3
{0, 33, 34, 35, 2, 31, 36, 65, 70, 100}, //4
{0, 1, 2, 33, 34, 35, 36, 65, 70, 69, 68, 100}, //5
{0, 1, 2, 33, 36, 35, 34, 67, 65, 68, 69, 70, 100}, //6
{0, 1, 2, 31, 36, 65, 70, 100}, //7
{0, 1, 2, 33, 31, 34, 36, 67, 65, 68, 69, 70, 35, 100}, //8
{1, 2, 31, 36, 65, 70, 0, 33, 34, 35, 68, 69,100, }, //9
};
byte Bdadanumber = {
{4, 5, 6, 29, 27, 38, 40, 63, 61, 72, 73, 74, 100}, //0
{6, 27, 40, 61, 74, 100}, //1
{4, 5, 6, 27, 40, 39, 38, 63, 72, 73, 74, 100}, //2
{6, 27, 40, 61, 74, 4, 5, 38, 39, 72, 73, 100}, //3
{6, 27, 40, 61, 74, 4, 29, 38, 39, 100}, //4
{6, 40, 61, 74, 4, 5, 38, 39, 72, 73, 29, 100}, //5
{6, 40, 61, 74, 4, 5, 38, 39, 72, 73, 29, 63, 100}, //6
{6, 27, 40, 61, 74, 4, 5, 100}, //7
{4, 5, 6, 29, 27, 38, 40, 63, 61, 72, 73, 74, 39, 100}, //8
{4, 5, 6, 29, 27, 38, 40, 61, 72, 73, 74, 39, 100}, //9
};
byte Cdadanumber = {
{10, 11, 12, 23, 21, 44, 46, 57, 55, 78, 79, 80, 100}, //0
{12, 21, 46, 55, 80, 100}, //1
{10, 11, 12, 21, 44, 46, 57, 78, 79, 80,45, 100}, //2
{10, 11, 12, 21, 44, 46, 55, 78, 79, 80,45, 100}, //3
{12, 21, 46, 55, 80, 10, 23, 44, 45, 100}, //4
{10, 11, 12, 23, 44, 46, 55, 78, 79, 80,45, 100}, //5
{10, 11, 12, 23, 44, 46, 57, 55, 78, 79, 80,45, 100}, //6
{12, 21, 46, 55, 80, 10, 11, 100}, //7
{10, 11, 12, 23, 21, 44,45, 46, 57, 55, 78, 79, 80, 100}, //8
{10, 11, 12, 23, 21, 44,45, 46, 55, 78, 79, 80, 100}, //9
};
byte Ddadanumber = {
{14, 15, 16, 19, 17, 48, 50, 53, 51, 82, 83, 84, 100}, //0
{16, 17, 50, 51, 84, 100}, //1
{14, 15, 16, 17, 48, 49, 50, 53, 82, 83, 84, 100}, //2
{16, 17, 50, 51, 84, 14, 15, 48, 49, 82, 83, 100}, //3
{14, 19, 48, 49, 16, 17, 50, 51, 84, 100}, //4
{14, 15, 16, 19, 48, 49, 50, 51, 82, 83, 84, 100}, //5
{14, 15, 16, 19, 48, 49, 50, 53, 51, 82, 83, 84, 100}, //6
{16, 17, 50, 51, 84, 14, 15, 100}, //7
{14, 15, 16, 19, 17, 48, 49, 50, 53, 51, 82, 83, 84, 100}, //8
{14, 15, 16, 19, 17, 48, 49, 50, 51, 82, 83, 84, 100}, //9
};
void setup() {
#if defined(__AVR_ATtiny85__) && (F_CPU == 16000000)
clock_prescale_set(clock_div_1);
#endif
pixels.begin();
rtc.begin();
Serial.begin(9600);
}
void begink() {
pixels.clear();
for (int i = 0; i < NUMPIXELS; i++) {
pixels.setPixelColor(i, pixels.Color(change, 255, 255));
change = change + changek;
change = change % 255;
pixels.show();
delay(DELAYVAL);
}
}
void helloshow() {
pixels.clear();
for (int i = 0; i < 46; i++) {
pixels.setPixelColor(dataHELLO, pixels.Color(50, 50, 50));
}
pixels.show();
}
void grid_show(int m, int n, int o, int p) {
pixels.clear();
for (int i = 0; i < 15; i++) {
pixels.setPixelColor(Adatanumber, pixels.Color(50, 50, 50));
if (Adatanumber == 100) {
break;
}
}
for (int i = 0; i < 15; i++) {
pixels.setPixelColor(Bdadanumber, pixels.Color(50, 50, 50));
if (Bdadanumber == 100) {
break;
}
}
for (int i = 0; i < 15; i++) {
pixels.setPixelColor(Cdadanumber, pixels.Color(50, 50, 50));
if (Cdadanumber == 100) {
break;
}
}
for (int i = 0; i < 15; i++) {
pixels.setPixelColor(Ddadanumber, pixels.Color(50, 50, 50));
if (Ddadanumber == 100) {
break;
}
}
pixels.setPixelColor(25, pixels.Color(50, 50, 50));
pixels.setPixelColor(59, pixels.Color(50, 50, 50));
pixels.show();
}
void loop() {
pixels.clear();
helloshow();
delay(1000);
pixels.clear();
delay(1000);
begink();
pixels.clear();
while (1) {
String sh=rtc.getTimeStr();
grid_show(int(sh)-48, int(sh)-48, int(sh)-48, int(sh)-48);
delay(500);
}
}
方块钟.rar
说明一下,我的代码对之前那位老哥做了一点改进,但是之间不冲突,我这个没用到蜂鸣器什么的,电路系统非常简单,顺便求问一下怎么解决ws2812灯闪的问题 总结出来一句话,你们都牛逼{:5_116:} hnyzcj 发表于 2019-9-15 22:39
总结出来一句话,你们都牛逼
捕捉大佬{:5_125:} 刘俊宝 发表于 2019-9-15 22:42
捕捉大佬
那个大学的大学生呀,已经很牛了 hnyzcj 发表于 2019-9-15 22:49
那个大学的大学生呀,已经很牛了
普通二本学校,不值一提。{:5_169:} 刘俊宝 发表于 2019-9-15 22:57
普通二本学校,不值一提。
我也是普通的二本。{:5_171:} 厉害 刘俊宝 发表于 2019-9-15 22:57
普通二本学校,不值一提。
常熟理工 刘俊宝 发表于 2019-9-15 22:37
预览效果:
可以发一下那个stl文件吗 挺酷的 你好楼主,我编译为什么错误呢?麻烦你帮我看看
Arduino:1.8.12 (Windows 10), 开发板:"Arduino Uno"
LED_clock:93:58: error: stray '\345' in program
pixels.setPixelColor(dataHELLO, pixels.Color(50, 50, 50));
^
LED_clock:93:59: error: stray '\276' in program
pixels.setPixelColor(dataHELLO, pixels.Color(50, 50, 50));
^
LED_clock:93:60: error: stray '\256' in program
pixels.setPixelColor(dataHELLO, pixels.Color(50, 50, 50));
^
LED_clock:93:61: error: stray '\350' in program
pixels.setPixelColor(dataHELLO, pixels.Color(50, 50, 50));
^
LED_clock:93:62: error: stray '\275' in program
pixels.setPixelColor(dataHELLO, pixels.Color(50, 50, 50));
^
LED_clock:93:63: error: stray '\257' in program
pixels.setPixelColor(dataHELLO, pixels.Color(50, 50, 50));
^
LED_clock:93:64: error: stray '\351' in program
pixels.setPixelColor(dataHELLO, pixels.Color(50, 50, 50));
^
LED_clock:93:65: error: stray '\233' in program
pixels.setPixelColor(dataHELLO, pixels.Color(50, 50, 50));
^
LED_clock:93:66: error: stray '\205' in program
pixels.setPixelColor(dataHELLO, pixels.Color(50, 50, 50));
^
LED_clock:93:67: error: stray '\351' in program
pixels.setPixelColor(dataHELLO, pixels.Color(50, 50, 50));
^
LED_clock:93:68: error: stray '\273' in program
pixels.setPixelColor(dataHELLO, pixels.Color(50, 50, 50));
^
LED_clock:93:69: error: stray '\221' in program
pixels.setPixelColor(dataHELLO, pixels.Color(50, 50, 50));
^
LED_clock:100:63: error: stray '\345' in program
pixels.setPixelColor(Adatanumber, pixels.Color(50, 50, 50));
^
LED_clock:100:64: error: stray '\276' in program
pixels.setPixelColor(Adatanumber, pixels.Color(50, 50, 50));
^
LED_clock:100:65: error: stray '\256' in program
pixels.setPixelColor(Adatanumber, pixels.Color(50, 50, 50));
^
LED_clock:100:66: error: stray '\350' in program
pixels.setPixelColor(Adatanumber, pixels.Color(50, 50, 50));
^
LED_clock:100:67: error: stray '\275' in program
pixels.setPixelColor(Adatanumber, pixels.Color(50, 50, 50));
^
LED_clock:100:68: error: stray '\257' in program
pixels.setPixelColor(Adatanumber, pixels.Color(50, 50, 50));
^
LED_clock:100:69: error: stray '\351' in program
pixels.setPixelColor(Adatanumber, pixels.Color(50, 50, 50));
^
LED_clock:100:70: error: stray '\233' in program
pixels.setPixelColor(Adatanumber, pixels.Color(50, 50, 50));
^
LED_clock:100:71: error: stray '\205' in program
pixels.setPixelColor(Adatanumber, pixels.Color(50, 50, 50));
^
LED_clock:100:72: error: stray '\351' in program
pixels.setPixelColor(Adatanumber, pixels.Color(50, 50, 50));
^
LED_clock:100:73: error: stray '\273' in program
pixels.setPixelColor(Adatanumber, pixels.Color(50, 50, 50));
^
LED_clock:100:74: error: stray '\221' in program
pixels.setPixelColor(Adatanumber, pixels.Color(50, 50, 50));
^
LED_clock:101:46: error: stray '\345' in program
if (Adatanumber == 100) {
^
LED_clock:101:47: error: stray '\276' in program
if (Adatanumber == 100) {
^
LED_clock:101:48: error: stray '\256' in program
if (Adatanumber == 100) {
^
LED_clock:101:49: error: stray '\350' in program
if (Adatanumber == 100) {
^
LED_clock:101:50: error: stray '\275' in program
if (Adatanumber == 100) {
^
LED_clock:101:51: error: stray '\257' in program
if (Adatanumber == 100) {
^
LED_clock:101:52: error: stray '\351' in program
if (Adatanumber == 100) {
^
LED_clock:101:53: error: stray '\233' in program
if (Adatanumber == 100) {
^
LED_clock:101:54: error: stray '\205' in program
if (Adatanumber == 100) {
^
LED_clock:101:55: error: stray '\351' in program
if (Adatanumber == 100) {
^
LED_clock:101:56: error: stray '\273' in program
if (Adatanumber == 100) {
^
LED_clock:101:57: error: stray '\221' in program
if (Adatanumber == 100) {
^
LED_clock:106:63: error: stray '\345' in program
pixels.setPixelColor(Bdadanumber, pixels.Color(50, 50, 50));
^
LED_clock:106:64: error: stray '\276' in program
pixels.setPixelColor(Bdadanumber, pixels.Color(50, 50, 50));
^
LED_clock:106:65: error: stray '\256' in program
pixels.setPixelColor(Bdadanumber, pixels.Color(50, 50, 50));
^
LED_clock:106:66: error: stray '\350' in program
pixels.setPixelColor(Bdadanumber, pixels.Color(50, 50, 50));
^
LED_clock:106:67: error: stray '\275' in program
pixels.setPixelColor(Bdadanumber, pixels.Color(50, 50, 50));
^
LED_clock:106:68: error: stray '\257' in program
pixels.setPixelColor(Bdadanumber, pixels.Color(50, 50, 50));
^
LED_clock:106:69: error: stray '\351' in program
pixels.setPixelColor(Bdadanumber, pixels.Color(50, 50, 50));
^
LED_clock:106:70: error: stray '\233' in program
pixels.setPixelColor(Bdadanumber, pixels.Color(50, 50, 50));
^
LED_clock:106:71: error: stray '\205' in program
pixels.setPixelColor(Bdadanumber, pixels.Color(50, 50, 50));
^
LED_clock:106:72: error: stray '\351' in program
pixels.setPixelColor(Bdadanumber, pixels.Color(50, 50, 50));
^
LED_clock:106:73: error: stray '\273' in program
pixels.setPixelColor(Bdadanumber, pixels.Color(50, 50, 50));
^
LED_clock:106:74: error: stray '\221' in program
pixels.setPixelColor(Bdadanumber, pixels.Color(50, 50, 50));
^
LED_clock:107:46: error: stray '\345' in program
if (Bdadanumber == 100) {
^
LED_clock:107:47: error: stray '\276' in program
if (Bdadanumber == 100) {
^
LED_clock:107:48: error: stray '\256' in program
if (Bdadanumber == 100) {
^
LED_clock:107:49: error: stray '\350' in program
if (Bdadanumber == 100) {
^
LED_clock:107:50: error: stray '\275' in program
if (Bdadanumber == 100) {
^
LED_clock:107:51: error: stray '\257' in program
if (Bdadanumber == 100) {
^
LED_clock:107:52: error: stray '\351' in program
if (Bdadanumber == 100) {
^
LED_clock:107:53: error: stray '\233' in program
if (Bdadanumber == 100) {
^
LED_clock:107:54: error: stray '\205' in program
if (Bdadanumber == 100) {
^
LED_clock:107:55: error: stray '\351' in program
if (Bdadanumber == 100) {
^
LED_clock:107:56: error: stray '\273' in program
if (Bdadanumber == 100) {
^
LED_clock:107:57: error: stray '\221' in program
if (Bdadanumber == 100) {
^
LED_clock:112:63: error: stray '\345' in program
pixels.setPixelColor(Cdadanumber, pixels.Color(50, 50, 50));
^
LED_clock:112:64: error: stray '\276' in program
pixels.setPixelColor(Cdadanumber, pixels.Color(50, 50, 50));
^
LED_clock:112:65: error: stray '\256' in program
pixels.setPixelColor(Cdadanumber, pixels.Color(50, 50, 50));
^
LED_clock:112:66: error: stray '\350' in program
pixels.setPixelColor(Cdadanumber, pixels.Color(50, 50, 50));
^
LED_clock:112:67: error: stray '\275' in program
pixels.setPixelColor(Cdadanumber, pixels.Color(50, 50, 50));
^
LED_clock:112:68: error: stray '\257' in program
pixels.setPixelColor(Cdadanumber, pixels.Color(50, 50, 50));
^
LED_clock:112:69: error: stray '\351' in program
pixels.setPixelColor(Cdadanumber, pixels.Color(50, 50, 50));
^
LED_clock:112:70: error: stray '\233' in program
pixels.setPixelColor(Cdadanumber, pixels.Color(50, 50, 50));
^
LED_clock:112:71: error: stray '\205' in program
pixels.setPixelColor(Cdadanumber, pixels.Color(50, 50, 50));
^
LED_clock:112:72: error: stray '\351' in program
pixels.setPixelColor(Cdadanumber, pixels.Color(50, 50, 50));
^
LED_clock:112:73: error: stray '\273' in program
pixels.setPixelColor(Cdadanumber, pixels.Color(50, 50, 50));
^
LED_clock:112:74: error: stray '\221' in program
pixels.setPixelColor(Cdadanumber, pixels.Color(50, 50, 50));
^
LED_clock:113:46: error: stray '\345' in program
if (Cdadanumber == 100) {
^
LED_clock:113:47: error: stray '\276' in program
if (Cdadanumber == 100) {
^
LED_clock:113:48: error: stray '\256' in program
if (Cdadanumber == 100) {
^
LED_clock:113:49: error: stray '\350' in program
if (Cdadanumber == 100) {
^
LED_clock:113:50: error: stray '\275' in program
if (Cdadanumber == 100) {
^
LED_clock:113:51: error: stray '\257' in program
if (Cdadanumber == 100) {
^
LED_clock:113:52: error: stray '\351' in program
if (Cdadanumber == 100) {
^
LED_clock:113:53: error: stray '\233' in program
if (Cdadanumber == 100) {
^
LED_clock:113:54: error: stray '\205' in program
if (Cdadanumber == 100) {
^
LED_clock:113:55: error: stray '\351' in program
if (Cdadanumber == 100) {
^
LED_clock:113:56: error: stray '\273' in program
if (Cdadanumber == 100) {
^
LED_clock:113:57: error: stray '\221' in program
if (Cdadanumber == 100) {
^
LED_clock:118:63: error: stray '\345' in program
pixels.setPixelColor(Ddadanumber, pixels.Color(50, 50, 50));
^
LED_clock:118:64: error: stray '\276' in program
pixels.setPixelColor(Ddadanumber, pixels.Color(50, 50, 50));
^
LED_clock:118:65: error: stray '\256' in program
pixels.setPixelColor(Ddadanumber, pixels.Color(50, 50, 50));
^
LED_clock:118:66: error: stray '\350' in program
pixels.setPixelColor(Ddadanumber, pixels.Color(50, 50, 50));
^
LED_clock:118:67: error: stray '\275' in program
pixels.setPixelColor(Ddadanumber, pixels.Color(50, 50, 50));
^
LED_clock:118:68: error: stray '\257' in program
pixels.setPixelColor(Ddadanumber, pixels.Color(50, 50, 50));
^
LED_clock:118:69: error: stray '\351' in program
pixels.setPixelColor(Ddadanumber, pixels.Color(50, 50, 50));
^
LED_clock:118:70: error: stray '\233' in program
pixels.setPixelColor(Ddadanumber, pixels.Color(50, 50, 50));
^
LED_clock:118:71: error: stray '\205' in program
pixels.setPixelColor(Ddadanumber, pixels.Color(50, 50, 50));
^
LED_clock:118:72: error: stray '\351' in program
pixels.setPixelColor(Ddadanumber, pixels.Color(50, 50, 50));
^
LED_clock:118:73: error: stray '\273' in program
pixels.setPixelColor(Ddadanumber, pixels.Color(50, 50, 50));
^
LED_clock:118:74: error: stray '\221' in program
pixels.setPixelColor(Ddadanumber, pixels.Color(50, 50, 50));
^
LED_clock:119:46: error: stray '\345' in program
if (Ddadanumber == 100) {
^
LED_clock:119:47: error: stray '\276' in program
if (Ddadanumber == 100) {
^
LED_clock:119:48: error: stray '\256' in program
if (Ddadanumber == 100) {
^
LED_clock:119:49: error: stray '\350' in program
if (Ddadanumber == 100) {
^
LED_clock:119:50: error: stray '\275' in program
if (Ddadanumber == 100) {
^
LED_clock:119:51: error: stray '\257' in program
if (Ddadanumber == 100) {
^
LED_clock:119:52: error: stray '\351' in program
if (Ddadanumber == 100) {
^
LED_clock:119:53: error: stray '\233' in program
if (Ddadanumber == 100) {
^
LED_clock:119:54: error: stray '\205' in program
if (Ddadanumber == 100) {
^
LED_clock:119:55: error: stray '\351' in program
if (Ddadanumber == 100) {
^
LED_clock:119:56: error: stray '\273' in program
if (Ddadanumber == 100) {
^
LED_clock:119:57: error: stray '\221' in program
if (Ddadanumber == 100) {
^
LED_clock:9:21: error: no matching function for call to 'DS3231::DS3231(const uint8_t&, const uint8_t&)'
DS3231rtc(SDA, SCL);
^
In file included from C:\Users\S7\AppData\Local\Temp\arduino_modified_sketch_85526\LED_clock.ino:7:0:
d:\Users\S7\Documents\Arduino\libraries\DS3231/DS3231.h:64:3: note: candidate: DS3231::DS3231()
DS3231();
^~~~~~
d:\Users\S7\Documents\Arduino\libraries\DS3231/DS3231.h:64:3: note: candidate expects 0 arguments, 2 provided
d:\Users\S7\Documents\Arduino\libraries\DS3231/DS3231.h:60:7: note: candidate: constexpr DS3231::DS3231(const DS3231&)
class DS3231 {
^~~~~~
d:\Users\S7\Documents\Arduino\libraries\DS3231/DS3231.h:60:7: note: candidate expects 1 argument, 2 provided
d:\Users\S7\Documents\Arduino\libraries\DS3231/DS3231.h:60:7: note: candidate: constexpr DS3231::DS3231(DS3231&&)
d:\Users\S7\Documents\Arduino\libraries\DS3231/DS3231.h:60:7: note: candidate expects 1 argument, 2 provided
C:\Users\S7\AppData\Local\Temp\arduino_modified_sketch_85526\LED_clock.ino: In function 'void setup()':
LED_clock:76:7: error: 'class DS3231' has no member named 'begin'
rtc.begin();
^~~~~
C:\Users\S7\AppData\Local\Temp\arduino_modified_sketch_85526\LED_clock.ino: In function 'void helloshow()':
LED_clock:93:36: error: expected primary-expression before '/' token
pixels.setPixelColor(dataHELLO, pixels.Color(50, 50, 50));
^
LED_clock:93:37: error: 'size' was not declared in this scope
pixels.setPixelColor(dataHELLO, pixels.Color(50, 50, 50));
^~~~
C:\Users\S7\AppData\Local\Temp\arduino_modified_sketch_85526\LED_clock.ino:93:37: note: suggested alternative: 'Wire'
pixels.setPixelColor(dataHELLO, pixels.Color(50, 50, 50));
^~~~
Wire
LED_clock:93:43: error: expected primary-expression before '/' token
pixels.setPixelColor(dataHELLO, pixels.Color(50, 50, 50));
^
LED_clock:93:44: error: 'font' was not declared in this scope
pixels.setPixelColor(dataHELLO, pixels.Color(50, 50, 50));
^~~~
C:\Users\S7\AppData\Local\Temp\arduino_modified_sketch_85526\LED_clock.ino:93:44: note: suggested alternative: 'tone'
pixels.setPixelColor(dataHELLO, pixels.Color(50, 50, 50));
^~~~
tone
LED_clock:93:70: error: expected primary-expression before ']' token
pixels.setPixelColor(dataHELLO, pixels.Color(50, 50, 50));
^
C:\Users\S7\AppData\Local\Temp\arduino_modified_sketch_85526\LED_clock.ino: In function 'void grid_show(int, int, int, int)':
LED_clock:100:41: error: expected primary-expression before '/' token
pixels.setPixelColor(Adatanumber, pixels.Color(50, 50, 50));
^
LED_clock:100:42: error: 'size' was not declared in this scope
pixels.setPixelColor(Adatanumber, pixels.Color(50, 50, 50));
^~~~
C:\Users\S7\AppData\Local\Temp\arduino_modified_sketch_85526\LED_clock.ino:100:42: note: suggested alternative: 'Wire'
pixels.setPixelColor(Adatanumber, pixels.Color(50, 50, 50));
^~~~
Wire
LED_clock:100:48: error: expected primary-expression before '/' token
pixels.setPixelColor(Adatanumber, pixels.Color(50, 50, 50));
^
LED_clock:100:49: error: 'font' was not declared in this scope
pixels.setPixelColor(Adatanumber, pixels.Color(50, 50, 50));
^~~~
C:\Users\S7\AppData\Local\Temp\arduino_modified_sketch_85526\LED_clock.ino:100:49: note: suggested alternative: 'tone'
pixels.setPixelColor(Adatanumber, pixels.Color(50, 50, 50));
^~~~
tone
LED_clock:100:75: error: expected primary-expression before ']' token
pixels.setPixelColor(Adatanumber, pixels.Color(50, 50, 50));
^
LED_clock:101:24: error: expected primary-expression before '/' token
if (Adatanumber == 100) {
^
LED_clock:101:31: error: expected primary-expression before '/' token
if (Adatanumber == 100) {
^
LED_clock:101:58: error: expected primary-expression before ']' token
if (Adatanumber == 100) {
^
LED_clock:106:41: error: expected primary-expression before '/' token
pixels.setPixelColor(Bdadanumber, pixels.Color(50, 50, 50));
^
LED_clock:106:42: error: 'size' was not declared in this scope
pixels.setPixelColor(Bdadanumber, pixels.Color(50, 50, 50));
^~~~
C:\Users\S7\AppData\Local\Temp\arduino_modified_sketch_85526\LED_clock.ino:106:42: note: suggested alternative: 'Wire'
pixels.setPixelColor(Bdadanumber, pixels.Color(50, 50, 50));
^~~~
Wire
LED_clock:106:48: error: expected primary-expression before '/' token
pixels.setPixelColor(Bdadanumber, pixels.Color(50, 50, 50));
^
LED_clock:106:49: error: 'font' was not declared in this scope
pixels.setPixelColor(Bdadanumber, pixels.Color(50, 50, 50));
^~~~
C:\Users\S7\AppData\Local\Temp\arduino_modified_sketch_85526\LED_clock.ino:106:49: note: suggested alternative: 'tone'
pixels.setPixelColor(Bdadanumber, pixels.Color(50, 50, 50));
^~~~
tone
LED_clock:106:75: error: expected primary-expression before ']' token
pixels.setPixelColor(Bdadanumber, pixels.Color(50, 50, 50));
^
LED_clock:107:24: error: expected primary-expression before '/' token
if (Bdadanumber == 100) {
^
LED_clock:107:31: error: expected primary-expression before '/' token
if (Bdadanumber == 100) {
^
LED_clock:107:58: error: expected primary-expression before ']' token
if (Bdadanumber == 100) {
^
LED_clock:112:41: error: expected primary-expression before '/' token
pixels.setPixelColor(Cdadanumber, pixels.Color(50, 50, 50));
^
LED_clock:112:42: error: 'size' was not declared in this scope
pixels.setPixelColor(Cdadanumber, pixels.Color(50, 50, 50));
^~~~
C:\Users\S7\AppData\Local\Temp\arduino_modified_sketch_85526\LED_clock.ino:112:42: note: suggested alternative: 'Wire'
pixels.setPixelColor(Cdadanumber, pixels.Color(50, 50, 50));
^~~~
Wire
LED_clock:112:48: error: expected primary-expression before '/' token
pixels.setPixelColor(Cdadanumber, pixels.Color(50, 50, 50));
^
LED_clock:112:49: error: 'font' was not declared in this scope
pixels.setPixelColor(Cdadanumber, pixels.Color(50, 50, 50));
^~~~
C:\Users\S7\AppData\Local\Temp\arduino_modified_sketch_85526\LED_clock.ino:112:49: note: suggested alternative: 'tone'
pixels.setPixelColor(Cdadanumber, pixels.Color(50, 50, 50));
^~~~
tone
LED_clock:112:75: error: expected primary-expression before ']' token
pixels.setPixelColor(Cdadanumber, pixels.Color(50, 50, 50));
^
LED_clock:113:24: error: expected primary-expression before '/' token
if (Cdadanumber == 100) {
^
LED_clock:113:31: error: expected primary-expression before '/' token
if (Cdadanumber == 100) {
^
LED_clock:113:58: error: expected primary-expression before ']' token
if (Cdadanumber == 100) {
^
LED_clock:118:41: error: expected primary-expression before '/' token
pixels.setPixelColor(Ddadanumber, pixels.Color(50, 50, 50));
^
LED_clock:118:42: error: 'size' was not declared in this scope
pixels.setPixelColor(Ddadanumber, pixels.Color(50, 50, 50));
^~~~
C:\Users\S7\AppData\Local\Temp\arduino_modified_sketch_85526\LED_clock.ino:118:42: note: suggested alternative: 'Wire'
pixels.setPixelColor(Ddadanumber, pixels.Color(50, 50, 50));
^~~~
Wire
LED_clock:118:48: error: expected primary-expression before '/' token
pixels.setPixelColor(Ddadanumber, pixels.Color(50, 50, 50));
^
LED_clock:118:49: error: 'font' was not declared in this scope
pixels.setPixelColor(Ddadanumber, pixels.Color(50, 50, 50));
^~~~
C:\Users\S7\AppData\Local\Temp\arduino_modified_sketch_85526\LED_clock.ino:118:49: note: suggested alternative: 'tone'
pixels.setPixelColor(Ddadanumber, pixels.Color(50, 50, 50));
^~~~
tone
LED_clock:118:75: error: expected primary-expression before ']' token
pixels.setPixelColor(Ddadanumber, pixels.Color(50, 50, 50));
^
LED_clock:119:24: error: expected primary-expression before '/' token
if (Ddadanumber == 100) {
^
LED_clock:119:31: error: expected primary-expression before '/' token
if (Ddadanumber == 100) {
^
LED_clock:119:58: error: expected primary-expression before ']' token
if (Ddadanumber == 100) {
^
C:\Users\S7\AppData\Local\Temp\arduino_modified_sketch_85526\LED_clock.ino: In function 'void loop()':
LED_clock:138:16: error: 'class DS3231' has no member named 'getTimeStr'; did you mean 'getMinute'?
String sh=rtc.getTimeStr();
^~~~~~~~~~
getMinute
exit status 1
stray '\345' in program
在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。
楼主你好,看到你们做的这个很喜欢,我没有编程经验,但很想做一个。把你和你发的那个大神的程序下载后编译报错:OneWire_direct_regtype.h: No such file or directory#include "util/OneWire_direct_regtype.h"请帮忙看看是哪里出问题了谢谢了 不错不错 赞赞赞赞赞 厉害厉害 有创意!!
页:
[1]