Jump to content


  • Content Count

  • Joined

  • Last visited

  1. Yes, I can confirm that patching energia_pins.h works. Thanks. Do someone needs a lib for controlling 7 seg indicator?
  2. And here is spec for LED indicator. I should mention that this code works when I'm using normal digital output pin instead for XIN or XOUT for 11'th leg of LED indicator 232.pdf
  3. Sorry for mess with link but forum doesn't allow me to post direct links at all
  4. Sure. Here is the code: pastebin dt com slsh BGPC7iBk Schematic is very simple, basically it's 4 digits 7 segments led indicator connected straight to outputs of LaunchPad (can make a photo if you want ). I'm trying to port a part of my bigger Arduino project. LED indicator should be connected to 12 outputs of LaunchPad and I still need serial port and one button available. I know that there is some tricks to power it from smaller amount of legs but I need it to work dead simple at the moment, without extra chips, etc.
  5. No, no luck yet that is modified chunk of my code byte pin_map[] = {-1, P2_4, P2_5, P1_6, P1_7, P1_4, P1_3, P1_5, P2_0, P2_1, P2_2, 19, P2_3}; byte char_map[128]; // Fragmented set of first 128 characters of ASCII table. byte seg_map[] = {segA, segB, segC, segD, segE, segF, segG, segDP}; byte digits_map[4] = {digit1, digit2, digit3, digit4}; void setup() { P2SEL &= ~(BIT6|BIT7); P2DIR |= (BIT6|BIT7); P2OUT |= BIT7; P2OUT |= BIT6; char_map['0'] = B11111100; char_map['1'] = B01100000; char_map['2'] = B11011010; char_map['3'] = B11110010; char_map['4'] = B01100110; cha
  6. Well, the answer is yes and no. At the moment I'm having fun with microcontrollers to dilute my day-to-day work on various web projects. Diving to deep into architecture is a bit out of scope of my interest, I have no intention to become a msp430 or atmel ninja at the moment Getting project done is my biggest priority and hardware decisions is not a limitation but a tool. Of course I can turn this to a kind of challenge for myself to increase my motivation but
  7. Not, I'm not able to use it: LED.cpp:18:83: error: 'P2_6' was not declared in this scope Here is the part of the code where initialization happens: byte seg = 0; byte segA = 11; byte segB = 7; byte segC = 4; byte segD = 2; byte segE = 1; byte segF = 10; byte segG = 5; byte segDP = 3; byte digit1 = 12; byte digit2 = 9; byte digit3 = 8; byte digit4 = 6; byte digits_available = 4; // Amount of available digits on display // 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 byte pin_map[] = {-1, P2_4, P2_5, P1_6, P1_7, P1_4, P1_3, P1_5, P2_0, P2_1,
  8. Doesn't work for me I've added P2SEL &= ~(BIT6|BIT7); to setup function and tried to access XIN/XOUT port by number (19/18) but without success.
  9. Thanks for the answer! Seems it would be simpler to switch back to Arduino for big project and leave Launchpad for smaller fun.
  10. At the moment I'm porting my project for Arduino Nano which reads some data via software serial from LC-1 device and sends decoded data back to laptop so I can debug. Current state of the project doesn't really require TWO serials (second is used for debug purposes) and I believe that I can port it to LaunchPad without big hassle. However further plans for this project requires another one serial input to read data from another device and combine them with data coming from LC-1
  11. Any port actually, as I need two ports for my project, one to connect external device and second to communicate back to laptop. Github's wiki has some mentions of software serial port with mark TBA
  12. Also searched for this on forums and internet without any success.
  13. Hello all. According to Hardware scheme on GitHub wiki both XIN and XOUT can be used for digitalRead/digitalWrite however I haven't had any success with it. How I can use this pins for digital output? Sorry if I missed the answer on this forum (but I honestly tried to find the answer before posting my question)
  • Create New...