Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: The Natural Philosopher Newsgroups: comp.os.linux.misc Subject: Re: Diversity - good or bad ? Date: Sun, 12 Jan 2025 20:48:41 +0000 Organization: A little, after lunch Lines: 39 Message-ID: References: <2e17ec15-582f-5a71-84e5-d4d490274270@example.net> <7454fa51-3534-2584-2197-90613efb2091@example.net> <9uo3ojpd83jm9ngmlhera3nvi00pl9ajeb@4ax.com> <3w-dnT3j2Mwylx76nZ2dnZfqnPadnZ2d@earthlink.com> <6eKdnbL_nY56qR76nZ2dnZfqnPidnZ2d@earthlink.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 12 Jan 2025 21:48:42 +0100 (CET) Injection-Info: dont-email.me; posting-host="2f926649ad379acaad6b98eb2a7a7167"; logging-data="1484904"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19PluZNsrN6YHToqTTL61uILO+6g2+cd5k=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:2303Njuh3cLiErd4xUCAy44uTuY= Content-Language: en-GB In-Reply-To: Bytes: 3180 On 12/01/2025 20:46, rbowman wrote: > On Sun, 12 Jan 2025 11:09:56 +0000, The Natural Philosopher wrote: > >> GPIO on a PI under linux is a breeze. > > I was surprised. It has limits compared to a Pico since the machine does > have other tasks to perform rather than being dedicated. > >> Picos are not bad either. >> >> The Pico is an adventure to get anything going without using the ghastly >> python, which is slow and limited > > It depends on the application. For many things Python is perfectly fine. > You need the ability to determine when it isn't and act accordingly. > MicroPython or CircuitPython abstracts away much of the low level cruft. > otoh working with the C SDK is like building a wall a brick at a time. > > > I wanted my picos to show up in my routers DHCP tables as something other than whatever is the default. Python could not do it. C could. static void set_hostname(char * hostname) { struct netif *n; // set hostname cyw43_arch_lwip_begin(); n = &cyw43_state.netif[CYW43_ITF_STA]; netif_set_hostname(n, hostname); netif_set_up(n); cyw43_arch_lwip_end(); // end set hostname } -- Canada is all right really, though not for the whole weekend. "Saki"