android
2024-07-25 2dcf9cc893a27c50d538baf8b5d47ff06fe495d8
1
2
3
4
5
6
7
8
9
package com.example.serial;
 
public class BuzzerControl {
    static{
        System.loadLibrary("serial");
    }
    public static native int pwmOpen(String id); // 返回1表示缺少权限
    public static native int pwmConfig(String attr, String val); // 返回1表示缺少权限,2表示输入的值无效
}