Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Teplomer {
- byte DS18B20ID[9];
- float zmereno;
- float maByt;
- //....
- };
- struct Teplomer;
- Teplomer s[2];
- void setup() {
- s[0].maByt=23.0;
- s[0].DS18B20ID[0] = 0x28;
- s[0].DS18B20ID[0] = {0x28, 0x2E, 0x95, 0xC7, 0x1, 0x0, 0x0, 0xCA};
- s[1].maByt=23.2;
- s[1].DS18B20ID = {0x28, 0x19, 0x30, 0x9D, 0x1, 0x0, 0x0, 0x80};
- }
- void loop() {
- }
- /* :
- sketch_jan07b.ino: In function 'void setup()':
- sketch_jan07b.ino:14:21: error: cannot convert '<brace-enclosed initializer list>' to 'byte {aka unsigned char}' in assignment
- sketch_jan07b.ino:16:18: error: assigning to an array from an initializer list
- Chyba kompilace.
- */
Advertisement
Add Comment
Please, Sign In to add comment