home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.sys.raspberry-pi      Raspberry Pi computers & related hardwar      26,127 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 25,619 of 26,127   
   Lawrence =?iso-8859-13?q?D=FFOlivei to Chris Green   
   Re: Has gpio changed completely betwen b   
   30 Aug 25 09:13:15   
   
   From: ldo@nz.invalid   
      
   On Sat, 30 Aug 2025 09:02:46 +0100, Chris Green wrote:   
      
   > Lawrence D’Oliveiro  wrote:   
   >>   
   >> On Thu, 28 Aug 2025 19:05:55 +0100, Chris Green wrote:   
   >>   
   >>> The best I've found so far is the 'source':-   
   >>>     https://github.com/brgl/libgpiod/blob/master/bindings/python/README.md   
   >>>   
   >>> It has some Python examples but the coding style is very odd and   
   >>> makes it difficult to follow what's going on IMHO.   
   >>   
   >> I had a look at one or two examples, but they didn’t look very   
   >> “odd” to me. Any particular ones you are having trouble with?   
   >   
   > I worked it all out OK, I do write quite a lot of Python code. My   
   > comment was rather that the style using 'with' and so on which makes   
   > it rather diffcult to actually follow the sequence of calls required   
   > to do simple things like 'set this line high' or 'read the state of   
   > that line'.   
      
   You don’t know about context managers? They’re a basic Python   
   mechanism for ensuring proper cleanup. You consider it “odd” just   
   because you hadn’t learned about that feature of Python?   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca