Search found 2754 matches
- Sat Apr 27, 2019 12:53 pm
- Forum: MicroPython pyboard
- Topic: Does the compiler omit code that will never execute?
- Replies: 2
- Views: 2743
Re: Does the compiler omit code that will never execute?
Yes, this would trigger this optimisation in compile.c STATIC void compile_if_stmt(compiler_t *comp, mp_parse_node_struct_t *pns) { uint l_end = comp_next_label(comp); // optimisation: don't emit anything when "if False" if (!mp_parse_node_is_const_false(pns->nodes[0])) { ... } bool mp_parse_node_is...
- Sat Apr 27, 2019 12:11 pm
- Forum: Programs, Libraries and Tools
- Topic: Good hashing for passwords
- Replies: 1
- Views: 2706
Re: Good hashing for passwords
Many of these ciphers need quite a lot of ROM, e.g. (e.g. Blowfish used by Bcrypt) needs a few kilobytes of digits of pi for the p-array and s-boxes. This might make them unlikely to ever appear by default in micropython firmware (I have no idea though). As you've already noticed, the strongest avai...
- Sat Apr 27, 2019 11:46 am
- Forum: Pyboard D-series
- Topic: Ambitious First Timer!!
- Replies: 5
- Views: 4573
Re: Ambitious First Timer!!
Hi. I think MicroPython is definitely more than capable for this sort of project. As far as getting started goes, the most difficult part is most likely integrating with the kitchen devices. Measuring temperature is relatively easy one to start with, using something like a DHT11/DHT22 or a DS18x20 (...
- Sat Apr 27, 2019 11:31 am
- Forum: micro:bit boards
- Topic: Can a microbit detect a host computer
- Replies: 3
- Views: 4815
Re: Can a microbit detect a host computer
I'm not aware that this would be possible to detect that USB is connected -- the USB functionality is handled by a separate chip on the micro:bit (which runs Daplink). The only pins connected between the NRF51822 (that runs your MicroPython code) is the TX/RX pair for the UART. [Ref: https://github....