These are chat archives for esp8266/Arduino

24th
Mar 2016
Michael Miller
@Makuna
Mar 24 2016 00:34
At what point does just buying a cheap smart phone for the project makes sense?
Aditya Tannu
@AdySan
Mar 24 2016 00:38
? I bought a cheap Kobo wifi ereader for a project
Was a great deal for $15
It runs Linux!
I've been on the hint for a good 3.3V i2c or spi eink display
Surprisingly hard to find
Baruch Even
@baruch
Mar 24 2016 08:32
I was looking at the symbols generated and noticed there are multiple instances of INADDR_NONE so I made them all use one symbol in pull-request #1814
I'm also looking to use the http upgrade and wanted an auto-updating version number or hash, is there such a thing already? can I add a step to the arduino ide build to create such a symbol?
tzapu
@tzapu
Mar 24 2016 10:01
@martinayotte damn it, did i just miss this weeks purchases session ?
got some PCF8574T myself a day before :P
and a htu21/sht21/HTU21D
as i got fed up with dht22 and wanted to see how others work
Ivan Grokhotkov
@igrr
Mar 24 2016 10:47
@baruch there isn't such a thing yet, but i suppose you could use __DATE__ and __TIME__ macros to bake build time into the sketch binary.
d-anders
@d-anders
Mar 24 2016 14:35
@ivankravets will try it later tonight,maybe it will work on a new project
didnt work for my imported project
Ivan Kravets
@ivankravets
Mar 24 2016 14:37
@d-anders please check that your file has *.cpp extension. If you want to use *.ino please take a look at http://docs.platformio.org/en/latest/ide/atom.html#smart-code-linter-is-disabled-for-arduino-files
d-anders
@d-anders
Mar 24 2016 14:37
aah, it had ino
tzapu
@tzapu
Mar 24 2016 14:37
@ivankravets quick question since you are here :P
if you have a sec that is
Ivan Kravets
@ivankravets
Mar 24 2016 14:37
@tzapu go :)
tzapu
@tzapu
Mar 24 2016 14:37
can i keep working on my projects with both arduino ide and platform io?
or do they step on eachother toes?
Ivan Kravets
@ivankravets
Mar 24 2016 14:38
@tzapu of course. Please use Menu: PlatformIO > Import Arduino Project and mark 2 checkboxes for compatibility.
tzapu
@tzapu
Mar 24 2016 14:38
and then it doesn t move files, etc
Ivan Kravets
@ivankravets
Mar 24 2016 14:38
yes
tzapu
@tzapu
Mar 24 2016 14:38
thank you
Ivan Kravets
@ivankravets
Mar 24 2016 14:38
what is more
tzapu
@tzapu
Mar 24 2016 14:38
nice
Ivan Kravets
@ivankravets
Mar 24 2016 14:39
you will be able to use Arduino IDE library manager
tzapu
@tzapu
Mar 24 2016 14:39
ah ha
Ivan Kravets
@ivankravets
Mar 24 2016 14:39
but I don't recommend
tzapu
@tzapu
Mar 24 2016 14:39
ok
well, i m half torn, i m developing a lib, and want to make sure arduino ide users can use it without issues
otherwise i d go only platform ide
d-anders
@d-anders
Mar 24 2016 14:39
btw, did you change so that you can build from any file in the project in the latest ver?
Ivan Kravets
@ivankravets
Mar 24 2016 14:39
Screen Shot 2016-03-24 at 16.39.42.png
d-anders
@d-anders
Mar 24 2016 14:40
when i tried platformio a couple of days ago it wouldnt build if i had the .ino file tab active
but it would build if i had the settings from the project open
Ivan Kravets
@ivankravets
Mar 24 2016 14:40
@tzapu no problems, please check "Use Arduino IDE library manager". In this case, you will share libs between to IDEs
tzapu
@tzapu
Mar 24 2016 14:41
ok, thank you very much
if i don t use the arduino ide, does it put libs in subfolders of the project?
Ivan Kravets
@ivankravets
Mar 24 2016 14:41
@d-anders Please upgrade to PlatformIO IDE 1.1.0. It is huge update since the first release (1 month ago)
d-anders
@d-anders
Mar 24 2016 14:41
i have 1.0.5 now
tzapu
@tzapu
Mar 24 2016 14:42
sorry, library manager, if i don t use that, and use platform io lib manager, does it make subfolders, or does it have a separate folder somewhere to keep libs for all projects?
Ivan Kravets
@ivankravets
Mar 24 2016 14:42
@d-anders :) please upgrade
d-anders
@d-anders
Mar 24 2016 14:42
i will upgrade
thought i did yesterday
tzapu
@tzapu
Mar 24 2016 14:43
anywya, i will play with it. thanks very much for your answers, much appreciated
Ivan Kravets
@ivankravets
Mar 24 2016 14:43
@tzapu if we talk about PlatformIO 2.0 it install libs by default globally to http://docs.platformio.org/en/latest/projectconf.html#lib-dir
tzapu
@tzapu
Mar 24 2016 14:43
ok, so couldn t i make that folder the same as arduino lob folder?
Ivan Kravets
@ivankravets
Mar 24 2016 14:43
@tzapu but we are working on PlatformIO 3.0 and it will receive huge updates to Library Manager.
d-anders
@d-anders
Mar 24 2016 14:43
trying now, chose "upgrade platformio" from the menu but it seems nothing is happening
tzapu
@tzapu
Mar 24 2016 14:44
i assume i can also install manually for that folder, and it will pick the lib up?
Ivan Kravets
@ivankravets
Mar 24 2016 14:44
@tzapu of course, just place you library in the lib folder of the project. See https://github.com/platformio/platformio/tree/develop/examples/atmelavr-and-arduino/arduino-external-libs
tzapu
@tzapu
Mar 24 2016 14:45
ok, thank you , thank you :D
tzapu
@tzapu
Mar 24 2016 14:46
i ve taken too much of your time already :D
thanks
Ivan Kravets
@ivankravets
Mar 24 2016 14:46
@d-anders go to Menu: PlatformIO > Settings > platformio-ide and check that version is 1.1.0
d-anders
@d-anders
Mar 24 2016 14:46
it is not
must go soon
will download later
Ivan Kravets
@ivankravets
Mar 24 2016 14:46
@d-anders click on update button
d-anders
@d-anders
Mar 24 2016 14:46
upgrading from the menu doesnt work for me, nothing happens
Ivan Kravets
@ivankravets
Mar 24 2016 14:47
@d-anders there are two instances in PlatformIO IDE: 1. platformio-ide package for Atom; 2. PlatformIO CLI
@d-anders ok, click on Settings (gear) icon on tool bar and follow to Community Packages. Here you will see platformio-ide package
@d-anders PlatformIO IDE this is GUI around PlatformIO CLI. Of course, it has own built-in PlatformIO CLI version.
d-anders
@d-anders
Mar 24 2016 15:27
thanks, updating now
d-anders
@d-anders
Mar 24 2016 15:37
still doesnt show any tipss after i write dig
created a new project and added a source file with cpp extension
Ivan Kravets
@ivankravets
Mar 24 2016 21:17
@d-anders do you have clang installed in your system? PlatformIO IDE uses it for code completion. See step 3 from http://docs.platformio.org/en/latest/ide/atom.html#installation
d-anders
@d-anders
Mar 24 2016 21:24
yeah, but im not sure it is working :)
i will look into it
i get completion for "if, for" etc though
d-anders
@d-anders
Mar 24 2016 22:02
installed clang and it started working. really thought i had installed it two days ago
d-anders
@d-anders
Mar 24 2016 22:44
wow, platformio is sweet. time to ditch arduino ide
Michael Miller
@Makuna
Mar 24 2016 23:02
How does it compare to Visual Studio Community?
d-anders
@d-anders
Mar 24 2016 23:02
hm
different
i have been using visual studio since forever, so for me nothing compares to it
havent used it for arduino/esp8266 though
but platformio looks nice
integrated cli library manager
and working code completion
Michael Miller
@Makuna
Mar 24 2016 23:28
There is a VS plugin for Arduino (free for prototypes) that gives you all that also. But I guess that's for Windows only.
d-anders
@d-anders
Mar 24 2016 23:28
yeah i use windows
Michael Miller
@Makuna
Mar 24 2016 23:28
Have you tried Visual Micro then?
d-anders
@d-anders
Mar 24 2016 23:29
i think i tried that plugin a long time ago
ran into some problem, dont remember
Michael Miller
@Makuna
Mar 24 2016 23:30
yeah, until they added Board and Library support (basically until Arduino IDE got board and Library support worked out) it was painful to wait for upgrades as it was broken from some Arduino IDE change.
d-anders
@d-anders
Mar 24 2016 23:31
@ivankravets code completion works when i create a new project. when i import an old arduino project i cant quite get it to work even after renaming to .cpp
most of my esp8266/arduino projects are small anyway, so most important is for everything to just work, including libraries etc