
maxik
Members-
Content Count
18 -
Joined
-
Last visited
Everything posted by maxik
-
[Energia Library] Nordic nRF24L01+ library
maxik replied to spirilis's topic in MSP Energia Libraries
It works! Hangs after few minutes, but I doubt it's caused by the library. Thank you, spirilis! -
[Energia Library] Nordic nRF24L01+ library
maxik replied to spirilis's topic in MSP Energia Libraries
Unfortunately it won't : error: invalid conversion from 'void*' to 'const uint8_t* {aka const unsigned char*}' [-fpermissive] E:\ener10\hardware\msp430\cores\msp430/Print.h:57:20: error: initializing argument 1 of 'virtual size_t Print::write(const uint8_t*, size_t)' [-fpermissive] -
[Energia Library] Nordic nRF24L01+ library
maxik replied to spirilis's topic in MSP Energia Libraries
Malloc was my last try anyway. Here is the code: #include <Enrf24.h> #include <nRF24L01.h> #include <SPI.h> typedef struct { byte red; byte green; byte blue; } color_t; Enrf24 radio(P2_0, P2_1, P2_2); const uint8_t txaddr[] = { 0x01, 0x02, 0x03, 0x04, 0x05 }; color_t data; void setup() { SPI.begin(); SPI.setDataMode(SPI_MODE0); SPI.setBitOrder(1); radio.begin(); radio.setTXaddress((void*)txaddr); randomSeed(analogRead(1)); //A1 pinMode(RED_LED, OUTPUT); pinMode(GREEN_LED, OUTPUT); if(radio.radioState() != ENRF24_STATE_NOTPRESENT) { -
[Energia Library] Nordic nRF24L01+ library
maxik replied to spirilis's topic in MSP Energia Libraries
Thank you for the replies. #include <Enrf24.h> #include <nRF24L01.h> #include <SPI.h> struct color_t { byte red; byte green; byte blue; }; Enrf24 radio(P2_0, P2_1, P2_2); const uint8_t txaddr[] = { 0x01, 0x02, 0x03, 0x04, 0x05 }; color_t *data = (color_t *)malloc(sizeof(color_t)); void setup() { SPI.begin(); SPI.setDataMode(SPI_MODE0); SPI.setBitOrder(1); radio.begin(); radio.setTXaddress((void*)txaddr); randomSeed(analogRead(1)); //A1 pinMode(RED_LED, OUTPUT); pinMode(GREEN_LED, OUTPUT); if(radio.radioState() != ENRF24_STATE_NOTPR -
[Energia Library] Nordic nRF24L01+ library
maxik replied to spirilis's topic in MSP Energia Libraries
I still haven't figured out a way to send a struct using this library. Neither write nor print will accept pointer to struct. I know that the RF24 library can do such thing, but it doesn't work with Energia and MSP430. Sorry for asking for it again, but it is a blocker for my project. Any chance you could implement this functionality in some future version or maybe just point me how to do that? -
[Energia Library] Nordic nRF24L01+ library
maxik replied to spirilis's topic in MSP Energia Libraries
Hey, Thank you for the library, it looks much better and seems much easier to use than the Mirf available for the Arduino. So far I've only tried demo sketches on two MSP430 LaunchPads. I would like to make remote control using two StellarPads or a LaunchPad and a StellarPad, I thought about sending structs over the nRFs. Will I be able to do that? I mean, send struct and receive it on the other end. Should I use print method or some other one? -
Thank you for the Stellaris support, but when I try to upload "Blink" I keep getting "Cannot run program "E:\ENERGI~1\HARDWARE\TOOLS\LM4F\BIN\arm-none-eabi-g++" CreateProcess error=2 File not found". EDIT: Fixed this by renaming energia's folder from "energia-0101E0009" or so to "ener9", name seems to be an issue. Fix this please or note somewhere that folder name can't be longer than 6 characters.
-
Yesterday, I've received two MSP430 Launchpads 10 days before the estimate(4 days from USA to Poland, pretty impressive), so I'm optimistic about Stellaris delivery
-
Wiki is probably out of date, tone() works as expected, I've just tested it with buzzer to be sure. void setup() { pinMode(P1_5, OUTPUT); } void loop(){ tone(P1_5, 2193, 150); delay(250); }
-
I've ordered one more for $4.99 yesterday when I saw this topic and it turned up to be a good decision: http://i50.tinypic.com/muz7l4.png Stellaris LaunchPad just lost one of its most significant advantages.
-
MSP430 LaunchPad was quicker by about five days for me I hope we will hear some word of clarification from TI. If not I won't hesitate to ask them by email, they have great customer support
-
Est. ship: 11/09/2012 Ordered on 8/31/2012 2:54:31 PM It is not nice, TI said: "Order your kit now through the TI eStore and your Stellaris LaunchPad will be ready to ship when we start accepting regular orders on September 25!". I don't think they need more than a month to get it from "ready" to "delivered".
-
Energia bugs. Where is the proper place for bug reports?
maxik replied to Kirill's topic in Energia - MSP
I've got the same display from eBay and it works well with Energia on Windows. -
Support for Stellaris LaunchPad would be great as well, but I think it will require a lot of work as it is completely different MCU architecture. The bright side is somebody made that already, LeafLabs Maple is based on ARM and has Arduino-like IDE, so it is feasible. Also, Arduino family is waiting for release of ARM-based Due and maybe it will make porting easier.
-
I just tried this code on clean installation of Energia and it compiles! It think that 0006 version and 0008 version got mixed up and that's why it didn't work. Sorry for your trouble and thank you for your willingness to help, I really appreciate it. Keep up the good work Energia team.
-
I just tried and "Your post looks too spamy for a new user, please remove off-site URLs.", so please search for "arduino keypad library", it's on the Arduino Playground. There is Keypad and Keypad_I2C in the keypad.zip archive.
-
Hello. I'm trying to get TWI working on latest Energia with Aruino library "Keypad_I2C". Basic Keypad library works after little modification, but when I try to compile program with I2C I get error: E:\energia\hardware\msp430\libraries\Wire\Wire.cpp: In member function 'uint8_t TwoWire::requestFrom(uint8_t, uint8_t)': E:\energia\hardware\msp430\libraries\Wire\Wire.cpp:92:58: error: too few arguments to function 'uint8_t twi_readFrom(uint8_t, uint8_t*, uint8_t, uint8_t)' E:\energia\hardware\msp430\cores\msp430/twi.h:94:9: note: declared here E:\energia\hardware\msp430\libraries\Wire\Wir
-
I don't have my LaunchPad yet, but I've used that sensor with Arduino. There is library for it and it's rather simple, so try it with Energia. My previous account got locked and instantly deleted after post without any links in it, so I don't want to risk and can't provide you an URL. Just google "HC-SR04 Arduino Library"