Official Raspberry Pi 7" Display Backlight Control under Windows 10 IoT - raspberry-pi2

Is it possible to control the backlight for the Raspberry Pi 7" display under Windows 10 IoT Core? If so, does anyone know of any documentation or samples showing how?
I understand that support was added to the Linux display driver to enable this; I'm not certain if that same support was or is present in the Windows 10 IoT Core display driver, nor how to interface with it if it is.

Official Raspberry Pi 7" Display Backlight can be controlled by I2C registers.
string i2cDeviceSelector = I2cDevice.GetDeviceSelector();
IReadOnlyList<DeviceInformation> devices = await DeviceInformation.FindAllAsync(i2cDeviceSelector);
var settings = new I2cConnectionSettings(0x45);
var screen = await I2cDevice.FromIdAsync(devices[0].Id, settings);
byte[] writeBuff = new byte[] { 0x86, 0x80 };
screen.Write(writeBuff);
More information is here.
And don't forget, that DSI connector does not support I2C. Using the jumper cables, connect SCL/SDA on the raspberry GPIO header to the horizontal pins marked SCL/SDA on the display board.

Related

Problem adding "pro mode" for Huawei Camera Kit

I followed the sample code on their developer page, and I'm not sure how to add the pro mode camera feature into my app after initializing the Huawei Camera Kit instance.
private CameraKit mCameraKit;
mCameraKit = CameraKit.getInstance(getApplicationContext());
//If the current mobile phone does not support the kit or the SDK version is incompatible, NULL is returned. Compatibility processing is required.
if (mCameraKit == null) {
return;
}
Based on the Huawei Developer guides section, pro mode should be one of the supported camera modes, but I did not find pro mode in the Camera Kit API reference. Does anyone know how to enable pro mode?
There is no specific mode definition for Pro mode. Pro mode is defined by the open keys. You only need to:
Set mCurrentModeType to PRO_PHOTO_MODE or PRO_VIDEO_MODE.
Use mCurrentModeType to create a Mode object.
Call the setParameter method of the Mode object to enable the corresponding capability.
Use the takePicture, startRecording, and stopRecording methods of the Mode object to take photos and record videos. Refer to details.
After the preview function is enabled, you can configure the capability values of Pro mode, such as the ISO, exposure time, and white balance. Below are some sample code.
// Query the functions supported by the mode.
List<CaptureRequest.Key<?>> parameters = mModeCharacteristics.getSupportedParameters();
// Query the supported ISO range.
List<Integer> values = mModeCharacteristics.getParameterRange(RequestKey.HW_PRO_SENSOR_ISO_VALUE);
// Set the ISO value. The first value is used as an example.
mMode.setParameter(RequestKey.HW_ PRO_SENSOR_ISO_VALUE, values.get(0));
Currently, Pro Mode is supported only on devices with Kirin 990 and Kirin 9000.
The following code is provided for your reference on how to add a mode to your app. Currently, only the rear camera supports Pro Mode.
// Query the camera list of the device.
String[] cameraLists = mCameraKit.getCameraIdList();
// Query the modes supported by the current camera.
int[] modes = mCameraKit.getSupportedModes(cameraLists[0]);
// Create a mode.
mCameraKit.createMode(cameraLists[0], mCurrentModeType, mModeStateCallback, mCameraKitHandler);

ESP8266 01 WIFI module problem. No AT cmd & can't flash

I just bought new ESP8266 wifi module 5 days ago and looks like below:
Black colour
No Ai Thinker text
No Ai Cloud text
Cost : 7~10 $
I have tried many ways/websites/advices to make it works but I got nothing.
None AT command works
Flash new firmware keeps fail
Blue light blinking tutorial works
Official websites that I have go through it's step but doesn't work:
Instructables
Github
Stackoverflow
Espressive
Youtube
Thingspeak
Ubidots
I have start my dev on this esp since 4 days ago
Please help me 😣
The ESP8266-01 boards are not breadboard-direct friendly. You'll find it easiest to attach some female-male jumper cables on the appropriate pins.
To flash the chip, this is the pinout you'll need.
ESP01 (left) and FTDI (right)
CH_PD + VCC = 3.3V (aka VCC)
GND + GPIO0 = GND
RXD = TXD
TXD = RXD

USB camera (not RPi camera) isn't working on Android Things Preview 2

There are samples of using RPi camera, but none of them are useful.
I have added permissions in the manifest file, but still the output is showing : No cameras found. Why?
02-22 19:24:42.936 2134-2134/com.example.androidthings.doorbell
D/DoorbellActivity: Doorbell Activity created.
02-22 19:24:43.131 2134-2134/com.example.androidthings.doorbell
I/CameraManagerGlobal: Connecting to camera service
02-22 19:24:43.135 2134-2134/com.example.androidthings.doorbell
D/DoorbellCamera: No cameras found
02-22 19:24:43.135 2134-2134/com.example.androidthings.doorbell
W/DoorbellCamera: Cannot capture image. Camera not initialized.
If you look at the Hardware Support Matrix on the Developer Kits page, note that camera support is only provided over the CSI-2 interface, and not USB. The only media interface supported over USB in the current preview is audio record/playback.

Liveview on Android/QX1 Sony Camera API 2.01 fails

Using the supplied Android demo from
https://developer.sony.com/downloads/all/sony-camera-remote-api-beta-sdk/
Connected up to the WIFI connection on a Sony QX1. The sample application finds the camera device and is able to connect to it.
The liveview is not displaying correctly. At most, one frame is shown and the code hits an exception in SimpleLiveViewSlicer.java
if (commonHeader[0] != (byte) 0xFF) {
throw new IOException("Unexpected data format. (Start byte)");
}
Shooting a photo does not seem to work. Zooming does work - lens is moving. Camera is working fine when using the PlayMemories app directly, so no hardware issue.
Hoping from advice from Sony on this one - standard hardware and demo application should work.
Can you provide some details of your setup?
What version of Android SDK are you compiling with?
What IDE and OS are you using?
Have you installed the latest firmware? (http://www.sony.co.uk/support/en/product/ILCE-QX1#SoftwareAndDownloads)
Edit:
We tested the sample code using a QX1 lens and the same setup as you and were able to run the sample code just fine.
One thing to check is whether the liveview is ready to transfer images. To confirm whether the camera is ready to transfer liveview images, the client can check “liveviewStatus” status of “getEvent” API (see API specification for details). Perhaps there is some timing issue due to connection speed that is causing the crash.

What happened to FM Radio in Windows Phone 8?

FM Radio was a mandatory HW requirement in Windows Phone 7, but it's not present on any current Windows Phone 8 device.
Why there is no FM radio in Music Hub in WP8? Can we at least use the FMRadio API?
According to MSDN:
http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj206947(v=vs.105).aspx
Windows Phone 8 does not support the FM radio feature. If you use the
FM radio API in a Windows Phone 8 app, a RadioDisabledException will
occur.
Also from what I heard:
...the FM radio feature was planned to be included but got cut from this
release due to stability vs. time constraints.
(... I don't know if
there are any plans to re-enable this feature in a future update.)
You can use this test to safely determine if FMRadio can be used on current phone:
/// <summary>
/// Flag is radio device is available in this phone.
/// </summary>
public bool IsRadioAvailable
{
get
{
if (!radioInitialized)
{
radioInitialized = true;
try
{
radio = FMRadio.Instance;
isRadioAvailable = true;
}
catch (RadioDisabledException e)
{
isRadioAvailable = false;
}
}
return isRadioAvailable;
}
}
private bool radioInitialized;
private bool isRadioAvailable;
private FMRadio radio;
Update:
According to various sources FM radio will be enabled in upcoming Windows Phone 8 update that should arrive in Summer 2013.
I read that the Lumia 920 has FMRX and just needs to be "utilised". Not sure if they helps in any way
FM Radio returns, on supported hardware, in Windows Phone 8 'GDR2' (8.0.10327.77/78).
It's not clear whether the API support also returns and how it behaves:
Caution:
FM radio is supported only in apps that target Windows Phone OS 7.1.
If you use the FMRadio class in apps that target Windows Phone OS 8.0
or later, a RadioDisabledException indicates that the FM radio feature
is not available. On Windows Phone 8 devices with a build of 8.0.10322
or greater, the run-time exception may not occur if you use the
FMRadio API. However, the FMRadio API is not supported for apps that
target Windows Phone OS 8.0.
http://msdn.microsoft.com/en-us/library/windowsphone/develop/microsoft.devices.radio.fmradio.frequency(v=vs.105).aspx
In other words, there is no Windows Phone Runtime API to control the radio.
I've just tried out an FM Radio app from the store, which does work.