Hello,
I'm trying to add a SPI RAM chip to simulide.
To familiarize myself with the source code, I just created a clone of `I2Cram.cpp/.h` that I called `SPI_ram.cpp/.h` and renamed the `I2CRam` class to `SPIram`, etc.
I also updated `itemlibrary.cpp`.
Then I executed `qmake` and `make -j$(nproc)`.
It compiled and executed fine, but I can't find my new SPI RAM chip into the components list panel.
The `moc_spi_ram.cpp` is generated.
`spi_ram.o` is also there.
Is there something I'm missing ?
Do I have to cleanup the previous compilation before adding a new component ?
I'm trying to add a SPI RAM chip to simulide.
To familiarize myself with the source code, I just created a clone of `I2Cram.cpp/.h` that I called `SPI_ram.cpp/.h` and renamed the `I2CRam` class to `SPIram`, etc.
I also updated `itemlibrary.cpp`.
Then I executed `qmake` and `make -j$(nproc)`.
It compiled and executed fine, but I can't find my new SPI RAM chip into the components list panel.
The `moc_spi_ram.cpp` is generated.
`spi_ram.o` is also there.
Is there something I'm missing ?
Do I have to cleanup the previous compilation before adding a new component ?
- Code:
LibraryItem* SPIram::libraryItem()
{
return new LibraryItem(
tr( "SPI Ram" ),
tr( "Logic/Memory" ),
"2to3.png",
"I2CRam", // <-- tried with SPIram too : no success
SPIram::construct );
}