Search results

  1. S

    <functional> callback functions

    i thought lambda's were global scope? hence the danger of calling on non-global things, but in this demo, they're being declared and called in the same setup scope so i should see each of the actions print out 5 times in that for loop
  2. S

    <functional> callback functions

    well my sample compiles, but doesn't actually do anything, like if i put a print statement in the action's i declare, they don't get printed, just "begin test" then "end test"
  3. S

    <functional> callback functions

    i think i'm trying to go the other way, if i'm understanding signals correctly instead of having models listen and do their thing, i already have my control logic responding to a screen touch to display a menu and i wanted to stay in the same scope to draw menu's and handle their button touch's...
  4. S

    <functional> callback functions

    i'd rather have something like a lambda, which i can just declare to handle the various things different instantiations can handle. do boost.signals work on the teensy 3.1?
  5. S

    <functional> callback functions

    yup, some buttons will be related, others will be grouped together in button containers, but do completely different things,
  6. S

    <functional> callback functions

    different actions for different instances of buttons that can access different instances (pointers) to other objects and makes various changes to them
  7. S

    <functional> callback functions

    So this runs fine on ccp.sh, but on arduino 1.05 teensy 3.1 1. i had to comment the "..SpecialFunction(Thingy....) i'm guessing just because of some compiler issue with inline class declaration 2. weird, i had to remove the ()'s when calling aButton.action(); to it's aButton.action; i guess...
  8. S

    undefined reference to `std::__detail::_List_node_base::_M_hook() and unhook()

    another version of the code, looks like inserting into an empty list was a no no, this version works on cpp.sh and on an mbed, but teensy doesn't seem to like the Container type, and still getting a weird error vecotrVsLinkedList.cpp.o: In function `std::vector<int, std::allocator<int>...
  9. S

    undefined reference to `std::__detail::_List_node_base::_M_hook() and unhook()

    Out of curiosity i was trying to run my own version of the array vs linked list benchmark to see how it fairs on the teensy, but i get the following compile error in Arduino 1.05 vecotrVsLinkedList.cpp.o: In function `emplace<int>'...
  10. S

    Adafruit 2.8" TFT Touch Shield for Arduino for Teensy 3.1

    no problem with ILI9340, i think it's something with the writedata16, not really sure what i'm look at here though // ILI9340 void Adafruit_ILI9340::writedata(uint8_t c) { SET_BIT(dcport, dcpinmask); //digitalWrite(_dc, HIGH); CLEAR_BIT(clkport, clkpinmask); //digitalWrite(_sclk...
  11. S

    Adafruit 2.8" TFT Touch Shield for Arduino for Teensy 3.1

    yes, with half speed it works now, i'm also working on using the touch screen, but i've discovered a bug... when drawPixel is called it generates garbage touch events loop() { drawPixel(anyX, anyY, anyColour); if (!ts.bufferEmpty()) { // Retrieve a point TS_Point p =...
  12. S

    Adafruit 2.8" TFT Touch Shield for Arduino for Teensy 3.1

    i wasn't able to get this to build, how did you get it to compile with just SDFat.h ? i usualy use SD.begin(cs, speed) instead of init when i just import SDFat.h and SDFatUtil.h spitftbitmap_kurte:5: error: 'SdFile' was not declared in this scope spitftbitmap_kurte:5: error: 'f' was not...
  13. S

    Adafruit 2.8" TFT Touch Shield for Arduino for Teensy 3.1

    thanks for posting this! helped me get the 2.8" working since i had the same problems, along with sumoboy's faster spi display library i should be able to use this display almost as well as a gLCD that referesh's much faster then the stock ILI9340 library
  14. S

    teensy 3.1 SD.open file modified time always Jan 1, 2000

    Can this work directly with an micro SD sheild? same pins being used... I must be reading this wrong is that 263MB/s write? and 936MB/s read??? Next time, cut out the build time from the video ;)
  15. S

    library conflict with redefining << operator?

    stripped down (and re hacked back together) sample of the program, won't compile when i uncomment the endl enum stuff mentioned in first post thanks for the help #include <openGLCD.h> #include <SdFat.h> #include <SdFatUtil.h> #include <Time.h> //openGLCD stuff #define BARMAXVAL 50 #define...
  16. S

    library conflict with redefining << operator?

    Have a little conflict with a library when i compile In file included from /Arduino.app/Contents/Resources/Java/libraries/SdFat/SdStream.h:27:0, from /Arduino.app/Contents/Resources/Java/libraries/SdFat/SdFat.h:39, from cylinderTest3.ino:3...
  17. S

    teensy 3.1 SD.open file modified time always Jan 1, 2000

    Got the SdFat working from the above source now with modified timestamps :) Also, if anyone is curious, results from bench.ino Free RAM: 57255 Type is FAT32 File size 5MB Buffer size 100 bytes Starting write test. Please wait up to a minute Write 384.35 KB/sec Maximum latency: 190753 usec...
  18. S

    teensy 3.1 SD.open file modified time always Jan 1, 2000

    I'm guessing he has a serial port wired up to a standard usb port breakout and uses a regular thumb drive in that. This one ? https://code.google.com/p/sdfatlib/downloads/list
  19. S

    teensy 3.1 SD.open file modified time always Jan 1, 2000

    Hmm, i guess the basic SD.h library was just missing any reference to the dateTime function of SdFile, i guess i'll just switch libraries /* * User provided date time callback function. * See SdFile::dateTimeCallback() for usage. */ void dateTime(uint16_t* date, uint16_t* time) { // clock...
  20. S

    teensy 3.1 SD.open file modified time always Jan 1, 2000

    i guess i'll just keep using the time stamped filenames, wish there was more then 8 chars allowed :( no idea what kind of speeds i'm getting, i'm logging a row of data 30 or 40 times a second which is governed by parsing serial input from a sensor, so i don't need crazy throughput, just low delay
  21. S

    teensy 3.1 SD.open file modified time always Jan 1, 2000

    Can't find where to set the file created or file modified time, and the modified seems to be defaulting to Jan 1, 2000 I've been using a crystal and 3v battery to just make the name of my files DDHHMMSS.csv but it would be really great if the modified time of the files was actually used so i...
Back
Top