Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by Stendall

  1. Hi sq7bti. I will try to put a little of light in this topic. The first problem that I faced was to find a i2c scanner sketch that worked on Stellaris. There are some Arduino i2c scanners out there that compile flawlessly but don't work because find i2c devices in each address. The one I'm using and it's working is this: #include <Wire.h> void setup() { Wire.begin(); Wire.setModule(3); Serial.begin(9600); Serial.println("\nI2C Scanner"); } void loop() { byte error, address; int nDevices; uint8_t c; Serial.println("Scanning..."); nDevices = 0; fo
  2. Thank you Rei. I got running all my I2C modules.
  3. Thank you Robert. Anyway I don't know if this is something that needs to be fixed. Maybe it's desirable that libraries do not call port functions before the setup.
  4. It's working after correct the includes (Energia instead Arduino) and defer the pinMode and digitalWrite calls to the init(). The only thing that don't work it's the text functions. I will check that later. I have to power the HT1632 module from 3.3v instead vbus, because if I do the later the stellaris crash and don't even appears in the usb bus. Maybe the stellaris need a few miliamps more than the arduino. Anyway it's ok. Thank you all. Updated library: https://drive.google.com/file/d/0Bzni4Zrd7hg_Qk80Y1d5bkFrSTA/edit?usp=sharing
  5. Thank you madias. Will try the Energia.h and remove all Arduinos.h reference. Actualy I'm using a identical versión of the library, but instead using the digitalWriteFast and pinModeFast I've replaced all ocurrences with the proper digitalWrite and pinMode. Just I dont have realized that before because I was working with a copy of the library. Also I've managed to get running CCSv6 with the last Energia release, compile and debug. So tomorrow will debug it. Thanks again.
  6. Hi. I'm trying to port a display library of mine for HT1632 display from Arduino to Energia: http://code.google.com/p/ht1632c-driver/ The library for Arduino compiles flawlessly in Energia without a change. It relies only in pinMode, digitalWrite and one single malloc call. The library compiles but don't even come to run the first line inside setup(). I've traced down the problem and found that the Stellaris hang if you try to use pinMode or digitalWrite outside the setup or loop scope. The same library in Arduino works without a problem. A short example of the problem: #include "
  7. Nice, will come handy. Thank you for sharing
  8. Thank you very much Stranger. I've tried in Windows just unziping Energia in c:\ and puting your LiquidCrystal_i2C library in the apropiated library folder on the Sketchfolder. And It worked!!!!. Now that I at least know that works, I can fight with it in Linux too. Maybe the problem it's with the 64Bits Linux version of Energia. I didn't needed the Wire.zip. The examples that come bundled with your library have worked fine. I owe you one, man. Huge Thanks.
  9. Hi StrangerM ¿can you give me a hand ? I wil really apreciate it. With a fresh installed energia any example give me compile error: [/home/stendall/Work/energia/hardware/tools/lm4f/bin/arm-none-eabi-g++, -c, -g, -Os, -w, -fno-rtti, -fno-exceptions, -ffunction-sections, -fdata-sections, -mthumb, -mcpu=cortex-m4, -mfloat-abi=hard, -mfpu=fpv4-sp-d16, -fsingle-precision-constant, -DF_CPU=80000000L, -MMD, -DARDUINO=101, -DENERGIA=11, -I/home/stendall/Work/energia/hardware/lm4f/cores/lm4f, -I/home/stendall/Work/energia/hardware/lm4f/variants/stellarpad, -I/home/stendall/Work/energia/hardware/lm
  10. #5RM, what library have you used for that sketch. Can you please share the link to download? I'm having a headache with i2c and Stellaris. Tried everything (diferent modules, pullups, wire start sequences, every i2c port on stellarpad) in every related post, and can't get the I2C working. I have i2c RTC modules, 3 kinds of i2c lcd adapters and one mpu6050 module. No one works or get detected with i2c scanner sketch or works with their specific library. But if I plug a buspirate in parallel with the sdl/sda pins/module used in stellaris, the Bus Pirate comunicate and find the i2c add
  • Create New...