phenyl

Members
  • Content count

    49
  • Joined

  • Last visited

  • Days Won

    1

phenyl last won the day on May 5 2016

phenyl had the most liked content!

About phenyl

  • Rank
    Advanced Member

Recent Profile Visitors

183 profile views
  1. Hi @dubnet Thank you very much for your answer, I think this issue was for ccs. With ccs6 there was a slow TI GraphicsLib and they sped it up significantly for ccs v7 but I am not sure that one can just drop that into energia and be done with it. I did run the CCSv7 Demo on the MSP432 and it was FAST. (I am not ready for jumping over to the world of direct register manipulation tho... Energia is a good compromise for me in order to get ahead with my hobby projects...)
  2. Hi All First, I would like to thank @Rei Vilo for providing the Library for the Kentec (BOOSTXL-k350qvg) library with Energia. I copied the code out of https://www.youtube.com/watch?v=XyeUpk6P4kA (as I didn't find the powerpoint or pdf) and got it to work with an MSP430F5529 launchpad. (Energia 18, Windows as the Mac version doesn't work atm). Then I compiled the same code on a MSP432P401R launchpad and it runs a lot slower than on the F5529 (I assume this is a known issue, due to slow SPI speed ( https://github.com/energia/msp432-core/issues/27 ) but also doesn't look the same, the fonts are "skinnier on the MSP432. This discrepancy, I cannot explain. Another question: If I want to write a changing variable, in this case simply the x-coordinate of the touch to the screen, how do I locally clear the screen without redrawing everything (or if I want to make a bar graph that represents eg a changing value of a sensor? Do I always draw a black rectangle, then the bar/text etc? or is there a simpler way that is not immediately obvious to me now? Next step: I have to learn more about state machines to switch screens (settings), do stuff there, come back to main without the program getting into badly readable territory. Thank you very much for your help. //First steps with the Kentec Display #include "SPI.h" #include "Screen_K35_SPI.h" Screen_K35_SPI myScreen; uint16_t colours[6]; uint16_t x; uint16_t y; uint16_t z; uint8_t initFlag; void setup() { Serial.begin(9600); Serial.println(); Serial.println("hello"); Serial.println(); pinMode(RED_LED, OUTPUT); myScreen.begin(); myScreen.clear(); colours[0] = myScreen.calculateColour(255, 0, 0); colours[1] = myScreen.calculateColour(0, 255, 0); colours[2] = myScreen.calculateColour(0, 0, 255); colours[3] = myScreen.calculateColour(255, 255, 255); colours[4] = myScreen.calculateColour(255, 255, 0); colours[5] = myScreen.calculateColour(0, 0, 0); x = 0; y = 0; z = 0; myScreen.setPenSolid(true); myScreen.setFontSolid(false); myScreen.setFontSize(2); initFlag = 1; } void loop() { if (initFlag) { drawHomeScreen(); initFlag = 0; } if (myScreen.isTouch() > 0) { myScreen.getTouch(x, y, z); myScreen.gText(10, 10, btoa(x, 8), colours[3]); Serial.print(x); Serial.print(" "); Serial.print(y); Serial.print(" "); Serial.println(z); } if (z > 100) { if ((x < 160 && x > 0) && (y < 240 && y > 100)) { digitalWrite(RED_LED, HIGH); } else if ((x < 320 && x > 160) && (y > 100 && y < 240)) { digitalWrite(RED_LED, LOW); } else if ((x < 320 && x > 160) && (y > 0 && y < 100)) { drawSettingsScreen(); } } } void drawHomeScreen() { myScreen.clear(); myScreen.gText(30, 50, "TOUCH LCD DEMO", colours[4]); myScreen.rectangle(0, 100, 160, 239, colours[1]); myScreen.gText(50, 180, "ON", colours[0]); myScreen.rectangle(160, 100, 319, 239, colours[0]); myScreen.gText(235, 180, "OFF", colours[1]); myScreen.rectangle(160, 0, 319, 100, colours[2]); myScreen.gText(180, 50, "SETTINGS", colours[3]); } void drawSettingsScreen() { myScreen.clear(); myScreen.gText(10, 10, "TOUCH LCD DEMO", colours[0]); myScreen.gText(10, 30, "TOUCH LCD DEMO", colours[1]); myScreen.gText(10, 50, "TOUCH LCD DEMO", colours[2]); myScreen.gText(10, 70, "TOUCH LCD DEMO", colours[3]); myScreen.gText(10, 90, "TOUCH LCD DEMO", colours[4]); }
  3. Here's a gui composer demo: https://dev.ti.com/gallery/view/3491167/MSP-EXP432P4111_OOB/ which links to http://www.ti.com/tool/msp-exp432p4111 ( Sorry! We couldn't find your page) atm
  4. Thank you very much, I opened an issue and will follow it and provide any info needed. https://github.com/energia/Energia/issues/983
  5. Hi, I updated to OS X High sierra, and installed a fresh copy of energia 18 from energia.nu and replaced the arduino-builder with the one from above post, but unfortunately, blink fails to compile (board chosen F5529) /Applications/Energia.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware "/Applications/Energia.app/Contents/Java/hardware" -hardware "/Users/baettig/Library/Energia15/packages" -tools "/Applications/Energia.app/Contents/Java/tools-builder" -tools "/Applications/Energia.app/Contents/Java/hardware/tools/msp430" -tools "/Users/baettig/Library/Energia15/packages" -built-in-libraries "/Applications/Energia.app/Contents/Java/libraries" -libraries "/Users/baettig/Documents/Energia/libraries" -fqbn=energia:msp430:MSP-EXP430F5529LP -ide-version=10610 -build-path "/var/folders/67/4hcf1n2n6k19d5kvvbztt9qh0000gn/T/builded0b72ce2b4f77512eec99a6713fe17d.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "/Applications/Energia.app/Contents/Java/examples/01.Basics/Blink/Blink.ino" arduino-builder returned 139 Error compiling for board MSP-EXP430F5529LP. I would be happy to provide more details in order to get energia running again. BTW is there an ETA for a new release (19)? Thank you very much for your help Edit: sorry for posting under tiva, but this was the most pertinent thread I found and I didn't think it important enough to open a new one with the same content under msp430...
  6. Hi, is that also possible with SPI in case there are several SPI interfaces? (One interface at a time means one per sketch or the first interface, then the second, then the first again in the same sketch?) Thank you very much
  7. Well, I tried ordering two of the boards and a couple small tx modules. Luckily they sent me a mail asking if I accepted their shipping charge of 76.81 USD. (for a total of 31 USD of components) Which feels outrageous and so I politely declined... I chose "cheapest international shipping method", so for living out of the US it's simply out of any range of justification for a hobby purchase.
  8. @@greeeg , iirc they do stencils, too. But as you say, depending on use case and shipping specifics the one or the other may be cheaper. @@zeke, not sure if you got my PM? Tapatalk was hiccupping yesterday night. Edit: I should read all posts in a thread... Sent from my Nexus 6P using Tapatalk
  9. Yeah it is Sent from my Nexus 6P using Tapatalk
  10. Hi @@zeke in my (limited) opinion, their work is good. Here's a board (the gerbers came from an eevblog member,[1] not mine) I had made privately: I had some made, the one I soldered the components on works perfectly. Of the ones from work I don't have any pictures obviously, they were only for a small project with a few components. The finish there was ENIG, which also turned out really well. [1] http://www.eevblog.com/forum/testgear/point-me-to-latest-info-on-dyi-dsoxlan/msg823148/#msg823148
  11. Hi @@artium, thank you very much (and also adafruit ) I ran the benchmarks on my msp432 launchpad and also on my msp430f5529 launchpad (25 MHz), here with #define USE_FAST_PINIO commented for both. msp432 Display Power Mode: 0x9C MADCTL Mode: 0x48 Pixel Format: 0x5 Image Format: 0x0 Self Diagnostic: 0x0 Benchmark Time (microseconds) Screen fill 31922493 Text 1787874 Lines 17494289 Horiz/Vert Lines 2618766 Rectangles (outline) 1675845 Rectangles (filled) 66276560 Circles (filled) 9775988 Circles (outline) 7653239 Triangles (outline) 5548662 Triangles (filled) 21812339 Rounded rects (outline) 3461099 Rounded rects (filled) 72269681 Done! msp430f5529 ILI9341 Test! Display Power Mode: 0x60 MADCTL Mode: 0x0 Pixel Format: 0xFF Image Format: 0x0 Self Diagnostic: 0x0 Benchmark Time (microseconds) Screen fill 2263167 Text 340734 Lines 3615312 Horiz/Vert Lines 195546 Rectangles (outline) 133089 Rectangles (filled) 4699971 Circles (filled) 1194204 Circles (outline) 1580064 Triangles (outline) 1146462 Triangles (filled) 1952517 Rounded rects (outline) 558189 Rounded rects (filled) 5281704 Done! The 432 seems to be significantly slower in everything than the 5529, which I don't understand yet. (I did use uint32_t, I forgot which one I used when writing the forum post away from my home computer)...
  12. Hi Zeke, I was using http://www.pcbway.com/ at work and for a private project or two. At work we paid for fast shipping on some small simple boards that we needed quickly, the boards got here in less than a work week and looked good (and performed well). Otherwise you can check on http://www.pcbshopper.com/, they run comparisons on your size and time-requirements to help you find the optimal boardhouse. (I am unaffiliated with either company, only a customer and I used pcbshoppers website).
  13. Thank you very much for the info. I am in Switzerland, so I probably better forget about it... Unfortunately this board is not available with mouser, farnell, which ship to Switzerland for free if the order is for more than a certain amount.
  14. Hi @@artium Thank you very much for making this library available. I compiled it on a F5529 launchpad without issue (needed to adapt the pins slightly) I am trying to get it working on the msp432 now, however I am running into problems. First it mentions that min(,) is not defined, this is easily circumvented with two definesat the top of the sketch: https://github.com/energia/Energia/issues/815 Then I changed volatile RwReg with volatile int32_t in the h file where the SPI pin pointers are defined. Unfortunately, now the compiler tells me that digitalpintoport and associated functions are not defined. Do you or anyone have any hints? I'll upload the exact error message tonight, this is from memory...
  15. Did anyone order these boards by chance and could report on international shipping costs? I went through the whole order process and would have had to click confirm order without knowing the shipping costs... There are not estimates anywhere to be found unfortunately. (The boards are now up to 10 USD a piece...) Thank you very much