Commit Graph

17030 Commits

Author SHA1 Message Date
Scott Shawcroft
7bdd243bf6
Ping works! 2020-08-19 14:22:13 -07:00
Scott Shawcroft
3860991111
Ping work and start to add socketpool 2020-08-19 14:22:13 -07:00
Scott Shawcroft
c53a72d3f5
Fix ipaddress import and parse ipv4 strings 2020-08-19 14:22:13 -07:00
Scott Shawcroft
cdab5e793e
Update to latest idf 2020-08-19 14:22:13 -07:00
Scott Shawcroft
c62ab6e09a
Add ipaddress 2020-08-19 14:22:12 -07:00
Scott Shawcroft
ddcff85fa2
Add debugging. Scanning doesn't crash but returns no results. Need to config station. 2020-08-19 14:22:12 -07:00
Scott Shawcroft
1a6f4e0fe0
Scanning WIP. Need to sort out supervisor memory 2020-08-19 14:22:12 -07:00
Scott Shawcroft
c5b8401a15
First crack at native wifi API 2020-08-19 14:21:59 -07:00
Scott Shawcroft
837abd6da0
Merge pull request #3300 from jepler/count-missing-chars
gen_display_resources: report missing character count, if any
2020-08-19 10:19:46 -07:00
Jeff Epler
5056027238 gen_display_resources: report missing character count, if any 2020-08-18 19:25:09 -05:00
Scott Shawcroft
8e77981ad5
Merge pull request #3297 from simmel-project/i2c
Update Simmel board definition to reflect DVT hardware
2020-08-18 12:55:45 -07:00
Scott Shawcroft
24ca5c0218
Merge pull request #3295 from tannewt/turn_off_terminalio
Turn off terminalio for ja and ko
2020-08-18 12:10:31 -07:00
Scott Shawcroft
33c9bdb778
Merge pull request #3277 from jepler/sharpmemory-bugs
sharpdisplay: Prevent 'ValueError: <pin> in use' exception
2020-08-18 11:54:53 -07:00
Scott Shawcroft
771388cde2
Remove trailing space. 2020-08-18 11:44:31 -07:00
Jeff Epler
f2f18da189 Fix build error for !SHARPDISPLAY 2020-08-18 10:59:55 -05:00
Jeff Epler
6136ca38d1
Merge pull request #3298 from ciscorn/huffman-src
Calculate the Huffman codebook without MP_QSTRs
2020-08-18 10:58:23 -05:00
Jeff Epler
9e66f71a31 Fix build error for \!DISPLAY 2020-08-18 10:03:45 -05:00
Jeff Epler
0bec39118f displayio: Don't need to specialcase reset of sharpdisplay framebuffer
.. for the case where the bus was not in use
2020-08-18 09:32:28 -05:00
Jeff Epler
b542c1486f reset_board_buses: need to check if sharpdisplay uses SPI bus 2020-08-18 09:32:28 -05:00
Taku Fukada
79a3796b1c Calculate the Huffman codebook without MP_QSTRs 2020-08-18 23:21:14 +09:00
Jeff Epler
c08fc93d16
Merge pull request #3288 from weblate/weblate-circuitpython-main
Translations update from Weblate
2020-08-18 06:52:58 -05:00
bunnie
211c134950 add I2C, remove unused pins 2020-08-18 19:02:23 +08:00
bunnie
a4508f846d stash config 2020-08-18 18:16:49 +08:00
Scott Shawcroft
d01f5dc0bd
Turn off terminalio for ja and ko
The font is missing many characters and the build needs the space.
We can optimize font storage when we get a good font.

