Comments (2)
Aha. I think i figured it out. I had a microsd interface also on the SPI bus; both were connected to MISO, and your code mentions that the interrupt stuff only works if there are no other devices on the SPI bus. I removed the microsd interface and now it is working. I'll close the ticket. :D
from ch376msc.
Hi, sorry for the late response. If you have one extra free pin on your Leonardo board then connect it to usb module's INT pin and when you create an instance of the class, use:
Ch376msc flashDrive(SS, BSY, INT); // chipSelect, busy, interrupt pin
With that you can share the SPI bus. Thanks ;)
from ch376msc.
Related Issues (20)
- how to read serial write to usb flash drive?
- interface with vs1053 HOT 1
- Maximum baud rate speed of HardwareSerial HOT 1
- DELETE EVERY SINGLE BIT HOT 3
- [SPI interface] USB is not detecting and Prints as Attach flash drive first! HOT 3
- info needed HOT 1
- Arduino Due not connecting to CH376 HOT 9
- Question: List/Select partition HOT 1
- getChipVer() returns 0xFF, but everything else works HOT 3
- CH376s SPI USB issues
- file name Limitations HOT 7
- ch376s not working with esp32 HOT 4
- readFileUntil() return "false" for both EOF and the record terminator HOT 3
- interfacing ch376s module with build in sd HOT 3
- Accessing USB Pendrive and SD Card consecutively! HOT 6
- Init function hangs the application HOT 2
- Volume Label Information
- Files are not created when called using separate fileOpen, fileWrite and fileClose functions
- i can't write string to flash drive. HOT 2
- "Flash Drive Attached" instability
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 ch376msc.