Comments (2)
Is actually used in MakeCode:
https://github.com/microsoft/pxt-microbit/blob/d80514bda223f729d452c1e51047f3272a2317fb/libs/microphone/microphonehw.cpp#L46
class WMicrophone {
public:
MIC_DEVICE microphone;
LevelDetectorSPL level;
WMicrophone() MIC_INIT { MIC_ENABLE; }
};
MIC_INIT
should be expanding to microphone(uBit.audio.mic) , level(* uBit.audio.levelSPL)
codal-microbit-v2/model/MicroBit.h
Lines 323 to 325 in 864e7b8
So I guess the microphone in CODAL is already enabled by default and WMicrophone
constructor doesn't need any additional code to be run? In that case it might be better to remove the commented out code from the macro with a comment or something explaining it.
from codal-microbit-v2.
Let's use this issue to track syncing with the MakeCode team to remove their own mic initialisation.
Then we can remove this macro from the micro:bit codal codebase as well.
from codal-microbit-v2.
Related Issues (20)
- Revert changes in codal-microbit-nrf5sdk that modify SDK files directly HOT 3
- Add `setSampleRange()` to `StreamSplitter` to match `Mixer2::setSampleRange()` HOT 9
- The sample rate for microphone input via `StreamSplitter` must be an integer multiple of existing sample rate HOT 2
- Suggest adding `StreamSplitter::pullInto()` to reduce memory allocation when recording samples HOT 8
- `wasPressed()` for the `TouchButton` class HOT 4
- Waking up turns on the microphone even if it is never used HOT 2
- Should fibers wait for access to serial?
- Set audio pin creates a 44.2kHz 50% PWM after audio playback HOT 2
- MicroBitButton.h missing in MicroBit.h when DEVICE_BLE=0 HOT 6
- Snapshot v0.2.63 points to a codal-microbit-nrf5sdk commit that is not in the repo HOT 1
- In a tight loop, mostly deep sleeping, takes 600 milliseconds to go back to sleep HOT 1
- Data log "full" marker is not being written to interface storage HOT 7
- MakeCode `randint()` not random when Bluetooth enabled HOT 1
- Default `uBit.io.logo` touch type should be capacitive. HOT 3
- A way to configure a pin on open drain mode HOT 1
- Overloaded virtual warnings
- Quickly switching between resistive and capacitive pin touch and checking state doesn't work
- `NRF52Pin::wasTouched()` default mode is capacitative instead of the pin state HOT 1
- Are all `time.tick_xxx()` functions bound to 30 bits? HOT 2
- Counting CPU cycles with `DWT->CTRL` does not match expectations HOT 2
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 codal-microbit-v2.