Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 11 2018 18:35
    ShawnHymel opened #1397
  • Dec 11 2018 17:15
    jerryneedell review_requested #1395
  • Dec 11 2018 17:10
    ShawnHymel closed #1387
  • Dec 11 2018 17:10
    ShawnHymel commented #1387
  • Dec 11 2018 17:09
    ShawnHymel commented #1387
  • Dec 11 2018 09:37
  • Dec 11 2018 08:44
    urish commented #1162
  • Dec 11 2018 08:38
    nickzoic commented #1048
  • Dec 11 2018 08:38
    tannewt commented #1162
  • Dec 11 2018 08:34
    urish commented #1162
  • Dec 11 2018 06:04
    ladyada commented #1048
  • Dec 11 2018 05:59
    nickzoic commented #1048
  • Dec 11 2018 05:27

    tannewt on master

    Adding SparkFun nRF52840 Mini b… remove non-broken-out nrf pins.… Merge remote-tracking branch 'a… and 2 more (compare)

  • Dec 11 2018 05:27
    tannewt closed #1367
  • Dec 11 2018 05:26
    ladyada commented #1048
  • Dec 11 2018 05:07
    simark commented #1396
  • Dec 11 2018 05:01
    dhalbert commented #1396
  • Dec 11 2018 04:59
    simark commented #1396
  • Dec 11 2018 04:59
    nickzoic commented #1048
  • Dec 11 2018 04:49
    simark commented #1396
Radomir Dopieralski
@deshipu
do I need some special version of gcc?
Scott Shawcroft
@tannewt
I’m using the latest: arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors 6-2017-q2-update) 6.3.1 20170620 (release) [ARM/embedded-6-branch revision 249437]
Radomir Dopieralski
@deshipu
gcc-6-arm-linux-gnueabi 6.3.0-12ubuntu2cross1
that's the default in Ubuntu
Scott Shawcroft
@tannewt
travis grabs it from another repo and is building it ok
Radomir Dopieralski
@deshipu
found a ppa with newer versions, will try that
Radomir Dopieralski
@deshipu
yup, that's the one
Scott Shawcroft
@tannewt
:thumbsup:
Radomir Dopieralski
@deshipu
oh, I see, the package is gcc-arm-embedded and not the usual gcc-arm-none-eabi
that's why it didn't upgrade
Radomir Dopieralski
@deshipu
Is there any more detailed documentation about what audio format the audioio module expects?
When I try to play a file generated with this command: ffmpeg -i in.wav -acodec pcm_s16le -ac 1 -ar 16000 out.wav
I get: ValueError: Data chunk must follow fmt chunk
Radomir Dopieralski
@deshipu
nevermind, used this: https://forums.adafruit.com/viewtopic.php?p=29636 and it works
Scott Shawcroft
@tannewt
glad you got it sorted out @deshipu
Radomir Dopieralski
@deshipu
hacktoberfest?
Scott Shawcroft
@tannewt
@deshipu digital ocean is putting it on to encourage people to contribute to open source projects. 4 valid pull requests and they’ll send you a t-shirt
Radomir Dopieralski
@deshipu
fun
Radomir Dopieralski
@deshipu
@tannewt are the frozen modules supposed to work? I'm trying to specify FROZEN_DIR in the makefile, but I still can't import anything from there after it's flashed
Scott Shawcroft
@tannewt
are you using the 2.x branch?
dan has done most of the work for froxen modules but I don’t know why they wouldn’t work
Radomir Dopieralski
@deshipu
yeah, 2.x
the master doesn't compile for me, can't find sam.h
Scott Shawcroft
@tannewt
ya master is alpha state now
hopefully it’ll stablize in the next couple weeks
Radomir Dopieralski
@deshipu
"# (be sure to build from scratch)."
this is the problem, probably
hmm, ok, now I can import it from REPL, but importing it from main.py results in a memory allocation error, interesting
Dan Halbert
@dhalbert
@deshipu specify the directory in FROZEN_MPY_DIR, not FROZEN_DIR. FROZEN_MPY_DIR will compile .py in that dir into .mpy and leave the result in flash. It is executed from flash, so you save RAM. FROZEN_DIR just puts the .py into flash, so it still needs to be compiled, and you don't save RAM. Also, I enhanced the whole mechanism to to take multiple dirs (FROZEN_MPY_DIRS). See https://github.com/adafruit/circuitpython/blob/2.x/atmel-samd/boards/circuitplayground_express/mpconfigboard.mk for an example.
Matt
@thedangler
hello, kind of new to this but I was wondering if circuitpython has the adafruit_neomatrix lib I can't seem to find it? Would like to know before I start.
jerryneedell
@jerryneedell
@thedangler I don't think it has been ported yet, but you may want to ask at the #circuitpython channel on https://discordapp.com/invite/zxKcPUA lots of helpful people there porting libraries
Radomir Dopieralski
@deshipu
@dhalbert awesome, thank you!
Peter Gyory
@Petroochio
Is it possible to record some audio from the on board mic on the Circuit Playground express. I'm currently trying out circuit python with it, but I'm having trouble getting the right API to record audio :/
Scott Shawcroft
@tannewt
@Petroochio yup but it has to be a short clip. I’m at the vet for my cat now but please post your code. There are more folks in our discord chat too. Https://adafru.it/discord
Mark Eichin
@eichin_twitter
hope I'm missing something obvious, but: trinket m0, uf2'ed to 2.1.0, boot.py doing storage.remount... and open("/count.txt", "w").write("3") raises an OSError: 28, ENOSPC. There's certainly room if I mounted it the other way and edit files over USB...
(the exact code from cpu-temperature-logging-with-circuit-python also dies with 28.)
jerryneedell
@jerryneedell
@eichin_twitter did you also modify the boot.py to write-enable the FS for CircuitPython? It is normally only writable by the USB File System. It is either/or. If you do enable it, then the USB Files system cannot write to it. See https://learn.adafruit.com/cpu-temperature-logging-with-circuit-python/logging-the-temperature?view=all#writing-to-the-filesystem for details on this.
Dan Halbert
@dhalbert

@eichin_twitter @jerryneedell I tried this with a trinket and could not reproduce the error. I put storage.remount('/', False) in boot.py, reset, and then in the repl opened and wrote count.txt successfully.

Are you on a Mac? MacOS can write a lot of junk stuff to the drive, like .DS_Store, etc. that can fill it up.

Or your drive could be corrupted. You can erase all of flash by loading this uf2: https://github.com/adafruit/Adafruit_Learning_System_Guides/raw/master/uf2_flash_erasers/erase_m0.uf2. That will erase everything, and you'll need to reload the CircuitPython uf2.

We don't check gitter much anymore (though we do get email notifications). Check out the #circuitpython channel https://adafru.it/discord, where there's a lot more activity. (Link is in the banner above also.)

Mark Eichin
@eichin_twitter
Thanks. (yeah, misread the timestamps here and didn't realize how dead it was :-) so I'm over on discord now too.) Will try erase.
Mark Eichin
@eichin_twitter
Thanks all, using erase_m0.uf2 and layering things back on from scratch worked perfectly. Good to know.
Mike Letsky
@robomike
Is storage with SD cards pretty stable for read write yet ? 🙄
jerryneedell
@jerryneedell
Hi Mike - long time! Hopefully you got the info you need on discord. That is definitely the place for questions now.
seattleandrew
@seattleandrew
Hello, I'm new to python and have been playing around with the Gemma M0, can someone help me understand why I can't update my integers in my code?
Dan Halbert
@dhalbert
(seattleandrew asked in discord and was answered)
** We don't use gitter anymore. Join us instead in the #circuitpython discord chat at https://adafru.it/discord.
Md. Kamal Hossain
@khossain_gitlab
GoodMorning, I need a help, anyone can help me
I am a newer user of circuitpython. I tried to do a simple work in CP but failed.
I used adfruit metro Mo express board to import the csv file but shows an Import error: no module named 'csv'
jerryneedell
@jerryneedell
@khossain_gitlab You are better off asking your questions on the Adafruit Discord Server https://adafru.it/discord in the #circuitpython channel. There are a lot more users on-line there. Good luck!