Skip to main content
2 of 4
added 334 characters in body
Gerben
  • 11.3k
  • 3
  • 21
  • 34

I seem to be having trouble with these libraries and the Arduino 101. Can anyone look at my output and tell me what I should do?

I'm not finding many resources out there. I already tried using new versions of "TFTv2.h" and "TFTv2.cpp", but I don't think much of anything changed in my output.

These are the libraries I'm trying to use. The sketch I'm trying to compile for the 101 is empty except for these lines and an empty setup() and loop().

#include <stdint.h>
#include <TFTv2.h>//For Seedstudio Touch
#include <SPI.h>
#include <SeeedTouchScreen.h>   //Seedstudio LCD touch screen Library File
#include <SD.h>//For Seedstudio Touch
#include <XBee.h>   //Zigbee Wireless transciever Library File
#include <Printers.h>   //Zigbee Wireless transciever Library File

Basically I need to know whether I need to find replacements or workarounds for these libraries. Compiling for the 101 in Visual Studio, I get a lot of output messages that I don't get when compiling for the Mega. I have more-or-less no idea what they mean.

I'll go ahead and paste the non-verbose output here. Note that the line returns are a little messed up for some reason. Thanks for your advice! Let me know if I should add the verbose output, and I'll post it right away.

#output (non-verbose);

Compiling debug version of 'Arduino_101trial' for 'Arduino/Genuino 101'
Sd2Card.cpp:In member function 'uint8_t Sd2Card::readData(uint32_t, uint16_t, uint16_t, uint8_t*)
Sd2Card.cpp:379:12: warning: unused variable 'n' [-Wunused-variable]
:uint16_t n
SdFile.cpp:In static member function 'static uint8_t SdFile::make83Name(const char*, uint8_t*)
SdFile.cpp:261:15: warning: unused variable 'b' [-Wunused-variable]
:uint8_t b
SdFile.cpp:In member function 'uint8_t SdFile::rmRfStar()
SdFile.cpp:907:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
:if (curPosition_ != (32*(index + 1))) {
TFTv2.cpp:In member function 'void TFT::drawString(char*, short unsigned int, short unsigned int, short unsigned int, short unsigned int)
TFTv2.cpp:388:18: warning: value computed is not used [-Wunused-value]
:*string++
SeeedTouchScreen.cpp:In file included from
pins_arduino.h:39:14: error: 'uint8_t' does not name a type
:static const uint8_t SS   = 10
pins_arduino.h:40:14: error: 'uint8_t' does not name a type
:static const uint8_t MOSI = 11
pins_arduino.h:41:14: error: 'uint8_t' does not name a type
:static const uint8_t MISO = 12
pins_arduino.h:42:14: error: 'uint8_t' does not name a type
:static const uint8_t SCK  = 13
pins_arduino.h:44:14: error: 'uint8_t' does not name a type
:static const uint8_t SDA = 18
pins_arduino.h:45:14: error: 'uint8_t' does not name a type
:static const uint8_t SCL = 19
pins_arduino.h:46:14: error: 'uint8_t' does not name a type
:static const uint8_t LED_BUILTIN = 13
pins_arduino.h:48:14: error: 'uint8_t' does not name a type
:static const uint8_t A0 = 14
pins_arduino.h:49:14: error: 'uint8_t' does not name a type
:static const uint8_t A1 = 15
pins_arduino.h:50:14: error: 'uint8_t' does not name a type
:static const uint8_t A2 = 16
pins_arduino.h:51:14: error: 'uint8_t' does not name a type
:static const uint8_t A3 = 17
pins_arduino.h:52:14: error: 'uint8_t' does not name a type
:static const uint8_t A4 = 18
pins_arduino.h:53:14: error: 'uint8_t' does not name a type
:static const uint8_t A5 = 19
pins_arduino.h:55:14: error: 'uint8_t' does not name a type
:static const uint8_t ATN = 20
Arduino.h:In file included from
wiring_private.h:from
SeeedTouchScreen.cpp:from
SeeedTouchScreen.cpp:In member function 'Point TouchScreen::getPoint()
SeeedTouchScreen.cpp:94:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
:*portOutputRegister(yp_port) &= ~yp_pin
variant.h:in definition of macro 'portOutputRegister
:#define portOutputRegister(port)  (uint32_t*)port
SeeedTouchScreen.cpp:95:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
:*portOutputRegister(ym_port) &= ~ym_pin
variant.h:in definition of macro 'portOutputRegister
:#define portOutputRegister(port)  (uint32_t*)port
SeeedTouchScreen.cpp:100:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
:*portOutputRegister(xp_port) |= xp_pin
variant.h:in definition of macro 'portOutputRegister
:#define portOutputRegister(port)  (uint32_t*)port
SeeedTouchScreen.cpp:101:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
:*portOutputRegister(xm_port) &= ~xm_pin
variant.h:in definition of macro 'portOutputRegister
:#define portOutputRegister(port)  (uint32_t*)port
SeeedTouchScreen.cpp:127:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
:*portOutputRegister(xp_port) &= ~xp_pin
variant.h:in definition of macro 'portOutputRegister
:#define portOutputRegister(port)  (uint32_t*)port
SeeedTouchScreen.cpp:130:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
:*portOutputRegister(yp_port) |= yp_pin
variant.h:in definition of macro 'portOutputRegister
:#define portOutputRegister(port)  (uint32_t*)port
SeeedTouchScreen.cpp:153:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
:*portOutputRegister(xp_port) &= ~xp_pin;            \\ Set X+ to ground
variant.h:in definition of macro 'portOutputRegister
:#define portOutputRegister(port)  (uint32_t*)port
SeeedTouchScreen.cpp:154:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
:*portOutputRegister(ym_port) |=  ym_pin;            \\ Set Y- to VCC
variant.h:in definition of macro 'portOutputRegister
:#define portOutputRegister(port)  (uint32_t*)port
SeeedTouchScreen.cpp:155:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
:*portOutputRegister(yp_port) &= ~yp_pin;            \\ Hi-Z X- and Y+
variant.h:in definition of macro 'portOutputRegister
:#define portOutputRegister(port)  (uint32_t*)port
Error compiling libraries