Custom
Custom
is a Modulation
that outputs the specified unsigned 8-bit data sequence.
use autd3::modulation::Custom;
use autd3::prelude::*;
fn main() {
let _ =
Custom {
buffer: vec![0xFF, 0x00],
sampling_config: 4.0 * kHz,
};
}
#include<vector>
#include<autd3.hpp>
#include <autd3/modulation/custom.hpp>
int main() {
using namespace autd3;
modulation::Custom(std::vector<uint8_t>{0xFF, 0x00}, 4000.0f * Hz);
return 0; }
using AUTD3Sharp;
using static AUTD3Sharp.Units;
using AUTD3Sharp.Modulation;
new Custom(
buffer: [0xFF, 0x00],
samplingConfig: 4000f * Hz
);
from pyautd3 import Hz
import numpy as np
from pyautd3.modulation import Custom
Custom(
buffer=np.array([0xFF, 0x00]),
sampling_config=4000.0 * Hz,
)