Comments (4)
You can do both. Are you using C, Python or something else?
from pi.
Using C
from pi.
Have a look at Pi/src/gzlib/src/gz_spi.c, specifically the gz_spi_set(int) and gz_spi_reset(int) functions.
You can either use those functions to set and reset individual bits or you can examine the code to write your own code which will write the 3 output lines together. The |= and &= ~ operators are the ones doing the work of setting and resetting respectively. The (1 << (bit_number)) code shifts a '1' into the right bit position for the | (bitwise or) and & (bitwise and) operators to do their thing.
Hope that helps. Let me know if you have follow up questions.
from pi.
Will look into this... thanks
from pi.
Related Issues (20)
- Please add the PCB board traces for testing and debugging the soldering job. HOT 4
- Make loader, library and demo code work with Raspberry Pi 2 HOT 12
- new core request - frequency divider / variable audio wordclock HOT 5
- New core request - PWM input HOT 16
- Test gz_lcd with new device tree frame buffer driver HOT 1
- gz_load fails after first load of gz_test HOT 7
- gz_load fails after first load of gz_test HOT 10
- SURF unavailable in OpenCV 2.4.1 HOT 1
- bcm2835-v4l2 not working with Raspbian 7.8, Python 2.7.3 HOT 5
- Request - SBUS input HOT 5
- Order status HOT 2
- Guzunty no longer available on Amazon or EBay HOT 3
- Quadrature encoder HOT 1
- How can I order a Guzunty and an LCD adapter board without paying postage twice? HOT 1
- Ordered from US 8/30, status? HOT 3
- RPi 3 GPCLK0 Anomaly? HOT 5
- Guzunty @ Pi Zero HOT 3
- Create a new Guzunty based on a surface mount device HOT 5
- Opencv error: Assertion failed (scn +1 == m.cols) dst=cv2.perspectiveTransform(pts,M)
- comparator operator needs to be updated
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pi.