The serial output will work as usual.
2020-08-17 17:17:59 -07:00
Alvaro Figueroa
57a7114892 Translated using Weblate (Spanish)
Currently translated at 100.0% (775 of 775 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/es/
2020-08-18 01:28:10 +02:00
Hosted Weblate
747711c7ca Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/
2020-08-18 01:28:10 +02:00
Taku Fukada
ec3d99950e Translated using Weblate (Japanese)
Currently translated at 57.6% (447 of 776 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/ja/
2020-08-18 01:28:10 +02:00
Dan Halbert
94ecf33a5c
Merge pull request #3281 from dhalbert/fix-spim3-buffer-location
SPIM3 buffer must be in first 64kB of RAM
2020-08-17 19:28:03 -04:00
Scott Shawcroft
abfe718f46
Merge pull request #3286 from sommersoft/docs_build_pdf
Build PDF Docs on RTD
2020-08-17 15:19:20 -07:00
Scott Shawcroft
19706a7eec
Merge pull request #3280 from hierophect/esp32-wroom-neopixel
ESP32-S2: Add Neopixel to Wroom
2020-08-17 15:07:19 -07:00
Scott Shawcroft
377503e61c
Merge pull request #3284 from dhalbert/fix-3171-evt-handler
Remove event handler before setting it to NULL
2020-08-17 15:02:29 -07:00
Brent Rubell
b1a8fb83fa
Merge pull request #3251 from jerryneedell/jerryn_rfm9x
RFM9x -- freeze library into build
2020-08-17 17:11:35 -04:00
Dan Halbert
6e5c2b3fe2
Merge pull request #3260 from rhooper/pixelbuf-iterable
Make pixelbuf support iterables and floats
2020-08-17 11:56:31 -04:00
Dan Halbert
16ff7b167c
bdmicro_vina_m0: inline limit 60 -> 50
The ja translation was not fitting.
2020-08-17 10:05:25 -04:00
Dan Halbert
dcbd3b4994
Merge pull request #3289 from hexthat/patch-6
Update zh_Latn_pinyin.po
2020-08-17 08:59:43 -04:00
Dan Halbert
6ebcf5b929
Merge pull request #3290 from jepler/quiet-build-messages
Quiet build messages
2020-08-17 08:57:07 -04:00
Jeff Epler
b1d210cca7 remove trailing whitespace 2020-08-16 21:33:36 -05:00
Jeff Epler
ead2554c78 mpy-cross: Silently clone when building for static-raspbian
Also move the construct earlier.  This prevents the message
```
make: pitools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-gcc: Command not found
```
from occurring during the first build, since make was evaluating the line
```
mpy-cross.mk:COMPILER_TARGET := $(shell $(CC) -dumpmachine)
```
before $(CC) was created by the clone.  Nothing bad seems to have come of
this, but it's nice to fix it anyhow.  (And interesting that it was lost
among the spewed messages we're removing now)
2020-08-16 21:26:24 -05:00
Jeff Epler
880fe1a694 gen_display_resources: silence 'missing character' message
Since we made the decision to allow translations which do not have coverage in
the terminal font, these routinely occur and are expected.  The message is
unhelpful and due to their voume make it harder to find relevant information
particularly in github actions results.
2020-08-16 20:58:24 -05:00
Jeff Epler
08ed09acc6 makeqstrdata: don't print "compression incrased length" messages
This check as implemented is misleading, because it compares the
compressed size in bytes (including the length indication) with the source
string length in Unicode code points.  For English this is approximately
fair, but for Japanese this is quite unfair and produces an excess of
"increased length" messages.

This message might have existed for one of two reasons:
 * to alert to an improperly function huffman compression
 * to call attention to a need for a "string is stored uncompressed" case
We know by now that the huffman compression is functioning as designed and
effective in general.

Just to be on the safe side, I did some back-of-the-envelope estimates.
I considered these three replacements for "the true source string size, in bytes":
+    decompressed_len_utf8 = len(decompressed.encode('utf-8'))
+    decompressed_len_utf16 = len(decompressed.encode('utf-16be'))
+    decompressed_len_bitsize = ((1+len(decompressed)) * math.ceil(math.log(1+len(values), 2)) + 7) // 8

The third counts how many bits each character requires (fewer than 128
characters in the source character set = 7, fewer than 256 = 8, fewer than 512
= 9, etc, adding a string-terminating value) and is in some way representative
of the best way we would be able to store "uncompressed strings".  The Japanese
translation (largest as of writing) has just a few strings which increase by
this metric.  However, the amount of loss due to expansion in those cases is
outweighed by the cost of adding 1 bit per string to indicate whether it's
compressed or not.  For instance, in the BOARD=trinket_m0 TRANSLATION=ja build
the loss is 47 bytes over 300 strings.  Adding 1 bit to each of 300 strings will
cost about 37 bytes, leaving just 5 Thumb instructions to implement the code to
check and decode "uncompressed" strings in order to break even.
2020-08-16 20:50:48 -05:00
hexthat
d27a1aca18
Update zh_Latn_pinyin.po
fixed some “ to "
2020-08-16 18:18:36 -07:00
hexthat
ddd79a2483
Update zh_Latn_pinyin.po
add translations
2020-08-16 16:33:03 -07:00
Jeff Epler
7604114b47
Merge pull request #3287 from weblate/weblate-circuitpython-main
Translations update from Weblate
2020-08-16 08:25:14 -05:00
Wellington Terumi Uemura
4074915779
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (776 of 776 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2020-08-16 04:25:23 +02:00
Jeff Epler
da89c30498
Merge pull request #3285 from weblate/weblate-circuitpython-main
Translations update from Weblate
2020-08-15 21:25:14 -05:00
sommersoft
e0fd85bc45 build.yml: more texlive/latex dependencies 2020-08-15 16:24:21 -05:00
sommersoft
6e67c4f7d4 build.yml: ensure 'latexmk' is installed 2020-08-15 14:42:12 -05:00
sommersoft
97415fc604 .readthedocs.yml: add directive for RTD to build a pdf version of the docs 2020-08-15 14:30:12 -05:00
sommersoft
670b6ebecc build.yml: add doc building test for latex/pdf 2020-08-15 14:29:38 -05:00
sommersoft
ffffccf7a0 docs/rstjinja.py: add jinja processing for building latex (pdf) docs 2020-08-15 14:29:09 -05:00