Search the Community
Showing results for tags 'print'.
-
Hi, I am using Energia ethernet library for Ti Tiva c 129 Launchpad. I wrote a simple program in Energia that gets a byte from stream and sends back two bytes. It seems there is lag when I send bytes back from Ti board. Here is my code. byte mac[] = {0x00, 0x0A, 0xB7, 0x52, 0xBA, 0x16 }; IPAddress ip(192,168,1,192); IPAddress gateway(192,168,1,1); IPAddress subnet(255,255,255,0); EthernetServer server(80); EthernetClient client; void setup() { Ethernet.begin(mac, ip, gateway, subnet); server.begin(); Serial.begin(9600); } void loop() { byte buf[2]
- 3 replies
-
- EthernetTiva C
-
(and 2 more)
Tagged with:
-
Hi, I had interface MSP430F5529 launchpad with FatFS Sd card. I was trying to store value from ADC into SD card and I found that I cannot store the value on SD Card, unless I do "sprintf" or equivalent printf of the data, only then I was able to store the value on SD card. However, sprintf is expensive command and takes more cycle then ADC output i.e some of the data is lost from ADC in doing sprintf. Is there a better alternative than sprintf or something like if I store raw value and later post process it? Any help will be highly appreciated. Thanks
-
I'm lovin' the ease of the Energia environment for rapid prototyping but I've run across an issue with some code I'm trying to implement. Here it is with the serial output Program: /* ** Simple program designed to simulate pushing 180 degrees of 10 meter scan times ** for testing of VB.NET GUI ** */ String inputString = ""; boolean run = false; String outString = ""; int i = 0; void setup() { Serial.begin(9600); inputString.reserve(200); outString.reserve(200); } void loop() { if (run) { for (i = 0; i < 179; i++) //Print 10 meter ping times for each scan angle {